Lines Matching refs:shdl
78 tBTA_AV_RCB* bta_av_get_rcb_by_shdl(uint8_t shdl) { in bta_av_get_rcb_by_shdl() argument
83 if (bta_av_cb.rcb[i].shdl == shdl && in bta_av_get_rcb_by_shdl()
108 if (p_rcb->shdl) { in bta_av_del_rc()
110 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_del_rc()
111 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc()
115 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc()
133 p_rcb->shdl = 0; in bta_av_del_rc()
160 if ((p_cb->disabling) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc()
306 uint8_t bta_av_rc_create(tBTA_AV_CB* p_cb, uint8_t role, uint8_t shdl, in bta_av_rc_create() argument
323 if (!shdl) { in bta_av_rc_create()
326 __func__, shdl, shdl - 1); in bta_av_rc_create()
329 tBTA_AV_SCB* p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create()
333 p_rcb = bta_av_get_rcb_by_shdl(shdl); in bta_av_rc_create()
335 APPL_TRACE_ERROR("%s: ACP handle exist for shdl:%d", __func__, shdl); in bta_av_rc_create()
362 p_rcb->shdl = shdl; in bta_av_rc_create()
374 __func__, i, role, shdl, p_rcb->handle, lidx, p_rcb->status); in bta_av_rc_create()
489 uint8_t shdl = 0; in bta_av_rc_opened() local
502 shdl = i + 1; in bta_av_rc_opened()
525 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0) { in bta_av_rc_opened()
528 p_rcb = bta_av_get_rcb_by_shdl(shdl); in bta_av_rc_opened()
530 p_rcb->shdl = p_cb->rcb[i].shdl; in bta_av_rc_opened()
541 p_cb->rcb[i].shdl = shdl; in bta_av_rc_opened()
543 APPL_TRACE_ERROR("%s: rcb[%d] shdl:%d lidx:%d/%d", __func__, i, shdl, in bta_av_rc_opened()
547 if (!shdl && 0 == p_cb->lcb[BTA_AV_NUM_LINKS].lidx) { in bta_av_rc_opened()
1032 if (p_rcb->shdl) { in bta_av_rc_close()
1033 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_rc_close()
1069 uint8_t shdl = 0; in bta_av_get_shdl() local
1073 shdl = i + 1; in bta_av_get_shdl()
1077 return shdl; in bta_av_get_shdl()
1145 bta_av_cb.rcb[i].shdl = index + 1; in bta_av_conn_chg()
1149 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx); in bta_av_conn_chg()
1185 p_rcb->shdl = bta_av_get_shdl(p_scb); in bta_av_conn_chg()
1187 index + 1, p_rcb->shdl, p_scb->rc_handle); in bta_av_conn_chg()
1189 p_rcb2 = bta_av_get_rcb_by_shdl(p_rcb->shdl); in bta_av_conn_chg()
1237 bta_av_cb.rcb[i].status, bta_av_cb.rcb[i].shdl, in bta_av_conn_chg()
1239 if (bta_av_cb.rcb[i].shdl == index + 1) { in bta_av_conn_chg()
1243 bta_av_cb.rcb[i].shdl = 0; in bta_av_conn_chg()
1918 APPL_TRACE_DEBUG("%s: shdl:%d, lidx:%d", __func__, p_rcb->shdl, in bta_av_rc_closed()
1920 if (p_rcb->shdl) { in bta_av_rc_closed()
1921 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_rc_closed()
1922 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_rc_closed()
1928 APPL_TRACE_DEBUG("%s: shdl:%d, srch:%d", __func__, p_rcb->shdl, in bta_av_rc_closed()
1931 p_rcb->shdl = 0; in bta_av_rc_closed()