Lines Matching refs:rcb
83 if (bta_av_cb.rcb[i].shdl == shdl && in bta_av_get_rcb_by_shdl()
84 bta_av_cb.rcb[i].handle != BTA_AV_RC_HANDLE_NONE) { in bta_av_get_rcb_by_shdl()
85 p_rcb = &bta_av_cb.rcb[i]; in bta_av_get_rcb_by_shdl()
160 if ((p_cb->disabling) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc()
161 bta_av_del_rc(&bta_av_cb.rcb[i]); in bta_av_close_all_rc()
354 p_rcb = &p_cb->rcb[i]; in bta_av_rc_create()
513 if (p_cb->rcb[i].handle == BTA_AV_RC_HANDLE_NONE) { in bta_av_rc_opened()
519 p_cb->features, p_cb->rcb[i].peer_features); in bta_av_rc_opened()
526 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0) { in bta_av_rc_opened()
531 p_rcb->shdl = p_cb->rcb[i].shdl; in bta_av_rc_opened()
533 p_rcb->lidx = p_cb->rcb[i].lidx; in bta_av_rc_opened()
534 p_cb->rcb[i].lidx = tmp; in bta_av_rc_opened()
536 p_cb->rc_acp_idx = (p_rcb - p_cb->rcb) + 1; in bta_av_rc_opened()
542 p_cb->rcb[i].shdl = shdl; in bta_av_rc_opened()
545 p_cb->rcb[i].lidx, p_cb->lcb[BTA_AV_NUM_LINKS].lidx); in bta_av_rc_opened()
546 p_cb->rcb[i].status |= BTA_AV_RC_CONN_MASK; in bta_av_rc_opened()
554 p_cb->rcb[i].lidx = p_lcb->lidx; in bta_av_rc_opened()
558 p_cb->rcb[i].lidx, p_lcb->conn_msk); in bta_av_rc_opened()
563 rc_open.peer_features = p_cb->rcb[i].peer_features; in bta_av_rc_opened()
564 rc_open.cover_art_psm = p_cb->rcb[i].cover_art_psm; in bta_av_rc_opened()
589 ((p_cb->rcb[i].status & BTA_AV_RC_ROLE_MASK) == BTA_AV_RC_ROLE_INT)) { in bta_av_rc_opened()
608 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_remote_cmd()
631 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_vendor_cmd()
652 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_vendor_rsp()
676 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific]; in bta_av_rc_meta_rsp()
1030 p_rcb = &p_cb->rcb[handle]; in bta_av_rc_close()
1147 if (bta_av_cb.rcb[i].lidx == p_lcb->lidx) { in bta_av_conn_chg()
1148 bta_av_cb.rcb[i].shdl = index + 1; in bta_av_conn_chg()
1151 __func__, i, bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status, in bta_av_conn_chg()
1152 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx); in bta_av_conn_chg()
1187 p_rcb = &p_cb->rcb[p_cb->rc_acp_idx - 1]; in bta_av_conn_chg()
1196 p_cb->rc_acp_idx = (p_rcb2 - p_cb->rcb) + 1; in bta_av_conn_chg()
1239 __func__, i, bta_av_cb.rcb[i].handle, in bta_av_conn_chg()
1240 bta_av_cb.rcb[i].status, bta_av_cb.rcb[i].shdl, in bta_av_conn_chg()
1241 bta_av_cb.rcb[i].lidx); in bta_av_conn_chg()
1242 if (bta_av_cb.rcb[i].shdl == index + 1) { in bta_av_conn_chg()
1243 bta_av_del_rc(&bta_av_cb.rcb[i]); in bta_av_conn_chg()
1246 bta_av_cb.rcb[i].shdl = 0; in bta_av_conn_chg()
1975 p_cb->rcb[rc_handle].peer_features = peer_features; in bta_av_rc_disc_done()
1976 p_cb->rcb[rc_handle].cover_art_psm = cover_art_psm; in bta_av_rc_disc_done()
1995 p_cb->rcb[rc_handle].peer_features = peer_features; in bta_av_rc_disc_done()
2004 rc_feat.peer_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx - 1].addr; in bta_av_rc_disc_done()
2016 p_cb->rcb[rc_handle].cover_art_psm = cover_art_psm; in bta_av_rc_disc_done()
2020 rc_psm.peer_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx - 1].addr; in bta_av_rc_disc_done()
2056 p_rcb = &p_cb->rcb[i]; in bta_av_rc_closed()
2200 if (p_cb->rcb[rc_handle].lidx) { in bta_av_rc_disc()
2201 peer_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx - 1].addr; in bta_av_rc_disc()