/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
NonVolatileStore.cpp | 50 ** Parameters p_buf - buffer to read the data into. 63 void nfc_hal_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block) 82 size_t actualReadData = read (fileStream, p_buf, nbytes); 110 ** Parameters p_buf - buffer to read the data from. 121 void nfc_hal_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block) 139 unsigned short checksum = crcChecksumCompute (p_buf, nbytes); 141 size_t actualWrittenData = write (fileStream, p_buf, nbytes);
|
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/ |
nfc_hal_dm.c | 893 NFC_HDR *p_buf; local 904 if ((p_buf = (NFC_HDR *)GKI_getpoolbuf (NFC_HAL_NCI_POOL_ID)) != NULL) 908 p_buf->offset = NFC_HAL_NCI_MSG_OFFSET_SIZE; 909 p_buf->event = NFC_HAL_EVT_TO_NFC_NCI; 910 p_buf->len = len; 912 memcpy ((UINT8*) (p_buf + 1) + p_buf->offset, p_data, len); 917 ps = (UINT8 *)(p_buf + 1) + p_buf->offset; 924 nfc_hal_nci_send_cmd (p_buf); 943 NFC_HDR *p_buf = nfc_hal_cb.ncit_cb.p_pend_cmd; local 995 NFC_HDR *p_buf; local [all...] |
/system/bt/stack/gap/ |
gap_conn.c | 361 BT_HDR *p_buf = fixed_queue_try_peek_first(p_ccb->rx_queue); local 362 if (p_buf == NULL) 365 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; 370 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, copy_len); 374 if (p_buf->len > copy_len) 376 p_buf->offset += copy_len; 377 p_buf->len -= copy_len; 448 BT_HDR *p_buf; local 490 BT_HDR *p_buf; local 1067 BT_HDR *p_buf; local [all...] |
/system/bt/bta/sdp/ |
bta_sdp_api.c | 71 tBTA_SDP_API_ENABLE *p_buf = local 73 p_buf->hdr.event = BTA_SDP_API_ENABLE_EVT; 74 p_buf->p_cback = p_cback; 75 bta_sys_sendmsg(p_buf);
|
/system/bt/udrv/include/ |
uipc.h | 95 BOOLEAN UIPC_Send(tUIPC_CH_ID ch_id, UINT16 msg_evt, UINT8 *p_buf, UINT16 msglen); 106 UINT32 UIPC_Read(tUIPC_CH_ID ch_id, UINT16 *p_msg_evt, UINT8 *p_buf, UINT32 len);
|
/system/bt/stack/avrc/ |
avrc_opt.c | 184 BT_HDR *p_buf = avrc_vendor_msg(p_msg); local 185 if (p_buf) 186 return AVCT_MsgReq( handle, label, AVCT_CMD, p_buf); 219 BT_HDR *p_buf = avrc_vendor_msg(p_msg); local 220 if (p_buf) 221 return AVCT_MsgReq( handle, label, AVCT_RSP, p_buf);
|
/system/bt/stack/gatt/ |
gatt_sr.c | 125 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(tGATTS_RSP)); local 132 memcpy((void *)p_buf, (const void *)p_msg, sizeof(tGATTS_RSP)); 133 fixed_queue_enqueue(p_cmd->multi_rsp_q, p_buf); 145 p_buf = (BT_HDR *)osi_calloc(len); 146 p_buf->offset = L2CAP_MIN_OFFSET; 147 p = (UINT8 *)(p_buf + 1) + p_buf->offset; 151 p_buf->len = 1; 174 total_len = (p_buf->len + p_rsp->attr_value.len); 193 p_buf->len += len 874 BT_HDR *p_buf; local 1279 tGATTS_SRV_CHG *p_buf = NULL; local 1307 tGATT_VALUE *p_buf = (tGATT_VALUE *)fixed_queue_try_peek_first(p_tcb->pending_ind_q); local [all...] |
/system/bt/bta/hh/ |
bta_hh_le.c | 1330 tBTA_HH_LE_CLOSE *p_buf = local 1639 BT_HDR *p_buf = NULL; local 2106 UINT8 *p_buf; local [all...] |
/external/libnfc-nci/src/nfa/hci/ |
nfa_hci_utils.c | 37 static void handle_debug_loopback (BT_HDR *p_buf, UINT8 pipe, UINT8 type, UINT8 instruction); 318 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...] |
/system/bt/stack/l2cap/ |
l2c_ble.c | 1399 tL2CAP_SEC_DATA *p_buf = NULL; local 1502 tL2CAP_SEC_DATA *p_buf = (tL2CAP_SEC_DATA*) osi_malloc((UINT16)sizeof(tL2CAP_SEC_DATA)); local [all...] |
l2c_link.c | 48 static BOOLEAN l2c_link_send_to_lower (tL2C_LCB *p_lcb, BT_HDR *p_buf); 444 BT_HDR *p_buf; local 447 p_buf = list_front(p_lcb->link_xmit_data_q); 448 list_remove(p_lcb->link_xmit_data_q, p_buf); 449 osi_free(p_buf); [all...] |
/system/bt/stack/rfcomm/ |
port_rfc.c | 829 void PORT_DataInd (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf) 838 p_buf->len, p_mcb, p_port, dlci); 841 osi_free(p_buf); 849 if(p_port->p_data_co_callback(p_port->inx, (UINT8*)p_buf, -1, DATA_CO_CALLBACK_TYPE_INCOMING)) 852 //osi_free(p_buf); 862 p_port->p_data_callback (p_port->inx, (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len); 863 osi_free(p_buf); 868 if ((p_port->rx.queue_size + p_buf->len > PORT_RX_CRITICAL_WM 993 BT_HDR *p_buf; local [all...] |
rfc_int.h | 54 extern void RFCOMM_DataReq (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf); 295 extern void rfc_process_test_rsp (tRFC_MCB *p_rfc_mcb, BT_HDR *p_buf); 319 extern void rfc_check_send_cmd(tRFC_MCB *p_mcb, BT_HDR *p_buf); 330 extern void rfc_send_test (tRFC_MCB *p_rfc_mcb, BOOLEAN is_command, BT_HDR *p_buf); 338 extern void rfc_send_buf_uih (tRFC_MCB *p_rfc_mcb, UINT8 dlci, BT_HDR *p_buf); 340 extern void rfc_process_mx_message (tRFC_MCB *p_rfc_mcb, BT_HDR *p_buf); 341 extern UINT8 rfc_parse_data (tRFC_MCB *p_rfc_mcb, MX_FRAME *p_frame, BT_HDR *p_buf); 361 extern void PORT_DataInd (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf);
|
/system/bt/btif/src/ |
btif_sock_rfc.c | 736 static sent_status_t send_data_to_app(int fd, BT_HDR *p_buf) { 737 if (p_buf->len == 0) 741 OSI_NO_INTR(sent = send(fd, p_buf->data + p_buf->offset, p_buf->len, 754 if (sent == p_buf->len) 757 p_buf->offset += sent; 758 p_buf->len -= sent; 764 BT_HDR *p_buf = list_front(slot->incoming_queue); local 765 switch (send_data_to_app(slot->fd, p_buf)) { [all...] |
btif_media_task.c | 1041 BT_HDR *p_buf = osi_malloc(sizeof(BT_HDR)); local 1061 tBTIF_MEDIA_SINK_CFG_UPDATE *p_buf = local 1289 tBTIF_MEDIA_SINK_FOCUS_UPDATE *p_buf = local 1455 BT_HDR *p_buf = osi_malloc(sizeof(BT_HDR)); local 1614 tBTIF_MEDIA_INIT_AUDIO *p_buf = osi_malloc(sizeof(tBTIF_MEDIA_INIT_AUDIO)); local 1634 tBTIF_MEDIA_UPDATE_AUDIO *p_buf = local 1655 tBTIF_MEDIA_INIT_AUDIO_FEEDING *p_buf = local 1676 BT_HDR *p_buf = osi_malloc(sizeof(BT_HDR)); local 1695 BT_HDR *p_buf = osi_malloc(sizeof(BT_HDR)); local 1746 BT_HDR *p_buf = osi_malloc(sizeof(BT_HDR)); local 2241 tBTIF_MEDIA_SINK_CFG_UPDATE *p_buf = (tBTIF_MEDIA_SINK_CFG_UPDATE*) p_msg; local 2783 BT_HDR *p_buf = fixed_queue_try_dequeue(btif_media_cb.TxAaQ); local 2988 BT_HDR *p_buf = osi_malloc(BTIF_MEDIA_AA_BUF_SIZE); local [all...] |
/system/bt/stack/bnep/ |
bnep_main.c | 448 BT_HDR *p_buf = (BT_HDR *)fixed_queue_try_dequeue(p_bcb->xmit_q); local 450 if (!p_buf) 453 L2CA_DataWrite (l2cap_cid, p_buf); 475 static void bnep_data_ind (UINT16 l2cap_cid, BT_HDR *p_buf) 478 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; 479 UINT16 rem_len = p_buf->len; 490 osi_free(p_buf); 500 BNEP_TRACE_EVENT ("BNEP - rcvd frame, bad len: %d type: 0x%02x", p_buf->len, type); 501 osi_free(p_buf); [all...] |
/external/libnfc-nci/src/static-lib-adapt/ |
ProtoDispBluetoothHci.c | 136 void ProtoDispBluetoothHciCmd (BT_HDR *p_buf) 140 UINT8 * p = (UINT8 *)(p_buf + 1) + p_buf->offset;
|
/hardware/broadcom/libbt/src/ |
bt_vendor_brcm_a2dp.c | 155 HC_BT_HDR *p_buf; local 161 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc( 163 if (p_buf) 165 p_buf->event = MSG_STACK_TO_HC_HCI_CMD; 166 p_buf->offset = 0; 167 p_buf->layer_specific = 0; 168 p_buf->len = HCI_CMD_PREAMBLE_SIZE + len; 169 p = (uint8_t *)(p_buf + 1); 176 log_bin_to_hexstr((uint8_t *)(p_buf + 1), HCI_CMD_PREAMBLE_SIZE + len, __FUNCTION__); 178 if (bt_vendor_cbacks->xmit_cb(cmd, p_buf, cback) 643 HC_BT_HDR *p_buf = NULL; local [all...] |
/system/bt/stack/mcap/ |
mca_main.c | 444 void mca_tc_data_ind(tMCA_TC_TBL *p_tbl, BT_HDR *p_buf) 460 p = (UINT8*)(p_buf+1) + p_buf->offset; 467 if (p_buf->len != mca_std_msg_len[*p]) 470 , __func__, *p, mca_std_msg_len[*p], p_buf->len); 477 , __func__, *p, p_buf->len); 483 MCA_TRACE_ERROR ("%s() - bad opcode: %d len:%d", __func__, *p, p_buf->len); 488 p_buf->layer_specific = rej_rsp_code; 490 mca_ccb_event(p_ccb, event, (tMCA_CCB_EVT *) p_buf); 493 osi_free(p_buf); [all...] |
/external/libnfc-nci/src/udrv/include/ |
uipc.h | 127 UDRV_API extern BOOLEAN UIPC_Send(tUIPC_CH_ID ch_id, UINT16 msg_evt, UINT8 *p_buf, UINT16 msglen); 138 UDRV_API extern UINT32 UIPC_Read(tUIPC_CH_ID ch_id, UINT16 *p_msg_evt, UINT8 *p_buf, UINT32 len);
|
/system/bt/bta/hf_client/ |
bta_hf_client_sco.c | 226 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); local 227 p_buf->event = BTA_HF_CLIENT_SCO_OPEN_EVT; 228 p_buf->layer_specific = bta_hf_client_cb.scb.conn_handle; 229 bta_sys_sendmsg(p_buf); 254 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); local 255 p_buf->event = BTA_HF_CLIENT_SCO_CLOSE_EVT; 256 p_buf->layer_specific = bta_hf_client_cb.scb.conn_handle;; 257 bta_sys_sendmsg(p_buf);
|
/external/libnfc-nci/src/nfa/include/ |
nfa_mem_co.h | 67 NFC_API extern void nfa_mem_co_free (void *p_buf);
|
/system/bt/bta/include/ |
bta_hl_co.h | 167 ** p_buf - the buffer pointer 175 UINT16 buf_size, UINT8 *p_buf, UINT16 evt); 205 ** p_buf - the buffer pointer 213 UINT16 buf_size, UINT8 *p_buf, UINT16 evt);
|
/system/bt/hci/include/ |
btsnoop_mem.h | 36 void btsnoop_mem_capture(const BT_HDR *p_buf);
|
/system/bt/bta/gatt/ |
bta_gattc_act.c | 220 tBTA_GATTC_INT_START_IF *p_buf = local 222 p_buf->hdr.event = BTA_GATTC_INT_START_IF_EVT; 223 p_buf->client_if = p_cb->cl_rcb[i].client_if; 225 bta_sys_sendmsg(p_buf); 1561 tBTA_GATTC_DATA *p_buf = local 1604 tBTA_GATTC_DATA *p_buf = local 1905 tBTA_GATTC_OP_CMPL *p_buf = (tBTA_GATTC_OP_CMPL *)osi_calloc(len); local [all...] |