Home
last modified time | relevance | path

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

12

/external/bluetooth/bluedroid/stack/avrc/
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.c95 static UINT8 * avrc_get_data_ptr(BT_HDR *p_pkt) in avrc_get_data_ptr() argument
97 UINT8 *p_data = (UINT8 *)(p_pkt+1) + p_pkt->offset; in avrc_get_data_ptr()
100 if (p_pkt->offset < AVCT_MSG_OFFSET) in avrc_get_data_ptr()
102 gap = AVCT_MSG_OFFSET - p_pkt->offset; in avrc_get_data_ptr()
103 for(i=p_pkt->len; i>0; i--) in avrc_get_data_ptr()
107 p_pkt->offset += gap; in avrc_get_data_ptr()
108 p_data = (UINT8 *)(p_pkt+1) + p_pkt->offset; in avrc_get_data_ptr()
167 BT_HDR *p_pkt_old, *p_pkt; in avrc_send_continue_frag() local
173 p_pkt = p_fcb->p_fmsg; in avrc_send_continue_frag()
175 AVRC_TRACE_DEBUG ("avrc_send_continue_frag len(%d) / AVRC_MAX_CTRL_DATA_LEN", p_pkt->len ); in avrc_send_continue_frag()
[all …]
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_vol_change_notfn(BT_HDR * p_pkt) in avrc_bld_vol_change_notfn() argument
106 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_vol_change_notfn()
112 p_pkt->len = (p_data - p_start); in avrc_bld_vol_change_notfn()
130 BT_HDR *p_pkt=NULL; in avrc_bld_init_cmd_buffer() local
[all …]
/external/bluetooth/bluedroid/stack/include/
Dobx_api.h428 … void (tOBX_SR_CBACK) (tOBX_HANDLE shandle, tOBX_EVENT event, tOBX_EVT_PARAM param, BT_HDR *p_pkt);
430 …CBACK) (tOBX_HANDLE handle, tOBX_EVENT event, UINT8 rsp_code, tOBX_EVT_PARAM param, BT_HDR *p_pkt);
569 OBX_API extern tOBX_STATUS OBX_ConnectRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
583 UINT8 ssn, UINT32 offset, BT_HDR *p_pkt);
596 OBX_API extern tOBX_STATUS OBX_SetPathRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
609 OBX_API extern tOBX_STATUS OBX_PutRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
622 OBX_API extern tOBX_STATUS OBX_GetRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
635 OBX_API extern tOBX_STATUS OBX_AbortRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
648 OBX_API extern tOBX_STATUS OBX_ActionRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
663 OBX_API extern tOBX_STATUS OBX_DisconnectRsp(tOBX_HANDLE shandle, UINT8 rsp_code, BT_HDR *p_pkt);
[all …]
Da2d_sbc.h104 A2D_API extern void A2D_SbcChkFrInit(UINT8 *p_pkt);
114 A2D_API extern void A2D_SbcDescramble(UINT8 *p_pkt, UINT16 len);
Davdt_api.h365 typedef void (tAVDT_DATA_CBACK)(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
795 AVDT_API extern UINT16 AVDT_WriteReq(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
833 AVDT_API 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 MCA_API extern tMCA_RESULT MCA_WriteReq(tMCA_DL mdl, BT_HDR *p_pkt);
Davct_api.h108 BT_HDR *p_pkt);
Davrc_api.h360 AVRC_API extern UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype, BT_HDR *p_pkt);
/external/bluetooth/bluedroid/stack/a2dp/
Da2d_sbc.c117 void A2D_SbcChkFrInit(UINT8 *p_pkt) in A2D_SbcChkFrInit() argument
123 if((p_pkt[0] & A2D_SBC_SYNC_MASK) == 0) in A2D_SbcChkFrInit()
126 fmt = p_pkt[1]; in A2D_SbcChkFrInit()
127 p_pkt[0] |= A2D_SBC_SYNC_MASK; in A2D_SbcChkFrInit()
147 void A2D_SbcDescramble(UINT8 *p_pkt, UINT16 len) in A2D_SbcDescramble() argument
160 p_cur->use = p_pkt[A2D_SBC_CRC_IDX] & A2D_SBC_USE_MASK; in A2D_SbcDescramble()
161 p_cur->idx = A2D_SBC_GET_IDX(p_pkt[A2D_SBC_CRC_IDX]); in A2D_SbcDescramble()
173 p_pkt = &p_pkt[a2d_sbc_ds_cb.base]; in A2D_SbcDescramble()
177 tmp = p_pkt[idx]; in A2D_SbcDescramble()
178 p_pkt[idx] = p_pkt[tmp2]; in A2D_SbcDescramble()
[all …]
/external/bluetooth/bluedroid/stack/mcap/
Dmca_cact.c99 BT_HDR *p_pkt; in mca_ccb_snd_req() local
124 p_pkt = (BT_HDR *)GKI_getbuf (MCA_CTRL_MTU); in mca_ccb_snd_req()
125 if (p_pkt) in mca_ccb_snd_req()
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()
137 p_pkt->len = p - p_start; in mca_ccb_snd_req()
138 L2CA_DataWrite (p_ccb->lcid, p_pkt); in mca_ccb_snd_req()
165 BT_HDR *p_pkt; in mca_ccb_snd_rsp() local
172 p_pkt = (BT_HDR *)GKI_getbuf (MCA_CTRL_MTU); in mca_ccb_snd_rsp()
173 if (p_pkt) in mca_ccb_snd_rsp()
[all …]
Dmca_dact.c145 status = L2CA_DataWrite (p_dcb->lcid, p_data->p_pkt); in mca_dcb_snd_data()
Dmca_api.c883 tMCA_RESULT MCA_WriteReq(tMCA_DL mdl, BT_HDR *p_pkt) in MCA_WriteReq() argument
898 evt_data.p_pkt = p_pkt; in MCA_WriteReq()
/external/bluetooth/bluedroid/stack/avdt/
Davdt_scb_act.c255 p = p_start = (UINT8 *)(p_data->p_pkt + 1) + p_data->p_pkt->offset; in avdt_scb_hdl_pkt_no_frag()
282 pad_len = *(p_start + p_data->p_pkt->len); in avdt_scb_hdl_pkt_no_frag()
286 if ((offset > p_data->p_pkt->len) || ((pad_len + offset) > p_data->p_pkt->len)) in avdt_scb_hdl_pkt_no_frag()
289 GKI_freebuf(p_data->p_pkt); 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()
300 p_data->p_pkt->layer_specific = seq; in avdt_scb_hdl_pkt_no_frag()
301 (*p_scb->cs.p_data_cback)(avdt_scb_to_hdl(p_scb), p_data->p_pkt, in avdt_scb_hdl_pkt_no_frag()
309 && (p_scb->media_buf_len > p_data->p_pkt->len)) in avdt_scb_hdl_pkt_no_frag()
312 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.c982 UINT16 AVDT_WriteReqOpt(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt, tAVDT_DATA_OPT_… in AVDT_WriteReqOpt() argument
997 evt.apiwrite.p_buf = p_pkt; in AVDT_WriteReqOpt()
1043 UINT16 AVDT_WriteReq(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt) in AVDT_WriteReq() argument
1045 return AVDT_WriteReqOpt(handle, p_pkt, time_stamp, m_pt, AVDT_DATA_OPT_NONE); in AVDT_WriteReq()
1245 if (p_scb->p_pkt != NULL in AVDT_WriteDataReq()
1253 p_scb->p_pkt, p_scb->p_ccb, GKI_queue_is_empty(&p_scb->frag_q), p_scb->frag_off); in AVDT_WriteDataReq()
1351 BT_HDR *p_pkt; in AVDT_SendReport() local
1374 (p_pkt = (BT_HDR *)GKI_getbuf(p_tbl->peer_mtu)) != NULL) in AVDT_SendReport()
1376 p_pkt->offset = L2CAP_MIN_OFFSET; in AVDT_SendReport()
1377 p = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in AVDT_SendReport()
[all …]
/external/libnfc-nci/src/nfc/tags/
Drw_t1t.c38 static tRW_EVENT rw_t1t_handle_rid_rsp (BT_HDR *p_pkt);
64 BT_HDR *p_pkt; in rw_t1t_data_cback() local
71 p_pkt = (BT_HDR *) (p_data->data.p_data); in rw_t1t_data_cback()
72 if (p_pkt == NULL) in rw_t1t_data_cback()
75 p = (UINT8 *) (p_pkt + 1) + p_pkt->offset; in rw_t1t_data_cback()
93 &&(p_t1t->prev_cmd_rsp_info.rsp_len == p_pkt->len) in rw_t1t_data_cback()
99 GKI_freebuf (p_pkt); in rw_t1t_data_cback()
104 evt_data.data.p_data = p_pkt; in rw_t1t_data_cback()
112 rw_main_update_rx_stats (p_pkt->len); in rw_t1t_data_cback()
116 if ( (p_pkt->len != p_cmd_rsp_info->rsp_len) in rw_t1t_data_cback()
[all …]
Drw_t2t.c64 BT_HDR *p_pkt = p_data->p_data; in rw_t2t_proc_data() local
80 …RW_TRACE_DEBUG2 ("RW T2T Raw Frame: Len [0x%X] Status [%s]", p_pkt->len, NFC_GetStatusName (p_data… in rw_t2t_proc_data()
82 RW_TRACE_DEBUG2 ("RW T2T Raw Frame: Len [0x%X] Status [0x%X]", p_pkt->len, p_data->status); in rw_t2t_proc_data()
85 evt_data.p_data = p_pkt; in rw_t2t_proc_data()
91 rw_main_update_rx_stats (p_pkt->len); in rw_t2t_proc_data()
98 if ( ( (p_pkt->len != p_cmd_rsp_info->rsp_len) in rw_t2t_proc_data()
99 &&(p_pkt->len != p_cmd_rsp_info->nack_rsp_len) in rw_t2t_proc_data()
114 GKI_freebuf (p_pkt); in rw_t2t_proc_data()
120 p = (UINT8 *) (p_pkt + 1) + p_pkt->offset; in rw_t2t_proc_data()
124 p_t2t->state, conn_id, p_pkt->len, *p); in rw_t2t_proc_data()
[all …]
/external/bluetooth/bluedroid/bta/av/
Dbta_av_api.c559 BT_HDR *p_pkt) in BTA_AvMetaRsp() argument
568 p_buf->p_pkt = p_pkt; in BTA_AvMetaRsp()
573 } else if (p_pkt) { in BTA_AvMetaRsp()
574 GKI_freebuf(p_pkt); in BTA_AvMetaRsp()
592 void BTA_AvMetaCmd(UINT8 rc_handle, UINT8 label, tBTA_AV_CMD cmd_code, BT_HDR *p_pkt) in BTA_AvMetaCmd() argument
600 p_buf->p_pkt = p_pkt; in BTA_AvMetaCmd()
Dbta_av_act.c672 p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
679 GKI_freebuf (p_data->api_meta_rsp.p_pkt); in bta_av_rc_meta_rsp()
695 GKI_freebuf (p_data->api_meta_rsp.p_pkt); in bta_av_rc_free_rsp()
868 BT_HDR *p_pkt = NULL; in bta_av_rc_msg() local
997 if (!p_pkt) in bta_av_rc_msg()
1000 res = AVRC_BldResponse (0, &rc_rsp, &p_pkt); in bta_av_rc_msg()
1002 if (p_pkt) in bta_av_rc_msg()
1003 AVRC_MsgReq (p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt); in bta_av_rc_msg()
Dbta_av_aact.c196 void bta_av_stream_data_cback(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp, UINT8 m_pt);
569 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
573 …_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()
574 APPL_TRACE_DEBUG(" Number of frames 0x%x",*((UINT8*)(p_pkt + 1) + p_pkt->offset)); in bta_av_stream_data_cback()
575 APPL_TRACE_DEBUG("Sequence Number 0x%x",p_pkt->layer_specific); in bta_av_stream_data_cback()
585 GKI_freebuf(p_pkt); in bta_av_stream_data_cback()
588 p_pkt->event = BTA_AV_MEDIA_DATA_EVT; in bta_av_stream_data_cback()
589 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()
590 GKI_freebuf(p_pkt); /* a copy of packet had been delivered, we free this buffer */ in bta_av_stream_data_cback()
/external/libnfc-nci/src/nfa/hci/
Dnfa_hci_main.c662 BT_HDR *p_pkt = (BT_HDR *) p_data->data.p_data; in nfa_hci_conn_cback() local
700 if ((event != NFC_DATA_CEVT) || (p_pkt == NULL)) in nfa_hci_conn_cback()
712 p = (UINT8 *) (p_pkt + 1) + p_pkt->offset; in nfa_hci_conn_cback()
713 pkt_len = p_pkt->len; in nfa_hci_conn_cback()
775 (UINT8)chaining_bit, (UINT8)nfa_hci_cb.assembling, p_pkt->len); in nfa_hci_conn_cback()
778 … pipe, nfa_hci_cb.type, nfa_hci_cb.inst, chaining_bit, nfa_hci_cb.assembling, p_pkt->len); in nfa_hci_conn_cback()
786 GKI_freebuf (p_pkt); in nfa_hci_conn_cback()
835 p_pkt->event = NFA_HCI_CHECK_QUEUE_EVT; in nfa_hci_conn_cback()
836 p_pkt->len = 0; in nfa_hci_conn_cback()
837 nfa_sys_sendmsg (p_pkt); in nfa_hci_conn_cback()
/external/libnfc-nci/src/nfa/ee/
Dnfa_ee_act.c877 BT_HDR *p_pkt; in nfa_ee_api_send_data() local
884 p_pkt = (BT_HDR *)GKI_getbuf(size); in nfa_ee_api_send_data()
885 if (p_pkt) in nfa_ee_api_send_data()
887 p_pkt->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in nfa_ee_api_send_data()
888 p_pkt->len = p_data->send_data.data_len; in nfa_ee_api_send_data()
889 p = (UINT8 *)(p_pkt+1) + p_pkt->offset; in nfa_ee_api_send_data()
890 memcpy(p, p_data->send_data.p_data, p_pkt->len); in nfa_ee_api_send_data()
891 NFC_SendData (p_cb->conn_id, p_pkt); in nfa_ee_api_send_data()
1567 BT_HDR *p_pkt = NULL; in nfa_ee_nci_conn() local
1580 p_pkt = p_conn->data.p_data; in nfa_ee_nci_conn()
[all …]
/external/bluetooth/bluedroid/bta/hl/
Dbta_hl_int.h377 BT_HDR *p_pkt; member
598 #define BTA_HL_GET_BUF_PTR(p_pkt) ((UINT8 *)((UINT8 *) (p_pkt+1) + p_pkt->offset)) argument
705 extern void bta_hl_mcap_data_cback(tMCA_DL mdl, BT_HDR *p_pkt);
/external/bluetooth/bluedroid/bta/include/
Dbta_av_api.h769 BT_HDR *p_pkt);
785 BTA_API void BTA_AvMetaCmd(UINT8 rc_handle, UINT8 label, tBTA_AV_CMD cmd_code, BT_HDR *p_pkt);
/external/bluetooth/bluedroid/btif/src/
Dbtif_media_task.c2496 UINT8 btif_media_sink_enque_buf(BT_HDR *p_pkt) in btif_media_sink_enque_buf() argument
2510 p_pkt->offset+ p_pkt->len)) != NULL) in btif_media_sink_enque_buf()
2512 memcpy(p_msg, p_pkt, (sizeof(BT_HDR) + p_pkt->offset + p_pkt->len)); in btif_media_sink_enque_buf()

12