Searched defs:p_buf (Results 1 - 25 of 122) sorted by relevance

12345

/external/bluetooth/bluedroid/bta/ag/
H A Dbta_ag_ci.c45 tBTA_AG_CI_RX_WRITE *p_buf; local
57 if ((p_buf = (tBTA_AG_CI_RX_WRITE *) GKI_getbuf((UINT16)(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1))) != NULL)
59 p_buf->hdr.event = BTA_AG_CI_RX_WRITE_EVT;
60 p_buf->hdr.layer_specific = handle;
62 p_data_area = (char *)(p_buf+1); /* Point to data area after header */
66 bta_sys_sendmsg(p_buf);
90 tBTA_AG_DATA *p_buf; local
92 if ((p_buf = (tBTA_AG_DATA *)GKI_getbuf(sizeof(tBTA_AG_DATA))) != NULL)
94 p_buf->hdr.event = BTA_AG_CI_SLC_READY_EVT;
95 p_buf
[all...]
H A Dbta_ag_at.c188 void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) argument
204 if ((p_cb->cmd_pos == 0) && (p_buf[i] == 0))
210 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++];
H A Dbta_ag_api.c60 tBTA_AG_API_ENABLE *p_buf; local
78 if ((p_buf = (tBTA_AG_API_ENABLE *) GKI_getbuf(sizeof(tBTA_AG_API_ENABLE))) != NULL)
80 p_buf->hdr.event = BTA_AG_API_ENABLE_EVT;
81 p_buf->parse_mode = parse_mode;
82 p_buf->p_cback = p_cback;
83 bta_sys_sendmsg(p_buf);
102 BT_HDR *p_buf; local
104 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
106 p_buf->event = BTA_AG_API_DISABLE_EVT;
107 bta_sys_sendmsg(p_buf);
124 tBTA_AG_API_REGISTER *p_buf; local
162 BT_HDR *p_buf; local
187 tBTA_AG_API_OPEN *p_buf; local
213 BT_HDR *p_buf; local
236 BT_HDR *p_buf; local
259 BT_HDR *p_buf; local
284 tBTA_AG_API_RESULT *p_buf; local
313 tBTA_AG_API_SETCODEC *p_buf; local
[all...]
H A Dbta_ag_rfc.c90 BT_HDR *p_buf; local
103 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
105 p_buf->event = BTA_AG_RFC_DATA_EVT;
106 p_buf->layer_specific = handle;
107 bta_sys_sendmsg(p_buf);
124 tBTA_AG_RFC *p_buf; local
176 if ((p_buf = (tBTA_AG_RFC *) GKI_getbuf(sizeof(tBTA_AG_RFC))) != NULL)
178 p_buf->hdr.event = event;
179 p_buf->hdr.layer_specific = handle;
180 p_buf
402 tBTA_AG_RFC *p_buf; local
[all...]
/external/bluetooth/bluedroid/bta/av/
H A Dbta_av_ci.c47 BT_HDR *p_buf; local
49 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
51 p_buf->layer_specific = chnl;
52 p_buf->event = BTA_AV_CI_SRC_DATA_READY_EVT;
53 bta_sys_sendmsg(p_buf);
73 tBTA_AV_CI_SETCONFIG *p_buf; local
75 if ((p_buf = (tBTA_AV_CI_SETCONFIG *) GKI_getbuf(sizeof(tBTA_AV_CI_SETCONFIG))) != NULL)
77 p_buf->hdr.layer_specific = hndl;
78 p_buf->hdr.event = (err_code == AVDT_SUCCESS) ?
80 p_buf
[all...]
/external/bluetooth/bluedroid/bta/dm/
H A Dbta_dm_ci.c108 BT_HDR *p_buf; local
110 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
112 p_buf->event = event;
113 p_buf->layer_specific = sco_handle;
115 bta_sys_sendmsg(p_buf);
/external/bluetooth/bluedroid/bta/pan/
H A Dbta_pan_api.c59 tBTA_PAN_API_ENABLE *p_buf; local
66 if ((p_buf = (tBTA_PAN_API_ENABLE *) GKI_getbuf(sizeof(tBTA_PAN_API_ENABLE))) != NULL)
68 p_buf->hdr.event = BTA_PAN_API_ENABLE_EVT;
69 p_buf->p_cback = p_cback;
71 bta_sys_sendmsg(p_buf);
89 BT_HDR *p_buf; local
92 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
94 p_buf->event = BTA_PAN_API_DISABLE_EVT;
95 bta_sys_sendmsg(p_buf);
113 tBTA_PAN_API_SET_ROLE *p_buf; local
180 tBTA_PAN_API_OPEN *p_buf; local
205 BT_HDR *p_buf; local
[all...]
H A Dbta_pan_ci.c55 BT_HDR *p_buf; local
57 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
59 p_buf->layer_specific = handle;
60 p_buf->event = BTA_PAN_CI_TX_READY_EVT;
61 bta_sys_sendmsg(p_buf);
80 BT_HDR *p_buf; local
82 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
84 p_buf->layer_specific = handle;
85 p_buf->event = BTA_PAN_CI_RX_READY_EVT;
86 bta_sys_sendmsg(p_buf);
107 tBTA_PAN_CI_TX_FLOW *p_buf; local
133 BT_HDR * p_buf; local
173 bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext) argument
205 BT_HDR * p_buf; local
[all...]
/external/bluetooth/bluedroid/stack/avrc/
H A Davrc_opt.c192 BT_HDR *p_buf = avrc_vendor_msg(p_msg); local
193 if (p_buf)
194 return AVCT_MsgReq( handle, label, AVCT_CMD, p_buf);
227 BT_HDR *p_buf = avrc_vendor_msg(p_msg); local
228 if (p_buf)
229 return AVCT_MsgReq( handle, label, AVCT_RSP, p_buf);
H A Davrc_pars_tg.c42 UINT8 *p_buf, UINT16 buf_len)
122 if (p_buf && (len == ((p_result->set_app_val.num_val<<1) + 1)))
124 p_result->set_app_val.p_vals = (tAVRC_APP_SETTING *)p_buf;
272 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) argument
282 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len);
41 avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) argument
/external/bluetooth/bluedroid/stack/smp/
H A Dsmp_l2c.c38 static void smp_data_ind (BD_ADDR bd_addr, BT_HDR *p_buf);
124 static void smp_data_ind (BD_ADDR bd_addr, BT_HDR *p_buf) argument
127 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset;
157 GKI_freebuf (p_buf);
/external/bluetooth/bluedroid/hci/src/
H A Dbt_hw.c144 static void dealloc(void *p_buf) argument
146 HC_BT_HDR *p_hdr = (HC_BT_HDR *) p_buf;
149 bt_hc_cbacks->dealloc((TRANSAC) p_buf, (char *) (p_hdr+1));
163 static uint8_t xmit_cb(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback) argument
165 return p_hci_if->send_int_cmd(opcode, (HC_BT_HDR *)p_buf, p_cback);
H A Dutils.c94 void utils_enqueue (BUFFER_Q *p_q, void *p_buf) argument
98 p_hdr = (HC_BUFFER_HDR_T *) ((uint8_t *) p_buf - BT_HC_BUFFER_HDR_SIZE);
110 p_q->p_first = p_buf;
112 p_q->p_last = p_buf;
131 void* p_buf = utils_dequeue_unlocked(p_q); local
133 return p_buf;
182 void *utils_getnext (void *p_buf) argument
186 p_hdr = (HC_BUFFER_HDR_T *) ((uint8_t *) p_buf - BT_HC_BUFFER_HDR_SIZE);
203 void *utils_remove_from_queue (BUFFER_Q *p_q, void *p_buf) argument
206 p_buf
219 utils_remove_from_queue_unlocked(BUFFER_Q *p_q, void *p_buf) argument
[all...]
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DNonVolatileStore.cpp48 ** Parameters p_buf - buffer to read the data into.
61 void nfc_hal_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block) argument
78 size_t actualRead = read (fileStream, p_buf, nbytes);
106 ** Parameters p_buf - buffer to read the data from.
117 void nfc_hal_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block) argument
135 size_t actualWritten = write (fileStream, p_buf, nbytes);
H A Dandroid_logmsg.cpp39 void DispHciCmd (BT_HDR *p_buf);
40 void DispHciEvt (BT_HDR *p_buf);
80 void DispHciCmd (BT_HDR *p_buf) argument
83 int nBytes = ((BT_HDR_SIZE + p_buf->offset + p_buf->len)*2)+1;
84 UINT8 * data = (UINT8*) p_buf;
85 int data_len = BT_HDR_SIZE + p_buf->offset + p_buf->len;
105 void DispHciEvt (BT_HDR *p_buf) argument
108 int nBytes = ((BT_HDR_SIZE + p_buf
[all...]
/external/libnfc-nci/src/nfc/nfc/
H A Dnfc_utils.c167 void *p_buf; local
172 while ((p_buf = GKI_dequeue (&p_cb->rx_q)) != NULL)
173 GKI_freebuf (p_buf);
175 while ((p_buf = GKI_dequeue (&p_cb->tx_q)) != NULL)
176 GKI_freebuf (p_buf);
/external/bluetooth/bluedroid/stack/avct/
H A Davct_l2c.c45 void avct_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf);
418 void avct_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf) argument
426 avct_lcb_event(p_lcb, AVCT_LCB_LL_MSG_EVT, (tAVCT_LCB_EVT *) &p_buf);
431 GKI_freebuf(p_buf);
/external/bluetooth/bluedroid/stack/avdt/
H A Davdt_l2c.c45 void avdt_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf);
509 void avdt_l2c_data_ind_cback(UINT16 lcid, BT_HDR *p_buf) argument
516 avdt_ad_tc_data_ind(p_tbl, p_buf);
519 GKI_freebuf(p_buf);
H A Davdt_ad.c459 void avdt_ad_tc_data_ind(tAVDT_TC_TBL *p_tbl, BT_HDR *p_buf) argument
465 p_buf->layer_specific = avdt_ad_tcid_to_type(p_tbl->tcid);
472 avdt_msg_ind(p_ccb, p_buf);
480 avdt_scb_event(p_scb, AVDT_SCB_TC_DATA_EVT, (tAVDT_SCB_EVT *) &p_buf);
483 GKI_freebuf(p_buf);
502 UINT8 avdt_ad_write_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, BT_HDR *p_buf) argument
510 return L2CA_DataWrite(avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, p_buf);
/external/bluetooth/bluedroid/stack/l2cap/
H A Dl2c_csm.c1289 void l2c_enqueue_peer_data (tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
1295 p_buf->event = 0;
1300 p_buf->event = p_ccb->local_cid;
1303 p_buf->offset -= L2CAP_PKT_OVERHEAD;
1304 p_buf->len += L2CAP_PKT_OVERHEAD;
1307 p = (UINT8 *)(p_buf + 1) + p_buf->offset;
1310 UINT16_TO_STREAM (p, p_buf->len - L2CAP_PKT_OVERHEAD);
1314 GKI_enqueue (&p_ccb->xmit_hold_q, p_buf);
/external/bluetooth/bluedroid/stack/rfcomm/
H A Drfc_l2cap_if.c45 static void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf);
300 void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf) argument
310 GKI_freebuf (p_buf);
314 event = rfc_parse_data (p_mcb, &rfc_cb.rfc.rx_frame, p_buf);
319 GKI_freebuf (p_buf);
328 rfc_process_mx_message (p_mcb, p_buf);
334 GKI_freebuf (p_buf);
348 GKI_freebuf (p_buf);
355 GKI_freebuf (p_buf);
364 if (p_buf
[all...]
H A Drfc_mx_fsm.c483 BT_HDR *p_buf; local
505 while ((p_buf = (BT_HDR *)GKI_dequeue(&p_mcb->cmd_q)) != NULL)
506 GKI_freebuf(p_buf);
/external/bluetooth/bluedroid/bta/hl/
H A Dbta_hl_api.c63 tBTA_HL_API_ENABLE *p_buf; local
70 if ((p_buf = (tBTA_HL_API_ENABLE *)GKI_getbuf(sizeof(tBTA_HL_API_ENABLE))) != NULL)
72 p_buf->hdr.event = BTA_HL_API_ENABLE_EVT;
73 p_buf->p_cback = p_ctrl_cback;
74 bta_sys_sendmsg(p_buf);
89 BT_HDR *p_buf; local
92 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR))) != NULL)
94 p_buf->event = BTA_HL_API_DISABLE_EVT;
95 bta_sys_sendmsg(p_buf);
117 tBTA_HL_API_UPDATE *p_buf; local
191 tBTA_HL_API_REGISTER *p_buf; local
243 tBTA_HL_API_DEREGISTER *p_buf; local
272 tBTA_HL_API_CCH_OPEN *p_buf; local
300 tBTA_HL_API_CCH_CLOSE *p_buf; local
325 tBTA_HL_API_DCH_OPEN *p_buf; local
355 tBTA_HL_API_DCH_RECONNECT *p_buf; local
380 tBTA_HL_API_DCH_CLOSE *p_buf; local
405 tBTA_HL_API_DCH_ABORT *p_buf; local
430 tBTA_HL_API_SEND_DATA *p_buf = NULL; local
461 tBTA_HL_API_DELETE_MDL *p_buf; local
487 tBTA_HL_API_DCH_ECHO_TEST *p_buf; local
516 tBTA_HL_API_SDP_QUERY *p_buf; local
548 tBTA_HL_API_DCH_CREATE_RSP *p_buf; local
[all...]
/external/bluetooth/bluedroid/btif/co/
H A Dbta_pan_co.c163 BT_HDR *p_buf; local
183 if ((p_buf = bta_pan_ci_readbuf(handle, src, dst, &protocol,
187 "p_buf->len:%d, offset:%d", p_buf->len, p_buf->offset);
200 (char*)(p_buf + 1) + p_buf->offset, p_buf->len, ext, forward);
201 GKI_freebuf(p_buf);
204 } while (p_buf !
257 bta_pan_co_tx_writebuf(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext, BOOLEAN forward) argument
[all...]
/external/bluetooth/bluedroid/btif/include/
H A Dbtif_hh.h66 BT_HDR *p_buf; member in struct:__anon924

Completed in 334 milliseconds

12345