Home
last modified time | relevance | path

Searched refs:test_stream (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_stream_rx.c21 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in log_stream_rx() local
24 test_stream->rx_cnt, stream, buf->len, info->flags, info->seq_num, info->ts); in log_stream_rx()
30 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in bap_stream_rx_recv_cb() local
32 if ((test_stream->rx_cnt % 50U) == 0U) { in bap_stream_rx_recv_cb()
36 if (test_stream->rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in bap_stream_rx_recv_cb()
38 FAIL("Duplicated timestamp received: %u\n", test_stream->last_info.ts); in bap_stream_rx_recv_cb()
42 if (test_stream->rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in bap_stream_rx_recv_cb()
44 FAIL("Duplicated PSN received: %u\n", test_stream->last_info.seq_num); in bap_stream_rx_recv_cb()
65 test_stream->rx_cnt++; in bap_stream_rx_recv_cb()
67 if (test_stream->rx_cnt >= MIN_SEND_COUNT) { in bap_stream_rx_recv_cb()
Dcommon.h168 cap_stream_from_audio_test_stream(struct audio_test_stream *test_stream) in cap_stream_from_audio_test_stream() argument
170 return &test_stream->stream; in cap_stream_from_audio_test_stream()
174 bap_stream_from_audio_test_stream(struct audio_test_stream *test_stream) in bap_stream_from_audio_test_stream() argument
176 return bap_stream_from_cap_stream(cap_stream_from_audio_test_stream(test_stream)); in bap_stream_from_audio_test_stream()
Dbap_stream_tx.c204 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in bap_stream_tx_sent_cb() local
206 if ((test_stream->tx_cnt % 100U) == 0U) { in bap_stream_tx_sent_cb()
207 LOG_INF("Stream %p sent %zu SDUs", stream, test_stream->tx_cnt); in bap_stream_tx_sent_cb()
210 test_stream->tx_cnt++; in bap_stream_tx_sent_cb()
Dpbp_public_broadcast_sink_test.c98 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in started_cb() local
100 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in started_cb()
101 test_stream->rx_cnt = 0U; in started_cb()
Dbap_broadcast_source_test.c170 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_started_cb() local
174 test_stream->seq_num = 0U; in stream_started_cb()
175 test_stream->tx_cnt = 0U; in stream_started_cb()
307 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in setup_broadcast_source() local
309 test_stream->tx_sdu_size = preset_16_1_1.qos.sdu; in setup_broadcast_source()
439 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in test_broadcast_source_reconfig() local
441 test_stream->tx_sdu_size = preset_16_1_1.qos.sdu; in test_broadcast_source_reconfig()
Dcap_initiator_broadcast_test.c113 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in broadcast_stream_started_cb() local
116 test_stream->seq_num = 0U; in broadcast_stream_started_cb()
117 test_stream->tx_cnt = 0U; in broadcast_stream_started_cb()
422 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in test_broadcast_audio_create() local
424 test_stream->tx_sdu_size = create_param.qos->sdu; in test_broadcast_audio_create()
756 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in test_cap_initiator_ac() local
758 test_stream->tx_sdu_size = create_param.qos->sdu; in test_cap_initiator_ac()
Dpbp_public_broadcast_source_test.c66 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in started_cb() local
69 test_stream->seq_num = 0U; in started_cb()
70 test_stream->tx_cnt = 0U; in started_cb()
Dbap_unicast_server_test.c153 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in lc3_qos() local
159 test_stream->tx_sdu_size = qos->sdu; in lc3_qos()
342 struct audio_test_stream *test_stream = in transceive_test_streams() local
346 while (test_stream->tx_cnt < MIN_SEND_COUNT) { in transceive_test_streams()
Dcap_acceptor_test.c290 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in started_cb() local
292 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in started_cb()
293 test_stream->rx_cnt = 0U; in started_cb()
294 test_stream->seq_num = 0U; in started_cb()
295 test_stream->tx_cnt = 0U; in started_cb()
Dbap_broadcast_sink_test.c551 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_started_cb() local
555 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in stream_started_cb()
556 test_stream->rx_cnt = 0U; in stream_started_cb()
Dbap_unicast_client_test.c85 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_qos_set() local
89 test_stream->tx_sdu_size = stream->qos->sdu; in stream_qos_set()
827 struct audio_test_stream *test_stream = in transceive_streams() local
831 while (test_stream->tx_cnt < MIN_SEND_COUNT) { in transceive_streams()
Dgmap_ugg_test.c1210 struct audio_test_stream *test_stream = &broadcast_streams[i]; in test_gmap_ugg_broadcast_ac() local
1212 test_stream->tx_sdu_size = create_param.qos->sdu; in test_gmap_ugg_broadcast_ac()
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_control_params.c369 static struct bt_bap_stream test_stream; variable
380 *stream = &test_stream; in unicast_server_cb_config_custom_fake()