Lines Matching refs:rc_handle
103 uint8_t rc_handle; /* connected AVRCP handle */ in bta_av_del_rc() local
114 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc()
115 if (p_scb->rc_handle == p_rcb->handle) in bta_av_del_rc()
116 p_scb->rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_del_rc()
128 rc_handle = p_rcb->handle; in bta_av_del_rc()
137 AVRC_Close(rc_handle); in bta_av_del_rc()
138 if (rc_handle == bta_av_cb.rc_acp_handle) in bta_av_del_rc()
312 uint8_t rc_handle; in bta_av_rc_create() local
335 if (AVRC_Open(&rc_handle, &ccb, bda) != AVRC_SUCCESS) in bta_av_rc_create()
338 i = rc_handle; in bta_av_rc_create()
342 APPL_TRACE_ERROR("bta_av_rc_create found duplicated handle:%d", rc_handle); in bta_av_rc_create()
345 p_rcb->handle = rc_handle; in bta_av_rc_create()
361 return rc_handle; in bta_av_rc_create()
482 p_scb->rc_handle = p_data->rc_conn_chg.handle; in bta_av_rc_opened()
484 p_scb->rc_handle); in bta_av_rc_opened()
525 rc_open.rc_handle = i; in bta_av_rc_opened()
976 av.meta_msg.rc_handle = p_data->rc_msg.handle; in bta_av_rc_msg()
999 av.remote_cmd.rc_handle = p_data->rc_msg.handle; in bta_av_rc_msg()
1221 p_scb->rc_handle = p_cb->rc_acp_handle; in bta_av_conn_chg()
1225 p_rcb->shdl, p_scb->rc_handle); in bta_av_conn_chg()
1742 uint8_t rc_handle; in bta_av_rc_disc_done() local
1752 rc_handle = p_cb->disc & (~BTA_AV_CHNL_MSK); in bta_av_rc_disc_done()
1759 rc_handle = p_scb->rc_handle; in bta_av_rc_disc_done()
1766 APPL_TRACE_DEBUG("%s rc_handle %d", __func__, rc_handle); in bta_av_rc_disc_done()
1800 if (rc_handle == BTA_AV_RC_HANDLE_NONE) { in bta_av_rc_disc_done()
1809 rc_handle = bta_av_rc_create(p_cb, AVCT_INT, in bta_av_rc_disc_done()
1811 p_cb->rcb[rc_handle].peer_features = peer_features; in bta_av_rc_disc_done()
1825 p_cb->rcb[rc_handle].peer_features = peer_features; in bta_av_rc_disc_done()
1826 rc_feat.rc_handle = rc_handle; in bta_av_rc_disc_done()
1834 bdcpy(rc_feat.peer_addr, p_cb->lcb[p_cb->rcb[rc_handle].lidx].addr); in bta_av_rc_disc_done()
1860 rc_close.rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_rc_closed()
1868 rc_close.rc_handle = i; in bta_av_rc_closed()
1878 if (p_scb->rc_handle == p_rcb->handle) in bta_av_rc_closed()
1879 p_scb->rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_rc_closed()
1880 APPL_TRACE_DEBUG("shdl:%d, srch:%d", p_rcb->shdl, p_scb->rc_handle); in bta_av_rc_closed()
1921 if (rc_close.rc_handle == BTA_AV_RC_HANDLE_NONE) { in bta_av_rc_closed()
1922 rc_close.rc_handle = p_msg->handle; in bta_av_rc_closed()
1949 rc_browse_open.rc_handle = p_msg->handle; in bta_av_rc_browse_opened()
1975 rc_browse_close.rc_handle = p_msg->handle; in bta_av_rc_browse_closed()
1999 uint8_t rc_handle; in bta_av_rc_disc() local
2006 rc_handle = disc & (~BTA_AV_CHNL_MSK); in bta_av_rc_disc()
2007 if (p_cb->rcb[rc_handle].lidx) { in bta_av_rc_disc()
2008 p_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx - 1].addr; in bta_av_rc_disc()
2015 APPL_TRACE_DEBUG("rc_handle %d", p_scb->rc_handle); in bta_av_rc_disc()