• Home
  • Raw
  • Download

Lines Matching refs:shdl

73 tBTA_AV_RCB* bta_av_get_rcb_by_shdl(uint8_t shdl) {  in bta_av_get_rcb_by_shdl()  argument
78 if (bta_av_cb.rcb[i].shdl == shdl && in bta_av_get_rcb_by_shdl()
103 if (p_rcb->shdl) { in bta_av_del_rc()
105 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_del_rc()
106 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc()
110 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc()
128 p_rcb->shdl = 0; in bta_av_del_rc()
155 if ((p_cb->disabling) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc()
301 uint8_t bta_av_rc_create(tBTA_AV_CB* p_cb, uint8_t role, uint8_t shdl, in bta_av_rc_create() argument
317 if (!shdl) { in bta_av_rc_create()
320 __func__, shdl, shdl - 1); in bta_av_rc_create()
323 tBTA_AV_SCB* p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create()
327 p_rcb = bta_av_get_rcb_by_shdl(shdl); in bta_av_rc_create()
329 APPL_TRACE_ERROR("%s: ACP handle exist for shdl:%d", __func__, shdl); in bta_av_rc_create()
356 p_rcb->shdl = shdl; in bta_av_rc_create()
369 __func__, i, role, shdl, p_rcb->handle, lidx, p_rcb->status); in bta_av_rc_create()
484 uint8_t shdl = 0; in bta_av_rc_opened() local
497 shdl = i + 1; in bta_av_rc_opened()
520 if (p_cb->rcb[i].lidx == (BTA_AV_NUM_LINKS + 1) && shdl != 0) { in bta_av_rc_opened()
523 p_rcb = bta_av_get_rcb_by_shdl(shdl); in bta_av_rc_opened()
525 p_rcb->shdl = p_cb->rcb[i].shdl; in bta_av_rc_opened()
536 p_cb->rcb[i].shdl = shdl; in bta_av_rc_opened()
538 APPL_TRACE_ERROR("%s: rcb[%d] shdl:%d lidx:%d/%d", __func__, i, shdl, in bta_av_rc_opened()
542 if (!shdl && 0 == p_cb->lcb[BTA_AV_NUM_LINKS].lidx) { in bta_av_rc_opened()
1029 if (p_rcb->shdl) { in bta_av_rc_close()
1030 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_rc_close()
1066 uint8_t shdl = 0; in bta_av_get_shdl() local
1070 shdl = i + 1; in bta_av_get_shdl()
1074 return shdl; in bta_av_get_shdl()
1140 bta_av_cb.rcb[i].shdl = index + 1; in bta_av_conn_chg()
1144 bta_av_cb.rcb[i].shdl, bta_av_cb.rcb[i].lidx); in bta_av_conn_chg()
1180 p_rcb->shdl = bta_av_get_shdl(p_scb); in bta_av_conn_chg()
1182 index + 1, p_rcb->shdl, p_scb->rc_handle); in bta_av_conn_chg()
1184 p_rcb2 = bta_av_get_rcb_by_shdl(p_rcb->shdl); in bta_av_conn_chg()
1232 bta_av_cb.rcb[i].status, bta_av_cb.rcb[i].shdl, in bta_av_conn_chg()
1234 if (bta_av_cb.rcb[i].shdl == index + 1) { in bta_av_conn_chg()
1238 bta_av_cb.rcb[i].shdl = 0; in bta_av_conn_chg()
2067 APPL_TRACE_DEBUG("%s: shdl:%d, lidx:%d", __func__, p_rcb->shdl, in bta_av_rc_closed()
2069 if (p_rcb->shdl) { in bta_av_rc_closed()
2070 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_rc_closed()
2071 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_rc_closed()
2077 APPL_TRACE_DEBUG("%s: shdl:%d, srch:%d", __func__, p_rcb->shdl, in bta_av_rc_closed()
2080 p_rcb->shdl = 0; in bta_av_rc_closed()