Lines Matching refs:iso
245 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in unicast_client_ep_iso_recv() local
248 struct bt_bap_ep *ep = iso->rx.ep; in unicast_client_ep_iso_recv()
299 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in unicast_client_ep_iso_sent() local
301 struct bt_bap_ep *ep = iso->tx.ep; in unicast_client_ep_iso_sent()
361 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in unicast_client_iso_connected() local
363 if (iso->rx.ep == NULL && iso->tx.ep == NULL) { in unicast_client_iso_connected()
368 if (iso->rx.ep != NULL) { in unicast_client_iso_connected()
369 unicast_client_ep_iso_connected(iso->rx.ep); in unicast_client_iso_connected()
372 if (iso->tx.ep != NULL) { in unicast_client_iso_connected()
373 unicast_client_ep_iso_connected(iso->tx.ep); in unicast_client_iso_connected()
421 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in unicast_client_iso_disconnected() local
423 if (iso->rx.ep == NULL && iso->tx.ep == NULL) { in unicast_client_iso_disconnected()
428 if (iso->rx.ep != NULL) { in unicast_client_iso_disconnected()
429 unicast_client_ep_iso_disconnected(iso->rx.ep, reason); in unicast_client_iso_disconnected()
432 if (iso->tx.ep != NULL) { in unicast_client_iso_disconnected()
433 unicast_client_ep_iso_disconnected(iso->tx.ep, reason); in unicast_client_iso_disconnected()
796 } else if (ep->iso != NULL && ep->iso->chan.state == BT_ISO_STATE_DISCONNECTING) { in unicast_client_ep_idle_state()
832 LOG_DBG("ep %p dir %s bap_iso %p", ep, bt_audio_dir_str(ep->dir), ep->iso); in unicast_client_ep_qos_update()
838 iso_io_qos = &ep->iso->rx.qos; in unicast_client_ep_qos_update()
843 iso_io_qos = &ep->iso->tx.qos; in unicast_client_ep_qos_update()
1970 conn_iso = &ep->iso->chan.iso->iso; in bt_bap_unicast_client_ep_qos()
2227 if (ep->iso != NULL && ep->iso->chan.state == BT_ISO_STATE_DISCONNECTING) { in unicast_client_reset()
2393 bt_bap_iso_unbind_ep(stream->ep->iso, stream->ep); in audio_stream_qos_cleanup()
2404 static int unicast_group_add_iso(struct bt_bap_unicast_group *group, struct bt_bap_iso *iso) in unicast_group_add_iso() argument
2409 __ASSERT_NO_MSG(iso != NULL); in unicast_group_add_iso()
2414 if (group->cis[i] == &iso->chan) { in unicast_group_add_iso()
2427 *chan_slot = &iso->chan; in unicast_group_add_iso()
2432 static void unicast_group_del_iso(struct bt_bap_unicast_group *group, struct bt_bap_iso *iso) in unicast_group_del_iso() argument
2437 __ASSERT_NO_MSG(iso != NULL); in unicast_group_del_iso()
2440 if (stream->ep->iso == iso) { in unicast_group_del_iso()
2447 if (group->cis[i] == &iso->chan) { in unicast_group_del_iso()
2454 static void unicast_client_qos_cfg_to_iso_qos(struct bt_bap_iso *iso, in unicast_client_qos_cfg_to_iso_qos() argument
2465 io_qos = iso->chan.qos->tx; in unicast_client_qos_cfg_to_iso_qos()
2466 if (bt_bap_iso_get_ep(true, iso, BT_AUDIO_DIR_SOURCE) == NULL) { in unicast_client_qos_cfg_to_iso_qos()
2467 other_io_qos = iso->chan.qos->rx; in unicast_client_qos_cfg_to_iso_qos()
2475 io_qos = iso->chan.qos->rx; in unicast_client_qos_cfg_to_iso_qos()
2476 if (bt_bap_iso_get_ep(true, iso, BT_AUDIO_DIR_SINK) == NULL) { in unicast_client_qos_cfg_to_iso_qos()
2477 other_io_qos = iso->chan.qos->tx; in unicast_client_qos_cfg_to_iso_qos()
2485 iso->chan.qos->num_subevents = qos->num_subevents; in unicast_client_qos_cfg_to_iso_qos()
2497 struct bt_bap_iso *iso, in unicast_group_set_iso_stream_param() argument
2502 unicast_client_qos_cfg_to_iso_qos(iso, qos, dir); in unicast_group_set_iso_stream_param()
2519 struct bt_bap_iso *iso, enum bt_audio_dir dir) in unicast_group_add_stream() argument
2524 LOG_DBG("group %p stream %p qos %p iso %p dir %u", group, stream, qos, iso, dir); in unicast_group_add_stream()
2526 __ASSERT_NO_MSG(stream->ep == NULL || (stream->ep != NULL && stream->ep->iso == NULL)); in unicast_group_add_stream()
2532 bt_bap_iso_bind_stream(iso, stream, dir); in unicast_group_add_stream()
2534 bt_bap_iso_bind_ep(iso, stream->ep); in unicast_group_add_stream()
2537 unicast_group_set_iso_stream_param(group, iso, qos, dir); in unicast_group_add_stream()
2545 struct bt_bap_iso *iso; in unicast_group_add_stream_pair() local
2552 iso = bt_bap_unicast_client_new_audio_iso(); in unicast_group_add_stream_pair()
2553 if (iso == NULL) { in unicast_group_add_stream_pair()
2557 err = unicast_group_add_iso(group, iso); in unicast_group_add_stream_pair()
2559 bt_bap_iso_unref(iso); in unicast_group_add_stream_pair()
2564 unicast_group_add_stream(group, param->rx_param, iso, BT_AUDIO_DIR_SOURCE); in unicast_group_add_stream_pair()
2568 unicast_group_add_stream(group, param->tx_param, iso, BT_AUDIO_DIR_SINK); in unicast_group_add_stream_pair()
2571 bt_bap_iso_unref(iso); in unicast_group_add_stream_pair()
2589 if (ep != NULL && ep->iso != NULL) { in unicast_group_del_stream()
2590 unicast_group_del_iso(group, ep->iso); in unicast_group_del_stream()
2592 bt_bap_iso_unbind_ep(ep->iso, ep); in unicast_group_del_stream()
2660 if (ep != NULL && ep->iso != NULL) { in unicast_group_free()
2661 bt_bap_iso_unbind_ep(ep->iso, ep); in unicast_group_free()
3272 if (stream->ep->iso == NULL) { in bt_bap_unicast_client_qos()
3508 if (ep->iso == NULL) { in bt_bap_unicast_client_stop()
3513 iso_state = ep->iso->chan.state; in bt_bap_unicast_client_stop()