Lines Matching refs:acl_hdr
547 ng_hci_acldata_pkt_t *acl_hdr = NULL; in ng_l2cap_lp_send() local
595 m0 = ng_l2cap_prepend(m0, sizeof(*acl_hdr)); in ng_l2cap_lp_send()
600 sizeof(*acl_hdr)); in ng_l2cap_lp_send()
604 acl_hdr = mtod(m0, ng_hci_acldata_pkt_t *); in ng_l2cap_lp_send()
605 acl_hdr->type = NG_HCI_ACL_DATA_PKT; in ng_l2cap_lp_send()
606 acl_hdr->length = htole16(len); in ng_l2cap_lp_send()
607 acl_hdr->con_handle = htole16(NG_HCI_MK_CON_HANDLE( in ng_l2cap_lp_send()
661 ng_hci_acldata_pkt_t *acl_hdr = NULL; in ng_l2cap_lp_receive() local
668 if (m->m_pkthdr.len < sizeof(*acl_hdr)) { in ng_l2cap_lp_receive()
677 NG_L2CAP_M_PULLUP(m, sizeof(*acl_hdr)); in ng_l2cap_lp_receive()
681 acl_hdr = mtod(m, ng_hci_acldata_pkt_t *); in ng_l2cap_lp_receive()
682 m_adj(m, sizeof(*acl_hdr)); in ng_l2cap_lp_receive()
685 acl_hdr->con_handle = le16toh(acl_hdr->con_handle); in ng_l2cap_lp_receive()
686 con_handle = NG_HCI_CON_HANDLE(acl_hdr->con_handle); in ng_l2cap_lp_receive()
687 pb = NG_HCI_PB_FLAG(acl_hdr->con_handle); in ng_l2cap_lp_receive()
688 length = le16toh(acl_hdr->length); in ng_l2cap_lp_receive()