Lines Matching refs:avrcp_hdr
254 struct bt_avrcp_header *avrcp_hdr; in avrcp_unit_info_handler() local
261 net_buf_pull(buf, sizeof(*avrcp_hdr)); in avrcp_unit_info_handler()
277 struct bt_avrcp_header *avrcp_hdr; in avrcp_subunit_info_handler() local
285 net_buf_pull(buf, sizeof(*avrcp_hdr)); in avrcp_subunit_info_handler()
323 struct bt_avrcp_header *avrcp_hdr; in avrcp_recv() local
332 if (buf->len < sizeof(*avrcp_hdr)) { in avrcp_recv()
337 avrcp_hdr = (void *)buf->data; in avrcp_recv()
340 ctype = BT_AVRCP_HDR_GET_CTYPE(avrcp_hdr); in avrcp_recv()
341 subunit_id = BT_AVRCP_HDR_GET_SUBUNIT_ID(avrcp_hdr); in avrcp_recv()
342 subunit_type = BT_AVRCP_HDR_GET_SUBUNIT_TYPE(avrcp_hdr); in avrcp_recv()
349 avrcp_hdr->opcode); in avrcp_recv()
351 if (avrcp_hdr->opcode == BT_AVRCP_OPC_VENDOR_DEPENDENT && in avrcp_recv()
354 } else if (avrcp_hdr->opcode == BT_AVRCP_OPC_PASS_THROUGH) { in avrcp_recv()
357 avrcp_hdr->opcode != avrcp->req.opcode) { in avrcp_recv()
367 if (avrcp_hdr->opcode == handler[i].opcode) { in avrcp_recv()
520 struct bt_avrcp_header *avrcp_hdr = in avrcp_send() local
524 bt_avrcp_ctype_t ctype = BT_AVRCP_HDR_GET_CTYPE(avrcp_hdr); in avrcp_send()
525 bt_avrcp_subunit_type_t subunit_type = BT_AVRCP_HDR_GET_SUBUNIT_TYPE(avrcp_hdr); in avrcp_send()
528 avrcp_hdr->opcode); in avrcp_send()
534 if (cr == BT_AVCTP_CMD && avrcp_hdr->opcode != BT_AVRCP_OPC_PASS_THROUGH) { in avrcp_send()
537 avrcp->req.opcode = avrcp_hdr->opcode; in avrcp_send()