/external/bluetooth/bluedroid/bta/ag/ |
H A D | bta_ag_at.c | 188 void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) argument 204 if ((p_cb->cmd_pos == 0) && (p_buf[i] == 0)) 210 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++];
|
H A D | 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 [all...] |
H A D | bta_ag_main.c | 288 BT_HDR *p_buf; local 291 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 293 p_buf->event = p_tle->event; 294 p_buf->layer_specific = bta_ag_scb_to_idx((tBTA_AG_SCB *) p_tle->param); 295 bta_sys_sendmsg(p_buf);
|
H A D | bta_ag_rfc.c | 91 BT_HDR *p_buf; local 105 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 107 p_buf->event = BTA_AG_RFC_DATA_EVT; 108 p_buf->layer_specific = handle; 109 bta_sys_sendmsg(p_buf); 126 tBTA_AG_RFC *p_buf; local 178 if ((p_buf = (tBTA_AG_RFC *) GKI_getbuf(sizeof(tBTA_AG_RFC))) != NULL) 180 p_buf->hdr.event = event; 181 p_buf->hdr.layer_specific = handle; 182 p_buf 406 tBTA_AG_RFC *p_buf; local [all...] |
H A D | bta_ag_sco.c | 154 BT_HDR *p_buf; local 174 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 176 p_buf->event = BTA_AG_SCO_OPEN_EVT; 177 p_buf->layer_specific = handle; 178 bta_sys_sendmsg(p_buf); 202 BT_HDR *p_buf; local 260 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 262 p_buf->event = BTA_AG_SCO_CLOSE_EVT; 263 p_buf->layer_specific = handle; 264 bta_sys_sendmsg(p_buf); 724 BT_HDR *p_buf; local [all...] |
H A D | bta_ag_sdp.c | 73 tBTA_AG_DISC_RESULT *p_buf; local 91 if ((p_buf = (tBTA_AG_DISC_RESULT *) GKI_getbuf(sizeof(tBTA_AG_DISC_RESULT))) != NULL) 93 p_buf->hdr.event = event; 94 p_buf->hdr.layer_specific = idx; 95 p_buf->status = status; 96 bta_sys_sendmsg(p_buf);
|
/external/bluetooth/bluedroid/bta/av/ |
H A D | bta_av_aact.c | 767 tBTA_AV_API_OPEN *p_buf = &p_scb->q_info.open; local 804 p_buf->switch_res = switch_res; 805 bta_av_do_disc_a2d(p_scb, (tBTA_AV_DATA *)p_buf); 2031 BT_HDR *p_buf; local 2054 while((p_buf = (BT_HDR*)GKI_dequeue (&p_scb->q_info.a2d)) != NULL) 2055 GKI_freebuf(p_buf); 2193 BT_HDR *p_buf; local 2209 p_buf = (BT_HDR *)GKI_dequeue (&p_scb->q_info.a2d); 2210 if(p_buf) 2213 timestamp = *(UINT32 *)(p_buf 3053 tBTA_AV_API_OPEN *p_buf; local [all...] |
H A D | bta_av_act.c | 249 tBTA_AV_RC_MSG *p_buf; local 273 if ((p_buf = (tBTA_AV_RC_MSG *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_RC_MSG) + data_len))) != NULL) 275 p_buf->hdr.event = BTA_AV_AVRC_MSG_EVT; 276 p_buf->handle = handle; 277 p_buf->label = label; 278 p_buf->opcode = opcode; 279 memcpy(&p_buf->msg, p_msg, sizeof(tAVRC_MSG)); 282 memcpy((UINT8 *)(p_buf + 1), p_data, data_len); 283 *p_p_data = (UINT8 *)(p_buf + 1); 285 bta_sys_sendmsg(p_buf); 1564 tBTA_AV_API_OPEN *p_buf; local 1965 BT_HDR *p_buf; local [all...] |
H A D | bta_av_api.c | 63 tBTA_AV_API_ENABLE *p_buf; local 68 if ((p_buf = (tBTA_AV_API_ENABLE *) GKI_getbuf(sizeof(tBTA_AV_API_ENABLE))) != NULL) 70 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; 71 p_buf->p_cback = p_cback; 72 p_buf->features = features; 73 p_buf->sec_mask = sec_mask; 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 114 tBTA_AV_API_REG *p_buf; local 147 BT_HDR *p_buf; local 171 tBTA_AV_API_OPEN *p_buf; local 197 BT_HDR *p_buf; local 218 tBTA_AV_API_DISCNT *p_buf; local 239 BT_HDR *p_buf; local 259 BT_HDR *p_buf; local 286 tBTA_AV_API_STOP *p_buf; local 313 tBTA_AV_API_RCFG *p_buf; local 341 tBTA_AV_API_PROTECT_REQ *p_buf; local 375 tBTA_AV_API_PROTECT_RSP *p_buf; local 408 tBTA_AV_API_REMOTE_CMD *p_buf; local 436 tBTA_AV_API_VENDOR *p_buf; local 475 tBTA_AV_API_VENDOR *p_buf; local 515 tBTA_AV_API_OPEN_RC *p_buf; local 536 tBTA_AV_API_CLOSE_RC *p_buf; local 561 tBTA_AV_API_META_RSP *p_buf; local 594 tBTA_AV_API_META_RSP *p_buf; local [all...] |
H A D | 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 [all...] |
H A D | bta_av_main.c | 217 BT_HDR *p_buf; local 232 if (p_scb && (p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 236 p_buf->event = p->event; 237 p_buf->layer_specific = p_scb->hndl; 238 bta_sys_sendmsg(p_buf); 917 tBTA_AV_ROLE_RES *p_buf; local 929 (p_buf = (tBTA_AV_ROLE_RES *) GKI_getbuf(sizeof(tBTA_AV_ROLE_RES))) != NULL) 938 p_buf->hdr.event = BTA_AV_ROLE_CHANGE_EVT; 939 p_buf->hdr.layer_specific = p_scb->hndl; 940 p_buf 1179 bta_av_dup_audio_buf(tBTA_AV_SCB *p_scb, BT_HDR *p_buf) argument [all...] |
H A D | bta_av_sbc.c | 656 void bta_av_sbc_bld_hdr(BT_HDR *p_buf, UINT16 fr_per_pkt) argument 660 p_buf->offset -= BTA_AV_SBC_HDR_SIZE; 661 p = (UINT8 *) (p_buf + 1) + p_buf->offset; 662 p_buf->len += BTA_AV_SBC_HDR_SIZE;
|
/external/bluetooth/bluedroid/bta/dm/ |
H A D | bta_dm_act.c | 4175 BT_HDR *p_buf; local 4214 if ((p_buf = (BT_HDR *)GKI_getpoolbuf(BTM_CMD_POOL_ID)) == NULL) 4219 p = (UINT8 *)p_buf + BTM_HCI_EIR_OFFSET; 4242 p = (UINT8 *)p_buf + BTM_HCI_EIR_OFFSET; /* reset p */ 4451 BTM_WriteEIR( p_buf );
|
H A D | 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);
|
H A D | bta_dm_pm.c | 673 tBTA_DM_PM_BTM_STATUS *p_buf; local 675 if ((p_buf = (tBTA_DM_PM_BTM_STATUS *) GKI_getbuf(sizeof(tBTA_DM_PM_BTM_STATUS))) != NULL) 677 p_buf->hdr.event = BTA_DM_PM_BTM_STATUS_EVT; 678 p_buf->status = status; 679 p_buf->value = value; 680 p_buf->hci_status = hci_status; 681 bdcpy(p_buf->bd_addr, bd_addr); 682 bta_sys_sendmsg(p_buf); 698 tBTA_DM_PM_TIMER *p_buf; local 727 if ((p_buf [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
H A D | bta_gattc_act.c | 183 tBTA_GATTC_INT_START_IF *p_buf; local 215 if ((p_buf = (tBTA_GATTC_INT_START_IF *) GKI_getbuf(sizeof(tBTA_GATTC_INT_START_IF))) != NULL) 217 p_buf->hdr.event = BTA_GATTC_INT_START_IF_EVT; 218 p_buf->client_if = p_cb->cl_rcb[i].client_if; 220 bta_sys_sendmsg(p_buf); 1792 tBTA_GATTC_DATA *p_buf; local 1800 if ((p_buf = (tBTA_GATTC_DATA *) GKI_getbuf(sizeof(tBTA_GATTC_DATA))) != NULL) 1802 memset(p_buf, 0, sizeof(tBTA_GATTC_DATA)); 1804 p_buf->int_conn.hdr.event = connected ? BTA_GATTC_INT_CONN_EVT: 1806 p_buf 1828 tBTA_GATTC_DATA *p_buf; local 2106 tBTA_GATTC_OP_CMPL *p_buf; local [all...] |
H A D | bta_gattc_api.c | 59 BT_HDR *p_buf; local 66 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 68 p_buf->event = BTA_GATTC_API_DISABLE_EVT; 69 bta_sys_sendmsg(p_buf); 90 tBTA_GATTC_API_REG *p_buf; local 97 if ((p_buf = (tBTA_GATTC_API_REG *) GKI_getbuf(sizeof(tBTA_GATTC_API_REG))) != NULL) 99 p_buf->hdr.event = BTA_GATTC_API_REG_EVT; 101 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); 102 p_buf->p_cback = p_client_cb; 104 bta_sys_sendmsg(p_buf); 123 tBTA_GATTC_API_DEREG *p_buf; local 152 tBTA_GATTC_API_OPEN *p_buf; local 185 tBTA_GATTC_API_CANCEL_OPEN *p_buf; local 213 BT_HDR *p_buf; local 241 tBTA_GATTC_API_CFG_MTU *p_buf; local 272 tBTA_GATTC_API_SEARCH *p_buf; local 565 tBTA_GATTC_API_READ *p_buf; local 600 tBTA_GATTC_API_READ *p_buf; local 638 tBTA_GATTC_API_READ_MULTI *p_buf; local 691 tBTA_GATTC_API_WRITE *p_buf; local 737 tBTA_GATTC_API_WRITE *p_buf; local 789 tBTA_GATTC_API_WRITE *p_buf; local 831 tBTA_GATTC_API_EXEC *p_buf; local 861 tBTA_GATTC_API_CONFIRM *p_buf; local 1025 tBTA_GATTC_API_OPEN *p_buf; local 1056 tBTA_GATTC_API_LISTEN *p_buf; local 1091 tBTA_GATTC_API_LISTEN *p_buf; local [all...] |
H A D | bta_gattc_cache.c | 139 BT_HDR *p_buf; local 141 if ((p_buf = (BT_HDR *)GKI_getpoolbuf(GATT_DB_POOL_ID)) == NULL) 149 memset(p_buf, 0, GKI_get_buf_size(p_buf)); 150 p_srvc_cb->p_free = (UINT8 *) p_buf; 151 p_srvc_cb->free_byte = GKI_get_buf_size(p_buf); 154 GKI_enqueue(&p_srvc_cb->cache_buffer, p_buf); 159 return p_buf;
|
H A D | bta_gatts_act.c | 187 tBTA_GATTS_INT_START_IF *p_buf; local 241 if ((p_buf = 244 p_buf->hdr.event = BTA_GATTS_INT_START_IF_EVT; 245 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; 247 bta_sys_sendmsg(p_buf);
|
H A D | bta_gatts_api.c | 58 BT_HDR *p_buf; local 66 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 68 p_buf->event = BTA_GATTS_API_DISABLE_EVT; 69 bta_sys_sendmsg(p_buf); 90 tBTA_GATTS_API_REG *p_buf; local 98 if ((p_buf = (tBTA_GATTS_API_REG *) GKI_getbuf(sizeof(tBTA_GATTS_API_REG))) != NULL) 100 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; 103 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); 104 p_buf->p_cback = p_cback; 106 bta_sys_sendmsg(p_buf); 126 tBTA_GATTS_API_DEREG *p_buf; local 160 tBTA_GATTS_API_CREATE_SRVC *p_buf; local 193 tBTA_GATTS_API_ADD_INCL_SRVC *p_buf; local 227 tBTA_GATTS_API_ADD_CHAR *p_buf; local 267 tBTA_GATTS_API_ADD_DESCR *p_buf; local 303 BT_HDR *p_buf; local 331 tBTA_GATTS_API_START *p_buf; local 358 BT_HDR *p_buf; local 389 tBTA_GATTS_API_INDICATION *p_buf; local 429 tBTA_GATTS_API_RSP *p_buf; local 473 tBTA_GATTS_API_OPEN *p_buf; local 505 tBTA_GATTS_API_CANCEL_OPEN *p_buf; local 531 BT_HDR *p_buf; local 559 tBTA_GATTS_API_LISTEN *p_buf; local [all...] |
/external/bluetooth/bluedroid/bta/hf_client/ |
H A D | bta_hf_client_api.c | 61 tBTA_HF_CLIENT_API_ENABLE *p_buf; local 73 if ((p_buf = (tBTA_HF_CLIENT_API_ENABLE *) GKI_getbuf(sizeof(tBTA_HF_CLIENT_API_ENABLE))) != NULL) 75 p_buf->hdr.event = BTA_HF_CLIENT_API_ENABLE_EVT; 76 p_buf->p_cback = p_cback; 77 bta_sys_sendmsg(p_buf); 95 BT_HDR *p_buf; local 97 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 99 p_buf->event = BTA_HF_CLIENT_API_DISABLE_EVT; 100 bta_sys_sendmsg(p_buf); 117 tBTA_HF_CLIENT_API_REGISTER *p_buf; local 149 BT_HDR *p_buf; local 174 tBTA_HF_CLIENT_API_OPEN *p_buf; local 199 BT_HDR *p_buf; local 222 BT_HDR *p_buf; local 245 BT_HDR *p_buf; local 267 tBTA_HF_CLIENT_DATA_VAL *p_buf; local [all...] |
H A D | bta_hf_client_rfc.c | 46 BT_HDR *p_buf; local 57 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 59 p_buf->event = BTA_HF_CLIENT_RFC_DATA_EVT; 60 bta_sys_sendmsg(p_buf); 76 tBTA_HF_CLIENT_RFC *p_buf; local 112 if ((p_buf = (tBTA_HF_CLIENT_RFC *) GKI_getbuf(sizeof(tBTA_HF_CLIENT_RFC))) != NULL) 114 p_buf->hdr.event = event; 115 p_buf->port_handle = port_handle; 116 bta_sys_sendmsg(p_buf); 243 tBTA_HF_CLIENT_RFC *p_buf; local [all...] |
H A D | bta_hf_client_sco.c | 218 BT_HDR *p_buf; local 228 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 230 p_buf->event = BTA_HF_CLIENT_SCO_OPEN_EVT; 231 p_buf->layer_specific = bta_hf_client_cb.scb.conn_handle; 232 bta_sys_sendmsg(p_buf); 255 BT_HDR *p_buf; local 261 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 263 p_buf->event = BTA_HF_CLIENT_SCO_CLOSE_EVT; 264 p_buf->layer_specific = bta_hf_client_cb.scb.conn_handle;; 265 bta_sys_sendmsg(p_buf); [all...] |
H A D | bta_hf_client_sdp.c | 52 tBTA_HF_CLIENT_DISC_RESULT *p_buf; local 67 if ((p_buf = (tBTA_HF_CLIENT_DISC_RESULT *) GKI_getbuf(sizeof(tBTA_HF_CLIENT_DISC_RESULT))) != NULL) 69 p_buf->hdr.event = event; 70 p_buf->status = status; 71 bta_sys_sendmsg(p_buf);
|
/external/bluetooth/bluedroid/bta/hh/ |
H A D | bta_hh_act.c | 1188 tBTA_HH_CBACK_DATA *p_buf = NULL; local 1233 (p_buf = (tBTA_HH_CBACK_DATA *)GKI_getbuf(sizeof(tBTA_HH_CBACK_DATA) + 1236 p_buf->hdr.event = sm_event; 1237 p_buf->hdr.layer_specific = (UINT16)dev_handle; 1238 p_buf->data = data; 1239 bdcpy(p_buf->addr, addr); 1240 p_buf->p_data = pdata; 1242 bta_sys_sendmsg(p_buf);
|