/system/bt/stack/avrc/ |
D | avrc_bld_ct.cc | 39 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd() argument 45 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd() 51 p_pkt->len = (p_data - p_start); in avrc_bld_next_cmd() 72 BT_HDR* p_pkt) { in avrc_bld_set_abs_volume_cmd() argument 77 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd() 82 p_pkt->len = (p_data - p_start); in avrc_bld_set_abs_volume_cmd() 96 static tAVRC_STS avrc_bld_register_notifn(BT_HDR* p_pkt, uint8_t event_id, in avrc_bld_register_notifn() argument 103 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_register_notifn() 109 p_pkt->len = (p_data - p_start); in avrc_bld_register_notifn() 124 static tAVRC_STS avrc_bld_get_capability_cmd(BT_HDR* p_pkt, uint8_t cap_id) { in avrc_bld_get_capability_cmd() argument [all …]
|
D | avrc_bld_tg.cc | 52 BT_HDR* p_pkt) { in avrc_bld_get_capability_rsp() argument 68 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_capability_rsp() 80 p_data = p_start + p_pkt->len; in avrc_bld_get_capability_rsp() 102 p_pkt->len = (p_data - p_start); in avrc_bld_get_capability_rsp() 120 tAVRC_LIST_APP_ATTR_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_list_app_settings_attr_rsp() argument 127 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_attr_rsp() 137 p_data = p_start + p_pkt->len; in avrc_bld_list_app_settings_attr_rsp() 149 p_pkt->len = (p_data - p_start); in avrc_bld_list_app_settings_attr_rsp() 166 tAVRC_LIST_APP_VALUES_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_list_app_settings_values_rsp() argument 173 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_values_rsp() [all …]
|
D | avrc_api.cc | 222 static uint8_t* avrc_get_data_ptr(BT_HDR* p_pkt) { in avrc_get_data_ptr() argument 223 return (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_get_data_ptr() 236 static BT_HDR* avrc_copy_packet(BT_HDR* p_pkt, int rsp_pkt_len) { in avrc_copy_packet() argument 237 const int offset = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_copy_packet() 238 const int pkt_len = MAX(rsp_pkt_len, p_pkt->len); in avrc_copy_packet() 242 memcpy(p_pkt_copy, p_pkt, BT_HDR_SIZE); in avrc_copy_packet() 244 uint8_t* p_data = avrc_get_data_ptr(p_pkt); in avrc_copy_packet() 246 memcpy(p_data_copy, p_data, p_pkt->len); in avrc_copy_packet() 306 BT_HDR *p_pkt_old, *p_pkt; in avrc_send_continue_frag() local 311 p_pkt = p_fcb->p_fmsg; in avrc_send_continue_frag() [all …]
|
/system/bt/stack/mcap/ |
D | mca_cact.cc | 119 BT_HDR* p_pkt = (BT_HDR*)osi_malloc(MCA_CTRL_MTU + sizeof(BT_HDR)); in mca_ccb_snd_req() local 121 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_req() 122 p = p_start = (uint8_t*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_req() 130 p_pkt->len = p - p_start; in mca_ccb_snd_req() 131 L2CA_DataWrite(p_ccb->lcid, p_pkt); in mca_ccb_snd_req() 156 BT_HDR* p_pkt = (BT_HDR*)osi_malloc(MCA_CTRL_MTU + sizeof(BT_HDR)); in mca_ccb_snd_rsp() local 161 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 162 p = p_start = (uint8_t*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 189 p_pkt->len = p - p_start; in mca_ccb_snd_rsp() 190 L2CA_DataWrite(p_ccb->lcid, p_pkt); in mca_ccb_snd_rsp() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_scb_act.cc | 234 uint16_t len = p_data->p_pkt->len; in avdt_scb_hdl_pkt_no_frag() 236 p = p_start = (uint8_t*)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_no_frag() 265 pad_len = *(p_start + p_data->p_pkt->len); in avdt_scb_hdl_pkt_no_frag() 269 if ((offset > p_data->p_pkt->len) || in avdt_scb_hdl_pkt_no_frag() 270 ((pad_len + offset) > p_data->p_pkt->len)) { in avdt_scb_hdl_pkt_no_frag() 272 osi_free_and_reset((void**)&p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag() 276 p_data->p_pkt->len -= (offset + pad_len); in avdt_scb_hdl_pkt_no_frag() 277 p_data->p_pkt->offset += offset; in avdt_scb_hdl_pkt_no_frag() 281 p_data->p_pkt->layer_specific = seq; in avdt_scb_hdl_pkt_no_frag() 283 avdt_scb_to_hdl(p_scb), p_data->p_pkt, time_stamp, in avdt_scb_hdl_pkt_no_frag() [all …]
|
D | avdt_api.cc | 880 uint16_t AVDT_WriteReqOpt(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp, in AVDT_WriteReqOpt() argument 894 evt.apiwrite.p_buf = p_pkt; in AVDT_WriteReqOpt() 940 uint16_t AVDT_WriteReq(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp, in AVDT_WriteReq() argument 942 return AVDT_WriteReqOpt(handle, p_pkt, time_stamp, m_pt, AVDT_DATA_OPT_NONE); in AVDT_WriteReq() 1126 BT_HDR* p_pkt = (BT_HDR*)osi_malloc(p_tbl->peer_mtu + sizeof(BT_HDR)); in AVDT_SendReport() local 1128 p_pkt->offset = L2CAP_MIN_OFFSET; in AVDT_SendReport() 1129 p = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in AVDT_SendReport() 1175 p_pkt->len = p_end - p; in AVDT_SendReport() 1178 avdt_ad_write_req(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb, p_pkt)) in AVDT_SendReport()
|
D | avdt_int.h | 409 BT_HDR* p_pkt; member 421 p_pkt(nullptr), in AvdtpScb() 470 p_pkt = nullptr; in Reset() 494 BT_HDR* p_pkt; // Packet waiting to be sent variable
|
/system/nfc/src/nfc/tags/ |
D | rw_t1t.cc | 45 static tRW_EVENT rw_t1t_handle_rid_rsp(NFC_HDR* p_pkt); 69 NFC_HDR* p_pkt; in rw_t1t_data_cback() local 75 p_pkt = (NFC_HDR*)(p_data->data.p_data); in rw_t1t_data_cback() 76 if (p_pkt == nullptr) return; in rw_t1t_data_cback() 78 p = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in rw_t1t_data_cback() 95 (p_t1t->prev_cmd_rsp_info.rsp_len == p_pkt->len) && in rw_t1t_data_cback() 106 GKI_freebuf(p_pkt); in rw_t1t_data_cback() 109 evt_data.data.p_data = p_pkt; in rw_t1t_data_cback() 117 rw_main_update_rx_stats(p_pkt->len); in rw_t1t_data_cback() 120 if ((p_pkt->len != p_cmd_rsp_info->rsp_len) || in rw_t1t_data_cback() [all …]
|
D | rw_t2t.cc | 67 NFC_HDR* p_pkt = p_data->p_data; in rw_t2t_proc_data() local 79 << StringPrintf("RW T2T Raw Frame: Len [0x%X] Status [%s]", p_pkt->len, in rw_t2t_proc_data() 82 evt_data.p_data = p_pkt; in rw_t2t_proc_data() 90 rw_main_update_rx_stats(p_pkt->len); in rw_t2t_proc_data() 99 if (((p_pkt->len != p_cmd_rsp_info->rsp_len) && in rw_t2t_proc_data() 100 (p_pkt->len != p_cmd_rsp_info->nack_rsp_len) && in rw_t2t_proc_data() 110 GKI_freebuf(p_pkt); in rw_t2t_proc_data() 116 p = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in rw_t2t_proc_data() 120 p_t2t->state, conn_id, p_pkt->len, *p); in rw_t2t_proc_data() 139 } else if ((p_pkt->len != p_cmd_rsp_info->rsp_len) || in rw_t2t_proc_data() [all …]
|
D | rw_t3t.cc | 1453 NFC_HDR* p_pkt = p_data->p_data; in rw_t3t_act_handle_raw_senddata_rsp() local 1456 << StringPrintf("RW T3T Raw Frame: Len [0x%X] Status [%s]", p_pkt->len, in rw_t3t_act_handle_raw_senddata_rsp() 1461 evt_data.p_data = p_pkt; in rw_t3t_act_handle_raw_senddata_rsp()
|
/system/bt/bta/av/ |
D | bta_av_api.cc | 580 BT_HDR* p_pkt) { in BTA_AvMetaRsp() argument 587 p_buf->p_pkt = p_pkt; in BTA_AvMetaRsp() 612 BT_HDR* p_pkt) { in BTA_AvMetaCmd() argument 618 p_buf->p_pkt = p_pkt; in BTA_AvMetaCmd()
|
D | bta_av_act.cc | 676 p_data->api_meta_rsp.rsp_code, p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp() 682 if (do_free) osi_free_and_reset((void**)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp() 695 osi_free_and_reset((void**)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_free_rsp() 851 BT_HDR* p_pkt = NULL; in bta_av_rc_msg() local 995 if (!p_pkt) { in bta_av_rc_msg() 997 AVRC_BldResponse(0, &rc_rsp, &p_pkt); in bta_av_rc_msg() 999 if (p_pkt) in bta_av_rc_msg() 1000 AVRC_MsgReq(p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt); in bta_av_rc_msg()
|
D | bta_av_aact.cc | 503 void bta_av_sink_data_cback(uint8_t handle, BT_HDR* p_pkt, uint32_t time_stamp, in bta_av_sink_data_cback() argument 510 __func__, handle, p_pkt->len, p_pkt->offset, in bta_av_sink_data_cback() 511 *((uint8_t*)(p_pkt + 1) + p_pkt->offset), p_pkt->layer_specific); in bta_av_sink_data_cback() 522 osi_free(p_pkt); in bta_av_sink_data_cback() 525 p_pkt->event = BTA_AV_SINK_MEDIA_DATA_EVT; in bta_av_sink_data_cback() 527 (tBTA_AV_MEDIA*)p_pkt); in bta_av_sink_data_cback() 529 osi_free(p_pkt); in bta_av_sink_data_cback()
|
D | bta_av_int.h | 302 BT_HDR* p_pkt; member 659 extern void bta_av_sink_data_cback(uint8_t handle, BT_HDR* p_pkt,
|
/system/nfc/src/nfa/hci/ |
D | nfa_hci_main.cc | 698 NFC_HDR* p_pkt = (NFC_HDR*)p_data->data.p_data; in nfa_hci_conn_cback() local 729 if ((event != NFC_DATA_CEVT) || (p_pkt == nullptr)) return; in nfa_hci_conn_cback() 741 p = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in nfa_hci_conn_cback() 742 pkt_len = p_pkt->len; in nfa_hci_conn_cback() 794 (uint8_t)chaining_bit, (uint8_t)nfa_hci_cb.assembling, p_pkt->len); in nfa_hci_conn_cback() 799 GKI_freebuf(p_pkt); in nfa_hci_conn_cback() 842 p_pkt->event = NFA_HCI_CHECK_QUEUE_EVT; in nfa_hci_conn_cback() 843 p_pkt->len = 0; in nfa_hci_conn_cback() 844 nfa_sys_sendmsg(p_pkt); in nfa_hci_conn_cback()
|
/system/bt/btif/src/ |
D | btif_a2dp_sink.cc | 608 uint8_t btif_a2dp_sink_enqueue_buf(BT_HDR* p_pkt) { in btif_a2dp_sink_enqueue_buf() argument 623 reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(*p_msg) + p_pkt->len)); in btif_a2dp_sink_enqueue_buf() 624 memcpy(p_msg, p_pkt, sizeof(*p_msg)); in btif_a2dp_sink_enqueue_buf() 626 memcpy(p_msg->data, p_pkt->data + p_pkt->offset, p_pkt->len); in btif_a2dp_sink_enqueue_buf()
|
/system/bt/stack/include/ |
D | avdt_api.h | 441 typedef void(tAVDT_SINK_DATA_CBACK)(uint8_t handle, BT_HDR* p_pkt, 845 extern uint16_t AVDT_WriteReq(uint8_t handle, BT_HDR* p_pkt, 883 extern uint16_t AVDT_WriteReqOpt(uint8_t handle, BT_HDR* p_pkt,
|
D | avct_api.h | 110 BT_HDR* p_pkt);
|
D | avrc_api.h | 404 BT_HDR* p_pkt);
|
/system/bt/profile/avrcp/ |
D | avrcp_internal.h | 56 BT_HDR* p_pkt) = 0;
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_act.cc | 1590 NFC_HDR* p_pkt; in nfa_ee_api_send_data() local 1597 p_pkt = (NFC_HDR*)GKI_getbuf(size); in nfa_ee_api_send_data() 1598 if (p_pkt) { in nfa_ee_api_send_data() 1599 p_pkt->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in nfa_ee_api_send_data() 1600 p_pkt->len = p_data->send_data.data_len; in nfa_ee_api_send_data() 1601 p = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in nfa_ee_api_send_data() 1602 memcpy(p, p_data->send_data.p_data, p_pkt->len); in nfa_ee_api_send_data() 1603 NFC_SendData(p_cb->conn_id, p_pkt); in nfa_ee_api_send_data() 2270 NFC_HDR* p_pkt = nullptr; in nfa_ee_nci_conn() local 2279 if (p_cbk->event == NFC_DATA_CEVT) p_pkt = p_conn->data.p_data; in nfa_ee_nci_conn() [all …]
|
/system/bt/bta/include/ |
D | bta_av_api.h | 654 BT_HDR* p_pkt); 674 BT_HDR* p_pkt);
|
/system/bt/btif/avrcp/ |
D | avrcp_service.cc | 102 BT_HDR* p_pkt) override { in MsgReq() argument 103 return AVRC_MsgReq(handle, label, ctype, p_pkt); in MsgReq()
|
/system/nfc/src/nfa/include/ |
D | nfa_hci_int.h | 519 uint8_t* p_pkt);
|