/external/bluetooth/bluedroid/bta/ag/ |
bta_ag_rfc.c | 90 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->port_handle = port_handle 402 tBTA_AG_RFC *p_buf; local [all...] |
/external/bluetooth/bluedroid/stack/bnep/ |
bnep_utils.c | 37 static UINT8 *bnepu_init_hdr (BT_HDR *p_buf, UINT16 hdr_len, UINT8 pkt_type); 172 BT_HDR *p_buf; local 176 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) 182 p_buf->offset = L2CAP_MIN_OFFSET; 183 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; 213 p_buf->len = (UINT16)(p - p_start); 215 bnepu_check_send_packet (p_bcb, p_buf); 230 BT_HDR *p_buf; local 234 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) 240 p_buf->offset = L2CAP_MIN_OFFSET 270 BT_HDR *p_buf; local 322 BT_HDR *p_buf; local 375 BT_HDR *p_buf; local 413 BT_HDR *p_buf; local 1173 BT_HDR *p_buf; local [all...] |
bnep_api.c | 348 ** p_buf - pointer to address of buffer with data 363 BT_HDR *p_buf, 373 GKI_freebuf (p_buf); 379 if (p_buf->len > BNEP_MTU_SIZE) 381 BNEP_TRACE_ERROR2 ("BNEP_Write() length %d exceeded MTU %d", p_buf->len, BNEP_MTU_SIZE); 382 GKI_freebuf (p_buf); 387 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; 399 org_len = p_buf->len; 411 GKI_freebuf (p_buf); 481 BT_HDR *p_buf; local [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_conn.c | 294 BT_HDR *p_buf; local 302 p_buf = (BT_HDR *)GKI_getfirst (&p_ccb->rx_queue); 303 if (!p_buf) 308 while (max_len && p_buf) 310 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; 315 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, copy_len); 319 if (p_buf->len > copy_len) 321 p_buf->offset += copy_len 400 BT_HDR *p_buf; local 507 BT_HDR *p_buf; local 1034 BT_HDR *p_buf; local 1236 BT_HDR *p_buf; local [all...] |
/external/libnfc-nci/src/nfc/llcp/ |
llcp_api.c | 675 BT_HDR *p_buf) 700 if (p_buf->len <= llcp_cb.lcb.peer_miu) 702 if (p_buf->offset >= LLCP_MIN_OFFSET) 704 status = llcp_util_send_ui (ssap, dsap, p_app_cb, p_buf); 709 p_buf->offset, LLCP_MIN_OFFSET ); 724 GKI_freebuf (p_buf); 751 BT_HDR *p_buf; local 767 p_buf = (BT_HDR *) p_app_cb->ui_rx_q.p_first; 768 p_ui_pdu = (UINT8*) (p_buf + 1) + p_buf->offset 843 BT_HDR *p_buf; local 1193 BT_HDR *p_buf; local 1297 BT_HDR *p_buf; local [all...] |
/external/bluetooth/bluedroid/bta/dm/ |
bta_dm_ci.c | 108 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/stack/l2cap/ |
l2c_ucd.c | 90 static void l2c_ucd_data_ind_cback (BD_ADDR rem_bda, BT_HDR *p_buf) 98 p = (UINT8 *)(p_buf + 1) + p_buf->offset; 101 p_buf->offset += L2CAP_UCD_OVERHEAD; 102 p_buf->len -= L2CAP_UCD_OVERHEAD; 107 GKI_freebuf (p_buf); 111 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(rem_bda, p_buf); 392 UINT16 L2CA_UcdDataWrite (UINT16 psm, BD_ADDR rem_bda, BT_HDR *p_buf, UINT16 flags) 408 GKI_freebuf (p_buf); 419 GKI_freebuf (p_buf); 756 BT_HDR *p_buf; local 785 BT_HDR *p_buf; local 808 BT_HDR *p_buf; local 833 BT_HDR *p_buf; local 862 BT_HDR *p_buf; local 884 BT_HDR *p_buf; local [all...] |
/external/bluetooth/bluedroid/hci/include/ |
utils.h | 99 void utils_enqueue (BUFFER_Q *p_q, void *p_buf); 133 void *utils_getnext (void *p_buf); 144 void *utils_remove_from_queue (BUFFER_Q *p_q, void *p_buf); 155 void *utils_remove_from_queue_unlocked (BUFFER_Q *p_q, void *p_buf);
|
/external/bluetooth/bluedroid/stack/gatt/ |
gatt_auth.c | 98 void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf) 102 UINT8 *p, *p_orig = (UINT8 *)(p_buf + 1) + p_buf->offset; 105 cmd_len = p_buf->len - GATT_AUTH_SIGN_LEN + 4; 112 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig); 164 tGATT_PENDING_ENC_CLCB *p_buf; local 173 if ((p_buf = (tGATT_PENDING_ENC_CLCB *)GKI_dequeue (&p_tcb->pending_enc_clcb)) != NULL) 190 gatt_sec_check_complete(status , p_buf->p_clcb, p_tcb->sec_act); 191 GKI_freebuf(p_buf); 196 if ((p_buf = (tGATT_PENDING_ENC_CLCB *)GKI_dequeue (&p_tcb->pending_enc_clcb)) != NULL 229 tGATT_PENDING_ENC_CLCB *p_buf; local [all...] |
/external/libnfc-nci/src/hal/int/ |
nfc_hal_nv_co.h | 73 ** Parameters p_buf - buffer to read the data into. 86 void nfc_hal_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block); 95 ** Parameters p_buf - buffer to read the data from. 106 void nfc_hal_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block);
|
/external/libnfc-nci/src/nfa/include/ |
nfa_nv_co.h | 76 ** Parameters p_buf - buffer to read the data into. 89 NFC_API extern void nfa_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block); 98 ** Parameters p_buf - buffer to read the data from. 109 NFC_API extern void nfa_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block);
|
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/ |
nfc_hal_nci.c | 710 void nfc_hal_nci_send_cmd (NFC_HDR *p_buf) 723 nci_brcm_check_cmd_create_hcp_connection ((NFC_HDR*) p_buf); 731 nfc_hal_cb.ncit_cb.p_pend_cmd = p_buf; 736 buf_len = p_buf->len; 737 offset = p_buf->offset; 742 DISP_NCI ((UINT8 *) (p_buf + 1) + p_buf->offset, p_buf->len, FALSE); 745 ps = (UINT8 *) (p_buf + 1) + p_buf->offset [all...] |
/external/libnfc-nci/src/adaptation/ |
libmain.c | 450 void DispHciCmd (BT_HDR *p_buf) 453 int nBytes = ((BT_HDR_SIZE + p_buf->offset + p_buf->len)*2)+1; 454 UINT8 * data = (UINT8*) p_buf; 455 int data_len = BT_HDR_SIZE + p_buf->offset + p_buf->len; 485 void DispHciEvt (BT_HDR *p_buf) 488 int nBytes = ((BT_HDR_SIZE + p_buf->offset + p_buf->len)*2)+1; 489 UINT8 * data = (UINT8*) p_buf; [all...] |
/external/bluetooth/bluedroid/hci/src/ |
userial.c | 242 HC_BT_HDR *p_buf = NULL; local 257 p_buf = (HC_BT_HDR *) bt_hc_cbacks->alloc( \ 261 p_buf = NULL; 263 if (p_buf != NULL) 265 p_buf->offset = 0; 266 p_buf->layer_specific = 0; 268 p = (uint8_t *) (p_buf + 1); 282 p_buf->len = (uint16_t)rx_length; 283 utils_enqueue(&(userial_cb.rx_q), p_buf); 291 bt_hc_cbacks->dealloc((TRANSAC) p_buf, (char *) (p_buf + 1)) 511 TRANSAC p_buf; local [all...] |
bt_hw.c | 144 static void dealloc(void *p_buf) 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) 165 return p_hci_if->send_int_cmd(opcode, (HC_BT_HDR *)p_buf, p_cback);
|
/external/bluetooth/bluedroid/btif/co/ |
bta_pan_co.c | 163 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 != NULL) [all...] |
/external/bluetooth/bluedroid/stack/smp/ |
smp_l2c.c | 38 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) 127 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; 157 GKI_freebuf (p_buf);
|
/external/libnfc-nci/src/nfc/nfc/ |
nfc_utils.c | 167 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/libnfc-nci/src/udrv/include/ |
uamp_api.h | 124 ** p_buf: pointer to buffer to write 131 BT_API UINT16 UAMP_Write(tUAMP_ID amp_id, UINT8 *p_buf, UINT16 num_bytes, tUAMP_CH channel); 155 ** p_buf: pointer to buffer for holding incoming AMP data 156 ** buf_size: size of p_buf 162 BT_API UINT16 UAMP_Read(tUAMP_ID amp_id, UINT8 *p_buf, UINT16 buf_size, tUAMP_CH channel);
|
/external/libnfc-nci/halimpl/bcm2079x/gki/common/ |
gki_buffer.c | 581 ** Parameters p_buf - (input) address of the beginning of a buffer. 586 void GKI_freebuf (void *p_buf) 592 if (!p_buf || gki_chk_buf_damage(p_buf)) 599 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE); 602 LOGD("GKI_freebuf() freeing, %x, %x, func:%s(line=%d)", p_buf, p_hdr, p_hdr->_function, p_hdr->_line); 647 ** Parameters p_buf - (input) address of the beginning of a buffer. 652 UINT16 GKI_get_buf_size (void *p_buf) 656 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE); 678 BOOLEAN gki_chk_buf_damage(void *p_buf) 774 void *p_buf = NULL; local [all...] |
/external/libnfc-nci/src/gki/common/ |
gki_buffer.c | 581 ** Parameters p_buf - (input) address of the beginning of a buffer. 586 void GKI_freebuf (void *p_buf) 592 if (!p_buf || gki_chk_buf_damage(p_buf)) 599 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE); 602 LOGD("GKI_freebuf() freeing, %x, %x, func:%s(line=%d)", p_buf, p_hdr, p_hdr->_function, p_hdr->_line); 647 ** Parameters p_buf - (input) address of the beginning of a buffer. 652 UINT16 GKI_get_buf_size (void *p_buf) 656 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE); 678 BOOLEAN gki_chk_buf_damage(void *p_buf) 774 void *p_buf = NULL; local [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
bta_gattc_utils.c | 455 tBTA_GATTC_API_SEARCH *p_buf; local 456 p_buf = &(p_clcb->p_q_cmd->api_search); 457 p_buf->p_srvc_uuid = (tBT_UUID *)(p_buf + 1); 458 memcpy(p_buf->p_srvc_uuid, p_data->api_search.p_srvc_uuid, 482 tBTA_GATTC_API_READ *p_buf; local 483 p_buf = &(p_clcb->p_q_cmd->api_read); 484 p_buf->p_descr_type = (tBTA_GATT_ID *)(p_buf + 1); 485 memcpy(p_buf->p_descr_type, p_data->api_read.p_descr_type 492 tBTA_GATTC_API_WRITE *p_buf; local 552 tBTA_GATTC_API_READ_MULTI *p_buf; local [all...] |
/external/bluetooth/bluedroid/gki/common/ |
gki_buffer.c | 516 ** Parameters p_buf - (input) address of the beginning of a buffer. 521 void GKI_freebuf (void *p_buf) 527 if (!p_buf || gki_chk_buf_damage(p_buf)) 534 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE); 578 ** Parameters p_buf - (input) address of the beginning of a buffer. 583 UINT16 GKI_get_buf_size (void *p_buf) 587 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE); 609 BOOLEAN gki_chk_buf_damage(void *p_buf) 614 magic = (UINT32 *)((UINT8 *) p_buf + GKI_get_buf_size(p_buf)) 705 void *p_buf = NULL; local [all...] |
/external/bluetooth/bluedroid/stack/rfcomm/ |
rfc_l2cap_if.c | 45 static void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf); 300 void RFCOMM_BufDataInd (UINT16 lcid, BT_HDR *p_buf) 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->len > 0 [all...] |
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
NonVolatileStore.cpp | 51 ** Parameters p_buf - buffer to read the data into. 64 void nfc_hal_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block) 83 size_t actualReadData = read (fileStream, p_buf, nbytes); 111 ** Parameters p_buf - buffer to read the data from. 122 void nfc_hal_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block) 140 unsigned short checksum = crcChecksumCompute (p_buf, nbytes); 142 size_t actualWrittenData = write (fileStream, p_buf, nbytes);
|