Home
last modified time | relevance | path

Searched refs:p_pkt (Results 1 – 21 of 21) sorted by relevance

/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_ct.cc49 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd() argument
55 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd()
61 p_pkt->len = (p_data - p_start); in avrc_bld_next_cmd()
81 BT_HDR* p_pkt) { in avrc_bld_set_abs_volume_cmd() argument
86 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd()
91 p_pkt->len = (p_data - p_start); in avrc_bld_set_abs_volume_cmd()
105 static tAVRC_STS avrc_bld_register_notifn(BT_HDR* p_pkt, uint8_t event_id, in avrc_bld_register_notifn() argument
112 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_register_notifn()
118 p_pkt->len = (p_data - p_start); in avrc_bld_register_notifn()
132 static tAVRC_STS avrc_bld_get_capability_cmd(BT_HDR* p_pkt, uint8_t cap_id) { in avrc_bld_get_capability_cmd() argument
[all …]
Davrc_bld_tg.cc60 BT_HDR* p_pkt) { in avrc_bld_get_capability_rsp() argument
76 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_capability_rsp()
88 p_data = p_start + p_pkt->len; in avrc_bld_get_capability_rsp()
110 p_pkt->len = (p_data - p_start); in avrc_bld_get_capability_rsp()
128 tAVRC_LIST_APP_ATTR_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_list_app_settings_attr_rsp() argument
135 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_attr_rsp()
145 p_data = p_start + p_pkt->len; in avrc_bld_list_app_settings_attr_rsp()
157 p_pkt->len = (p_data - p_start); in avrc_bld_list_app_settings_attr_rsp()
174 tAVRC_LIST_APP_VALUES_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_list_app_settings_values_rsp() argument
181 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_values_rsp()
[all …]
Davrc_api.cc246 static uint8_t* avrc_get_data_ptr(BT_HDR* p_pkt) { in avrc_get_data_ptr() argument
247 return (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_get_data_ptr()
260 static BT_HDR* avrc_copy_packet(BT_HDR* p_pkt, int rsp_pkt_len) { in avrc_copy_packet() argument
261 const int offset = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_copy_packet()
262 const int pkt_len = MAX(rsp_pkt_len, p_pkt->len); in avrc_copy_packet()
266 memcpy(p_pkt_copy, p_pkt, BT_HDR_SIZE); in avrc_copy_packet()
268 uint8_t* p_data = avrc_get_data_ptr(p_pkt); in avrc_copy_packet()
270 memcpy(p_data_copy, p_data, p_pkt->len); in avrc_copy_packet()
330 BT_HDR *p_pkt_old, *p_pkt; in avrc_send_continue_frag() local
335 p_pkt = p_fcb->p_fmsg; in avrc_send_continue_frag()
[all …]
/packages/modules/Bluetooth/system/stack/test/
Dstack_avdtp_test.cc200 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
201 *data.p_pkt = {.len = packet_length, .layer_specific = AVDT_CHAN_REPORT}; in TEST_F()
202 memcpy(data.p_pkt->data, sender_report_packet, packet_length); in TEST_F()
207 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
208 *data.p_pkt = {.layer_specific = AVDT_CHAN_REPORT}; in TEST_F()
209 memcpy(data.p_pkt->data, sender_report_packet, packet_length); in TEST_F()
214 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
215 *data.p_pkt = {.len = 8, .layer_specific = AVDT_CHAN_REPORT}; in TEST_F()
216 memcpy(data.p_pkt->data, sender_report_packet, packet_length); in TEST_F()
221 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/stack/fuzzers/
Davrc_fuzzer.cc144 BT_HDR* p_pkt = (BT_HDR*)nullptr; in msg_cb() local
145 status = AVRC_BldCommand(&cmd, &p_pkt); in msg_cb()
146 if (status == AVRC_STS_NO_ERROR && p_pkt) { in msg_cb()
147 osi_free(p_pkt); in msg_cb()
155 BT_HDR* p_pkt = (BT_HDR*)nullptr; in msg_cb() local
156 status = AVRC_BldResponse(handle, &rsp, &p_pkt); in msg_cb()
157 if (status == AVRC_STS_NO_ERROR && p_pkt) { in msg_cb()
158 osi_free(p_pkt); in msg_cb()
166 BT_HDR* p_pkt = (BT_HDR*)nullptr; in msg_cb() local
167 status = AVRC_BldResponse(handle, &rsp, &p_pkt); in msg_cb()
[all …]
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_scb_act.cc239 uint16_t len = p_data->p_pkt->len; in avdt_scb_hdl_pkt_no_frag()
241 p = p_start = (uint8_t*)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_no_frag()
267 osi_free_and_reset((void**)&p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
281 osi_free_and_reset((void**)&p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
285 p_data->p_pkt->len -= (offset + pad_len); in avdt_scb_hdl_pkt_no_frag()
286 p_data->p_pkt->offset += offset; in avdt_scb_hdl_pkt_no_frag()
290 p_data->p_pkt->layer_specific = seq; in avdt_scb_hdl_pkt_no_frag()
292 avdt_scb_to_hdl(p_scb), p_data->p_pkt, time_stamp, in avdt_scb_hdl_pkt_no_frag()
295 osi_free_and_reset((void**)&p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
301 osi_free_and_reset((void**)&p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
[all …]
Davdt_int.h404 BT_HDR* p_pkt; member
416 p_pkt(nullptr), in AvdtpScb()
465 p_pkt = nullptr; in Reset()
489 BT_HDR* p_pkt; // Packet waiting to be sent variable
Davdt_api.cc858 uint16_t AVDT_WriteReqOpt(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp, in AVDT_WriteReqOpt() argument
872 evt.apiwrite.p_buf = p_pkt; in AVDT_WriteReqOpt()
/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_av_api.h116 BT_HDR* p_pkt)>
120 BT_HDR* p_pkt) { in operator()
121 body(rc_handle, label, cmd_code, p_pkt); in operator()
131 BT_HDR* p_pkt)>
135 BT_HDR* p_pkt) { in operator()
136 body(rc_handle, label, rsp_code, p_pkt); in operator()
Dmock_bta_av_api.cc100 BT_HDR* p_pkt) { in BTA_AvMetaCmd() argument
102 test::mock::bta_av_api::BTA_AvMetaCmd(rc_handle, label, cmd_code, p_pkt); in BTA_AvMetaCmd()
105 BT_HDR* p_pkt) { in BTA_AvMetaRsp() argument
107 test::mock::bta_av_api::BTA_AvMetaRsp(rc_handle, label, rsp_code, p_pkt); in BTA_AvMetaRsp()
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_api.cc571 BT_HDR* p_pkt) { in BTA_AvMetaRsp() argument
578 p_buf->p_pkt = p_pkt; in BTA_AvMetaRsp()
603 BT_HDR* p_pkt) { in BTA_AvMetaCmd() argument
609 p_buf->p_pkt = p_pkt; in BTA_AvMetaCmd()
Dbta_av_aact.cc458 void bta_av_sink_data_cback(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp, in bta_av_sink_data_cback() argument
465 handle, p_pkt->len, p_pkt->offset, in bta_av_sink_data_cback()
466 *((uint8_t*)(p_pkt + 1) + p_pkt->offset), p_pkt->layer_specific); in bta_av_sink_data_cback()
477 osi_free(p_pkt); in bta_av_sink_data_cback()
480 p_pkt->event = BTA_AV_SINK_MEDIA_DATA_EVT; in bta_av_sink_data_cback()
482 p_scb->PeerAddress(), BTA_AV_SINK_MEDIA_DATA_EVT, (tBTA_AV_MEDIA*)p_pkt); in bta_av_sink_data_cback()
484 osi_free(p_pkt); in bta_av_sink_data_cback()
Dbta_av_act.cc756 p_data->api_meta_rsp.rsp_code, p_data->api_meta_rsp.p_pkt, in bta_av_rc_meta_rsp()
763 if (do_free) osi_free_and_reset((void**)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
776 osi_free_and_reset((void**)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_free_rsp()
979 BT_HDR* p_pkt = NULL; in bta_av_rc_msg() local
1125 if (!p_pkt) { in bta_av_rc_msg()
1127 AVRC_BldResponse(0, &rc_rsp, &p_pkt); in bta_av_rc_msg()
1129 if (p_pkt) in bta_av_rc_msg()
1130 AVRC_MsgReq(p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt, in bta_av_rc_msg()
Dbta_av_int.h343 BT_HDR* p_pkt; member
725 void bta_av_sink_data_cback(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp,
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp_sink.cc668 uint8_t btif_a2dp_sink_enqueue_buf(BT_HDR* p_pkt) { in btif_a2dp_sink_enqueue_buf() argument
676 reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(*p_msg) + p_pkt->len)); in btif_a2dp_sink_enqueue_buf()
677 memcpy(p_msg, p_pkt, sizeof(*p_msg)); in btif_a2dp_sink_enqueue_buf()
679 memcpy(p_msg->data, p_pkt->data + p_pkt->offset, p_pkt->len); in btif_a2dp_sink_enqueue_buf()
/packages/modules/Bluetooth/system/stack/include/
Davdt_api.h476 typedef void(tAVDT_SINK_DATA_CBACK)(uint8_t handle, BT_HDR* p_pkt,
862 uint16_t AVDT_WriteReqOpt(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp,
Davct_api.h113 BT_HDR* p_pkt);
Davrc_api.h505 BT_HDR* p_pkt, bool is_new_avrcp);
/packages/modules/Bluetooth/system/bta/include/
Dbta_av_api.h663 BT_HDR* p_pkt);
683 BT_HDR* p_pkt);
/packages/modules/Bluetooth/system/profile/avrcp/
Davrcp_internal.h66 BT_HDR* p_pkt) = 0;
/packages/modules/Bluetooth/system/btif/avrcp/
Davrcp_service.cc130 BT_HDR* p_pkt) override { in MsgReq() argument
131 return AVRC_MsgReq(handle, label, ctype, p_pkt, true); in MsgReq()