Home
last modified time | relevance | path

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

/system/bt/stack/avrc/
Davrc_bld_ct.c41 static tAVRC_STS avrc_bld_next_cmd (tAVRC_NEXT_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_next_cmd() argument
48 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd()
54 p_pkt->len = (p_data - p_start); in avrc_bld_next_cmd()
74 static tAVRC_STS avrc_bld_set_abs_volume_cmd (tAVRC_SET_VOLUME_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_set_abs_volume_cmd() argument
80 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd()
85 p_pkt->len = (p_data - p_start); in avrc_bld_set_abs_volume_cmd()
99 static tAVRC_STS avrc_bld_register_notifn(BT_HDR * p_pkt, UINT8 event_id, UINT32 event_param) in avrc_bld_register_notifn() argument
106 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_register_notifn()
112 p_pkt->len = (p_data - p_start); in avrc_bld_register_notifn()
127 static tAVRC_STS avrc_bld_get_capability_cmd(BT_HDR * p_pkt, UINT8 cap_id) in avrc_bld_get_capability_cmd() argument
[all …]
Davrc_bld_tg.c41 static tAVRC_STS avrc_bld_get_capability_rsp (tAVRC_GET_CAPS_RSP *p_rsp, BT_HDR *p_pkt) in avrc_bld_get_capability_rsp() argument
59 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_capability_rsp()
74 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()
119 static tAVRC_STS avrc_bld_list_app_settings_attr_rsp (tAVRC_LIST_APP_ATTR_RSP *p_rsp, BT_HDR *p_pkt) in avrc_bld_list_app_settings_attr_rsp() argument
127 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_attr_rsp()
140 p_data = p_start + p_pkt->len; in avrc_bld_list_app_settings_attr_rsp()
154 p_pkt->len = (p_data - p_start); in avrc_bld_list_app_settings_attr_rsp()
171 BT_HDR *p_pkt) in avrc_bld_list_app_settings_values_rsp() argument
179 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_values_rsp()
[all …]
Davrc_api.c102 static UINT8 * avrc_get_data_ptr(BT_HDR *p_pkt) in avrc_get_data_ptr() argument
104 return (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_get_data_ptr()
117 static BT_HDR * avrc_copy_packet(BT_HDR *p_pkt, int rsp_pkt_len) in avrc_copy_packet() argument
119 const int offset = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_copy_packet()
120 const int pkt_len = MAX(rsp_pkt_len, p_pkt->len); in avrc_copy_packet()
124 memcpy(p_pkt_copy, p_pkt, BT_HDR_SIZE); in avrc_copy_packet()
126 UINT8 *p_data = avrc_get_data_ptr(p_pkt); in avrc_copy_packet()
128 memcpy(p_data_copy, p_data, p_pkt->len); in avrc_copy_packet()
186 BT_HDR *p_pkt_old, *p_pkt; in avrc_send_continue_frag() local
191 p_pkt = p_fcb->p_fmsg; in avrc_send_continue_frag()
[all …]
/system/bt/stack/mcap/
Dmca_cact.c125 BT_HDR *p_pkt = (BT_HDR *)osi_malloc(MCA_CTRL_MTU); in mca_ccb_snd_req() local
127 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_req()
128 p = p_start = (UINT8*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_req()
136 p_pkt->len = p - p_start; in mca_ccb_snd_req()
137 L2CA_DataWrite (p_ccb->lcid, p_pkt); in mca_ccb_snd_req()
167 BT_HDR *p_pkt = (BT_HDR *)osi_malloc(MCA_CTRL_MTU); in mca_ccb_snd_rsp() local
172 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp()
173 p = p_start = (UINT8*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp()
199 p_pkt->len = p - p_start; in mca_ccb_snd_rsp()
200 L2CA_DataWrite(p_ccb->lcid, p_pkt); in mca_ccb_snd_rsp()
[all …]
Dmca_dact.c146 status = L2CA_DataWrite (p_dcb->lcid, p_data->p_pkt); in mca_dcb_snd_data()
Dmca_api.c864 tMCA_RESULT MCA_WriteReq(tMCA_DL mdl, BT_HDR *p_pkt) in MCA_WriteReq() argument
879 evt_data.p_pkt = p_pkt; in MCA_WriteReq()
Dmca_int.h111 BT_HDR *p_pkt; member
/system/bt/stack/avdt/
Davdt_scb_act.c260 p = p_start = (UINT8 *)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_no_frag()
289 pad_len = *(p_start + p_data->p_pkt->len); in avdt_scb_hdl_pkt_no_frag()
293 if ((offset > p_data->p_pkt->len) || ((pad_len + offset) > p_data->p_pkt->len)) in avdt_scb_hdl_pkt_no_frag()
296 osi_free_and_reset((void **)&p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
301 p_data->p_pkt->len -= (offset + pad_len); in avdt_scb_hdl_pkt_no_frag()
302 p_data->p_pkt->offset += offset; in avdt_scb_hdl_pkt_no_frag()
307 p_data->p_pkt->layer_specific = seq; in avdt_scb_hdl_pkt_no_frag()
308 (*p_scb->cs.p_data_cback)(avdt_scb_to_hdl(p_scb), p_data->p_pkt, in avdt_scb_hdl_pkt_no_frag()
316 && (p_scb->media_buf_len > p_data->p_pkt->len)) in avdt_scb_hdl_pkt_no_frag()
319 memcpy(p_scb->p_media_buf,(UINT8*)(p_data->p_pkt + 1) + p_data->p_pkt->offset, in avdt_scb_hdl_pkt_no_frag()
[all …]
Davdt_api.c929 UINT16 AVDT_WriteReqOpt(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt, tAVDT_DATA_OPT_… in AVDT_WriteReqOpt() argument
942 evt.apiwrite.p_buf = p_pkt; in AVDT_WriteReqOpt()
985 UINT16 AVDT_WriteReq(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt) in AVDT_WriteReq() argument
987 return AVDT_WriteReqOpt(handle, p_pkt, time_stamp, m_pt, AVDT_DATA_OPT_NONE); in AVDT_WriteReq()
1211 BT_HDR *p_pkt = (BT_HDR *)osi_malloc(p_tbl->peer_mtu); in AVDT_SendReport() local
1213 p_pkt->offset = L2CAP_MIN_OFFSET; in AVDT_SendReport()
1214 p = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in AVDT_SendReport()
1285 p_pkt->len = p_end - p; in AVDT_SendReport()
1287 if(L2CAP_DW_FAILED != avdt_ad_write_req(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb, p_pkt)) in AVDT_SendReport()
Davdt_int.h483 BT_HDR *p_pkt; member
492 BT_HDR *p_pkt; /* packet waiting to be sent */ member
/system/bt/stack/include/
Da2d_sbc.h104 extern void A2D_SbcChkFrInit(UINT8 *p_pkt);
114 extern void A2D_SbcDescramble(UINT8 *p_pkt, UINT16 len);
Davdt_api.h360 typedef void (tAVDT_DATA_CBACK)(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
802 extern UINT16 AVDT_WriteReq(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
840 extern UINT16 AVDT_WriteReqOpt(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
Dmca_api.h90 typedef void (tMCA_DATA_CBACK)(tMCA_DL mdl, BT_HDR *p_pkt);
482 extern tMCA_RESULT MCA_WriteReq(tMCA_DL mdl, BT_HDR *p_pkt);
Davct_api.h109 BT_HDR *p_pkt);
Davrc_api.h370 extern UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype, BT_HDR *p_pkt);
/system/bt/bta/av/
Dbta_av_api.c596 BT_HDR *p_pkt) in BTA_AvMetaRsp() argument
604 p_buf->p_pkt = p_pkt; in BTA_AvMetaRsp()
625 void BTA_AvMetaCmd(UINT8 rc_handle, UINT8 label, tBTA_AV_CMD cmd_code, BT_HDR *p_pkt) in BTA_AvMetaCmd() argument
632 p_buf->p_pkt = p_pkt; in BTA_AvMetaCmd()
Dbta_av_act.c678 p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
685 osi_free_and_reset((void **)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
700 osi_free_and_reset((void **)&p_data->api_meta_rsp.p_pkt); in bta_av_rc_free_rsp()
869 BT_HDR *p_pkt = NULL; in bta_av_rc_msg() local
1023 if (!p_pkt) in bta_av_rc_msg()
1026 AVRC_BldResponse (0, &rc_rsp, &p_pkt); in bta_av_rc_msg()
1028 if (p_pkt) in bta_av_rc_msg()
1029 AVRC_MsgReq (p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt); in bta_av_rc_msg()
Dbta_av_aact.c211 void bta_av_stream_data_cback(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt);
578 void bta_av_stream_data_cback(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt) in bta_av_stream_data_cback() argument
582 …_av_stream_data_cback avdt_handle: %d pkt_len=0x%x ofst = 0x%x", handle,p_pkt->len,p_pkt->offset); in bta_av_stream_data_cback()
583 APPL_TRACE_DEBUG(" Number of frames 0x%x",*((UINT8*)(p_pkt + 1) + p_pkt->offset)); in bta_av_stream_data_cback()
584 APPL_TRACE_DEBUG("Sequence Number 0x%x",p_pkt->layer_specific); in bta_av_stream_data_cback()
594 osi_free(p_pkt); in bta_av_stream_data_cback()
597 p_pkt->event = BTA_AV_MEDIA_DATA_EVT; in bta_av_stream_data_cback()
598 p_scb->seps[p_scb->sep_idx].p_app_data_cback(BTA_AV_MEDIA_DATA_EVT, (tBTA_AV_MEDIA*)p_pkt); in bta_av_stream_data_cback()
599 osi_free(p_pkt); /* a copy of packet had been delivered, we free this buffer */ in bta_av_stream_data_cback()
Dbta_av_int.h305 BT_HDR *p_pkt; member
633 extern void bta_av_stream_data_cback(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt);
/system/bt/bta/hl/
Dbta_hl_int.h373 BT_HDR *p_pkt; member
594 #define BTA_HL_GET_BUF_PTR(p_pkt) ((UINT8 *)((UINT8 *) (p_pkt+1) + p_pkt->offset)) argument
701 extern void bta_hl_mcap_data_cback(tMCA_DL mdl, BT_HDR *p_pkt);
Dbta_hl_act.c249 … if (MCA_WriteReq((tMCA_DL) p_dcb->mdl_handle, p_data->mca_rcv_data_evt.p_pkt) != MCA_SUCCESS) in bta_hl_dch_mca_rcv_data()
251 osi_free_and_reset((void **)&p_data->mca_rcv_data_evt.p_pkt); in bta_hl_dch_mca_rcv_data()
257 p_dcb->p_echo_rx_pkt = p_data->mca_rcv_data_evt.p_pkt; in bta_hl_dch_mca_rcv_data()
276 p_dcb->p_rx_pkt = p_data->mca_rcv_data_evt.p_pkt; in bta_hl_dch_mca_rcv_data()
2616 void bta_hl_mcap_data_cback (tMCA_DL mdl, BT_HDR *p_pkt) in bta_hl_mcap_data_cback() argument
2627 p_msg->p_pkt = p_pkt; in bta_hl_mcap_data_cback()
Dbta_hl_utils.c2459 osi_free_and_reset((void **)&p_data->mca_rcv_data_evt.p_pkt); in bta_hl_discard_data()
/system/bt/bta/include/
Dbta_av_api.h794 BT_HDR *p_pkt);
810 void BTA_AvMetaCmd(UINT8 rc_handle, UINT8 label, tBTA_AV_CMD cmd_code, BT_HDR *p_pkt);
/system/bt/btif/src/
Dbtif_media_task.c2844 UINT8 btif_media_sink_enque_buf(BT_HDR *p_pkt) in btif_media_sink_enque_buf() argument
2858 (tBT_SBC_HDR *)osi_malloc(sizeof(tBT_SBC_HDR) + p_pkt->offset + in btif_media_sink_enque_buf()
2859 p_pkt->len); in btif_media_sink_enque_buf()
2860 memcpy((UINT8 *)(p_msg + 1), (UINT8 *)(p_pkt + 1) + p_pkt->offset, in btif_media_sink_enque_buf()
2861 p_pkt->len); in btif_media_sink_enque_buf()
2862 p_msg->num_frames_to_be_processed = (*((UINT8 *)(p_pkt + 1) + p_pkt->offset))& 0x0f; in btif_media_sink_enque_buf()
2863 p_msg->len = p_pkt->len; in btif_media_sink_enque_buf()
2865 p_msg->layer_specific = p_pkt->layer_specific; in btif_media_sink_enque_buf()