• Home
  • Raw
  • Download

Lines Matching refs:sco_idx

120 static void bta_ag_sco_conn_cback(uint16_t sco_idx) {  in bta_ag_sco_conn_cback()  argument
131 handle = bta_ag_idx_by_bdaddr(BTM_ReadScoBdAddr(sco_idx)); in bta_ag_sco_conn_cback()
144 BTM_RemoveSco(sco_idx); in bta_ag_sco_conn_cback()
158 static void bta_ag_sco_disc_cback(uint16_t sco_idx) { in bta_ag_sco_disc_cback() argument
164 sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback()
169 &bta_ag_cb.scb[0], bta_ag_cb.scb[0].in_use, bta_ag_cb.scb[0].sco_idx, in bta_ag_sco_disc_cback()
174 &bta_ag_cb.scb[1], bta_ag_cb.scb[1].in_use, bta_ag_cb.scb[1].sco_idx, in bta_ag_sco_disc_cback()
180 if (bta_ag_cb.sco.p_curr_scb->sco_idx != sco_idx) { in bta_ag_sco_disc_cback()
181 if (bta_ag_cb.sco.p_curr_scb->sco_idx != 0xFFFF) return; in bta_ag_sco_disc_cback()
229 bta_ag_cb.sco.p_curr_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_sco_disc_cback()
248 if (p_scb->sco_idx != BTM_INVALID_SCO_INDEX) { in bta_ag_remove_sco()
249 if (!only_active || p_scb->sco_idx == bta_ag_cb.sco.cur_idx) { in bta_ag_remove_sco()
250 tBTM_STATUS status = BTM_RemoveSco(p_scb->sco_idx); in bta_ag_remove_sco()
252 p_scb->sco_idx, status); in bta_ag_remove_sco()
259 p_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_remove_sco()
285 p_scb->sco_idx = sco_inx; in bta_ag_esco_connreq_cback()
295 bta_ag_cb.sco.cur_idx = p_scb->sco_idx; in bta_ag_esco_connreq_cback()
383 if (p_scb->sco_idx != BTM_INVALID_SCO_INDEX) { in bta_ag_create_sco()
385 p_scb->peer_addr.ToString().c_str(), p_scb->sco_idx); in bta_ag_create_sco()
443 is_orig, p_scb->sco_idx, params.packet_types); in bta_ag_create_sco()
447 &p_scb->peer_addr, false, params.packet_types, &p_scb->sco_idx, in bta_ag_create_sco()
450 BTM_RegForEScoEvts(p_scb->sco_idx, bta_ag_esco_connreq_cback); in bta_ag_create_sco()
454 __func__, is_orig, p_scb->sco_idx, status, in bta_ag_create_sco()
481 bta_ag_cb.sco.cur_idx = p_scb->sco_idx; in bta_ag_create_pending_sco()
510 &p_scb->sco_idx, bta_ag_sco_conn_cback, in bta_ag_create_pending_sco()
513 bta_ag_cb.sco.cur_idx = p_scb->sco_idx; in bta_ag_create_pending_sco()
525 BTM_EScoConnRsp(p_scb->sco_idx, HCI_SUCCESS, &params); in bta_ag_create_pending_sco()
623 __func__, p_scb->sco_idx, in bta_ag_sco_event()
871 p_sco->cur_idx = p_sco->p_xfer_scb->sco_idx; in bta_ag_sco_event()
1084 p_sco->p_curr_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_sco_event()
1105 p_sco->p_curr_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_sco_event()
1220 if ((p_scb->sco_idx != BTM_INVALID_SCO_INDEX) || in bta_ag_sco_close()
1222 APPL_TRACE_DEBUG("bta_ag_sco_close: sco_inx = %d", p_scb->sco_idx); in bta_ag_sco_close()
1241 p_scb->sco_idx, p_scb->peer_addr.ToString().c_str()); in bta_ag_sco_codec_nego()
1247 p_scb->sco_idx, p_scb->peer_addr.ToString().c_str()); in bta_ag_sco_codec_nego()
1304 p_scb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_ag_sco_conn_close()