/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/av/ |
D | bta_av_aact.c | 65 static void bta_av_st_rc_timer(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 227 static UINT8 bta_av_get_scb_handle(tBTA_AV_SCB *p_scb, UINT8 local_sep) in bta_av_get_scb_handle() argument 231 if ((p_scb->seps[xx].tsep == local_sep) && in bta_av_get_scb_handle() 232 (p_scb->seps[xx].codec_type == p_scb->codec_type)) { in bta_av_get_scb_handle() 233 return (p_scb->seps[xx].av_handle); in bta_av_get_scb_handle() 249 static UINT8 bta_av_get_scb_sep_type(tBTA_AV_SCB *p_scb, UINT8 tavdt_handle) in bta_av_get_scb_sep_type() argument 253 if (p_scb->seps[xx].av_handle == tavdt_handle) { in bta_av_get_scb_sep_type() 254 return (p_scb->seps[xx].tsep); in bta_av_get_scb_sep_type() 271 static void bta_av_save_addr(tBTA_AV_SCB *p_scb, const BD_ADDR b) in bta_av_save_addr() argument 274 p_scb->recfg_sup, p_scb->suspend_sup); in bta_av_save_addr() [all …]
|
D | bta_av_main.c | 215 tBTA_AV_SCB *p_scb = NULL; in bta_av_timer_cback() local 219 if (bta_av_cb.p_scb[xx] && &(bta_av_cb.p_scb[xx]->timer) == p) { in bta_av_timer_cback() 220 p_scb = bta_av_cb.p_scb[xx]; in bta_av_timer_cback() 225 if (p_scb && (p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in bta_av_timer_cback() 229 p_buf->layer_specific = p_scb->hndl; in bta_av_timer_cback() 285 tBTA_AV_SCB *p_scb = NULL; in bta_av_addr_to_scb() local 289 if (bta_av_cb.p_scb[xx]) { in bta_av_addr_to_scb() 290 if (!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr)) { in bta_av_addr_to_scb() 291 p_scb = bta_av_cb.p_scb[xx]; in bta_av_addr_to_scb() 296 return p_scb; in bta_av_addr_to_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() 104 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc() 106 if (p_scb) { in bta_av_del_rc() 108 p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc() 109 if (p_scb->rc_handle == p_rcb->handle) { in bta_av_del_rc() 110 p_scb->rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_del_rc() 114 bta_sys_stop_timer(&p_scb->timer); in bta_av_del_rc() 296 tBTA_AV_SCB *p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create() local 302 bda = p_scb->peer_addr; in bta_av_rc_create() [all …]
|
D | bta_av_ssm.c | 370 BOOLEAN bta_av_is_rcfg_sst (tBTA_AV_SCB *p_scb) in bta_av_is_rcfg_sst() argument 374 if (p_scb != NULL) { in bta_av_is_rcfg_sst() 375 if (p_scb->state == BTA_AV_RCFG_SST) { in bta_av_is_rcfg_sst() 393 void bta_av_ssm_execute(tBTA_AV_SCB *p_scb, UINT16 event, tBTA_AV_DATA *p_data) in bta_av_ssm_execute() argument 399 if (p_scb == NULL) { in bta_av_ssm_execute() 409 if ((p_scb->state == BTA_AV_INIT_SST) && (event == BTA_AV_STR_CONFIG_IND_EVT)) { in bta_av_ssm_execute() 411 if (bta_av_cb.p_scb[xx]) { in bta_av_ssm_execute() 412 if (bta_av_cb.p_scb[xx]->state == BTA_AV_INCOMING_SST) { in bta_av_ssm_execute() 413 bta_av_cb.p_scb[xx]->state = BTA_AV_INIT_SST; in bta_av_ssm_execute() 414 bta_av_cb.p_scb[xx]->coll_mask = 0; in bta_av_ssm_execute() [all …]
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/hf_ag/ |
D | bta_ag_act.c | 72 typedef void (*tBTA_AG_ATCMD_CBACK)(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, 91 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 95 open.hdr.handle = bta_ag_scb_to_idx(p_scb); in bta_ag_cback_open() 96 open.hdr.app_id = p_scb->app_id; in bta_ag_cback_open() 98 open.service_id = bta_ag_svc_id[p_scb->conn_service]; in bta_ag_cback_open() 103 bdcpy(open.bd_addr, p_scb->peer_addr); in bta_ag_cback_open() 119 void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_register() argument 123 p_scb->reg_services = p_data->api_register.services; in bta_ag_register() 124 p_scb->serv_sec_mask = p_data->api_register.sec_mask; in bta_ag_register() 125 p_scb->features = p_data->api_register.features; in bta_ag_register() [all …]
|
D | bta_ag_cmd.c | 346 static void bta_ag_send_result(tBTA_AG_SCB *p_scb, UINT8 code, char *p_arg, INT16 int_arg) in bta_ag_send_result() argument 361 if(p_scb->conn_service == BTA_AG_HSP) { in bta_ag_send_result() 393 PORT_WriteData(p_scb->conn_handle, buf, (UINT16) (p - buf), &len); in bta_ag_send_result() 407 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 448 PORT_WriteData(p_scb->conn_handle, buf, (UINT16) (p - buf), &len); in bta_ag_send_multi_result() 462 static void bta_ag_send_ok(tBTA_AG_SCB *p_scb) in bta_ag_send_ok() argument 464 bta_ag_send_result(p_scb, BTA_AG_RES_OK, NULL, 0); in bta_ag_send_ok() 478 static void bta_ag_send_error(tBTA_AG_SCB *p_scb, INT16 errcode) in bta_ag_send_error() argument 481 if (p_scb->conn_service == BTA_AG_HFP && p_scb->cmee_enabled) { in bta_ag_send_error() 482 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 = &bta_ag_cb.scb[0]; in bta_ag_sco_conn_cback() local 171 p_scb = bta_ag_scb_by_idx(handle); in bta_ag_sco_conn_cback() 172 if(p_scb && !p_scb->svc_conn) in bta_ag_sco_conn_cback() 180 p_scb->link_type = sco_data.link_type; in bta_ag_sco_conn_cback() 181 p_scb->tx_interval = sco_data.tx_interval; in bta_ag_sco_conn_cback() 182 p_scb->retrans_window = sco_data.retrans_window; in bta_ag_sco_conn_cback() 183 p_scb->air_mode = sco_data.air_mode; in bta_ag_sco_conn_cback() 187 p_scb->out_pkt_len = sco_data.tx_pkt_len * 2; in bta_ag_sco_conn_cback() 188 p_scb->in_pkt_len = sco_data.rx_pkt_len * 2; in bta_ag_sco_conn_cback() 191 p_scb->out_pkt_len = sco_data.tx_pkt_len; in bta_ag_sco_conn_cback() [all …]
|
D | bta_ag_main.c | 100 typedef void (*tBTA_AG_ACTION) (tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 417 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; in bta_ag_scb_alloc() local 420 for (i = 0; i < BTA_AG_NUM_SCB; i++, p_scb++) { in bta_ag_scb_alloc() 421 if (!p_scb->in_use) { in bta_ag_scb_alloc() 423 p_scb->in_use = TRUE; in bta_ag_scb_alloc() 424 p_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_scb_alloc() 426 p_scb->codec_updated = FALSE; in bta_ag_scb_alloc() 429 p_scb->act_timer.param = (UINT32) p_scb; in bta_ag_scb_alloc() 430 p_scb->act_timer.p_cback = bta_ag_timer_cback; in bta_ag_scb_alloc() 433 p_scb->codec_msbc_settings = BTA_AG_SCO_MSBC_SETTINGS_T2; in bta_ag_scb_alloc() [all …]
|
D | bta_ag_rfc.c | 96 tBTA_AG_SCB *p_scb; in bta_ag_port_cback() local 99 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) { in bta_ag_port_cback() 101 if (port_handle != p_scb->conn_handle) { in bta_ag_port_cback() 103 port_handle, p_scb->conn_handle, handle); in bta_ag_port_cback() 128 tBTA_AG_SCB *p_scb; in bta_ag_mgmt_cback() local 136 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) { in bta_ag_mgmt_cback() 138 if ((code != PORT_SUCCESS) && (port_handle != p_scb->conn_handle)) { in bta_ag_mgmt_cback() 144 if (p_scb->conn_handle) { in bta_ag_mgmt_cback() 146 if (port_handle == p_scb->conn_handle) in bta_ag_mgmt_cback() 151 if (port_handle == p_scb->serv_handle[i]) in bta_ag_mgmt_cback() [all …]
|
D | bta_ag_sdp.c | 78 tBTA_AG_SCB *p_scb; in bta_ag_sdp_cback() local 82 if ((p_scb = bta_ag_scb_by_idx(idx)) != NULL) { in bta_ag_sdp_cback() 84 if (p_scb->role == BTA_AG_ACP) { in bta_ag_sdp_cback() 205 void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_create_records() argument 208 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; in bta_ag_create_records() 224 p_scb->hsp_version = HSP_VERSION_1_2; in bta_ag_create_records() 237 void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_del_records() argument 247 if (p_scb == p) { in bta_ag_del_records() 255 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; in bta_ag_del_records() 283 BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service) in bta_ag_sdp_find_attr() argument [all …]
|
D | bta_ag_api.c | 313 tBTA_AG_SCB *p_scb; in BTA_AgCiData() local 314 …if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL && (p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR))) … in BTA_AgCiData()
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/avdt/ |
D | avdt_scb_act.c | 75 UINT32 avdt_scb_gen_ssrc(tAVDT_SCB *p_scb) in avdt_scb_gen_ssrc() argument 78 return ((UINT32)(p_scb->cs.cfg.codec_info[1] | p_scb->cs.cfg.codec_info[2])); in avdt_scb_gen_ssrc() 91 void avdt_scb_hdl_abort_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_cmd() argument 93 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_abort_cmd() 94 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_RSP_EVT, p_data); in avdt_scb_hdl_abort_cmd() 107 void avdt_scb_hdl_abort_rsp(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_abort_rsp() argument 109 UNUSED(p_scb); in avdt_scb_hdl_abort_rsp() 124 void avdt_scb_hdl_close_cmd(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data) in avdt_scb_hdl_close_cmd() argument 126 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_close_cmd() 127 avdt_scb_event(p_scb, AVDT_SCB_API_CLOSE_RSP_EVT, p_data); in avdt_scb_hdl_close_cmd() [all …]
|
D | avdt_api.c | 176 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in AVDT_SINK_Activate() local 180 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in AVDT_SINK_Activate() 181 if ((p_scb->allocated) && (p_scb->cs.tsep == AVDT_TSEP_SNK)) { in AVDT_SINK_Activate() 183 p_scb->sink_activated = TRUE; in AVDT_SINK_Activate() 185 p_scb->in_use = FALSE; in AVDT_SINK_Activate() 205 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in AVDT_SINK_Deactivate() local 209 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in AVDT_SINK_Deactivate() 210 if ((p_scb->allocated) && (p_scb->cs.tsep == AVDT_TSEP_SNK)) { in AVDT_SINK_Deactivate() 212 p_scb->sink_activated = FALSE; in AVDT_SINK_Deactivate() 214 p_scb->in_use = TRUE; in AVDT_SINK_Deactivate() [all …]
|
D | avdt_ad.c | 50 UINT8 avdt_ad_type_to_tcid(UINT8 type, tAVDT_SCB *p_scb) in avdt_ad_type_to_tcid() argument 57 scb_idx = avdt_scb_to_hdl(p_scb) - 1; in avdt_ad_type_to_tcid() 211 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 219 tcid = avdt_ad_type_to_tcid(type, p_scb); in avdt_ad_tc_tbl_by_type() 302 tAVDT_SCB *p_scb; in avdt_ad_tc_close_ind() local 325 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() 326 if (p_scb != NULL) { in avdt_ad_tc_close_ind() 330 avdt_scb_event(p_scb, AVDT_SCB_TC_CLOSE_EVT, (tAVDT_SCB_EVT *)&close); in avdt_ad_tc_close_ind() 350 tAVDT_SCB *p_scb; in avdt_ad_tc_open_ind() local 373 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 | 528 void avdt_scb_event(tAVDT_SCB *p_scb, UINT8 event, tAVDT_SCB_EVT *p_data) in avdt_scb_event() argument 535 …l=%d event=%d/%s state=%s\n", avdt_scb_to_hdl(p_scb), event, avdt_scb_evt_str[event], avdt_scb_st_… in avdt_scb_event() 538 p_scb->curr_evt = event; in avdt_scb_event() 541 state_table = avdt_scb_st_tbl[p_scb->state]; in avdt_scb_event() 544 if (p_scb->state != state_table[event][AVDT_SCB_NEXT_STATE]) { in avdt_scb_event() 545 p_scb->state = state_table[event][AVDT_SCB_NEXT_STATE]; in avdt_scb_event() 551 (*avdt_cb.p_scb_act[action])(p_scb, p_data); in avdt_scb_event() 588 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_scb_alloc() local 592 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in avdt_scb_alloc() 593 if (!p_scb->allocated) { in avdt_scb_alloc() [all …]
|
D | avdt_ccb_act.c | 128 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_chk_close() local 132 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in avdt_ccb_chk_close() 133 if ((p_scb->allocated) && (p_scb->p_ccb == p_ccb)) { in avdt_ccb_chk_close() 160 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_hdl_discover_cmd() local 167 for (i = 0; i < AVDT_NUM_SEPS; i++, p_scb++) { in avdt_ccb_hdl_discover_cmd() 168 if (p_scb->allocated) { in avdt_ccb_hdl_discover_cmd() 170 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd() 172 sep_info[p_data->msg.discover_rsp.num_seps].media_type = p_scb->cs.media_type; in avdt_ccb_hdl_discover_cmd() 173 sep_info[p_data->msg.discover_rsp.num_seps].tsep = p_scb->cs.tsep; in avdt_ccb_hdl_discover_cmd() 220 tAVDT_SCB *p_scb; in avdt_ccb_hdl_getcap_cmd() local [all …]
|
D | avdt_msg.c | 1398 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 1422 if (p_scb != NULL) { in avdt_msg_send_cmd() 1427 memcpy(p, (UINT8 *) p_scb, p_buf->len); in avdt_msg_send_cmd() 1431 *p = avdt_scb_to_hdl((tAVDT_SCB *) p_scb); in avdt_msg_send_cmd() 1613 tAVDT_SCB *p_scb; in avdt_msg_ind() local 1767 if (evt && (p_scb = avdt_scb_by_hdl(scb_hdl)) != NULL) { in avdt_msg_ind() 1768 avdt_scb_event(p_scb, evt, (tAVDT_SCB_EVT *) &msg); in avdt_msg_ind()
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/hf_ag/include/ |
D | bta_ag_int.h | 363 extern void bta_ag_scb_dealloc(tBTA_AG_SCB *p_scb); 364 extern UINT16 bta_ag_scb_to_idx(tBTA_AG_SCB *p_scb); 371 extern void bta_ag_sm_execute(tBTA_AG_SCB *p_scb, UINT16 event, tBTA_AG_DATA *p_data); 374 extern void bta_ag_resume_open(tBTA_AG_SCB *p_scb); 378 extern void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 379 extern void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 380 extern BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 381 extern void bta_ag_do_disc(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 382 extern void bta_ag_free_db(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 385 extern void bta_ag_start_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services); [all …]
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/av/include/ |
D | bta_av_int.h | 371 typedef void (tBTA_AV_VDP_DATA_ACT)(void *p_scb); 494 typedef void (*tBTA_AV_SACT)(tBTA_AV_SCB *p_scb, tBTA_AV_DATA *p_data); 499 tBTA_AV_SCB *p_scb[BTA_AV_NUM_STRS]; /* stream control block */ member 581 extern BOOLEAN bta_av_chk_start(tBTA_AV_SCB *p_scb); 583 extern UINT16 bta_av_chk_mtu(tBTA_AV_SCB *p_scb, UINT16 mtu); 586 extern void bta_av_stream_chg(tBTA_AV_SCB *p_scb, BOOLEAN started); 587 extern BOOLEAN bta_av_is_scb_opening (tBTA_AV_SCB *p_scb); 588 extern BOOLEAN bta_av_is_scb_incoming (tBTA_AV_SCB *p_scb); 589 extern void bta_av_set_scb_sst_init (tBTA_AV_SCB *p_scb); 590 extern BOOLEAN bta_av_is_scb_init (tBTA_AV_SCB *p_scb); [all …]
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/avdt/include/ |
D | 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 …]
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/hf_client/ |
D | bta_hf_client_sco.c | 477 tBTA_HF_CLIENT_SCB *p_scb = &bta_hf_client_cb.scb; in bta_hf_client_sco_event() local 487 p_buf = osi_calloc(sizeof(BT_HDR) + pkt_offset + p_scb->out_pkt_len); in bta_hf_client_sco_event() 496 if (len_to_send == p_scb->out_pkt_len) { in bta_hf_client_sco_event() 499 tBTM_STATUS write_stat = BTM_WriteScoData(p_scb->sco_idx, p_buf); in bta_hf_client_sco_event()
|