Lines Matching refs:hdr
35 #define AVDTP_GET_TR_ID(hdr) ((hdr & 0xf0) >> AVDTP_TID_POSITION) argument
36 #define AVDTP_GET_MSG_TYPE(hdr) (hdr & 0x03) argument
37 #define AVDTP_GET_PKT_TYPE(hdr) ((hdr & 0x0c) >> AVDTP_PKT_POSITION) argument
62 struct bt_avdtp_single_sig_hdr *hdr; in avdtp_send() local
64 hdr = (struct bt_avdtp_single_sig_hdr *)buf->data; in avdtp_send()
74 req->sig = AVDTP_GET_SIG_ID(hdr->signal_id); in avdtp_send()
75 req->tid = AVDTP_GET_TR_ID(hdr->hdr); in avdtp_send()
90 struct bt_avdtp_single_sig_hdr *hdr; in avdtp_create_pdu() local
96 hdr = net_buf_add(buf, sizeof(*hdr)); in avdtp_create_pdu()
98 hdr->hdr = (msg_type | pkt_type << AVDTP_PKT_POSITION | in avdtp_create_pdu()
101 hdr->signal_id = sig_id & AVDTP_SIGID_MASK; in avdtp_create_pdu()
103 BT_DBG("hdr = 0x%02X, Signal_ID = 0x%02X", hdr->hdr, hdr->signal_id); in avdtp_create_pdu()
149 struct bt_avdtp_single_sig_hdr *hdr; in bt_avdtp_l2cap_recv() local
153 if (buf->len < sizeof(*hdr)) { in bt_avdtp_l2cap_recv()
158 hdr = net_buf_pull_mem(buf, sizeof(*hdr)); in bt_avdtp_l2cap_recv()
159 msgtype = AVDTP_GET_MSG_TYPE(hdr->hdr); in bt_avdtp_l2cap_recv()
160 sigid = AVDTP_GET_SIG_ID(hdr->signal_id); in bt_avdtp_l2cap_recv()
161 tid = AVDTP_GET_TR_ID(hdr->hdr); in bt_avdtp_l2cap_recv()