Lines Matching defs:ep

115 	ng_hci_lp_con_req_ep		*ep = NULL;
121 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data);
150 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL);
221 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
241 bcopy(&ep->bdaddr, &req->cp.bdaddr, sizeof(req->cp.bdaddr));
267 n = ng_hci_get_neighbor(unit, &ep->bdaddr);
315 ng_hci_lp_con_req_ep *ep = NULL;
320 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data);
332 bcmp(&acl_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
339 ep->bdaddr.b[5], ep->bdaddr.b[4], ep->bdaddr.b[3],
340 ep->bdaddr.b[2], ep->bdaddr.b[1], ep->bdaddr.b[0]);
358 * 3) sco_con->bdaddr == ep->bdaddr
379 bcmp(&sco_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
414 bcopy(&ep->bdaddr, &sco_con->bdaddr, sizeof(sco_con->bdaddr));
483 ng_hci_lp_discon_req_ep *ep = NULL;
498 if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
508 ep = (ng_hci_lp_discon_req_ep *)(NGI_MSG(item)->data);
510 con = ng_hci_con_by_handle(unit, ep->con_handle);
514 __func__, NG_NODE_NAME(unit->node), ep->con_handle);
524 ep->con_handle);
547 req->cp.con_handle = htole16(ep->con_handle);
548 req->cp.reason = ep->reason;
572 ng_hci_lp_con_cfm_ep *ep = NULL;
585 sizeof(*ep), M_NOWAIT);
587 ep = (ng_hci_lp_con_cfm_ep *) msg->data;
588 ep->status = status;
589 ep->link_type = con->link_type;
590 ep->con_handle = con->con_handle;
591 bcopy(&con->bdaddr, &ep->bdaddr,
592 sizeof(ep->bdaddr));
608 sizeof(*ep), M_NOWAIT);
610 ep = (ng_hci_lp_con_cfm_ep *) msg->data;
611 ep->status = status;
612 ep->link_type = con->link_type;
613 ep->con_handle = con->con_handle;
614 bcopy(&con->bdaddr, &ep->bdaddr,
615 sizeof(ep->bdaddr));
640 ng_hci_lp_con_ind_ep *ep = NULL;
656 sizeof(*ep), M_NOWAIT);
660 ep = (ng_hci_lp_con_ind_ep *)(msg->data);
661 ep->link_type = con->link_type;
662 bcopy(uclass, ep->uclass, sizeof(ep->uclass));
663 bcopy(&con->bdaddr, &ep->bdaddr, sizeof(ep->bdaddr));
691 ng_hci_lp_con_rsp_ep *ep = NULL;
706 if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
716 ep = (ng_hci_lp_con_rsp_ep *)(NGI_MSG(item)->data);
725 * 1) con->link_type == ep->link_type
730 * 3) con->bdaddr == ep->bdaddr
751 if (con->link_type == ep->link_type &&
754 bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
759 error = (ep->status == 0)? ENOENT : 0;
788 if (ep->status == 0) {
794 bcopy(&ep->bdaddr, &req->cp.acc.bdaddr,
828 bcopy(&ep->bdaddr, &req->cp.rej.bdaddr,
831 req->cp.rej.reason = ep->status;
850 if (ep->status == 0) {
880 ng_hci_lp_discon_ind_ep *ep = NULL;
893 NGM_HCI_LP_DISCON_IND, sizeof(*ep), M_NOWAIT);
897 ep = (ng_hci_lp_discon_ind_ep *) msg->data;
898 ep->reason = reason;
899 ep->link_type = con->link_type;
900 ep->con_handle = con->con_handle;
911 sizeof(*ep), M_NOWAIT);
915 ep = (ng_hci_lp_discon_ind_ep *) msg->data;
916 ep->reason = reason;
917 ep->link_type = con->link_type;
918 ep->con_handle = con->con_handle;
940 ng_hci_lp_qos_req_ep *ep = NULL;
955 if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
965 ep = (ng_hci_lp_qos_req_ep *)(NGI_MSG(item)->data);
967 con = ng_hci_con_by_handle(unit, ep->con_handle);
971 __func__, NG_NODE_NAME(unit->node), ep->con_handle);
1012 req->cp.con_handle = htole16(ep->con_handle);
1013 req->cp.flags = ep->flags;
1014 req->cp.service_type = ep->service_type;
1015 req->cp.token_rate = htole32(ep->token_rate);
1016 req->cp.peak_bandwidth = htole32(ep->peak_bandwidth);
1017 req->cp.latency = htole32(ep->latency);
1018 req->cp.delay_variation = htole32(ep->delay_variation);
1051 ng_hci_lp_qos_cfm_ep *ep = NULL;
1057 sizeof(*ep), M_NOWAIT);
1059 ep = (ng_hci_lp_qos_cfm_ep *) msg->data;
1060 ep->status = status;
1061 ep->con_handle = con->con_handle;
1077 sizeof(*ep), M_NOWAIT);
1079 ep = (ng_hci_lp_qos_cfm_ep *) msg->data;
1080 ep->status = status;
1081 ep->con_handle = con->con_handle;
1106 ng_hci_lp_qos_ind_ep *ep = NULL;
1116 sizeof(*ep), M_NOWAIT);
1120 ep = (ng_hci_lp_qos_ind_ep *) msg->data;
1121 ep->con_handle = con->con_handle;
1131 sizeof(*ep), M_NOWAIT);
1135 ep = (ng_hci_lp_qos_ind_ep *) msg->data;
1136 ep->con_handle = con->con_handle;