Lines Matching refs:shdl
75 tBTA_AV_RCB * bta_av_get_rcb_by_shdl(UINT8 shdl) in bta_av_get_rcb_by_shdl() argument
82 if (bta_av_cb.rcb[i].shdl == shdl && bta_av_cb.rcb[i].handle != BTA_AV_RC_HANDLE_NONE) in bta_av_get_rcb_by_shdl()
109 if (p_rcb->shdl) in bta_av_del_rc()
112 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) in bta_av_del_rc()
114 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc()
118 APPL_TRACE_DEBUG("bta_av_del_rc shdl:%d, srch:%d rc_handle:%d", p_rcb->shdl, in bta_av_del_rc()
136 p_rcb->shdl = 0; in bta_av_del_rc()
163 if ((p_cb->disabling == TRUE) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc()
303 UINT8 bta_av_rc_create(tBTA_AV_CB *p_cb, UINT8 role, UINT8 shdl, UINT8 lidx) in bta_av_rc_create() argument
308 tBTA_AV_SCB *p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create()
320 if ((p_rcb = bta_av_get_rcb_by_shdl(shdl)) != NULL ) in bta_av_rc_create()
322 APPL_TRACE_ERROR("bta_av_rc_create ACP handle exist for shdl:%d", shdl); in bta_av_rc_create()
347 p_rcb->shdl = shdl; in bta_av_rc_create()
358 i, role, shdl, p_rcb->handle, lidx, p_rcb->status); in bta_av_rc_create()
492 UINT8 shdl = 0; in bta_av_rc_opened() local
506 shdl = i+1; in bta_av_rc_opened()
521 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0) in bta_av_rc_opened()
525 p_rcb = bta_av_get_rcb_by_shdl(shdl); in bta_av_rc_opened()
528 p_rcb->shdl = p_cb->rcb[i].shdl; in bta_av_rc_opened()
539 p_cb->rcb[i].shdl = shdl; in bta_av_rc_opened()
542 i, shdl, p_cb->rcb[i].lidx, p_cb->lcb[BTA_AV_NUM_LINKS].lidx); in bta_av_rc_opened()
545 if (!shdl && 0 == p_cb->lcb[BTA_AV_NUM_LINKS].lidx) in bta_av_rc_opened()
1063 if (p_rcb->shdl) in bta_av_rc_close()
1065 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_rc_close()
1090 UINT8 shdl = 0; in bta_av_get_shdl() local
1096 shdl = i+1; in bta_av_get_shdl()
1100 return shdl; in bta_av_get_shdl()
1222 bta_av_cb.rcb[i].shdl = index + 1; in bta_av_conn_chg()
1225 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx); in bta_av_conn_chg()
1271 p_rcb->shdl = bta_av_get_shdl(p_scb); in bta_av_conn_chg()
1272 APPL_TRACE_DEBUG("update rc_acp shdl:%d/%d srch:%d", index + 1, p_rcb->shdl, in bta_av_conn_chg()
1275 p_rcb2 = bta_av_get_rcb_by_shdl(p_rcb->shdl); in bta_av_conn_chg()
1332 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx); in bta_av_conn_chg()
1333 if (bta_av_cb.rcb[i].shdl == index + 1) in bta_av_conn_chg()
1961 APPL_TRACE_DEBUG(" shdl:%d, lidx:%d", p_rcb->shdl, p_rcb->lidx); in bta_av_rc_closed()
1962 if (p_rcb->shdl) in bta_av_rc_closed()
1964 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) in bta_av_rc_closed()
1966 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_rc_closed()
1973 APPL_TRACE_DEBUG("shdl:%d, srch:%d", p_rcb->shdl, p_scb->rc_handle); in bta_av_rc_closed()
1975 p_rcb->shdl = 0; in bta_av_rc_closed()