Home
last modified time | relevance | path

Searched refs:tx_streams (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_audio_stream.c52 } tx_streams[CONFIG_BT_ISO_MAX_CHAN]; variable
94 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in tx_thread_func()
95 struct bt_bap_stream *bap_stream = tx_streams[i].bap_stream; in tx_thread_func()
99 atomic_get(&tx_streams[i].enqueued) >= MAX_ENQUEUE_CNT) { in tx_thread_func()
110 err = bt_bap_stream_send(bap_stream, buf, tx_streams[i].seq_num); in tx_thread_func()
112 tx_streams[i].seq_num++; in tx_thread_func()
113 atomic_inc(&tx_streams[i].enqueued); in tx_thread_func()
144 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in btp_bap_audio_stream_tx_register()
145 if (tx_streams[i].bap_stream == NULL) { in btp_bap_audio_stream_tx_register()
146 tx_streams[i].bap_stream = audio_stream_to_bap_stream(stream); in btp_bap_audio_stream_tx_register()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_stream_tx.c44 static struct tx_stream tx_streams[CONFIG_BT_ISO_MAX_CHAN]; variable
88 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in tx_thread_func()
89 struct bt_bap_stream *bap_stream = tx_streams[i].bap_stream; in tx_thread_func()
92 atomic_get(&tx_streams[i].enqueued) < ENQUEUE_CNT) { in tx_thread_func()
100 err = bt_bap_stream_send(bap_stream, buf, tx_streams[i].seq_num); in tx_thread_func()
102 tx_streams[i].seq_num++; in tx_thread_func()
103 atomic_inc(&tx_streams[i].enqueued); in tx_thread_func()
135 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in bap_stream_tx_register()
136 if (tx_streams[i].bap_stream == NULL) { in bap_stream_tx_register()
137 tx_streams[i].bap_stream = bap_stream; in bap_stream_tx_register()
[all …]
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/
Dstream_tx.c33 static struct tx_stream tx_streams[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT]; variable
78 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in tx_thread_func()
79 struct bt_bap_stream *bap_stream = tx_streams[i].bap_stream; in tx_thread_func()
89 stream_lc3_add_data(&tx_streams[i], buf); in tx_thread_func()
94 err = bt_bap_stream_send(bap_stream, buf, tx_streams[i].seq_num); in tx_thread_func()
96 tx_streams[i].seq_num++; in tx_thread_func()
117 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in stream_tx_register()
118 if (tx_streams[i].bap_stream == NULL) { in stream_tx_register()
119 tx_streams[i].bap_stream = bap_stream; in stream_tx_register()
120 tx_streams[i].seq_num = 0U; in stream_tx_register()
[all …]
/Zephyr-latest/samples/bluetooth/cap_initiator/src/
Dcap_initiator_tx.c31 tx_streams[IS_ENABLED(CONFIG_SAMPLE_UNICAST) + IS_ENABLED(CONFIG_SAMPLE_BROADCAST)]; variable
47 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in tx_thread_func()
48 struct bt_cap_stream *cap_stream = tx_streams[i].stream; in tx_thread_func()
76 err = bt_cap_stream_send(cap_stream, buf, tx_streams[i].seq_num); in tx_thread_func()
78 tx_streams[i].seq_num++; in tx_thread_func()
99 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in cap_initiator_tx_register_stream()
100 if (tx_streams[i].stream == NULL) { in cap_initiator_tx_register_stream()
101 tx_streams[i].stream = cap_stream; in cap_initiator_tx_register_stream()
102 tx_streams[i].seq_num = 0U; in cap_initiator_tx_register_stream()
117 for (size_t i = 0U; i < ARRAY_SIZE(tx_streams); i++) { in cap_initiator_tx_unregister_stream()
[all …]