Lines Matching refs:p_scbi

768   tBTA_AV_SCB* p_scbi;  in bta_av_chk_start()  local
782 p_scbi = bta_av_cb.p_scb[i]; in bta_av_chk_start()
783 if (p_scbi && p_scbi->chnl == BTA_AV_CHNL_AUDIO && p_scbi->co_started) { in bta_av_chk_start()
787 if (p_scbi->co_started != bta_av_cb.audio_open_cnt) { in bta_av_chk_start()
788 p_scbi->co_started = bta_av_cb.audio_open_cnt; in bta_av_chk_start()
790 p_scbi->peer_addr, in bta_av_chk_start()
791 p_bta_av_cfg->p_audio_flush_to[p_scbi->co_started - 1]); in bta_av_chk_start()
968 tBTA_AV_SCB* p_scbi; in bta_av_switch_if_needed() local
974 p_scbi = bta_av_cb.p_scb[i]; in bta_av_switch_if_needed()
975 if (p_scbi && (p_scb->hdi != i) && /* not the original channel */ in bta_av_switch_if_needed()
979 BTM_GetRole(p_scbi->peer_addr, &role); in bta_av_switch_if_needed()
985 p_scbi->peer_addr); in bta_av_switch_if_needed()
987 BTM_SwitchRole(p_scbi->peer_addr, BTM_ROLE_MASTER, NULL)) { in bta_av_switch_if_needed()
1053 tBTA_AV_SCB* p_scbi; in bta_av_chk_mtu() local
1063 p_scbi = bta_av_cb.p_scb[i]; in bta_av_chk_mtu()
1064 if ((p_scb != p_scbi) && p_scbi && in bta_av_chk_mtu()
1065 (p_scbi->chnl == BTA_AV_CHNL_AUDIO)) { in bta_av_chk_mtu()
1067 APPL_TRACE_DEBUG("[%d] mtu: %d, mask:0x%x", i, p_scbi->stream_mtu, in bta_av_chk_mtu()
1070 if (ret_mtu > p_scbi->stream_mtu) ret_mtu = p_scbi->stream_mtu; in bta_av_chk_mtu()
1097 tBTA_AV_SCB* p_scbi = bta_av_cb.p_scb[i]; in bta_av_dup_audio_buf() local
1100 if ((p_scbi == NULL) || !p_scbi->co_started) in bta_av_dup_audio_buf()
1108 list_append(p_scbi->a2dp_list, p_new); in bta_av_dup_audio_buf()
1110 if (list_length(p_scbi->a2dp_list) > p_bta_av_cfg->audio_mqs) { in bta_av_dup_audio_buf()
1112 bta_av_co_audio_drop(p_scbi->hndl); in bta_av_dup_audio_buf()
1113 BT_HDR* p_buf_drop = static_cast<BT_HDR*>(list_front(p_scbi->a2dp_list)); in bta_av_dup_audio_buf()
1114 list_remove(p_scbi->a2dp_list, p_buf_drop); in bta_av_dup_audio_buf()