Lines Matching refs:iso
192 if (ase->ep.iso != NULL) { in ase_free()
193 bt_bap_iso_unbind_ep(ase->ep.iso, &ase->ep); in ase_free()
265 __ASSERT(ep != NULL && ep->iso && stream != NULL, in ascs_disconnect_stream_work_handler()
267 ep, ep == NULL ? NULL : ep->iso, stream); in ascs_disconnect_stream_work_handler()
270 pair_stream = ep->iso->tx.stream; in ascs_disconnect_stream_work_handler()
272 pair_stream = ep->iso->rx.stream; in ascs_disconnect_stream_work_handler()
300 ep->iso != NULL && in ascs_disconnect_stream_work_handler()
301 (ep->iso->chan.state == BT_ISO_STATE_CONNECTED || in ascs_disconnect_stream_work_handler()
302 ep->iso->chan.state == BT_ISO_STATE_CONNECTING)) { in ascs_disconnect_stream_work_handler()
388 if (ase->ep.dir == BT_AUDIO_DIR_SINK && ase->ep.receiver_ready && ase->ep.iso != NULL && in ase_enter_state_enabling()
389 ase->ep.iso->chan.state == BT_ISO_STATE_CONNECTED) { in ase_enter_state_enabling()
853 __ASSERT(ase->ep.iso != NULL, "ep %p not bound with ISO", &ase->ep); in ascs_iso_accept()
855 chan = &ase->ep.iso->chan; in ascs_iso_accept()
856 if (chan->iso != NULL) { in ascs_iso_accept()
876 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in ascs_iso_recv() local
881 ep = iso->rx.ep; in ascs_iso_recv()
931 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in ascs_iso_sent() local
936 ep = iso->tx.ep; in ascs_iso_sent()
966 io_qos = ep->iso->chan.qos->rx; in ascs_update_sdu_size()
968 io_qos = ep->iso->chan.qos->tx; in ascs_update_sdu_size()
1028 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in ascs_iso_connected() local
1030 if (iso->rx.ep == NULL && iso->tx.ep == NULL) { in ascs_iso_connected()
1035 if (iso->rx.ep != NULL) { in ascs_iso_connected()
1036 ascs_ep_iso_connected(iso->rx.ep); in ascs_iso_connected()
1039 if (iso->tx.ep != NULL) { in ascs_iso_connected()
1040 ascs_ep_iso_connected(iso->tx.ep); in ascs_iso_connected()
1086 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in ascs_iso_disconnected() local
1088 if (iso->rx.ep == NULL && iso->tx.ep == NULL) { in ascs_iso_disconnected()
1092 if (iso->rx.ep != NULL) { in ascs_iso_disconnected()
1093 ascs_ep_iso_disconnected(iso->rx.ep, reason); in ascs_iso_disconnected()
1096 if (iso->tx.ep != NULL) { in ascs_iso_disconnected()
1097 ascs_ep_iso_disconnected(iso->tx.ep, reason); in ascs_iso_disconnected()
1327 static bool bap_iso_find_func(struct bt_bap_iso *iso, void *user_data) in bap_iso_find_func() argument
1332 if (iso->rx.ep != NULL) { in bap_iso_find_func()
1333 ep = iso->rx.ep; in bap_iso_find_func()
1334 } else if (iso->tx.ep != NULL) { in bap_iso_find_func()
1335 ep = iso->tx.ep; in bap_iso_find_func()
1347 struct bt_bap_iso *iso; in bap_iso_get_or_new() local
1354 iso = bt_bap_iso_find(bap_iso_find_func, ¶ms); in bap_iso_get_or_new()
1357 if (iso) { in bap_iso_get_or_new()
1358 return iso; in bap_iso_get_or_new()
1361 iso = bt_bap_iso_new(); in bap_iso_get_or_new()
1362 if (!iso) { in bap_iso_get_or_new()
1366 bt_bap_iso_init(iso, &ascs_iso_ops); in bap_iso_get_or_new()
1368 return iso; in bap_iso_get_or_new()
2000 if (ep->iso != NULL && (ep->cig_id != cig_id || ep->cis_id != cis_id)) { in ase_qos()
2001 bt_bap_iso_unbind_ep(ep->iso, ep); in ase_qos()
2004 if (ep->iso == NULL) { in ase_qos()
2005 struct bt_bap_iso *iso; in ase_qos() local
2007 iso = bap_iso_get_or_new(ase->conn, cig_id, cis_id); in ase_qos()
2008 if (iso == NULL) { in ase_qos()
2015 if (bt_bap_iso_get_ep(false, iso, ep->dir) != NULL) { in ase_qos()
2017 &iso->chan, bt_audio_dir_str(ep->dir)); in ase_qos()
2018 bt_bap_iso_unref(iso); in ase_qos()
2024 bt_bap_iso_bind_ep(iso, ep); in ase_qos()
2025 bt_bap_iso_unref(iso); in ase_qos()
2531 if (ep->iso->chan.state != BT_ISO_STATE_CONNECTED) { in ase_start()
2536 ep->iso->chan.state); in ase_start()