/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_iso.c | 38 struct bt_bap_iso *iso = NULL; in bt_bap_iso_new() local 42 iso = &iso_pool[i]; in bt_bap_iso_new() 47 if (!iso) { in bt_bap_iso_new() 51 (void)memset(iso, 0, offsetof(struct bt_bap_iso, ref)); in bt_bap_iso_new() 53 return iso; in bt_bap_iso_new() 56 struct bt_bap_iso *bt_bap_iso_ref(struct bt_bap_iso *iso) in bt_bap_iso_ref() argument 60 __ASSERT_NO_MSG(iso != NULL); in bt_bap_iso_ref() 68 old = atomic_get(&iso->ref); in bt_bap_iso_ref() 73 } while (!atomic_cas(&iso->ref, old, old + 1)); in bt_bap_iso_ref() 75 return iso; in bt_bap_iso_ref() [all …]
|
D | bap_iso.h | 40 typedef bool (*bt_bap_iso_func_t)(struct bt_bap_iso *iso, void *user_data); 43 struct bt_bap_iso *bt_bap_iso_ref(struct bt_bap_iso *iso); 44 void bt_bap_iso_unref(struct bt_bap_iso *iso); 47 void bt_bap_iso_init(struct bt_bap_iso *iso, struct bt_iso_chan_ops *ops); 48 void bt_bap_iso_bind_ep(struct bt_bap_iso *iso, struct bt_bap_ep *ep); 50 void bt_bap_iso_unbind_ep(struct bt_bap_iso *iso, struct bt_bap_ep *ep); 51 struct bt_bap_ep *bt_bap_iso_get_ep(bool unicast_client, struct bt_bap_iso *iso, 60 struct bt_bap_stream *bt_bap_iso_get_stream(struct bt_bap_iso *iso, enum bt_audio_dir dir);
|
D | ascs.c | 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() [all …]
|
D | bap_unicast_client.c | 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() [all …]
|
D | bap_broadcast_source.c | 142 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in broadcast_source_iso_sent() local 145 struct bt_bap_ep *ep = iso->tx.ep; in broadcast_source_iso_sent() 171 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in broadcast_source_iso_connected() local 174 struct bt_bap_ep *ep = iso->tx.ep; in broadcast_source_iso_connected() 210 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in broadcast_source_iso_disconnected() local 213 struct bt_bap_ep *ep = iso->tx.ep; in broadcast_source_iso_disconnected() 265 ep->iso = NULL; in broadcast_source_ep_init() 301 struct bt_bap_iso *iso; in broadcast_source_setup_stream() local 310 iso = bt_bap_iso_new(); in broadcast_source_setup_stream() 311 if (iso == NULL) { in broadcast_source_setup_stream() [all …]
|
D | bap_broadcast_sink.c | 250 bt_bap_iso_unbind_ep(ep->iso, ep); in broadcast_sink_set_ep_state() 262 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in broadcast_sink_iso_recv() local 265 struct bt_bap_ep *ep = iso->rx.ep; in broadcast_sink_iso_recv() 326 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in broadcast_sink_iso_connected() local 330 struct bt_bap_ep *ep = iso->rx.ep; in broadcast_sink_iso_connected() 372 struct bt_bap_iso *iso = CONTAINER_OF(chan, struct bt_bap_iso, chan); in broadcast_sink_iso_disconnected() local 375 struct bt_bap_ep *ep = iso->rx.ep; in broadcast_sink_iso_disconnected() 1062 ep->iso = NULL; in broadcast_sink_ep_init() 1084 struct bt_bap_iso *iso; in bt_bap_broadcast_sink_setup_stream() local 1098 iso = bt_bap_iso_new(); in bt_bap_broadcast_sink_setup_stream() [all …]
|
D | bap_stream.c | 98 if (stream != NULL && stream->ep != NULL && stream->ep->iso != NULL) { in bt_bap_stream_iso_chan_get() 99 return &stream->ep->iso->chan; in bt_bap_stream_iso_chan_get() 134 if (ep->iso == NULL) { in bt_bap_ep_get_info() 139 info->iso_chan = &ep->iso->chan; in bt_bap_ep_get_info() 475 if (stream_ep == NULL || stream_ep->iso == NULL) { in bt_bap_stream_can_disconnect() 479 iso_state = stream_ep->iso->chan.state; in bt_bap_stream_can_disconnect() 557 if (iso_chan == NULL || iso_chan->iso == NULL) { in bt_bap_stream_disconnect() 574 if (stream->ep != NULL && stream->ep->iso != NULL) { in bt_bap_stream_reset() 575 bt_bap_iso_unbind_ep(stream->ep->iso, stream->ep); in bt_bap_stream_reset()
|
D | bap_endpoint.h | 53 struct bt_bap_iso *iso; member
|
D | bap_unicast_server.c | 139 if (ep->iso->chan.state == BT_ISO_STATE_CONNECTED) { in bt_bap_unicast_server_start()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | iso.c | 51 #define iso_chan(_iso) ((_iso)->iso.chan); 80 static void bt_iso_remove_data_path(struct bt_conn *iso); 97 static void bt_iso_sent_cb(struct bt_conn *iso, void *user_data, int err) in bt_iso_sent_cb() argument 100 struct bt_iso_chan *chan = iso->iso.chan; in bt_iso_sent_cb() 103 __ASSERT(chan != NULL, "NULL chan for iso %p", iso); in bt_iso_sent_cb() 117 struct bt_conn *iso; in hci_iso() local 133 iso(buf)->handle = bt_iso_handle(handle); in hci_iso() 134 iso(buf)->index = BT_CONN_INDEX_INVALID; in hci_iso() 136 BT_ISO_DATA_DBG("handle %u len %u flags %u", iso(buf)->handle, len, flags); in hci_iso() 144 iso = bt_conn_lookup_handle(iso(buf)->handle, BT_CONN_TYPE_ISO); in hci_iso() [all …]
|
D | iso_internal.h | 82 #define iso(buf) ((struct iso_data *)net_buf_user_data(buf)) macro 120 void bt_iso_connected(struct bt_conn *iso); 123 void bt_iso_disconnected(struct bt_conn *iso); 139 void bt_iso_recv(struct bt_conn *iso, struct net_buf *buf, uint8_t flags);
|
D | conn.c | 2120 struct bt_conn *iso = bt_conn_ref(&iso_conns[i]); in conn_lookup_iso() local 2122 if (iso == NULL) { in conn_lookup_iso() 2126 if (iso->iso.acl == conn) { in conn_lookup_iso() 2127 return iso; in conn_lookup_iso() 2130 bt_conn_unref(iso); in conn_lookup_iso() 2170 struct bt_conn *iso; in deferred_work() local 2185 iso = conn_lookup_iso(conn); in deferred_work() 2186 while (iso != NULL) { in deferred_work() 2187 struct bt_iso_chan *chan = iso->iso.chan; in deferred_work() 2194 bt_iso_cleanup_acl(iso); in deferred_work() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/mocks/src/ |
D | iso.c | 79 void mock_bt_iso_connected(struct bt_conn *iso) in mock_bt_iso_connected() argument 81 struct bt_iso_chan *chan = iso->chan; in mock_bt_iso_connected() 84 chan->iso = iso; in mock_bt_iso_connected() 97 struct bt_conn *iso; in mock_bt_iso_accept() local 109 iso = malloc(sizeof(struct bt_conn)); in mock_bt_iso_accept() 110 zassert_not_null(iso); in mock_bt_iso_accept() 112 iso->chan = (*chan); in mock_bt_iso_accept() 113 mock_bt_iso_connected(iso); in mock_bt_iso_accept() 122 free(chan->iso); in mock_bt_iso_disconnected() 123 chan->iso = NULL; in mock_bt_iso_disconnected() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/host/ |
D | iso.rst | 9 iso --help 10 iso - Bluetooth ISO shell commands 32 uart:~$ iso cig_create 39 uart:~$ iso listen txrx 45 uart:~$ iso connect 53 uart:~$ iso send 62 uart:~$ iso disconnect
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | CMakeLists.txt | 10 zephyr_library_sources_ifdef(CONFIG_BT_ISO iso.c)
|
D | iso.c | 447 if (iso_chan.iso == NULL) { in cmd_connect() 478 if (iso_chan.iso) { in iso_accept() 562 if (!iso_chan.iso) { in cmd_send() 621 if (!iso_chan.iso) { in cmd_tx_sync_read_cis() 678 if (!bis_iso_chan.iso) { in cmd_broadcast() 774 if (!bis_iso_chan.iso) { in cmd_tx_sync_read_bis() 992 SHELL_CMD_ARG_REGISTER(iso, &iso_cmds, "Bluetooth ISO shell commands",
|
/Zephyr-latest/scripts/footprint/ |
D | plan.txt | 29 bt_hci_ipc,iso-broadcast,nrf5340dk/nrf5340/cpunet,samples/bluetooth/hci_ipc,-DCONF_FILE=nrf5340_cpu… 30 bt_hci_ipc,iso-receive,nrf5340dk/nrf5340/cpunet,samples/bluetooth/hci_ipc,-DCONF_FILE=nrf5340_cpune…
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_sync_iso.c | 108 if (sync->iso.sync_iso) { in ll_big_sync_create() 182 sync->iso.node_rx_estab = node_rx; in ll_big_sync_create() 234 sync->iso.sync_iso = sync_iso; in ll_big_sync_create() 259 if (sync && sync->iso.sync_iso) { in ll_big_sync_terminate() 262 if (sync->iso.sync_iso != sync_iso) { in ll_big_sync_terminate() 265 sync->iso.sync_iso = NULL; in ll_big_sync_terminate() 267 node_rx = sync->iso.node_rx_estab; in ll_big_sync_terminate() 476 sync_iso->sync->iso.sync_iso = NULL; in ull_sync_iso_setup() 711 rx = (void *)sync_iso->sync->iso.node_rx_estab; in ull_sync_iso_estab_done()
|
D | ull_sync_types.h | 92 } iso; member
|
/Zephyr-latest/tests/bluetooth/audio/mocks/ |
D | CMakeLists.txt | 17 src/iso.c
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_da1469x.c | 59 struct bt_hci_iso_hdr iso; member 86 rx.remaining = sizeof(rx.iso); in h4_get_type() 128 struct bt_hci_iso_hdr *hdr = &rx.iso; in get_iso_hdr()
|
D | userchan.c | 161 const struct bt_hci_iso_hdr *iso = (const struct bt_hci_iso_hdr *)hdr; in hci_packet_complete() local 164 payload_len = bt_iso_hdr_len(sys_le16_to_cpu(iso->len)); in hci_packet_complete()
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_skeleton.c | 288 config->ep_cfg_out[i].caps.iso = 1; in udc_skeleton_driver_preinit() 308 config->ep_cfg_in[i].caps.iso = 1; in udc_skeleton_driver_preinit()
|
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/ |
D | cis_peripheral.c | 87 if (iso_chan.iso) { in iso_accept()
|
/Zephyr-latest/samples/bluetooth/iso_peripheral/src/ |
D | main.c | 141 if (iso_chan.iso) { in iso_accept()
|