Home | History | Annotate | Download | only in av

Lines Matching refs:shdl

77 tBTA_AV_RCB* bta_av_get_rcb_by_shdl(uint8_t shdl) {
82 if (bta_av_cb.rcb[i].shdl == shdl &&
107 if (p_rcb->shdl) {
109 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) {
110 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1];
113 APPL_TRACE_DEBUG("%s: shdl:%d, srch:%d rc_handle:%d", __func__,
114 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle);
132 p_rcb->shdl = 0;
159 if ((p_cb->disabling) || (bta_av_cb.rcb[i].shdl != 0))
305 uint8_t bta_av_rc_create(tBTA_AV_CB* p_cb, uint8_t role, uint8_t shdl,
316 tBTA_AV_SCB* p_scb = p_cb->p_scb[shdl - 1];
325 p_rcb = bta_av_get_rcb_by_shdl(shdl);
327 APPL_TRACE_ERROR("%s: ACP handle exist for shdl:%d", __func__, shdl);
353 p_rcb->shdl = shdl;
364 "%s: create %d, role: %d, shdl:%d, rc_handle:%d, lidx:%d, status:0x%x",
365 __func__, i, role, shdl, p_rcb->handle, lidx, p_rcb->status);
480 uint8_t shdl = 0;
491 APPL_TRACE_DEBUG("%s: shdl:%d, srch %d", __func__, i + 1,
493 shdl = i + 1;
516 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0) {
519 p_rcb = bta_av_get_rcb_by_shdl(shdl);
521 p_rcb->shdl = p_cb->rcb[i].shdl;
532 p_cb->rcb[i].shdl = shdl;
534 APPL_TRACE_ERROR("%s: rcb[%d] shdl:%d lidx:%d/%d", __func__, i, shdl,
538 if (!shdl && 0 == p_cb->lcb[BTA_AV_NUM_LINKS].lidx) {
1018 if (p_rcb->shdl) {
1019 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1];
1055 uint8_t shdl = 0;
1059 shdl = i + 1;
1063 return shdl;
1131 bta_av_cb.rcb[i].shdl = index + 1;
1133 "%s: conn_chg up[%d]: %d, status=0x%x, shdl:%d, lidx:%d",
1135 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx);
1171 p_rcb->shdl = bta_av_get_shdl(p_scb);
1172 APPL_TRACE_DEBUG("%s: update rc_acp shdl:%d/%d srch:%d", __func__,
1173 index + 1, p_rcb->shdl, p_scb->rc_handle);
1175 p_rcb2 = bta_av_get_rcb_by_shdl(p_rcb->shdl);
1219 APPL_TRACE_DEBUG("%s: shdl:%d", __func__, index + 1);
1221 APPL_TRACE_DEBUG("%s: conn_chg dn[%d]: %d, status=0x%x, shdl:%d, lidx:%d",
1223 bta_av_cb.rcb[i].status, bta_av_cb.rcb[i].shdl,
1225 if (bta_av_cb.rcb[i].shdl == index + 1) {
1229 bta_av_cb.rcb[i].shdl = 0;
1904 APPL_TRACE_DEBUG("%s: shdl:%d, lidx:%d", __func__, p_rcb->shdl,
1906 if (p_rcb->shdl) {
1907 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) {
1908 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1];
1914 APPL_TRACE_DEBUG("%s: shdl:%d, srch:%d", __func__, p_rcb->shdl,
1917 p_rcb->shdl = 0;