Lines Matching refs:rcb
60 ** Description find the RCB associated with the given SCB handle.
72 if (bta_av_cb.rcb[i].shdl == shdl && bta_av_cb.rcb[i].handle != BTA_AV_RC_HANDLE_NONE)
74 p_rcb = &bta_av_cb.rcb[i];
149 if ((p_cb->disabling == TRUE) || (bta_av_cb.rcb[i].shdl != 0))
150 bta_av_del_rc(&bta_av_cb.rcb[i]);
291 ** Description alloc RCB and call AVRC_Open
332 p_rcb = &p_cb->rcb[i];
509 if (p_cb->rcb[i].handle == BTA_AV_RC_HANDLE_NONE)
516 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0)
523 p_rcb->shdl = p_cb->rcb[i].shdl;
525 p_rcb->lidx = p_cb->rcb[i].lidx;
526 p_cb->rcb[i].lidx = tmp;
528 p_cb->rc_acp_idx = (p_rcb - p_cb->rcb) + 1;
529 APPL_TRACE_DEBUG2("switching RCB rc_acp_handle:%d idx:%d",
534 p_cb->rcb[i].shdl = shdl;
536 APPL_TRACE_ERROR4("bta_av_rc_opened rcb[%d] shdl:%d lidx:%d/%d",
537 i, shdl, p_cb->rcb[i].lidx, p_cb->lcb[BTA_AV_NUM_LINKS].lidx);
538 p_cb->rcb[i].status |= BTA_AV_RC_CONN_MASK;
551 p_cb->rcb[i].lidx = p_lcb->lidx;
553 APPL_TRACE_ERROR3("rcb[%d].lidx=%d, lcb.conn_msk=x%x",
554 i, p_cb->rcb[i].lidx, p_lcb->conn_msk);
559 rc_open.peer_features = p_cb->rcb[i].peer_features;
591 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
618 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
641 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
666 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
1023 p_rcb = &p_cb->rcb[handle];
1183 if (bta_av_cb.rcb[i].lidx == p_lcb->lidx)
1185 bta_av_cb.rcb[i].shdl = index + 1;
1187 bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status,
1188 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx);
1230 * need to update the association betwen SCB and RCB */
1234 p_rcb = &p_cb->rcb[p_cb->rc_acp_idx - 1];
1242 /* found the RCB that was created to associated with this SCB */
1244 p_cb->rc_acp_idx = (p_rcb2 - p_cb->rcb) + 1;
1295 bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status,
1296 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx);
1297 if(bta_av_cb.rcb[i].shdl == index + 1)
1299 bta_av_del_rc(&bta_av_cb.rcb[i]);
1741 p_cb->rcb[rc_handle].peer_features = peer_features;
1763 p_cb->rcb[rc_handle].peer_features = peer_features;
1794 p_rcb = &p_cb->rcb[i];
1795 APPL_TRACE_DEBUG3("bta_av_rc_closed rcb[%d] rc_handle:%d, status=0x%x", i, p_rcb->handle, p_rcb->status);
1816 /* if the RCB uses the extra LCB, use the addr for event and clean it */
1894 if (p_cb->rcb[rc_handle].lidx)
1896 p_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx-1].addr;