/system/bt/bta/ag/ |
D | bta_ag_act.c | 70 typedef void (*tBTA_AG_ATCMD_CBACK)(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, 89 static void bta_ag_cback_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data, tBTA_AG_STATUS status) in bta_ag_cback_open() argument 94 open.hdr.handle = bta_ag_scb_to_idx(p_scb); in bta_ag_cback_open() 95 open.hdr.app_id = p_scb->app_id; in bta_ag_cback_open() 97 open.service_id = bta_ag_svc_id[p_scb->conn_service]; in bta_ag_cback_open() 105 bdcpy(open.bd_addr, p_scb->peer_addr); in bta_ag_cback_open() 122 void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_register() argument 127 p_scb->reg_services = p_data->api_register.services; in bta_ag_register() 128 p_scb->serv_sec_mask = p_data->api_register.sec_mask; in bta_ag_register() 129 p_scb->features = p_data->api_register.features; in bta_ag_register() [all …]
|
D | bta_ag_cmd.c | 335 static void bta_ag_send_result(tBTA_AG_SCB *p_scb, UINT8 code, char *p_arg, in bta_ag_send_result() argument 352 if(p_scb->conn_service == BTA_AG_HSP) in bta_ag_send_result() 392 PORT_WriteData(p_scb->conn_handle, buf, (UINT16) (p - buf), &len); in bta_ag_send_result() 406 static void bta_ag_send_multi_result(tBTA_AG_SCB *p_scb, tBTA_AG_MULTI_RESULT_CB *m_res_cb) in bta_ag_send_multi_result() argument 456 PORT_WriteData(p_scb->conn_handle, buf, (UINT16) (p - buf), &len); in bta_ag_send_multi_result() 470 static void bta_ag_send_ok(tBTA_AG_SCB *p_scb) in bta_ag_send_ok() argument 472 bta_ag_send_result(p_scb, BTA_AG_RES_OK, NULL, 0); in bta_ag_send_ok() 486 static void bta_ag_send_error(tBTA_AG_SCB *p_scb, INT16 errcode) in bta_ag_send_error() argument 489 if (p_scb->conn_service == BTA_AG_HFP && p_scb->cmee_enabled) in bta_ag_send_error() 490 bta_ag_send_result(p_scb, BTA_AG_RES_CMEE, NULL, errcode); in bta_ag_send_error() [all …]
|
D | bta_ag_sco.c | 156 tBTA_AG_SCB *p_scb; in bta_ag_sco_conn_cback() local 168 p_scb = bta_ag_scb_by_idx(handle); in bta_ag_sco_conn_cback() 169 if(p_scb && !p_scb->svc_conn) in bta_ag_sco_conn_cback() 314 static BOOLEAN bta_ag_remove_sco(tBTA_AG_SCB *p_scb, BOOLEAN only_active) in bta_ag_remove_sco() argument 319 if (p_scb->sco_idx != BTM_INVALID_SCO_INDEX) in bta_ag_remove_sco() 321 if (!only_active || p_scb->sco_idx == bta_ag_cb.sco.cur_idx) in bta_ag_remove_sco() 323 status = BTM_RemoveSco(p_scb->sco_idx); in bta_ag_remove_sco() 325 APPL_TRACE_DEBUG("ag remove sco: inx 0x%04x, status:0x%x", p_scb->sco_idx, status); in bta_ag_remove_sco() 330 bta_ag_cb.sco.p_curr_scb = p_scb; in bta_ag_remove_sco() 337 p_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_remove_sco() [all …]
|
D | bta_ag_main.c | 94 typedef void (*tBTA_AG_ACTION)(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 310 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; in bta_ag_scb_alloc() local 313 for (i = 0; i < BTA_AG_NUM_SCB; i++, p_scb++) in bta_ag_scb_alloc() 315 if (!p_scb->in_use) in bta_ag_scb_alloc() 318 p_scb->in_use = TRUE; in bta_ag_scb_alloc() 319 p_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_scb_alloc() 321 p_scb->codec_updated = FALSE; in bta_ag_scb_alloc() 324 p_scb->act_timer.param = (UINT32) p_scb; in bta_ag_scb_alloc() 325 p_scb->act_timer.p_cback = bta_ag_timer_cback; in bta_ag_scb_alloc() 328 p_scb->codec_msbc_settings = BTA_AG_SCO_MSBC_SETTINGS_T2; in bta_ag_scb_alloc() [all …]
|
D | 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); 359 extern void bta_ag_sm_execute(tBTA_AG_SCB *p_scb, UINT16 event, tBTA_AG_DATA *p_data); 363 extern void bta_ag_resume_open (tBTA_AG_SCB *p_scb); 368 extern void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 369 extern void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 370 extern BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 371 extern void bta_ag_do_disc(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 372 extern void bta_ag_free_db(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 375 extern void bta_ag_start_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services); [all …]
|
D | bta_ag_rfc.c | 91 tBTA_AG_SCB *p_scb; in bta_ag_port_cback() local 94 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) in bta_ag_port_cback() 97 if (port_handle != p_scb->conn_handle) in bta_ag_port_cback() 100 port_handle, p_scb->conn_handle, handle); in bta_ag_port_cback() 126 tBTA_AG_SCB *p_scb; in bta_ag_mgmt_cback() local 134 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) in bta_ag_mgmt_cback() 137 if ((code != PORT_SUCCESS) && (port_handle != p_scb->conn_handle)) in bta_ag_mgmt_cback() 145 if (p_scb->conn_handle) /* Outgoing connection */ in bta_ag_mgmt_cback() 147 if (port_handle == p_scb->conn_handle) in bta_ag_mgmt_cback() 154 if (port_handle == p_scb->serv_handle[i]) in bta_ag_mgmt_cback() [all …]
|
D | bta_ag_sdp.c | 75 tBTA_AG_SCB *p_scb; in bta_ag_sdp_cback() local 79 if ((p_scb = bta_ag_scb_by_idx(idx)) != NULL) in bta_ag_sdp_cback() 82 if (p_scb->role == BTA_AG_ACP) in bta_ag_sdp_cback() 216 void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_create_records() argument 221 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; in bta_ag_create_records() 240 p_scb->hsp_version = HSP_VERSION_1_2; in bta_ag_create_records() 254 void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_del_records() argument 265 if (p_scb == p) in bta_ag_del_records() 277 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; in bta_ag_del_records() 307 BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service) in bta_ag_sdp_find_attr() argument [all …]
|
/system/bt/bta/av/ |
D | bta_av_aact.c | 63 static void bta_av_st_rc_timer(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 243 static UINT8 bta_av_get_scb_handle(tBTA_AV_SCB *p_scb, UINT8 local_sep) in bta_av_get_scb_handle() argument 248 if ((p_scb->seps[xx].tsep == local_sep) && in bta_av_get_scb_handle() 249 (p_scb->seps[xx].codec_type == p_scb->codec_type)) in bta_av_get_scb_handle() 250 return (p_scb->seps[xx].av_handle); in bta_av_get_scb_handle() 265 static UINT8 bta_av_get_scb_sep_type(tBTA_AV_SCB *p_scb, UINT8 tavdt_handle) in bta_av_get_scb_sep_type() argument 270 if (p_scb->seps[xx].av_handle == tavdt_handle) in bta_av_get_scb_sep_type() 271 return (p_scb->seps[xx].tsep); in bta_av_get_scb_sep_type() 287 static void bta_av_save_addr(tBTA_AV_SCB *p_scb, const BD_ADDR b) in bta_av_save_addr() argument 290 p_scb->recfg_sup, p_scb->suspend_sup); in bta_av_save_addr() [all …]
|
D | bta_av_main.c | 222 tBTA_AV_SCB *p_scb = NULL; in bta_av_timer_cback() local 227 if(bta_av_cb.p_scb[xx] && &(bta_av_cb.p_scb[xx]->timer)== p) in bta_av_timer_cback() 229 p_scb = bta_av_cb.p_scb[xx]; in bta_av_timer_cback() 234 if (p_scb && (p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in bta_av_timer_cback() 239 p_buf->layer_specific = p_scb->hndl; in bta_av_timer_cback() 295 tBTA_AV_SCB * p_scb = NULL; in bta_av_addr_to_scb() local 300 if(bta_av_cb.p_scb[xx]) in bta_av_addr_to_scb() 302 if(!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr)) in bta_av_addr_to_scb() 304 p_scb = bta_av_cb.p_scb[xx]; in bta_av_addr_to_scb() 309 return p_scb; in bta_av_addr_to_scb() [all …]
|
D | bta_av_int.h | 427 typedef void (tBTA_AV_VDP_DATA_ACT)(void *p_scb); 553 typedef void (*tBTA_AV_SACT)(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 559 tBTA_AV_SCB *p_scb[BTA_AV_NUM_STRS]; /* stream control block */ member 624 extern BOOLEAN bta_av_chk_start(tBTA_AV_SCB *p_scb); 626 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 …]
|
D | bta_av_act.c | 96 tBTA_AV_SCB *p_scb; in bta_av_del_rc() local 99 p_scb = NULL; in bta_av_del_rc() 107 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc() 109 if(p_scb) in bta_av_del_rc() 112 p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc() 113 if(p_scb->rc_handle == p_rcb->handle) in bta_av_del_rc() 114 p_scb->rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_del_rc() 117 bta_sys_stop_timer(&p_scb->timer); in bta_av_del_rc() 307 tBTA_AV_SCB *p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create() local 314 bda = p_scb->peer_addr; in bta_av_rc_create() [all …]
|
D | bta_av_ssm.c | 381 BOOLEAN bta_av_is_rcfg_sst (tBTA_AV_SCB *p_scb) in bta_av_is_rcfg_sst() argument 385 if (p_scb != NULL) in bta_av_is_rcfg_sst() 387 if (p_scb->state == BTA_AV_RCFG_SST) in bta_av_is_rcfg_sst() 404 void bta_av_ssm_execute(tBTA_AV_SCB *p_scb, UINT16 event, tBTA_AV_DATA *p_data) in bta_av_ssm_execute() argument 410 if(p_scb == NULL) in bta_av_ssm_execute() 421 if ((p_scb->state == BTA_AV_INIT_SST) && (event == BTA_AV_STR_CONFIG_IND_EVT)) in bta_av_ssm_execute() 425 if (bta_av_cb.p_scb[xx]) in bta_av_ssm_execute() 427 if (bta_av_cb.p_scb[xx]->state == BTA_AV_INCOMING_SST) in bta_av_ssm_execute() 429 bta_av_cb.p_scb[xx]->state = BTA_AV_INIT_SST; in bta_av_ssm_execute() 430 bta_av_cb.p_scb[xx]->coll_mask = 0; in bta_av_ssm_execute() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_scb_act.c | 73 UINT32 avdt_scb_gen_ssrc(tAVDT_SCB *p_scb) in avdt_scb_gen_ssrc() argument 76 return ((UINT32)(p_scb->cs.cfg.codec_info[1] | p_scb->cs.cfg.codec_info[2])); in avdt_scb_gen_ssrc() 89 void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_cmd() argument 91 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_abort_cmd() 92 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_RSP_EVT, p_data); in avdt_scb_hdl_abort_cmd() 105 void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_rsp() argument 107 UNUSED(p_scb); in avdt_scb_hdl_abort_rsp() 122 void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_close_cmd() argument 124 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_close_cmd() 125 avdt_scb_event(p_scb, AVDT_SCB_API_CLOSE_RSP_EVT, p_data); in avdt_scb_hdl_close_cmd() [all …]
|
D | avdt_api.c | 177 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in AVDT_SINK_Activate() local 181 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) in AVDT_SINK_Activate() 183 if ((p_scb->allocated) && (p_scb->cs.tsep == AVDT_TSEP_SNK)) in AVDT_SINK_Activate() 186 p_scb->sink_activated = TRUE; in AVDT_SINK_Activate() 188 p_scb->in_use = FALSE; in AVDT_SINK_Activate() 208 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in AVDT_SINK_Deactivate() local 212 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) in AVDT_SINK_Deactivate() 214 if ((p_scb->allocated) && (p_scb->cs.tsep == AVDT_TSEP_SNK)) in AVDT_SINK_Deactivate() 217 p_scb->sink_activated = FALSE; in AVDT_SINK_Deactivate() 219 p_scb->in_use = TRUE; in AVDT_SINK_Deactivate() [all …]
|
D | avdt_int.h | 509 typedef void (*tAVDT_SCB_ACTION)(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 603 extern void avdt_scb_event(tAVDT_SCB *p_scb, UINT8 event, tAVDT_SCB_EVT *p_data); 606 extern void avdt_scb_dealloc(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 607 extern UINT8 avdt_scb_to_hdl(tAVDT_SCB *p_scb); 611 extern UINT32 avdt_scb_gen_ssrc(tAVDT_SCB *p_scb); 614 extern void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 615 extern void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 616 extern void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 617 extern void avdt_scb_hdl_close_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); 618 extern void avdt_scb_hdl_getconfig_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data); [all …]
|
D | avdt_ad.c | 48 UINT8 avdt_ad_type_to_tcid(UINT8 type, tAVDT_SCB *p_scb) in avdt_ad_type_to_tcid() argument 58 scb_idx = avdt_scb_to_hdl(p_scb) - 1; in avdt_ad_type_to_tcid() 231 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_type(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) in avdt_ad_tc_tbl_by_type() argument 239 tcid = avdt_ad_type_to_tcid(type, p_scb); in avdt_ad_tc_tbl_by_type() 326 tAVDT_SCB *p_scb; in avdt_ad_tc_close_ind() local 348 p_scb = avdt_scb_by_hdl(avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].scb_hdl); in avdt_ad_tc_close_ind() 349 if (p_scb != NULL) in avdt_ad_tc_close_ind() 353 avdt_scb_event(p_scb, AVDT_SCB_TC_CLOSE_EVT, (tAVDT_SCB_EVT *)&close); in avdt_ad_tc_close_ind() 373 tAVDT_SCB *p_scb; in avdt_ad_tc_open_ind() local 399 p_scb = avdt_scb_by_hdl(avdt_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].scb_hdl); in avdt_ad_tc_open_ind() [all …]
|
D | avdt_scb.c | 525 void avdt_scb_event(tAVDT_SCB *p_scb, UINT8 event, tAVDT_SCB_EVT *p_data) in avdt_scb_event() argument 532 …hdl=%d event=%d/%s state=%s", avdt_scb_to_hdl(p_scb), event, avdt_scb_evt_str[event], avdt_scb_st_… in avdt_scb_event() 535 p_scb->curr_evt = event; in avdt_scb_event() 538 state_table = avdt_scb_st_tbl[p_scb->state]; in avdt_scb_event() 541 if (p_scb->state != state_table[event][AVDT_SCB_NEXT_STATE]) { in avdt_scb_event() 542 p_scb->state = state_table[event][AVDT_SCB_NEXT_STATE]; in avdt_scb_event() 550 (*avdt_cb.p_scb_act[action])(p_scb, p_data); in avdt_scb_event() 589 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_scb_alloc() local 593 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) in avdt_scb_alloc() 595 if (!p_scb->allocated) in avdt_scb_alloc() [all …]
|
D | avdt_ccb_act.c | 129 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_chk_close() local 133 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) in avdt_ccb_chk_close() 135 if ((p_scb->allocated) && (p_scb->p_ccb == p_ccb)) in avdt_ccb_chk_close() 164 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_hdl_discover_cmd() local 171 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) in avdt_ccb_hdl_discover_cmd() 173 if (p_scb->allocated) in avdt_ccb_hdl_discover_cmd() 176 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd() 178 sep_info[p_data->msg.discover_rsp.num_seps].media_type = p_scb->cs.media_type; in avdt_ccb_hdl_discover_cmd() 179 sep_info[p_data->msg.discover_rsp.num_seps].tsep = p_scb->cs.tsep; in avdt_ccb_hdl_discover_cmd() 226 tAVDT_SCB *p_scb; in avdt_ccb_hdl_getcap_cmd() local [all …]
|
D | avdt_msg.c | 1477 void avdt_msg_send_cmd(tAVDT_CCB *p_ccb, void *p_scb, UINT8 sig_id, tAVDT_MSG *p_params) in avdt_msg_send_cmd() argument 1502 if (p_scb != NULL) in avdt_msg_send_cmd() 1509 memcpy(p, (UINT8 *) p_scb, p_buf->len); in avdt_msg_send_cmd() 1514 *p = avdt_scb_to_hdl((tAVDT_SCB *) p_scb); in avdt_msg_send_cmd() 1694 tAVDT_SCB *p_scb; in avdt_msg_ind() local 1884 if (evt && (p_scb = avdt_scb_by_hdl(scb_hdl)) != NULL) in avdt_msg_ind() 1886 avdt_scb_event(p_scb, evt, (tAVDT_SCB_EVT *) &msg); in avdt_msg_ind()
|
/system/bt/bta/pan/ |
D | bta_pan_act.c | 55 static void bta_pan_pm_conn_busy(tBTA_PAN_SCB *p_scb) in bta_pan_pm_conn_busy() argument 57 if ((p_scb != NULL) && (p_scb->state != BTA_PAN_IDLE_ST)) in bta_pan_pm_conn_busy() 58 bta_sys_busy(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_busy() 72 static void bta_pan_pm_conn_idle(tBTA_PAN_SCB *p_scb) in bta_pan_pm_conn_idle() argument 74 if ((p_scb != NULL) && (p_scb->state != BTA_PAN_IDLE_ST)) in bta_pan_pm_conn_idle() 75 bta_sys_idle(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_idle() 93 tBTA_PAN_SCB *p_scb; in bta_pan_conn_state_cback() local 101 if((p_scb = bta_pan_scb_by_handle(handle)) == NULL) in bta_pan_conn_state_cback() 104 p_scb = bta_pan_scb_alloc(); in bta_pan_conn_state_cback() 108 if(!p_scb) in bta_pan_conn_state_cback() [all …]
|
D | bta_pan_main.c | 61 typedef void (*tBTA_PAN_ACTION)(tBTA_PAN_SCB *p_scb, tBTA_PAN_DATA *p_data); 166 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; in bta_pan_scb_alloc() local 169 for (i = 0; i < BTA_PAN_NUM_CONN; i++, p_scb++) in bta_pan_scb_alloc() 171 if (!p_scb->in_use) in bta_pan_scb_alloc() 173 p_scb->in_use = TRUE; in bta_pan_scb_alloc() 182 p_scb = NULL; in bta_pan_scb_alloc() 185 return p_scb; in bta_pan_scb_alloc() 198 static void bta_pan_sm_execute(tBTA_PAN_SCB *p_scb, UINT16 event, tBTA_PAN_DATA *p_data) in bta_pan_sm_execute() argument 204 …APPL_TRACE_EVENT("PAN scb=%d event=0x%x state=%d", bta_pan_scb_to_idx(p_scb), event, p_scb->state); in bta_pan_sm_execute() 207 state_table = bta_pan_st_tbl[p_scb->state]; in bta_pan_sm_execute() [all …]
|
D | 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 …]
|
D | bta_pan_ci.c | 203 tBTA_PAN_SCB * p_scb; in bta_pan_ci_readbuf() local 206 p_scb = bta_pan_scb_by_handle(handle); in bta_pan_ci_readbuf() 208 p_buf = (BT_HDR *)GKI_dequeue(&p_scb->data_queue); in bta_pan_ci_readbuf()
|
/system/bt/btif/src/ |
D | btif_hl.c | 2238 btif_hl_soc_cb_t *p_scb = p_dcb->p_scb; in btif_hl_send_disconnecting_cb() local 2240 int app_id = (int) btif_hl_get_app_id(p_scb->channel_id); in btif_hl_send_disconnecting_cb() 2242 btif_hl_copy_bda(&bd_addr, p_scb->bd_addr); in btif_hl_send_disconnecting_cb() 2245 …"call channel state callback channel_id=0x%08x mdep_cfg_idx=%d, state=%d fd=%d",p_scb->channel_id, in btif_hl_send_disconnecting_cb() 2246 p_scb->mdep_cfg_idx, BTHL_CONN_STATE_DISCONNECTING, p_scb->socket_id[0]); in btif_hl_send_disconnecting_cb() 2249 &bd_addr, p_scb->mdep_cfg_idx, in btif_hl_send_disconnecting_cb() 2250 p_scb->channel_id, BTHL_CONN_STATE_DISCONNECTING, p_scb->socket_id[0] ); in btif_hl_send_disconnecting_cb() 4502 btif_hl_soc_cb_t *p_scb = list_node(node); in btif_hl_update_maxfd() local 4503 if (maxfd < p_scb->max_s) { in btif_hl_update_maxfd() 4504 maxfd = p_scb->max_s; in btif_hl_update_maxfd() [all …]
|
/system/bt/btif/co/ |
D | bta_hl_co.c | 384 if (p_dcb->p_scb) in bta_hl_co_put_rx_data() 388 … r = TEMP_FAILURE_RETRY(send(p_dcb->p_scb->socket_id[1], p_dcb->p_rx_pkt, data_size, 0)); in bta_hl_co_put_rx_data()
|