Lines Matching refs:rc_handle
104 uint8_t rc_handle; /* connected AVRCP handle */ in bta_av_del_rc() local
115 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc()
116 if (p_scb->rc_handle == p_rcb->handle) in bta_av_del_rc()
117 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()
319 uint8_t rc_handle; in bta_av_rc_create() local
342 if (AVRC_Open(&rc_handle, &ccb, bda) != AVRC_SUCCESS) in bta_av_rc_create()
345 i = rc_handle; in bta_av_rc_create()
349 APPL_TRACE_ERROR("%s: found duplicated handle:%d", __func__, rc_handle); in bta_av_rc_create()
352 p_rcb->handle = rc_handle; in bta_av_rc_create()
368 return rc_handle; in bta_av_rc_create()
491 p_scb->rc_handle = p_data->rc_conn_chg.handle; in bta_av_rc_opened()
493 p_scb->rc_handle); in bta_av_rc_opened()
534 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()
997 av.remote_cmd.rc_handle = p_data->rc_msg.handle; in bta_av_rc_msg()
1175 p_scb->rc_handle = p_cb->rc_acp_handle; in bta_av_conn_chg()
1179 index + 1, p_rcb->shdl, p_scb->rc_handle); in bta_av_conn_chg()
1757 uint8_t rc_handle; in bta_av_rc_disc_done() local
1767 rc_handle = p_cb->disc & (~BTA_AV_CHNL_MSK); in bta_av_rc_disc_done()
1774 rc_handle = p_scb->rc_handle; in bta_av_rc_disc_done()
1781 APPL_TRACE_DEBUG("%s: rc_handle %d", __func__, rc_handle); in bta_av_rc_disc_done()
1832 if (rc_handle == BTA_AV_RC_HANDLE_NONE) { in bta_av_rc_disc_done()
1841 rc_handle = bta_av_rc_create(p_cb, AVCT_INT, in bta_av_rc_disc_done()
1843 p_cb->rcb[rc_handle].peer_features = peer_features; in bta_av_rc_disc_done()
1861 p_cb->rcb[rc_handle].peer_features = peer_features; in bta_av_rc_disc_done()
1862 rc_feat.rc_handle = rc_handle; in bta_av_rc_disc_done()
1870 rc_feat.peer_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx].addr; in bta_av_rc_disc_done()
1899 rc_close.rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_rc_closed()
1907 rc_close.rc_handle = i; in bta_av_rc_closed()
1918 if (p_scb->rc_handle == p_rcb->handle) in bta_av_rc_closed()
1919 p_scb->rc_handle = BTA_AV_RC_HANDLE_NONE; in bta_av_rc_closed()
1921 p_scb->rc_handle); in bta_av_rc_closed()
1960 if (rc_close.rc_handle == BTA_AV_RC_HANDLE_NONE) { in bta_av_rc_closed()
1961 rc_close.rc_handle = p_msg->handle; in bta_av_rc_closed()
1987 rc_browse_open.rc_handle = p_msg->handle; in bta_av_rc_browse_opened()
2012 rc_browse_close.rc_handle = p_msg->handle; in bta_av_rc_browse_closed()
2038 uint8_t rc_handle; in bta_av_rc_disc() local
2046 rc_handle = disc & (~BTA_AV_CHNL_MSK); in bta_av_rc_disc()
2047 if (p_cb->rcb[rc_handle].lidx) { in bta_av_rc_disc()
2048 peer_addr = p_cb->lcb[p_cb->rcb[rc_handle].lidx - 1].addr; in bta_av_rc_disc()
2055 APPL_TRACE_DEBUG("%s: rc_handle %d", __func__, p_scb->rc_handle); in bta_av_rc_disc()