/external/bluetooth/bluedroid/bta/ag/ |
bta_ag_act.c | 71 typedef void (*tBTA_AG_ATCMD_CBACK)(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, 90 static void bta_ag_cback_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data, tBTA_AG_STATUS status) 95 open.hdr.handle = bta_ag_scb_to_idx(p_scb); 96 open.hdr.app_id = p_scb->app_id; 98 open.service_id = bta_ag_svc_id[p_scb->conn_service]; 106 bdcpy(open.bd_addr, p_scb->peer_addr); 123 void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) 128 p_scb->reg_services = p_data->api_register.services; 129 p_scb->serv_sec_mask = p_data->api_register.sec_mask; 130 p_scb->features = p_data->api_register.features [all...] |
bta_ag_cmd.c | 332 static void bta_ag_send_result(tBTA_AG_SCB *p_scb, UINT8 code, char *p_arg, 349 if(p_scb->conn_service == BTA_AG_HSP) 389 PORT_WriteData(p_scb->conn_handle, buf, (UINT16) (p - buf), &len); 403 static void bta_ag_send_multi_result(tBTA_AG_SCB *p_scb, tBTA_AG_MULTI_RESULT_CB *m_res_cb) 453 PORT_WriteData(p_scb->conn_handle, buf, (UINT16) (p - buf), &len); 467 static void bta_ag_send_ok(tBTA_AG_SCB *p_scb) 469 bta_ag_send_result(p_scb, BTA_AG_RES_OK, NULL, 0); 483 static void bta_ag_send_error(tBTA_AG_SCB *p_scb, INT16 errcode) 486 if (p_scb->conn_service == BTA_AG_HFP && p_scb->cmee_enabled [all...] |
bta_ag_sco.c | 155 tBTA_AG_SCB *p_scb; local 167 p_scb = bta_ag_scb_by_idx(handle); 168 if(p_scb && !p_scb->svc_conn) 313 static BOOLEAN bta_ag_remove_sco(tBTA_AG_SCB *p_scb, BOOLEAN only_active) 318 if (p_scb->sco_idx != BTM_INVALID_SCO_INDEX) 320 if (!only_active || p_scb->sco_idx == bta_ag_cb.sco.cur_idx) 322 status = BTM_RemoveSco(p_scb->sco_idx); 324 APPL_TRACE_DEBUG("ag remove sco: inx 0x%04x, status:0x%x", p_scb->sco_idx, status); 329 bta_ag_cb.sco.p_curr_scb = p_scb; 356 tBTA_AG_SCB *p_scb; local 652 tBTA_AG_SCB *p_scb; local [all...] |
bta_ag_rfc.c | 92 tBTA_AG_SCB *p_scb; local 95 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) 98 if (port_handle != p_scb->conn_handle) 101 port_handle, p_scb->conn_handle, handle); 127 tBTA_AG_SCB *p_scb; local 135 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) 138 if ((code != PORT_SUCCESS) && (port_handle != p_scb->conn_handle)) 146 if (p_scb->conn_handle) /* Outgoing connection */ 148 if (port_handle == p_scb->conn_handle) 155 if (port_handle == p_scb->serv_handle[i] [all...] |
bta_ag_int.h | 351 extern void bta_ag_scb_dealloc(tBTA_AG_SCB *p_scb); 352 extern UINT16 bta_ag_scb_to_idx(tBTA_AG_SCB *p_scb); 358 extern void bta_ag_sm_execute(tBTA_AG_SCB *p_scb, UINT16 event, tBTA_AG_DATA *p_data); 362 extern void bta_ag_resume_open (tBTA_AG_SCB *p_scb); 367 extern void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 368 extern void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 369 extern BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 370 extern void bta_ag_do_disc(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 371 extern void bta_ag_free_db(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 374 extern void bta_ag_start_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services) [all...] |
bta_ag_main.c | 95 typedef void (*tBTA_AG_ACTION)(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 311 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; local 314 for (i = 0; i < BTA_AG_NUM_SCB; i++, p_scb++) 316 if (!p_scb->in_use) 319 p_scb->in_use = TRUE; 320 p_scb->sco_idx = BTM_INVALID_SCO_INDEX; 322 p_scb->codec_updated = FALSE; 325 p_scb->act_timer.param = (UINT32) p_scb; 326 p_scb->act_timer.p_cback = bta_ag_timer_cback 420 tBTA_AG_SCB *p_scb; local 474 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; local 505 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; local 533 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; local 561 tBTA_AG_SCB *p_scb; local 594 tBTA_AG_SCB *p_scb; local 710 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; local 753 tBTA_AG_SCB *p_scb; local 781 tBTA_AG_SCB *p_scb; local 886 tBTA_AG_SCB *p_scb; local [all...] |
bta_ag_sdp.c | 75 tBTA_AG_SCB *p_scb; local 79 if ((p_scb = bta_ag_scb_by_idx(idx)) != NULL) 82 if (p_scb->role == BTA_AG_ACP) 216 void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) 221 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; 240 p_scb->hsp_version = HSP_VERSION_1_2; 254 void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) 265 if (p_scb == p) 277 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; 307 BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service [all...] |
/external/bluetooth/bluedroid/bta/av/ |
bta_av_aact.c | 238 UINT8 bta_av_get_scb_handle ( tBTA_AV_SCB *p_scb, UINT8 local_sep ) 243 if ((p_scb->seps[xx].tsep == local_sep) && 244 (p_scb->seps[xx].codec_type == p_scb->codec_type)) 245 return (p_scb->seps[xx].av_handle); 260 UINT8 bta_av_get_scb_sep_type ( tBTA_AV_SCB *p_scb, UINT8 tavdt_handle) 265 if (p_scb->seps[xx].av_handle == tavdt_handle) 266 return (p_scb->seps[xx].tsep); 282 static void bta_av_save_addr(tBTA_AV_SCB *p_scb, const BD_ADDR b) 285 p_scb->recfg_sup, p_scb->suspend_sup) 432 tBTA_AV_SCB *p_scb = bta_av_cb.p_scb[index]; local 572 tBTA_AV_SCB *p_scb ; local 703 tBTA_AV_SCB *p_scb; local [all...] |
bta_av_main.c | 220 tBTA_AV_SCB *p_scb = NULL; local 225 if(bta_av_cb.p_scb[xx] && &(bta_av_cb.p_scb[xx]->timer)== p) 227 p_scb = bta_av_cb.p_scb[xx]; 232 if (p_scb && (p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 237 p_buf->layer_specific = p_scb->hndl; 293 tBTA_AV_SCB * p_scb = NULL; local 298 if(bta_av_cb.p_scb[xx]) 300 if(!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr) 322 tBTA_AV_SCB * p_scb = NULL; local 402 tBTA_AV_SCB *p_scb = NULL; local 527 tBTA_AV_SCB *p_scb; \/* stream control block *\/ local 753 tBTA_AV_SCB *p_scb = bta_av_hndl_to_scb(p_data->hdr.layer_specific); local 778 tBTA_AV_SCB *p_scb; local 916 tBTA_AV_SCB *p_scb; local 993 tBTA_AV_SCB *p_scb; local [all...] |
bta_av_int.h | 426 typedef void (tBTA_AV_VDP_DATA_ACT)(void *p_scb); 552 typedef void (*tBTA_AV_SACT)(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 558 tBTA_AV_SCB *p_scb[BTA_AV_NUM_STRS]; /* stream control block */ member in struct:__anon5087 623 extern BOOLEAN bta_av_chk_start(tBTA_AV_SCB *p_scb); 625 extern UINT16 bta_av_chk_mtu(tBTA_AV_SCB *p_scb, UINT16 mtu); 629 extern void bta_av_stream_chg(tBTA_AV_SCB *p_scb, BOOLEAN started); 630 extern BOOLEAN bta_av_is_scb_opening (tBTA_AV_SCB *p_scb); 631 extern BOOLEAN bta_av_is_scb_incoming (tBTA_AV_SCB *p_scb); 632 extern void bta_av_set_scb_sst_init (tBTA_AV_SCB *p_scb); 633 extern BOOLEAN bta_av_is_scb_init (tBTA_AV_SCB *p_scb); [all...] |
bta_av_ssm.c | 381 BOOLEAN bta_av_is_rcfg_sst (tBTA_AV_SCB *p_scb) 385 if (p_scb != NULL) 387 if (p_scb->state == BTA_AV_RCFG_SST) 404 void bta_av_ssm_execute(tBTA_AV_SCB *p_scb, UINT16 event, tBTA_AV_DATA *p_data) 410 if(p_scb == NULL) 421 if ((p_scb->state == BTA_AV_INIT_SST) && (event == BTA_AV_STR_CONFIG_IND_EVT)) 425 if (bta_av_cb.p_scb[xx]) 427 if (bta_av_cb.p_scb[xx]->state == BTA_AV_INCOMING_SST) 429 bta_av_cb.p_scb[xx]->state = BTA_AV_INIT_SST; 430 bta_av_cb.p_scb[xx]->coll_mask = 0 [all...] |
bta_av_act.c | 93 tBTA_AV_SCB *p_scb; local 100 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; 101 if(p_scb) 104 p_scb->rc_handle, p_rcb->handle); 105 if(p_scb->rc_handle == p_rcb->handle) 106 p_scb->rc_handle = BTA_AV_RC_HANDLE_NONE; 108 if(bta_av_cb.features & BTA_AV_FEAT_RCCT && p_scb->chnl == BTA_AV_CHNL_AUDIO) */ 109 bta_sys_stop_timer(&p_scb->timer); 303 tBTA_AV_SCB *p_scb = p_cb->p_scb[shdl - 1] local 486 tBTA_AV_SCB *p_scb; local 1027 tBTA_AV_SCB *p_scb; local 1165 tBTA_AV_SCB *p_scb; local 1563 tBTA_AV_SCB *p_scb = p_cb->p_scb[inx]; local 1694 tBTA_AV_SCB *p_scb = NULL; local 1797 tBTA_AV_SCB *p_scb; local 1894 tBTA_AV_SCB *p_scb; local 1962 tBTA_AV_SCB *p_scb; local [all...] |
/external/bluetooth/bluedroid/stack/avdt/ |
avdt_scb_act.c | 73 UINT32 avdt_scb_gen_ssrc(tAVDT_SCB *p_scb) 76 return ((UINT32)(p_scb->cs.cfg.codec_info[1] | p_scb->cs.cfg.codec_info[2])); 89 void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) 91 p_scb->role = AVDT_CLOSE_ACP; 92 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_RSP_EVT, p_data); 105 void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) 107 UNUSED(p_scb); 122 void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) 124 p_scb->role = AVDT_CLOSE_ACP [all...] |
avdt_int.h | 513 typedef void (*tAVDT_SCB_ACTION)(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 607 extern void avdt_scb_event(tAVDT_SCB *p_scb, UINT8 event, tAVDT_SCB_EVT *p_data); 610 extern void avdt_scb_dealloc(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 611 extern UINT8 avdt_scb_to_hdl(tAVDT_SCB *p_scb); 615 extern UINT32 avdt_scb_gen_ssrc(tAVDT_SCB *p_scb); 618 extern void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 619 extern void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 620 extern void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 621 extern void avdt_scb_hdl_close_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 622 extern void avdt_scb_hdl_getconfig_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) [all...] |
avdt_ad.c | 47 UINT8 avdt_ad_type_to_tcid(UINT8 type, tAVDT_SCB *p_scb) 57 scb_idx = avdt_scb_to_hdl(p_scb) - 1; 230 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_type(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) 238 tcid = avdt_ad_type_to_tcid(type, p_scb); 324 tAVDT_SCB *p_scb; local 346 p_scb = avdt_scb_by_hdl(avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].scb_hdl); 347 if (p_scb != NULL) 351 avdt_scb_event(p_scb, AVDT_SCB_TC_CLOSE_EVT, (tAVDT_SCB_EVT *)&close); 371 tAVDT_SCB *p_scb; local 397 p_scb = avdt_scb_by_hdl(avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].scb_hdl) 428 tAVDT_SCB *p_scb; local 464 tAVDT_SCB *p_scb; local [all...] |
avdt_api.c | 191 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; local 195 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) 197 if ((p_scb->allocated) && (p_scb->cs.tsep == AVDT_TSEP_SNK)) 200 p_scb->sink_activated = TRUE; 202 p_scb->in_use = FALSE; 222 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; local 226 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) 228 if ((p_scb->allocated) && (p_scb->cs.tsep == AVDT_TSEP_SNK) 256 tAVDT_SCB *p_scb; local 294 tAVDT_SCB *p_scb; local 510 tAVDT_SCB *p_scb; local 548 tAVDT_SCB *p_scb = NULL; local 601 tAVDT_SCB *p_scb; local 656 tAVDT_SCB *p_scb = NULL; local 714 tAVDT_SCB *p_scb = NULL; local 772 tAVDT_SCB *p_scb; local 809 tAVDT_SCB *p_scb; local 846 tAVDT_SCB *p_scb; local 885 tAVDT_SCB *p_scb; local 923 tAVDT_SCB *p_scb; local 984 tAVDT_SCB *p_scb; local 1145 tAVDT_SCB *p_scb; local 1176 tAVDT_SCB *p_scb; local 1223 tAVDT_SCB *p_scb; local 1309 tAVDT_SCB *p_scb; local 1349 tAVDT_SCB *p_scb; local [all...] |
avdt_scb.c | 593 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; local 700 tAVDT_SCB *p_scb; local 735 tAVDT_SCB *p_scb; local 799 tAVDT_SCB *p_scb; local [all...] |
avdt_ccb_act.c | 129 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; local 133 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) 135 if ((p_scb->allocated) && (p_scb->p_ccb == p_ccb)) 164 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; local 171 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) 173 if (p_scb->allocated) 176 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; 178 sep_info[p_data->msg.discover_rsp.num_seps].media_type = p_scb->cs.media_type; 179 sep_info[p_data->msg.discover_rsp.num_seps].tsep = p_scb->cs.tsep 226 tAVDT_SCB *p_scb; local 310 tAVDT_SCB *p_scb; local 383 tAVDT_SCB *p_scb; local 517 tAVDT_SCB *p_scb; local 562 tAVDT_SCB *p_scb; local 595 tAVDT_SCB *p_scb; local 640 tAVDT_SCB *p_scb; local 673 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; local 720 tAVDT_SCB *p_scb; local [all...] |
avdt_msg.c | 1696 tAVDT_SCB *p_scb; local [all...] |
/external/bluetooth/bluedroid/bta/pan/ |
bta_pan_main.c | 62 typedef void (*tBTA_PAN_ACTION)(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 167 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; local 170 for (i = 0; i < BTA_PAN_NUM_CONN; i++, p_scb++) 172 if (!p_scb->in_use) 174 p_scb->in_use = TRUE; 183 p_scb = NULL; 186 return p_scb; 199 static void bta_pan_sm_execute(tBTA_PAN_SCB *p_scb, UINT16 event, tBTA_PAN_DATA *p_data) 205 APPL_TRACE_EVENT("PAN scb=%d event=0x%x state=%d", bta_pan_scb_to_idx(p_scb), event, p_scb->state) 279 tBTA_PAN_SCB *p_scb; local 341 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; local 370 tBTA_PAN_SCB *p_scb; local [all...] |
bta_pan_act.c | 51 ** Params p_scb: state machine control block of pan connection 56 static void bta_pan_pm_conn_busy(tBTA_PAN_SCB *p_scb) 58 if ((p_scb != NULL) && (p_scb->state != BTA_PAN_IDLE_ST)) 59 bta_sys_busy(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); 68 ** Params p_scb: state machine control block of pan connection 73 static void bta_pan_pm_conn_idle(tBTA_PAN_SCB *p_scb) 75 if ((p_scb != NULL) && (p_scb->state != BTA_PAN_IDLE_ST) 94 tBTA_PAN_SCB *p_scb; local 163 tBTA_PAN_SCB *p_scb; local 204 tBTA_PAN_SCB *p_scb; local 426 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; local [all...] |
bta_pan_int.h | 198 extern void bta_pan_scb_dealloc(tBTA_PAN_SCB *p_scb); 199 extern UINT8 bta_pan_scb_to_idx(tBTA_PAN_SCB *p_scb); 207 extern void bta_pan_open(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 208 extern void bta_pan_api_close(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 209 extern void bta_pan_set_shutdown(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 210 extern void bta_pan_rx_path(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 211 extern void bta_pan_tx_path(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 212 extern void bta_pan_tx_flow(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 213 extern void bta_pan_conn_open(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 214 extern void bta_pan_conn_close(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data) [all...] |
bta_pan_ci.c | 204 tBTA_PAN_SCB * p_scb; local 207 p_scb = bta_pan_scb_by_handle(handle); 209 p_buf = (BT_HDR *)GKI_dequeue(&p_scb->data_queue);
|
/external/bluetooth/bluedroid/btif/src/ |
btif_hl.c | 2231 btif_hl_soc_cb_t *p_scb = p_dcb->p_scb; local 4514 btif_hl_soc_cb_t *p_scb = NULL; local 4578 btif_hl_soc_cb_t *p_scb = NULL; local 4607 btif_hl_soc_cb_t *p_scb = NULL; local 4633 btif_hl_soc_cb_t *p_scb = NULL; local 4677 btif_hl_soc_cb_t *p_scb = NULL; local 4733 btif_hl_soc_cb_t *p_scb = NULL; local 4838 btif_hl_soc_cb_t *p_scb = NULL; local [all...] |
/external/bluetooth/bluedroid/btif/co/ |
bta_hl_co.c | 384 if (p_dcb->p_scb) 388 r = send(p_dcb->p_scb->socket_id[1], p_dcb->p_rx_pkt, data_size, 0);
|