/external/bluetooth/bluedroid/stack/sdp/ |
sdp_utils.c | 317 BT_HDR *p_buf; local 324 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (SDP_POOL_ID)) == NULL) 329 p_buf->offset = L2CAP_MIN_OFFSET; 330 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; 350 p_buf->len = p_rsp - p_rsp_start; 354 L2CA_DataWrite (p_ccb->connection_id, p_buf);
|
/external/bluetooth/bluedroid/stack/smp/ |
smp_keys.c | 76 UINT8 p_buf[100]; local 77 memset(p_buf, 0, 100); 81 x += sprintf ((char *)&p_buf[x], "%02x ", p[i]); 83 SMP_TRACE_WARNING2("%s(LSB ~ MSB) = %s", key_name, p_buf);
|
smp_utils.c | 112 BT_HDR *p_buf; local 119 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); 121 if (p_buf != NULL && 122 smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) 176 BT_HDR *p_buf = NULL ; local 179 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + L2CAP_MIN_OFFSET)) != NULL) 181 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; 191 p_buf->offset = L2CAP_MIN_OFFSET; 193 p_buf->len = SMP_PAIRING_REQ_SIZE; 196 return p_buf; 208 BT_HDR *p_buf = NULL ; local 233 BT_HDR *p_buf = NULL ; local 258 BT_HDR *p_buf = NULL ; local 283 BT_HDR *p_buf = NULL ; local 309 BT_HDR *p_buf = NULL ; local 337 BT_HDR *p_buf = NULL ; local 368 BT_HDR *p_buf = NULL ; local 394 BT_HDR *p_buf = NULL ; local 419 BT_HDR *p_buf = NULL ; local [all...] |
/external/libnfc-nci/halimpl/bcm2079x/gki/common/ |
gki_buffer.c | 553 ** Parameters p_buf - (input) address of the beginning of a buffer. 558 void GKI_freebuf (void *p_buf) 564 if (!p_buf || gki_chk_buf_damage(p_buf)) 571 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE); 574 LOGD("GKI_freebuf() freeing, %x, %x, func:%s(line=%d)", p_buf, p_hdr, p_hdr->_function, p_hdr->_line); 619 ** Parameters p_buf - (input) address of the beginning of a buffer. 624 UINT16 GKI_get_buf_size (void *p_buf) 628 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE); 650 BOOLEAN gki_chk_buf_damage(void *p_buf) 746 void *p_buf = NULL; local [all...] |
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/ |
nfc_hal_dm.c | 613 NFC_HDR *p_buf; local 624 if ((p_buf = (NFC_HDR *)GKI_getpoolbuf (NFC_HAL_NCI_POOL_ID)) != NULL) 628 p_buf->offset = NFC_HAL_NCI_MSG_OFFSET_SIZE; 629 p_buf->event = NFC_HAL_EVT_TO_NFC_NCI; 630 p_buf->len = len; 632 memcpy ((UINT8*) (p_buf + 1) + p_buf->offset, p_data, len); 637 ps = (UINT8 *)(p_buf + 1) + p_buf->offset; 644 nfc_hal_nci_send_cmd (p_buf); 663 NFC_HDR *p_buf = nfc_hal_cb.ncit_cb.p_pend_cmd; local 715 NFC_HDR *p_buf; local [all...] |
/external/libnfc-nci/src/gki/common/ |
gki_buffer.c | 553 ** Parameters p_buf - (input) address of the beginning of a buffer. 558 void GKI_freebuf (void *p_buf) 564 if (!p_buf || gki_chk_buf_damage(p_buf)) 571 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE); 574 LOGD("GKI_freebuf() freeing, %x, %x, func:%s(line=%d)", p_buf, p_hdr, p_hdr->_function, p_hdr->_line); 619 ** Parameters p_buf - (input) address of the beginning of a buffer. 624 UINT16 GKI_get_buf_size (void *p_buf) 628 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE); 650 BOOLEAN gki_chk_buf_damage(void *p_buf) 746 void *p_buf = NULL; local [all...] |
/external/libnfc-nci/src/nfc/llcp/ |
llcp_api.c | 691 BT_HDR *p_buf) 716 if (p_buf->len <= llcp_cb.lcb.peer_miu) 718 if (p_buf->offset >= LLCP_MIN_OFFSET) 720 status = llcp_util_send_ui (ssap, dsap, p_app_cb, p_buf); 725 p_buf->offset, LLCP_MIN_OFFSET ); 740 GKI_freebuf (p_buf); 767 BT_HDR *p_buf; local 783 p_buf = (BT_HDR *) p_app_cb->ui_rx_q.p_first; 784 p_ui_pdu = (UINT8*) (p_buf + 1) + p_buf->offset 859 BT_HDR *p_buf; local 1204 BT_HDR *p_buf; local 1308 BT_HDR *p_buf; local [all...] |
/external/libnfc-nci/src/nfc/nfc/ |
nfc_main.c | 1102 void *p_buf; local [all...] |
/external/bluetooth/bluedroid/bta/ag/ |
bta_ag_sco.c | 135 BT_HDR *p_buf; local 155 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 157 p_buf->event = BTA_AG_SCO_OPEN_EVT; 158 p_buf->layer_specific = handle; 159 bta_sys_sendmsg(p_buf); 183 BT_HDR *p_buf; local 232 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 234 p_buf->event = BTA_AG_SCO_CLOSE_EVT; 235 p_buf->layer_specific = handle; 236 bta_sys_sendmsg(p_buf); 667 BT_HDR *p_buf; local [all...] |
bta_ag_main.c | 287 BT_HDR *p_buf; local 290 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 292 p_buf->event = p_tle->event; 293 p_buf->layer_specific = bta_ag_scb_to_idx((tBTA_AG_SCB *) p_tle->param); 294 bta_sys_sendmsg(p_buf); [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
bta_gattc_act.c | 99 tBTA_GATTC_INT_START_IF *p_buf; local 127 if ((p_buf = (tBTA_GATTC_INT_START_IF *) GKI_getbuf(sizeof(tBTA_GATTC_INT_START_IF))) != NULL) 129 p_buf->hdr.event = BTA_GATTC_INT_START_IF_EVT; 130 p_buf->client_if = p_cb->cl_rcb[i].client_if; 132 bta_sys_sendmsg(p_buf); 212 tBTA_GATTC_INT_DEREG *p_buf; local 216 if ((p_buf = (tBTA_GATTC_INT_DEREG *) GKI_getbuf(sizeof(tBTA_GATTC_INT_DEREG))) != NULL) 218 p_buf->hdr.event = BTA_GATTC_INT_DEREG_EVT; 219 p_buf->client_if = client_if; 220 bta_sys_sendmsg(p_buf); 1505 BT_HDR *p_buf; local 1763 tBTA_GATTC_OP_CMPL *p_buf; local [all...] |
bta_gattc_cache.c | 138 BT_HDR *p_buf; local 140 if ((p_buf = (BT_HDR *)GKI_getpoolbuf(GATT_DB_POOL_ID)) == NULL) 148 memset(p_buf, 0, GKI_get_buf_size(p_buf)); 149 p_srvc_cb->p_free = (UINT8 *) p_buf; 150 p_srvc_cb->free_byte = GKI_get_buf_size(p_buf); 153 GKI_enqueue(&p_srvc_cb->cache_buffer, p_buf); 158 return p_buf; [all...] |
/external/bluetooth/bluedroid/bta/jv/ |
bta_jv_api.c | 63 tBTA_JV_API_ENABLE *p_buf; local 75 if (p_cback && (p_buf = (tBTA_JV_API_ENABLE *) GKI_getbuf(sizeof(tBTA_JV_API_ENABLE))) != NULL) 77 p_buf->hdr.event = BTA_JV_API_ENABLE_EVT; 78 p_buf->p_cback = p_cback; 79 bta_sys_sendmsg(p_buf); 97 BT_HDR *p_buf; local 101 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 103 p_buf->event = BTA_JV_API_DISABLE_EVT; 104 bta_sys_sendmsg(p_buf); [all...] |
/external/bluetooth/bluedroid/stack/avdt/ |
avdt_msg.c | 1192 BT_HDR *p_buf; local 1469 BT_HDR *p_buf; local 1538 BT_HDR *p_buf; local 1583 BT_HDR *p_buf; local 1644 BT_HDR *p_buf; local [all...] |
/external/bluetooth/bluedroid/stack/btm/ |
btm_sco.c | 85 BT_HDR *p_buf; local 92 if ((p_buf = (BT_HDR *)GKI_dequeue (&p->xmit_data_q)) != NULL) 93 GKI_freebuf (p_buf); 248 BT_HDR *p_buf; local 255 p_buf = NULL; 260 p_buf = (BT_HDR *)GKI_dequeue (&p_ccb->xmit_data_q); 262 HCI_SCO_DATA_TO_LOWER (p_buf); 318 ** to be written p_buf needs to carry an offset of 334 tBTM_STATUS BTM_WriteScoData (UINT16 sco_inx, BT_HDR *p_buf) 345 if (p_buf->offset < HCI_SCO_PREAMBLE_SIZE [all...] |
/external/bluetooth/bluedroid/stack/gatt/ |
gatt_sr.c | 125 BT_HDR *p_buf = (BT_HDR *)GKI_getbuf((UINT16)sizeof(tGATTS_RSP)); local 131 if (p_buf == NULL) 138 memcpy((void *)p_buf, (const void *)p_msg, sizeof(tGATTS_RSP)); 139 GKI_enqueue (&p_cmd->multi_rsp_q, p_buf); 150 if ((p_buf = (BT_HDR *)GKI_getbuf(len)) == NULL) 156 memset(p_buf, 0, len); 157 p_buf->offset = L2CAP_MIN_OFFSET; 158 p = (UINT8 *)(p_buf + 1) + p_buf->offset; 162 p_buf->len = 1 331 BT_HDR *p_buf; local 889 BT_HDR *p_buf; local 1294 tGATTS_SRV_CHG *p_buf = NULL; local 1320 tGATT_VALUE *p_buf = (tGATT_VALUE *)GKI_getfirst(&p_tcb->pending_ind_q); local [all...] |
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_link.c | 41 static BOOLEAN l2c_link_send_to_lower (tL2C_LCB *p_lcb, BT_HDR *p_buf); 1653 BT_HDR *p_buf; local [all...] |
/external/libnfc-nci/src/nfa/hci/ |
nfa_hci_utils.c | 35 static void handle_debug_loopback (BT_HDR *p_buf, UINT8 pipe, UINT8 type, UINT8 instruction); 320 BT_HDR *p_buf; local 340 if ((p_buf = (BT_HDR *) GKI_getpoolbuf (NFC_RW_POOL_ID)) != NULL) 342 p_buf->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; 347 p_data = (UINT8 *) (p_buf + 1) + p_buf->offset; 360 p_buf->len = 1; 367 p_buf->len++; 374 p_buf->len += data_len; 381 DispHcp (((UINT8 *) (p_buf + 1) + p_buf->offset), p_buf->len, FALSE, (BOOLEAN) ((p_buf->len - data_len) == 2)) [all...] |
/external/libnfc-nci/src/nfc/int/ |
ce_int.h | 53 UINT8 *p_buf; /* Current contents for READs */ member in struct:__anon9436
|
/device/common/libbt/src/ |
hardware.c | 515 static uint8_t hw_config_set_bdaddr(HC_BT_HDR *p_buf) 518 uint8_t *p = (uint8_t *) (p_buf + 1); 533 p_buf->len = HCI_CMD_PREAMBLE_SIZE + BD_ADDR_LEN; 536 retval = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_BD_ADDR, p_buf, \ 553 static uint8_t hw_config_read_bdaddr(HC_BT_HDR *p_buf) 556 uint8_t *p = (uint8_t *) (p_buf + 1); 561 p_buf->len = HCI_CMD_PREAMBLE_SIZE; 564 retval = bt_vendor_cbacks->xmit_cb(HCI_READ_LOCAL_BDADDR, p_buf, \ 586 HC_BT_HDR *p_buf=NULL; local 599 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + 911 HC_BT_HDR *p_buf=NULL; local 974 HC_BT_HDR *p_buf = NULL; local 1025 HC_BT_HDR *p_buf = NULL; local 1124 HC_BT_HDR *p_buf = NULL; local [all...] |
/external/bluetooth/bluedroid/bta/av/ |
bta_av_act.c | 247 tBTA_AV_RC_MSG *p_buf; local 271 if ((p_buf = (tBTA_AV_RC_MSG *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_RC_MSG) + data_len))) != NULL) 273 p_buf->hdr.event = BTA_AV_AVRC_MSG_EVT; 274 p_buf->handle = handle; 275 p_buf->label = label; 276 p_buf->opcode = opcode; 277 memcpy(&p_buf->msg, p_msg, sizeof(tAVRC_MSG)); 280 memcpy((UINT8 *)(p_buf + 1), p_data, data_len); 281 *p_p_data = (UINT8 *)(p_buf + 1); 283 bta_sys_sendmsg(p_buf); 1467 tBTA_AV_API_OPEN *p_buf; local 1865 BT_HDR *p_buf; local [all...] |
bta_av_main.c | 209 BT_HDR *p_buf; local 224 if (p_scb && (p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 228 p_buf->event = p->event; 229 p_buf->layer_specific = p_scb->hndl; 230 bta_sys_sendmsg(p_buf); 832 tBTA_AV_ROLE_RES *p_buf; local 843 (p_buf = (tBTA_AV_ROLE_RES *) GKI_getbuf(sizeof(tBTA_AV_ROLE_RES))) != NULL) 852 p_buf->hdr.event = BTA_AV_ROLE_CHANGE_EVT; 853 p_buf->hdr.layer_specific = p_scb->hndl; 854 p_buf->new_role = id [all...] |
/external/bluetooth/bluedroid/btif/co/ |
bta_av_co.c | 753 BT_HDR *p_buf; local 756 p_buf = btif_media_aa_readbuf(); 757 if (p_buf != NULL) 763 * p_buf->layer_specific : number of SBC frames in the packet 764 * p_buf->word[0] : timestamp 767 *p_timestamp = *((UINT32 *) (p_buf + 1)); 770 bta_av_sbc_bld_hdr(p_buf, p_buf->layer_specific); 783 p_buf->len++; 784 p_buf->offset-- [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_sock_rfc.c | 805 static int send_data_to_app(int fd, BT_HDR *p_buf) 807 if(p_buf->len == 0) 809 int sent = send(fd, (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len, MSG_DONTWAIT); 810 if(sent == p_buf->len) 813 if(sent > 0 && sent < p_buf->len) 816 APPL_TRACE_ERROR2("send partial, sent:%d, p_buf->len:%d", sent, p_buf->len); 817 p_buf->offset += sent 835 BT_HDR *p_buf = GKI_dequeue(&rs->incoming_que); local [all...] |
/external/bluetooth/bluedroid/hci/src/ |
hci_h4.c | 158 void btsnoop_capture(HC_BT_HDR *p_buf, uint8_t is_rcvd); 159 uint8_t hci_h4_send_int_cmd(uint16_t opcode, HC_BT_HDR *p_buf, \ 196 HC_BT_HDR *p_buf = (HC_BT_HDR *) p_mem; local 198 p = (uint8_t *)(p_buf + 1) + 3; 210 p_buf->event = MSG_STACK_TO_HC_HCI_CMD; 211 p_buf->offset = 0; 212 p_buf->layer_specific = 0; 213 p_buf->len = 3; 215 p = (uint8_t *) (p_buf + 1); 219 if ((status = hci_h4_send_int_cmd(HCI_LE_READ_BUFFER_SIZE, p_buf, \ 451 HC_BT_HDR *p_buf; local 1025 HC_BT_HDR *p_buf = NULL; local [all...] |