Lines Matching full:ep

379 	ng_hci_le_advertising_report_ep	*ep = NULL;  in le_advertizing_report()  local
386 NG_HCI_M_PULLUP(event, sizeof(*ep)); in le_advertizing_report()
390 ep = mtod(event, ng_hci_le_advertising_report_ep *); in le_advertizing_report()
391 num_reports = ep->num_reports; in le_advertizing_report()
392 m_adj(event, sizeof(*ep)); in le_advertizing_report()
393 ep = NULL; in le_advertizing_report()
473 ng_hci_le_connection_complete_ep *ep = NULL; in le_connection_complete() local
478 NG_HCI_M_PULLUP(event, sizeof(*ep)); in le_connection_complete()
482 ep = mtod(event, ng_hci_le_connection_complete_ep *); in le_connection_complete()
483 link_type = (ep->address_type)? NG_HCI_LINK_LE_RANDOM : in le_connection_complete()
490 * 3) con->bdaddr == ep->address in le_connection_complete()
495 bcmp(&con->bdaddr, &ep->address, sizeof(bdaddr_t)) == 0) in le_connection_complete()
516 if (ep->status != 0) in le_connection_complete()
528 bcopy(&ep->address, &con->bdaddr, sizeof(con->bdaddr)); in le_connection_complete()
544 con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->handle)); in le_connection_complete()
547 ng_hci_lp_con_cfm(con, ep->status); in le_connection_complete()
550 if (ep->status != 0) in le_connection_complete()
616 ng_hci_inquiry_result_ep *ep = NULL; in inquiry_result() local
621 NG_HCI_M_PULLUP(event, sizeof(*ep)); in inquiry_result()
625 ep = mtod(event, ng_hci_inquiry_result_ep *); in inquiry_result()
626 m_adj(event, sizeof(*ep)); in inquiry_result()
628 for (; ep->num_responses > 0; ep->num_responses --) { in inquiry_result()
677 ng_hci_con_compl_ep *ep = NULL; in con_compl() local
681 NG_HCI_M_PULLUP(event, sizeof(*ep)); in con_compl()
685 ep = mtod(event, ng_hci_con_compl_ep *); in con_compl()
690 * 1) con->link_type == ep->link_type in con_compl()
692 * 3) con->bdaddr == ep->bdaddr in con_compl()
696 if (con->link_type == ep->link_type && in con_compl()
698 bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in con_compl()
718 if (ep->status != 0) in con_compl()
721 con = ng_hci_new_con(unit, ep->link_type); in con_compl()
727 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr)); in con_compl()
736 con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in con_compl()
737 con->encryption_mode = ep->encryption_mode; in con_compl()
739 ng_hci_lp_con_cfm(con, ep->status); in con_compl()
742 if (ep->status != 0) in con_compl()
753 if (ep->link_type == NG_HCI_LINK_ACL) { in con_compl()
771 lp->cp.con_handle = ep->con_handle; in con_compl()
803 ng_hci_con_req_ep *ep = NULL; in con_req() local
807 NG_HCI_M_PULLUP(event, sizeof(*ep)); in con_req()
811 ep = mtod(event, ng_hci_con_req_ep *); in con_req()
816 * 1) con->link_type == ep->link_type in con_req()
821 * 3) con->bdaddr == ep->bdaddr in con_req()
856 if (con->link_type == ep->link_type && in con_req()
859 bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in con_req()
863 con = ng_hci_new_con(unit, ep->link_type); in con_req()
865 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr)); in con_req()
870 error = ng_hci_lp_con_ind(con, ep->uclass); in con_req()
888 ng_hci_discon_compl_ep *ep = NULL; in discon_compl() local
893 NG_HCI_M_PULLUP(event, sizeof(*ep)); in discon_compl()
897 ep = mtod(event, ng_hci_discon_compl_ep *); in discon_compl()
901 * Do we have to send notification if ep->status != 0? in discon_compl()
903 * ONLY if ep->status == 0. in discon_compl()
906 if (ep->status == 0) { in discon_compl()
907 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in discon_compl()
910 error = ng_hci_lp_discon_ind(con, ep->reason); in discon_compl()
934 ng_hci_encryption_change_ep *ep = NULL; in encryption_change() local
939 NG_HCI_M_PULLUP(event, sizeof(*ep)); in encryption_change()
943 ep = mtod(event, ng_hci_encryption_change_ep *); in encryption_change()
944 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in encryption_change()
947 if (ep->status == 0) { in encryption_change()
959 } else if (ep->encryption_enable) in encryption_change()
967 __func__, NG_NODE_NAME(unit->node), ep->status); in encryption_change()
981 ng_hci_read_remote_features_compl_ep *ep = NULL; in read_remote_features_compl() local
987 NG_HCI_M_PULLUP(event, sizeof(*ep)); in read_remote_features_compl()
991 ep = mtod(event, ng_hci_read_remote_features_compl_ep *); in read_remote_features_compl()
993 if (ep->status == 0) { in read_remote_features_compl()
995 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in read_remote_features_compl()
1019 bcopy(ep->features, n->features, sizeof(n->features)); in read_remote_features_compl()
1023 __func__, NG_NODE_NAME(unit->node), ep->status); in read_remote_features_compl()
1034 ng_hci_qos_setup_compl_ep *ep = NULL; in qos_setup_compl() local
1039 NG_HCI_M_PULLUP(event, sizeof(*ep)); in qos_setup_compl()
1043 ep = mtod(event, ng_hci_qos_setup_compl_ep *); in qos_setup_compl()
1046 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in qos_setup_compl()
1065 error = ng_hci_lp_qos_cfm(con, ep->status); in qos_setup_compl()
1089 ng_hci_role_change_ep *ep = NULL; in role_change() local
1092 NG_HCI_M_PULLUP(event, sizeof(*ep)); in role_change()
1096 ep = mtod(event, ng_hci_role_change_ep *); in role_change()
1098 if (ep->status == 0) { in role_change()
1100 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in role_change()
1102 con->role = ep->role; in role_change()
1107 ep->bdaddr.b[5], ep->bdaddr.b[4], in role_change()
1108 ep->bdaddr.b[3], ep->bdaddr.b[2], in role_change()
1109 ep->bdaddr.b[1], ep->bdaddr.b[0]); in role_change()
1113 __func__, NG_NODE_NAME(unit->node), ep->status, in role_change()
1114 ep->bdaddr.b[5], ep->bdaddr.b[4], ep->bdaddr.b[3], in role_change()
1115 ep->bdaddr.b[2], ep->bdaddr.b[1], ep->bdaddr.b[0]); in role_change()
1126 ng_hci_num_compl_pkts_ep *ep = NULL; in num_compl_pkts() local
1130 NG_HCI_M_PULLUP(event, sizeof(*ep)); in num_compl_pkts()
1134 ep = mtod(event, ng_hci_num_compl_pkts_ep *); in num_compl_pkts()
1135 m_adj(event, sizeof(*ep)); in num_compl_pkts()
1137 for (; ep->num_con_handles > 0; ep->num_con_handles --) { in num_compl_pkts()
1184 ng_hci_mode_change_ep *ep = NULL; in mode_change() local
1188 NG_HCI_M_PULLUP(event, sizeof(*ep)); in mode_change()
1192 ep = mtod(event, ng_hci_mode_change_ep *); in mode_change()
1194 if (ep->status == 0) { in mode_change()
1195 u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in mode_change()
1210 con->mode = ep->unit_mode; in mode_change()
1214 __func__, NG_NODE_NAME(unit->node), ep->status); in mode_change()
1239 ng_hci_read_clock_offset_compl_ep *ep = NULL; in read_clock_offset_compl() local
1244 NG_HCI_M_PULLUP(event, sizeof(*ep)); in read_clock_offset_compl()
1248 ep = mtod(event, ng_hci_read_clock_offset_compl_ep *); in read_clock_offset_compl()
1250 if (ep->status == 0) { in read_clock_offset_compl()
1251 u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in read_clock_offset_compl()
1276 n->clock_offset = le16toh(ep->clock_offset); in read_clock_offset_compl()
1280 __func__, NG_NODE_NAME(unit->node), ep->status); in read_clock_offset_compl()
1291 ng_hci_qos_violation_ep *ep = NULL; in qos_violation() local
1296 NG_HCI_M_PULLUP(event, sizeof(*ep)); in qos_violation()
1300 ep = mtod(event, ng_hci_qos_violation_ep *); in qos_violation()
1303 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in qos_violation()
1332 ng_hci_page_scan_mode_change_ep *ep = NULL; in page_scan_mode_change() local
1336 NG_HCI_M_PULLUP(event, sizeof(*ep)); in page_scan_mode_change()
1340 ep = mtod(event, ng_hci_page_scan_mode_change_ep *); in page_scan_mode_change()
1343 n = ng_hci_get_neighbor(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in page_scan_mode_change()
1351 bcopy(&ep->bdaddr, &n->bdaddr, sizeof(n->bdaddr)); in page_scan_mode_change()
1356 n->page_scan_mode = ep->page_scan_mode; in page_scan_mode_change()
1367 ng_hci_page_scan_rep_mode_change_ep *ep = NULL; in page_scan_rep_mode_change() local
1371 NG_HCI_M_PULLUP(event, sizeof(*ep)); in page_scan_rep_mode_change()
1375 ep = mtod(event, ng_hci_page_scan_rep_mode_change_ep *); in page_scan_rep_mode_change()
1378 n = ng_hci_get_neighbor(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in page_scan_rep_mode_change()
1386 bcopy(&ep->bdaddr, &n->bdaddr, sizeof(n->bdaddr)); in page_scan_rep_mode_change()
1391 n->page_scan_rep_mode = ep->page_scan_rep_mode; in page_scan_rep_mode_change()