Lines Matching refs:p_scbi
750 tBTA_AV_SCB* p_scbi = bta_av_cb.p_scb[i]; in bta_av_chk_start() local
751 if (p_scbi && p_scbi->chnl == BTA_AV_CHNL_AUDIO && p_scbi->co_started) { in bta_av_chk_start()
754 if (p_scbi->co_started != bta_av_cb.audio_open_cnt) { in bta_av_chk_start()
755 p_scbi->co_started = bta_av_cb.audio_open_cnt; in bta_av_chk_start()
959 tBTA_AV_SCB* p_scbi; in bta_av_switch_if_needed()
965 p_scbi = bta_av_cb.p_scb[i]; in bta_av_switch_if_needed()
966 if (p_scbi && (p_scb->hdi != i) && /* not the original channel */ in bta_av_switch_if_needed()
969 BTM_GetRole(p_scbi->PeerAddress(), &role); in bta_av_switch_if_needed()
974 BTM_block_role_switch_for(p_scbi->PeerAddress()); in bta_av_switch_if_needed()
976 BTM_SwitchRole(p_scbi->PeerAddress(), HCI_ROLE_CENTRAL)) { in bta_av_switch_if_needed()
1058 tBTA_AV_SCB* p_scbi = bta_av_cb.p_scb[i]; in bta_av_dup_audio_buf() local
1061 if ((p_scbi == NULL) || !p_scbi->co_started) in bta_av_dup_audio_buf()
1069 list_append(p_scbi->a2dp_list, p_new); in bta_av_dup_audio_buf()
1071 if (list_length(p_scbi->a2dp_list) > p_bta_av_cfg->audio_mqs) { in bta_av_dup_audio_buf()
1073 bta_av_co_audio_drop(p_scbi->hndl, p_scbi->PeerAddress()); in bta_av_dup_audio_buf()
1074 BT_HDR* p_buf_drop = static_cast<BT_HDR*>(list_front(p_scbi->a2dp_list)); in bta_av_dup_audio_buf()
1075 list_remove(p_scbi->a2dp_list, p_buf_drop); in bta_av_dup_audio_buf()