/external/bluetooth/bluedroid/stack/avrc/ |
avrc_api.c | 539 BT_HDR *p_buf; local 544 p_buf = avrc_pass_msg(p_msg); 545 if (p_buf) 546 return AVCT_MsgReq( handle, label, AVCT_CMD, p_buf); 578 BT_HDR *p_buf; local 582 p_buf = avrc_pass_msg(p_msg); 583 if (p_buf) 584 return AVCT_MsgReq( handle, label, AVCT_RSP, p_buf);
|
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_main.c | 63 void l2c_bcst_msg( BT_HDR *p_buf, UINT16 psm ) 68 if (p_buf->offset < L2CAP_BCST_MIN_OFFSET) 70 L2CAP_TRACE_ERROR1 ("L2CAP - cannot send buffer, offset: %d", p_buf->offset); 71 GKI_freebuf (p_buf); 76 p_buf->offset -= (HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_BCST_OVERHEAD); 77 p_buf->len += L2CAP_PKT_OVERHEAD + L2CAP_BCST_OVERHEAD; 80 p = (UINT8 *)(p_buf + 1) + p_buf->offset; 86 if (p_buf->len > btu_cb.hcit_acl_data_size) 92 UINT16_TO_STREAM (p, p_buf->len) 806 BT_HDR *p_buf, *p_buf1; local [all...] |
l2c_api.c | 1714 BT_HDR *p_buf1, *p_buf; local [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...] |
/external/bluetooth/bluedroid/stack/avdt/ |
avdt_ad.c | 459 void avdt_ad_tc_data_ind(tAVDT_TC_TBL *p_tbl, BT_HDR *p_buf) 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) 510 return L2CA_DataWrite(avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, p_buf);
|
/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/bta/dm/ |
bta_dm_pm.c | 695 tBTA_DM_PM_BTM_STATUS *p_buf; local 697 if ((p_buf = (tBTA_DM_PM_BTM_STATUS *) GKI_getbuf(sizeof(tBTA_DM_PM_BTM_STATUS))) != NULL) 699 p_buf->hdr.event = BTA_DM_PM_BTM_STATUS_EVT; 700 p_buf->status = status; 701 p_buf->value = value; 702 p_buf->hci_status = hci_status; 703 bdcpy(p_buf->bd_addr, bd_addr); 704 bta_sys_sendmsg(p_buf); 720 tBTA_DM_PM_TIMER *p_buf; local 749 if ((p_buf = (tBTA_DM_PM_TIMER *) GKI_getbuf(sizeof(tBTA_DM_PM_TIMER))) != NULL [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_auth.c | 95 void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf) 99 UINT8 *p, *p_orig = (UINT8 *)(p_buf + 1) + p_buf->offset; 102 cmd_len = p_buf->len - GATT_AUTH_SIGN_LEN + 4; 109 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig);
|
gatt_api.c | 86 tGATT_HDL_LIST_ELEM *p_buf; local 89 if ((p_buf = gatt_alloc_hdl_buffer()) != NULL) 91 p_buf->asgn_range = *p_hndl_range; 92 status = gatt_add_an_item_to_list(&gatt_cb.hdl_list_info, p_buf); 149 tGATTS_PENDING_NEW_SRV_START *p_buf=NULL; local 224 if ( (p_buf = gatt_add_pending_new_srv_start(&p_list->asgn_range)) == NULL) 250 if (p_buf) 251 GKI_freebuf (GKI_remove_from_queue (&gatt_cb.pending_new_srv_start_q, p_buf)); 399 tGATTS_PENDING_NEW_SRV_START *p_buf; local 418 if ( (p_buf = gatt_sr_is_new_srv_chg(&p_list->asgn_range.app_uuid128 472 tGATTS_PENDING_NEW_SRV_START *p_buf; local 601 tGATT_VALUE *p_buf; local 670 BT_HDR *p_buf; local [all...] |
/external/bluetooth/bluedroid/stack/btu/ |
btu_hcif.c | 148 static void btu_hcif_store_cmd (UINT8 controller_id, BT_HDR *p_buf) 153 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; 165 if ((p_cmd = HCI_GET_CMD_BUF(p_buf->len + p_buf->offset - HCIC_PREAMBLE_SIZE)) == NULL) 171 memcpy (p_cmd, p_buf, sizeof(BT_HDR)); 184 opcode, *(UINT32 *)(p_buf + 1)); 186 memcpy ((UINT8 *)(p_cmd + 1), (UINT8 *)(p_buf + 1), sizeof(void *)); 190 (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len) [all...] |
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
userial_linux.c | 689 extern BOOLEAN gki_chk_buf_damage(void *p_buf); 709 BT_HDR *p_buf = NULL; local 718 BT_HDR *p_buf; local 721 if ((p_buf = (BT_HDR *) GKI_getpoolbuf( USERIAL_POOL_ID ) )!= NULL) 723 p_buf->offset = 0; 724 p_buf->layer_specific = 0; 726 current_packet = (UINT8 *) (p_buf + 1); 732 ALOGE( "userial_read_thread(): unable to get buffer from GKI p_buf = %p poolid = %d\n", p_buf, USERIAL_POOL_ID); 744 p_buf->len = (UINT16)rx_length 1362 BT_HDR *p_buf = NULL; local [all...] |
/external/bluetooth/bluedroid/bta/ag/ |
bta_ag_at.c | 188 void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) 204 if ((p_cb->cmd_pos == 0) && (p_buf[i] == 0)) 210 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++];
|
bta_ag_sdp.c | 72 tBTA_AG_DISC_RESULT *p_buf; local 90 if ((p_buf = (tBTA_AG_DISC_RESULT *) GKI_getbuf(sizeof(tBTA_AG_DISC_RESULT))) != NULL) 92 p_buf->hdr.event = event; 93 p_buf->hdr.layer_specific = idx; 94 p_buf->status = status; 95 bta_sys_sendmsg(p_buf);
|
/external/bluetooth/bluedroid/main/ |
bte_main.c | 472 ** boundary. The 'p_buf' is not intended to be used here 478 static int dealloc(TRANSAC transac, char *p_buf) 497 ** boundary. The 'p_buf' and 'len' parameters are not intended 504 static int data_ind(TRANSAC transac, char *p_buf, int len) 530 ** boundary. The 'p_buf' is not intended to be used here 536 static int tx_result(TRANSAC transac, char *p_buf, \
|
/external/bluetooth/bluedroid/stack/pan/ |
pan_main.c | 531 ** p_buf - pointer to the data buffer 542 BT_HDR *p_buf, 556 GKI_freebuf (p_buf); 564 GKI_freebuf (p_buf); 568 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; 569 len = p_buf->len; 597 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); 601 GKI_freebuf (p_buf); 612 result = BNEP_WriteBuf (dst_pcb->handle, dst, p_buf, protocol, src, ext) [all...] |
/external/bluetooth/bluedroid/stack/rfcomm/ |
rfc_utils.c | 187 void *p_buf; local 191 while ((p_buf = GKI_dequeue(&p_mcb->cmd_q)) != NULL) 192 GKI_freebuf(p_buf); 444 void rfc_check_send_cmd(tRFC_MCB *p_mcb, BT_HDR *p_buf) 449 if (p_buf != NULL) 451 GKI_enqueue(&p_mcb->cmd_q, p_buf);
|
rfc_int.h | 54 extern void RFCOMM_DataReq (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf); 297 extern void rfc_process_test_rsp (tRFC_MCB *p_rfc_mcb, BT_HDR *p_buf); 321 extern void rfc_check_send_cmd(tRFC_MCB *p_mcb, BT_HDR *p_buf); 332 extern void rfc_send_test (tRFC_MCB *p_rfc_mcb, BOOLEAN is_command, BT_HDR *p_buf); 340 extern void rfc_send_buf_uih (tRFC_MCB *p_rfc_mcb, UINT8 dlci, BT_HDR *p_buf); 342 extern void rfc_process_mx_message (tRFC_MCB *p_rfc_mcb, BT_HDR *p_buf); 343 extern UINT8 rfc_parse_data (tRFC_MCB *p_rfc_mcb, MX_FRAME *p_frame, BT_HDR *p_buf); 363 extern void PORT_DataInd (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf);
|
/external/bluetooth/bluedroid/bta/av/ |
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/bta/include/ |
bta_pan_co.h | 155 BTA_API extern void bta_pan_co_tx_writebuf(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf,
|
/external/bluetooth/bluedroid/btif/include/ |
btif_hh.h | 64 BT_HDR *p_buf; member in struct:__anon2402
|
/external/bluetooth/bluedroid/stack/avct/ |
avct_l2c.c | 45 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) 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/include/ |
hidh_api.h | 81 BT_HDR *p_buf ); /* Pointer data corresponding to the event. */
|
/external/bluetooth/bluedroid/hci/src/ |
btsnoop.c | 627 void btsnoop_capture(HC_BT_HDR *p_buf, uint8_t is_rcvd) 629 uint8_t *p = (uint8_t *)(p_buf + 1) + p_buf->offset; 632 hci_btsnoop_fd, p_buf->event, is_rcvd, ext_parser_fd); 642 switch (p_buf->event & MSG_EVT_MASK) 660 send_ext_parser((char*)p, p_buf->len+1); 670 switch (p_buf->event & MSG_EVT_MASK)
|
/external/bluetooth/bluedroid/stack/mcap/ |
mca_cact.c | 256 BT_HDR *p_buf; local 406 p_buf = (BT_HDR *)GKI_getbuf (MCA_CTRL_MTU); 407 if (p_buf) 409 p_buf->offset = L2CAP_MIN_OFFSET; 410 p = p_start = (UINT8*)(p_buf + 1) + L2CAP_MIN_OFFSET; 421 p_buf->len = p - p_start; 422 L2CA_DataWrite (p_ccb->lcid, p_buf);
|