Home | History | Annotate | Download | only in av

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]);
293 ** Description alloc RCB and call AVRC_Open
334 p_rcb = &p_cb->rcb[i];
511 if (p_cb->rcb[i].handle == BTA_AV_RC_HANDLE_NONE)
518 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0)
525 rcb[i].shdl;
527 p_rcb->lidx = p_cb->rcb[i].lidx;
528 p_cb->rcb[i].lidx = tmp;
530 p_cb->rc_acp_idx = (p_rcb - p_cb->rcb) + 1;
531 APPL_TRACE_DEBUG("switching RCB rc_acp_handle:%d idx:%d",
536 p_cb->rcb[i].shdl = shdl;
538 APPL_TRACE_ERROR("bta_av_rc_opened rcb[%d] shdl:%d lidx:%d/%d",
539 i, shdl, p_cb->rcb[i].lidx, p_cb->lcb[BTA_AV_NUM_LINKS].lidx);
540 p_cb->rcb[i].status |= BTA_AV_RC_CONN_MASK;
553 p_cb->rcb[i].lidx = p_lcb->lidx;
555 APPL_TRACE_ERROR("rcb[%d].lidx=%d, lcb.conn_msk=x%x",
556 i, p_cb->rcb[i].lidx, p_lcb->conn_msk);
561 rc_open.peer_features = p_cb->rcb[i].peer_features;
593 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
620 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
643 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
668 p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
1032 p_rcb = &p_cb->rcb[handle];
1192 if (bta_av_cb.rcb[i].lidx == p_lcb->lidx)
1194 bta_av_cb.rcb[i].shdl = index + 1;
1196 bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status,
1197 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx);
1239 * need to update the association betwen SCB and RCB */
1243 p_rcb = &p_cb->rcb[p_cb->rc_acp_idx - 1];
1251 /* found the RCB that was created to associated with this SCB */
1253 p_cb->rc_acp_idx = (p_rcb2 - p_cb->rcb) + 1;
1304 bta_av_cb.rcb[i].handle, bta_av_cb.rcb[i].status,
1305 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx);
1306 if(bta_av_cb.rcb[i].shdl == index + 1)
1308 bta_av_del_rc(&bta_av_cb.rcb[i]);
1753 p_cb->rcb[rc_handle].peer_features = peer_features;
1775 p_cb->rcb[rc_handle].peer_features = peer_features;
1806 p_rcb = &p_cb->rcb[i];
1807 APPL_TRACE_DEBUG("bta_av_rc_closed rcb[%d] rc_handle:%d, status=0x%x", i, p_rcb->handle, p_rcb->status);
1828 /* if the RCB uses the extra LCB, use the addr for event and clean it */
1906 if (p_cb->rcb[rc_handle].lidx)
1908 p_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx-1].addr;