Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/avrc/
Davrc_bld_tg.c43 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
60 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_capability_rsp()
72 p_data = p_start + p_pkt->len; in avrc_bld_get_capability_rsp()
94 p_pkt->len = (p_data - p_start); in avrc_bld_get_capability_rsp()
111 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
119 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_attr_rsp()
129 p_data = p_start + p_pkt->len; in avrc_bld_list_app_settings_attr_rsp()
141 p_pkt->len = (p_data - p_start); in avrc_bld_list_app_settings_attr_rsp()
158 BT_HDR *p_pkt) in avrc_bld_list_app_settings_values_rsp() argument
166 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_app_settings_values_rsp()
[all …]
Davrc_bld_ct.c43 static tAVRC_STS avrc_bld_next_cmd (tAVRC_NEXT_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_next_cmd() argument
50 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd()
56 p_pkt->len = (p_data - p_start); in avrc_bld_next_cmd()
76 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
82 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd()
87 p_pkt->len = (p_data - p_start); in avrc_bld_set_abs_volume_cmd()
101 …tic tAVRC_STS avrc_bld_register_change_notfn(UINT8 event_id, UINT32 event_parameter, BT_HDR *p_pkt) in avrc_bld_register_change_notfn() argument
108 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_register_change_notfn()
114 p_pkt->len = (p_data - p_start); in avrc_bld_register_change_notfn()
146 BT_HDR *p_pkt = (BT_HDR *)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_bld_init_cmd_buffer() local
[all …]
Davrc_api.c103 static UINT8 *avrc_get_data_ptr(BT_HDR *p_pkt) in avrc_get_data_ptr() argument
105 return (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_get_data_ptr()
118 static BT_HDR *avrc_copy_packet(BT_HDR *p_pkt, int rsp_pkt_len) in avrc_copy_packet() argument
120 const int offset = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_copy_packet()
121 const int pkt_len = MAX(rsp_pkt_len, p_pkt->len); in avrc_copy_packet()
127 memcpy(p_pkt_copy, p_pkt, BT_HDR_SIZE); in avrc_copy_packet()
129 UINT8 *p_data = avrc_get_data_ptr(p_pkt); in avrc_copy_packet()
131 memcpy(p_data_copy, p_data, p_pkt->len); in avrc_copy_packet()
190 BT_HDR *p_pkt_old, *p_pkt; in avrc_send_continue_frag() local
196 p_pkt = p_fcb->p_fmsg; in avrc_send_continue_frag()
[all …]
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/avdt/
Davdt_scb_act.c256 p = p_start = (UINT8 *)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_no_frag()
283 pad_len = *(p_start + p_data->p_pkt->len); in avdt_scb_hdl_pkt_no_frag()
287 if ((offset > p_data->p_pkt->len) || ((pad_len + offset) > p_data->p_pkt->len)) { in avdt_scb_hdl_pkt_no_frag()
289 osi_free(p_data->p_pkt); in avdt_scb_hdl_pkt_no_frag()
290 p_data->p_pkt = NULL; in avdt_scb_hdl_pkt_no_frag()
294 p_data->p_pkt->len -= (offset + pad_len); in avdt_scb_hdl_pkt_no_frag()
295 p_data->p_pkt->offset += offset; in avdt_scb_hdl_pkt_no_frag()
299 p_data->p_pkt->layer_specific = seq; in avdt_scb_hdl_pkt_no_frag()
300 (*p_scb->cs.p_data_cback)(avdt_scb_to_hdl(p_scb), p_data->p_pkt, in avdt_scb_hdl_pkt_no_frag()
306 && (p_scb->media_buf_len > p_data->p_pkt->len)) { in avdt_scb_hdl_pkt_no_frag()
[all …]
Davdt_api.c884 UINT16 AVDT_WriteReqOpt(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt, tAVDT_DATA_OPT_… in AVDT_WriteReqOpt() argument
894 evt.apiwrite.p_buf = p_pkt; in AVDT_WriteReqOpt()
937 UINT16 AVDT_WriteReq(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt) in AVDT_WriteReq() argument
939 return AVDT_WriteReqOpt(handle, p_pkt, time_stamp, m_pt, AVDT_DATA_OPT_NONE); in AVDT_WriteReq()
1130 BT_HDR *p_pkt; in AVDT_SendReport() local
1150 (p_pkt = (BT_HDR *)osi_malloc(p_tbl->peer_mtu)) != NULL) { in AVDT_SendReport()
1151 p_pkt->offset = L2CAP_MIN_OFFSET; in AVDT_SendReport()
1152 p = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in AVDT_SendReport()
1222 p_pkt->len = p_end - p; in AVDT_SendReport()
1224 … if (L2CAP_DW_FAILED != avdt_ad_write_req(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb, p_pkt)) { in AVDT_SendReport()
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/av/
Dbta_av_api.c529 BT_HDR *p_pkt) in BTA_AvMetaRsp() argument
537 p_buf->p_pkt = p_pkt; in BTA_AvMetaRsp()
542 } else if (p_pkt) { in BTA_AvMetaRsp()
543 osi_free(p_pkt); in BTA_AvMetaRsp()
561 void BTA_AvMetaCmd(UINT8 rc_handle, UINT8 label, tBTA_AV_CMD cmd_code, BT_HDR *p_pkt) in BTA_AvMetaCmd() argument
568 p_buf->p_pkt = p_pkt; in BTA_AvMetaCmd()
Dbta_av_aact.c186 void bta_av_stream_data_cback(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt);
560 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
564 …v_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()
565 APPL_TRACE_DEBUG(" Number of frames 0x%x", *((UINT8 *)(p_pkt + 1) + p_pkt->offset)); in bta_av_stream_data_cback()
566 APPL_TRACE_DEBUG("Sequence Number 0x%x", p_pkt->layer_specific); in bta_av_stream_data_cback()
575 osi_free(p_pkt); in bta_av_stream_data_cback()
578 p_pkt->event = BTA_AV_MEDIA_DATA_EVT; in bta_av_stream_data_cback()
579 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()
580 osi_free(p_pkt); /* a copy of packet had been delivered, we free this buffer */ in bta_av_stream_data_cback()
Dbta_av_act.c626 p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
633 osi_free (p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
650 osi_free (p_data->api_meta_rsp.p_pkt); in bta_av_rc_free_rsp()
813 BT_HDR *p_pkt = NULL; in bta_av_rc_msg() local
933 if (!p_pkt) { in bta_av_rc_msg()
935 AVRC_BldResponse (0, &rc_rsp, &p_pkt); in bta_av_rc_msg()
937 if (p_pkt) { in bta_av_rc_msg()
938 AVRC_MsgReq (p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt); in bta_av_rc_msg()
/hal_espressif-3.6.0/components/bt/host/bluedroid/btc/profile/std/a2dp/
Dbtc_a2dp_sink.c653 UINT8 btc_a2dp_sink_enque_buf(BT_HDR *p_pkt) in btc_a2dp_sink_enque_buf() argument
674 p_pkt->offset + p_pkt->len)) != NULL) { in btc_a2dp_sink_enque_buf()
675 memcpy(p_msg, p_pkt, (sizeof(BT_HDR) + p_pkt->offset + p_pkt->len)); in btc_a2dp_sink_enque_buf()
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/include/stack/
Davdt_api.h365 typedef void (tAVDT_DATA_CBACK)(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
807 extern UINT16 AVDT_WriteReq(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
845 extern UINT16 AVDT_WriteReqOpt(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
Davct_api.h109 BT_HDR *p_pkt);
Davrc_api.h362 extern UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype, BT_HDR *p_pkt);
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/include/bta/
Dbta_av_api.h805 BT_HDR *p_pkt);
821 void BTA_AvMetaCmd(UINT8 rc_handle, UINT8 label, tBTA_AV_CMD cmd_code, BT_HDR *p_pkt);
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/av/include/
Dbta_av_int.h255 BT_HDR *p_pkt; member
574 extern void bta_av_stream_data_cback(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt);
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/avdt/include/
Davdt_int.h480 BT_HDR *p_pkt; member
489 BT_HDR *p_pkt; /* packet waiting to be sent */ member