/external/bluetooth/bluedroid/bta/av/ |
bta_av_ci.c | 47 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->err_code = err_code [all...] |
bta_av_api.c | 63 tBTA_AV_API_ENABLE *p_buf; local 70 if ((p_buf = (tBTA_AV_API_ENABLE *) GKI_getbuf(sizeof(tBTA_AV_API_ENABLE))) != NULL) 72 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; 73 p_buf->p_cback = p_cback; 74 p_buf->features = features; 75 p_buf->sec_mask = sec_mask; 76 bta_sys_sendmsg(p_buf); 91 BT_HDR *p_buf; local 94 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 96 p_buf->event = BTA_AV_API_DISABLE_EVT 116 tBTA_AV_API_REG *p_buf; local 148 BT_HDR *p_buf; local 171 tBTA_AV_API_OPEN *p_buf; local 196 BT_HDR *p_buf; local 217 tBTA_AV_API_DISCNT *p_buf; local 238 BT_HDR *p_buf; local 260 tBTA_AV_API_STOP *p_buf; local 287 tBTA_AV_API_RCFG *p_buf; local 315 tBTA_AV_API_PROTECT_REQ *p_buf; local 349 tBTA_AV_API_PROTECT_RSP *p_buf; local 382 tBTA_AV_API_REMOTE_CMD *p_buf; local 410 tBTA_AV_API_VENDOR *p_buf; local 449 tBTA_AV_API_VENDOR *p_buf; local 489 tBTA_AV_API_OPEN_RC *p_buf; local 510 tBTA_AV_API_CLOSE_RC *p_buf; local 535 tBTA_AV_API_META_RSP *p_buf; local 568 tBTA_AV_API_META_RSP *p_buf; local [all...] |
/external/bluetooth/bluedroid/bta/ag/ |
bta_ag_ci.c | 45 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->hdr.layer_specific = handle [all...] |
bta_ag_api.c | 60 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...] |
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/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/bta/pan/ |
bta_pan_api.c | 59 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...] |
bta_pan_ci.c | 55 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 205 BT_HDR * p_buf; local [all...] |
bta_pan_act.c | 58 tBTA_PAN_CONN * p_buf; local 62 if ((p_buf = (tBTA_PAN_CONN *) GKI_getbuf(sizeof(tBTA_PAN_CONN))) != NULL) 66 p_buf->hdr.event = BTA_PAN_CONN_OPEN_EVT; 97 p_buf->hdr.event = BTA_PAN_CONN_CLOSE_EVT; 105 p_buf->result = state; 106 p_buf->hdr.layer_specific = handle; 107 bta_sys_sendmsg(p_buf); 127 BT_HDR *p_buf; local 135 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 137 p_buf->layer_specific = handle 390 BT_HDR *p_buf; local 478 tBTA_PAN_CONN * p_buf; local 552 BT_HDR *p_buf; local 619 BT_HDR * p_buf; local [all...] |
/external/bluetooth/bluedroid/stack/avrc/ |
avrc_opt.c | 192 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);
|
/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/bluetooth/bluedroid/bta/gatt/ |
bta_gatts_api.c | 83 tBTA_GATTS_API_REG *p_buf; local 93 if ((p_buf = (tBTA_GATTS_API_REG *) GKI_getbuf(sizeof(tBTA_GATTS_API_REG))) != NULL) 95 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; 98 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); 99 p_buf->p_cback = p_cback; 101 bta_sys_sendmsg(p_buf); 121 tBTA_GATTS_API_DEREG *p_buf; local 123 if ((p_buf = (tBTA_GATTS_API_DEREG *) GKI_getbuf(sizeof(tBTA_GATTS_API_DEREG))) != NULL) 125 p_buf->hdr.event = BTA_GATTS_API_DEREG_EVT; 126 p_buf->server_if = server_if 155 tBTA_GATTS_API_CREATE_SRVC *p_buf; local 188 tBTA_GATTS_API_ADD_INCL_SRVC *p_buf; local 222 tBTA_GATTS_API_ADD_CHAR *p_buf; local 262 tBTA_GATTS_API_ADD_DESCR *p_buf; local 298 BT_HDR *p_buf; local 326 tBTA_GATTS_API_START *p_buf; local 353 BT_HDR *p_buf; local 384 tBTA_GATTS_API_INDICATION *p_buf; local 424 tBTA_GATTS_API_RSP *p_buf; local 466 tBTA_GATTS_API_OPEN *p_buf; local 497 tBTA_GATTS_API_CANCEL_OPEN *p_buf; local 523 BT_HDR *p_buf; local [all...] |
bta_gattc_api.c | 84 tBTA_GATTC_API_REG *p_buf; local 91 if ((p_buf = (tBTA_GATTC_API_REG *) GKI_getbuf(sizeof(tBTA_GATTC_API_REG))) != NULL) 93 p_buf->hdr.event = BTA_GATTC_API_REG_EVT; 95 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); 96 p_buf->p_cback = p_client_cb; 98 bta_sys_sendmsg(p_buf); 117 tBTA_GATTC_API_DEREG *p_buf; local 119 if ((p_buf = (tBTA_GATTC_API_DEREG *) GKI_getbuf(sizeof(tBTA_GATTC_API_DEREG))) != NULL) 121 p_buf->hdr.event = BTA_GATTC_API_DEREG_EVT; 122 p_buf->client_if = client_if 144 tBTA_GATTC_API_OPEN *p_buf; local 176 tBTA_GATTC_API_CANCEL_OPEN *p_buf; local 204 BT_HDR *p_buf; local 235 tBTA_GATTC_API_SEARCH *p_buf; local 525 tBTA_GATTC_API_READ *p_buf; local 559 tBTA_GATTC_API_READ *p_buf; local 594 tBTA_GATTC_API_READ_MULTI *p_buf; local 647 tBTA_GATTC_API_WRITE *p_buf; local 693 tBTA_GATTC_API_WRITE *p_buf; local 744 tBTA_GATTC_API_WRITE *p_buf; local 786 tBTA_GATTC_API_EXEC *p_buf; local 816 tBTA_GATTC_API_CONFIRM *p_buf; local 990 tBTA_GATTC_API_OPEN *p_buf; local [all...] |
bta_gatts_act.c | 137 tBTA_GATTS_INT_START_IF *p_buf; local 189 if ((p_buf = (tBTA_GATTS_INT_START_IF *) GKI_getbuf(sizeof(tBTA_GATTS_INT_START_IF))) != NULL) 191 p_buf->hdr.event = BTA_GATTS_INT_START_IF_EVT; 192 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; 194 bta_sys_sendmsg(p_buf);
|
/external/bluetooth/bluedroid/bta/hl/ |
bta_hl_api.c | 63 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...] |
bta_hl_sdp.c | 147 UINT8 *p_buf; local 151 if ((p_buf = (UINT8 *)GKI_getbuf(BTA_HL_SUP_FEATURE_SDP_BUF_SIZE)) != NULL) 153 offset = bta_hl_compose_supported_feature_list(p_buf, num_elem, p_elem_list); 155 DATA_ELE_SEQ_DESC_TYPE, (UINT32) offset, p_buf); 156 GKI_freebuf(p_buf);
|
/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/hci/src/ |
utils.c | 94 void utils_enqueue (BUFFER_Q *p_q, void *p_buf) 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) 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) 206 p_buf = utils_remove_from_queue_unlocked(p_q, p_buf) [all...] |
/external/bluetooth/bluedroid/stack/rfcomm/ |
rfc_mx_fsm.c | 483 BT_HDR *p_buf; local 505 while ((p_buf = (BT_HDR *)GKI_dequeue(&p_mcb->cmd_q)) != NULL) 506 GKI_freebuf(p_buf);
|
port_utils.c | 209 BT_HDR *p_buf; local 216 while ((p_buf = (BT_HDR *)GKI_dequeue (&p_port->rx.queue)) != NULL) 217 GKI_freebuf (p_buf); 221 while ((p_buf = (BT_HDR *)GKI_dequeue (&p_port->tx.queue)) != NULL) 222 GKI_freebuf (p_buf);
|
rfc_port_if.c | 334 void RFCOMM_DataReq (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf) 336 rfc_port_sm_execute(port_find_mcb_dlci_port (p_mcb, dlci), RFC_EVENT_DATA, p_buf); local
|
rfc_utils.c | 201 void *p_buf; local 205 while ((p_buf = GKI_dequeue(&p_mcb->cmd_q)) != NULL) 206 GKI_freebuf(p_buf); 458 void rfc_check_send_cmd(tRFC_MCB *p_mcb, BT_HDR *p_buf) 463 if (p_buf != NULL) 465 GKI_enqueue(&p_mcb->cmd_q, p_buf);
|
/hardware/qcom/bt/libbt-vendor/src/ |
hardware.c | 142 HC_BT_HDR *p_buf = NULL; local 151 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ 155 if (p_buf) 157 p_buf->event = MSG_STACK_TO_HC_HCI_CMD; 158 p_buf->offset = 0; 159 p_buf->layer_specific = 0; 160 p_buf->len = HCI_CMD_PREAMBLE_SIZE; 162 p = (uint8_t *) (p_buf + 1); 167 bt_vendor_cbacks->xmit_cb(HCI_RESET, p_buf, hw_epilog_cback);
|
/external/bluetooth/bluedroid/bta/hh/ |
bta_hh_api.c | 62 tBTA_HH_API_ENABLE *p_buf; local 70 p_buf = (tBTA_HH_API_ENABLE *)GKI_getbuf((UINT16)sizeof(tBTA_HH_API_ENABLE)); 72 if (p_buf != NULL) 74 memset(p_buf, 0, sizeof(tBTA_HH_API_ENABLE)); 76 p_buf->hdr.event = BTA_HH_API_ENABLE_EVT; 77 p_buf->p_cback = p_cback; 78 p_buf->sec_mask = sec_mask; 80 bta_sys_sendmsg(p_buf); 96 BT_HDR *p_buf; local 99 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR))) != NULL 117 BT_HDR *p_buf; local 141 tBTA_HH_API_CONN *p_buf; local 171 tBTA_HH_CMD_DATA *p_buf; local 322 BT_HDR *p_buf; local 349 tBTA_HH_MAINT_DEV *p_buf; local 394 tBTA_HH_MAINT_DEV *p_buf; local [all...] |
/external/bluetooth/bluedroid/stack/bnep/ |
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...] |