Lines Matching full:ep

128 	ng_hci_lp_con_req_ep		*ep = NULL;  in ng_hci_lp_acl_con_req()  local
134 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_acl_con_req()
163 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req()
234 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr)); in ng_hci_lp_acl_con_req()
254 bcopy(&ep->bdaddr, &req->cp.bdaddr, sizeof(req->cp.bdaddr)); in ng_hci_lp_acl_con_req()
280 n = ng_hci_get_neighbor(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req()
328 ng_hci_lp_con_req_ep *ep = NULL; in ng_hci_lp_sco_con_req() local
333 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_sco_con_req()
345 bcmp(&acl_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in ng_hci_lp_sco_con_req()
352 ep->bdaddr.b[5], ep->bdaddr.b[4], ep->bdaddr.b[3], in ng_hci_lp_sco_con_req()
353 ep->bdaddr.b[2], ep->bdaddr.b[1], ep->bdaddr.b[0]); in ng_hci_lp_sco_con_req()
371 * 3) sco_con->bdaddr == ep->bdaddr in ng_hci_lp_sco_con_req()
392 bcmp(&sco_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in ng_hci_lp_sco_con_req()
427 bcopy(&ep->bdaddr, &sco_con->bdaddr, sizeof(sco_con->bdaddr)); in ng_hci_lp_sco_con_req()
492 ng_hci_lp_con_req_ep *ep = NULL; in ng_hci_lp_le_con_req() local
497 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_le_con_req()
530 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, link_type); in ng_hci_lp_le_con_req()
601 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr)); in ng_hci_lp_le_con_req()
621 bcopy(&ep->bdaddr, &req->cp.peer_addr, sizeof(req->cp.peer_addr)); in ng_hci_lp_le_con_req()
670 ng_hci_lp_discon_req_ep *ep = NULL; in ng_hci_lp_discon_req() local
685 if (NGI_MSG(item)->header.arglen != sizeof(*ep)) { in ng_hci_lp_discon_req()
695 ep = (ng_hci_lp_discon_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_discon_req()
697 con = ng_hci_con_by_handle(unit, ep->con_handle); in ng_hci_lp_discon_req()
701 __func__, NG_NODE_NAME(unit->node), ep->con_handle); in ng_hci_lp_discon_req()
711 ep->con_handle); in ng_hci_lp_discon_req()
734 req->cp.con_handle = htole16(ep->con_handle); in ng_hci_lp_discon_req()
735 req->cp.reason = ep->reason; in ng_hci_lp_discon_req()
759 ng_hci_lp_con_cfm_ep *ep = NULL; in ng_hci_lp_con_cfm() local
772 sizeof(*ep), M_NOWAIT); in ng_hci_lp_con_cfm()
774 ep = (ng_hci_lp_con_cfm_ep *) msg->data; in ng_hci_lp_con_cfm()
775 ep->status = status; in ng_hci_lp_con_cfm()
776 ep->link_type = con->link_type; in ng_hci_lp_con_cfm()
777 ep->con_handle = con->con_handle; in ng_hci_lp_con_cfm()
778 bcopy(&con->bdaddr, &ep->bdaddr, in ng_hci_lp_con_cfm()
779 sizeof(ep->bdaddr)); in ng_hci_lp_con_cfm()
795 sizeof(*ep), M_NOWAIT); in ng_hci_lp_con_cfm()
797 ep = (ng_hci_lp_con_cfm_ep *) msg->data; in ng_hci_lp_con_cfm()
798 ep->status = status; in ng_hci_lp_con_cfm()
799 ep->link_type = con->link_type; in ng_hci_lp_con_cfm()
800 ep->con_handle = con->con_handle; in ng_hci_lp_con_cfm()
801 bcopy(&con->bdaddr, &ep->bdaddr, in ng_hci_lp_con_cfm()
802 sizeof(ep->bdaddr)); in ng_hci_lp_con_cfm()
823 ng_hci_lp_enc_change_ep *ep = NULL; in ng_hci_lp_enc_change() local
829 sizeof(*ep), M_NOWAIT); in ng_hci_lp_enc_change()
831 ep = (ng_hci_lp_enc_change_ep *) msg->data; in ng_hci_lp_enc_change()
832 ep->status = status; in ng_hci_lp_enc_change()
833 ep->link_type = con->link_type; in ng_hci_lp_enc_change()
834 ep->con_handle = con->con_handle; in ng_hci_lp_enc_change()
856 ng_hci_lp_con_ind_ep *ep = NULL; in ng_hci_lp_con_ind() local
872 sizeof(*ep), M_NOWAIT); in ng_hci_lp_con_ind()
876 ep = (ng_hci_lp_con_ind_ep *)(msg->data); in ng_hci_lp_con_ind()
877 ep->link_type = con->link_type; in ng_hci_lp_con_ind()
878 bcopy(uclass, ep->uclass, sizeof(ep->uclass)); in ng_hci_lp_con_ind()
879 bcopy(&con->bdaddr, &ep->bdaddr, sizeof(ep->bdaddr)); in ng_hci_lp_con_ind()
907 ng_hci_lp_con_rsp_ep *ep = NULL; in ng_hci_lp_con_rsp() local
922 if (NGI_MSG(item)->header.arglen != sizeof(*ep)) { in ng_hci_lp_con_rsp()
932 ep = (ng_hci_lp_con_rsp_ep *)(NGI_MSG(item)->data); in ng_hci_lp_con_rsp()
941 * 1) con->link_type == ep->link_type in ng_hci_lp_con_rsp()
946 * 3) con->bdaddr == ep->bdaddr in ng_hci_lp_con_rsp()
967 if (con->link_type == ep->link_type && in ng_hci_lp_con_rsp()
970 bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in ng_hci_lp_con_rsp()
975 error = (ep->status == 0)? ENOENT : 0; in ng_hci_lp_con_rsp()
1004 if (ep->status == 0) { in ng_hci_lp_con_rsp()
1010 bcopy(&ep->bdaddr, &req->cp.acc.bdaddr, in ng_hci_lp_con_rsp()
1044 bcopy(&ep->bdaddr, &req->cp.rej.bdaddr, in ng_hci_lp_con_rsp()
1047 req->cp.rej.reason = ep->status; in ng_hci_lp_con_rsp()
1066 if (ep->status == 0) { in ng_hci_lp_con_rsp()
1096 ng_hci_lp_discon_ind_ep *ep = NULL; in ng_hci_lp_discon_ind() local
1109 NGM_HCI_LP_DISCON_IND, sizeof(*ep), M_NOWAIT); in ng_hci_lp_discon_ind()
1113 ep = (ng_hci_lp_discon_ind_ep *) msg->data; in ng_hci_lp_discon_ind()
1114 ep->reason = reason; in ng_hci_lp_discon_ind()
1115 ep->link_type = con->link_type; in ng_hci_lp_discon_ind()
1116 ep->con_handle = con->con_handle; in ng_hci_lp_discon_ind()
1127 sizeof(*ep), M_NOWAIT); in ng_hci_lp_discon_ind()
1131 ep = (ng_hci_lp_discon_ind_ep *) msg->data; in ng_hci_lp_discon_ind()
1132 ep->reason = reason; in ng_hci_lp_discon_ind()
1133 ep->link_type = con->link_type; in ng_hci_lp_discon_ind()
1134 ep->con_handle = con->con_handle; in ng_hci_lp_discon_ind()
1156 ng_hci_lp_qos_req_ep *ep = NULL; in ng_hci_lp_qos_req() local
1171 if (NGI_MSG(item)->header.arglen != sizeof(*ep)) { in ng_hci_lp_qos_req()
1181 ep = (ng_hci_lp_qos_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_qos_req()
1183 con = ng_hci_con_by_handle(unit, ep->con_handle); in ng_hci_lp_qos_req()
1187 __func__, NG_NODE_NAME(unit->node), ep->con_handle); in ng_hci_lp_qos_req()
1228 req->cp.con_handle = htole16(ep->con_handle); in ng_hci_lp_qos_req()
1229 req->cp.flags = ep->flags; in ng_hci_lp_qos_req()
1230 req->cp.service_type = ep->service_type; in ng_hci_lp_qos_req()
1231 req->cp.token_rate = htole32(ep->token_rate); in ng_hci_lp_qos_req()
1232 req->cp.peak_bandwidth = htole32(ep->peak_bandwidth); in ng_hci_lp_qos_req()
1233 req->cp.latency = htole32(ep->latency); in ng_hci_lp_qos_req()
1234 req->cp.delay_variation = htole32(ep->delay_variation); in ng_hci_lp_qos_req()
1267 ng_hci_lp_qos_cfm_ep *ep = NULL; in ng_hci_lp_qos_cfm() local
1273 sizeof(*ep), M_NOWAIT); in ng_hci_lp_qos_cfm()
1275 ep = (ng_hci_lp_qos_cfm_ep *) msg->data; in ng_hci_lp_qos_cfm()
1276 ep->status = status; in ng_hci_lp_qos_cfm()
1277 ep->con_handle = con->con_handle; in ng_hci_lp_qos_cfm()
1293 sizeof(*ep), M_NOWAIT); in ng_hci_lp_qos_cfm()
1295 ep = (ng_hci_lp_qos_cfm_ep *) msg->data; in ng_hci_lp_qos_cfm()
1296 ep->status = status; in ng_hci_lp_qos_cfm()
1297 ep->con_handle = con->con_handle; in ng_hci_lp_qos_cfm()
1322 ng_hci_lp_qos_ind_ep *ep = NULL; in ng_hci_lp_qos_ind() local
1332 sizeof(*ep), M_NOWAIT); in ng_hci_lp_qos_ind()
1336 ep = (ng_hci_lp_qos_ind_ep *) msg->data; in ng_hci_lp_qos_ind()
1337 ep->con_handle = con->con_handle; in ng_hci_lp_qos_ind()
1347 sizeof(*ep), M_NOWAIT); in ng_hci_lp_qos_ind()
1351 ep = (ng_hci_lp_qos_ind_ep *) msg->data; in ng_hci_lp_qos_ind()
1352 ep->con_handle = con->con_handle; in ng_hci_lp_qos_ind()