/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/ |
D | test_unicast_stop.c | 60 sys_slist_append(&fixture->unicast_group.streams, &bap_stream->_node); in cap_initiator_test_unicast_stop_fixture_init() 112 struct bt_cap_stream *streams[CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT] = {0}; in ZTEST_F() local 115 .count = ARRAY_SIZE(streams), in ZTEST_F() 116 .streams = streams, in ZTEST_F() 121 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F() 122 streams[i] = &fixture->cap_streams[i]; in ZTEST_F() 124 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() 135 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F() 147 struct bt_cap_stream *streams[CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT] = {0}; in ZTEST_F() local 150 .count = ARRAY_SIZE(streams), in ZTEST_F() [all …]
|
/Zephyr-latest/tests/drivers/audio/dmic_api/src/ |
D | main.c | 56 .streams = &pcm_stream, 82 cfg->streams[0].pcm_rate, cfg->channel.req_num_chan); in do_pdm_transfer() 136 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST() 137 dmic_cfg.streams[0].block_size = in ZTEST() 138 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST() 151 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST() 152 dmic_cfg.streams[0].block_size = in ZTEST() 153 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST() 185 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST() 186 dmic_cfg.streams[0].block_size = in ZTEST() [all …]
|
/Zephyr-latest/samples/drivers/audio/dmic/src/ |
D | main.c | 38 cfg->streams[0].pcm_rate, cfg->channel.req_num_chan); in do_pdm_transfer() 103 .streams = &stream, in main() 112 cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in main() 113 cfg.streams[0].block_size = in main() 114 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main() 125 cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in main() 126 cfg.streams[0].block_size = in main() 127 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
|
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/ |
D | main.c | 146 } streams[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; variable 280 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread() 282 streams[i].lc3_encoder = lc3_setup_encoder(frame_duration_us, freq_hz, 0, in init_lc3_thread() 283 &streams[i].lc3_encoder_mem); in init_lc3_thread() 285 if (streams[i].lc3_encoder == NULL) { in init_lc3_thread() 291 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread() 294 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread() 295 send_data(&streams[i]); in init_lc3_thread() 337 for (size_t i = 0U; i < MIN(ARRAY_SIZE(streams), 2); i++) { in data_received() 339 ring_buf_put(&(streams[i].audio_ring_buf), (uint8_t *)(usb_pcm_data[i]), in data_received() [all …]
|
/Zephyr-latest/drivers/audio/ |
D | mpxxdtyy-i2s.c | 99 uint8_t chan_size = cfg->streams->pcm_width; in mpxxdtyy_i2s_configure() 100 uint32_t audio_freq = cfg->streams->pcm_rate; in mpxxdtyy_i2s_configure() 104 data->pcm_mem_slab = cfg->streams->mem_slab; in mpxxdtyy_i2s_configure() 105 data->pcm_mem_size = cfg->streams->block_size; in mpxxdtyy_i2s_configure()
|
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/ |
D | bap_broadcast_sink.c | 67 static struct bt_bap_stream streams[CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT]; variable 68 struct bt_bap_stream *streams_p[ARRAY_SIZE(streams)]; 78 static const uint32_t bis_index_mask = BIT_MASK(ARRAY_SIZE(streams) + 1U); 327 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in bap_broadcast_sink_init() 328 streams[i].ops = &stream_ops; in bap_broadcast_sink_init() 332 streams_p[i] = &streams[i]; in bap_broadcast_sink_init()
|
/Zephyr-latest/samples/drivers/i2s/i2s_codec/src/ |
D | main.c | 88 .streams = &stream, in main() 130 cfg.streams[0].pcm_rate = SAMPLE_FREQUENCY; in main() 131 cfg.streams[0].block_size = BLOCK_SIZE; in main() 134 cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
|
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_sink/src/ |
D | main.c | 77 static struct bt_bap_stream streams[CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT]; variable 78 struct bt_bap_stream *streams_p[ARRAY_SIZE(streams)]; 88 static const uint32_t bis_index_mask = BIT_MASK(ARRAY_SIZE(streams) + 1U); 341 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in bap_broadcast_sink_init() 342 streams[i].ops = &stream_ops; in bap_broadcast_sink_init() 346 streams_p[i] = &streams[i]; in bap_broadcast_sink_init()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_broadcast_sink_test.c | 60 static struct bt_bap_stream *streams[ARRAY_SIZE(broadcast_sink_streams)]; variable 85 static K_SEM_DEFINE(sem_stream_started, 0U, ARRAY_SIZE(streams)); 86 static K_SEM_DEFINE(sem_stream_stopped, 0U, ARRAY_SIZE(streams)); 92 static const uint32_t bis_index_mask = BIT_MASK(ARRAY_SIZE(streams) + 1U); 651 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init() 652 streams[i] = bap_stream_from_audio_test_stream(&broadcast_sink_streams[i]); in init() 653 bt_bap_stream_cb_register(streams[i], &stream_ops); in init() 758 err = bt_bap_broadcast_sink_sync(g_sink, bis_index_bitfield, streams, broadcast_code); in test_broadcast_sync() 769 struct bt_bap_stream *tmp_streams[ARRAY_SIZE(streams) + 1] = {0}; in test_broadcast_sync_inval() 773 err = bt_bap_broadcast_sink_sync(NULL, bis_index_bitfield, streams, NULL); in test_broadcast_sync_inval() [all …]
|
/Zephyr-latest/doc/services/debugging/ |
D | cs_trace_defmt.rst | 6 Formatter is a method of wrapping multiple trace streams (specified by 7 bit ID) into a 9 buffer where data from various trace streams can be saved. Typically tracing data is
|
/Zephyr-latest/samples/drivers/i2s/echo/ |
D | README.rst | 11 an audio stream. It configures and starts both the RX and TX streams and then 23 streams. 47 Press Button 1 to toggle the echo effect and Button 2 to stop the streams.
|
D | Kconfig | 16 bool "Start/stop I2S streams when pressing sw1"
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | main.c | 51 static struct bt_bap_stream streams[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT + variable 519 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in init() 520 streams[i].ops = &stream_ops; in init() 631 struct bt_bap_stream *stream = &streams[i]; in configure_streams() 650 struct bt_bap_stream *stream = &streams[i + configured_sink_stream_count]; in configure_streams() 680 stream_params[i].stream = &streams[i]; in create_group() 751 err = bt_bap_stream_enable(&streams[i], codec_configuration.codec_cfg.meta, in enable_streams() 775 err = bt_bap_stream_connect(&streams[i]); in connect_streams() 813 struct bt_bap_stream *stream = &streams[i]; in start_streams() 817 err = bt_bap_stream_start(&streams[i]); in start_streams()
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | bap_unicast_sr.c | 45 static struct bt_bap_stream streams[CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT + variable 124 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in stream_alloc() 125 struct bt_bap_stream *stream = &streams[i]; in stream_alloc() 407 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in bap_unicast_sr_init() 408 bt_bap_stream_cb_register(&streams[i], &stream_ops); in bap_unicast_sr_init()
|
/Zephyr-latest/tests/bluetooth/audio/mocks/include/ |
D | bap_stream_expects.h | 117 static inline void expect_bt_bap_stream_ops_released_called(const struct bt_bap_stream *streams[], in expect_bt_bap_stream_ops_released_called() argument 128 found = streams[i] == mock_bap_stream_released_cb_fake.arg0_history[j]; in expect_bt_bap_stream_ops_released_called() 134 zexpect_true(found, "'%s()' not called with %p stream", func_name, streams[i]); in expect_bt_bap_stream_ops_released_called()
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | bap_unicast_sr.c | 32 static struct bt_bap_stream streams[CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT + variable 191 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in stream_alloc() 192 struct bt_bap_stream *stream = &streams[i]; in stream_alloc() 436 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in bap_unicast_sr_init() 437 bt_bap_stream_cb_register(&streams[i], &stream_ops); in bap_unicast_sr_init()
|
/Zephyr-latest/drivers/dma/ |
D | dma_stm32.c | 97 stream = &config->streams[id]; in dma_stm32_irq_handler() 277 &dev_config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_configure() 529 stream = &config->streams[id]; in dma_stm32_reload() 585 stream = &config->streams[id]; in dma_stm32_start() 597 struct dma_stm32_stream *stream = &config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_stop() 654 config->streams[i].busy = false; in dma_stm32_init() 657 config->streams[i].mux_channel = i + config->offset; in dma_stm32_init() 681 stream = &config->streams[id]; in dma_stm32_get_status() 709 .streams = dma_stm32_streams_##index, \
|
D | dma_stm32u5.c | 256 stream = &config->streams[id]; in dma_stm32_irq_handler() 349 &dev_config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_configure() 533 stream = &config->streams[id]; in dma_stm32_reload() 577 stream = &config->streams[id]; in dma_stm32_start() 631 struct dma_stm32_stream *stream = &config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_stop() 679 config->streams[i].busy = false; in dma_stm32_init() 702 stream = &config->streams[id]; in dma_stm32_get_status() 783 .streams = dma_stm32_streams_##index, \
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_broadcast_source.c | 44 sys_slist_t streams; member 134 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_set_state() 288 if (sys_slist_is_empty(&subgroup->streams)) { in broadcast_source_new_subgroup() 344 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in encode_base_subgroup() 461 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&subgroup->streams, stream, next_stream, _node) { in broadcast_source_cleanup() 469 sys_slist_remove(&subgroup->streams, NULL, &stream->_node); in broadcast_source_cleanup() 615 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_get_state() 795 sys_slist_append(&subgroup->streams, &stream->_node); in bt_bap_broadcast_source_create() 855 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in bt_bap_broadcast_source_reconfig() 867 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, subgroup_stream, _node) { in bt_bap_broadcast_source_reconfig() [all …]
|
D | bap_endpoint.h | 95 sys_slist_t streams; member 187 sys_slist_t streams; member
|
D | Kconfig.bap | 95 Since BAP streams are unidirectional, two BAP streams may use a single CIS, the number of 96 BAP audio streams per group may be up to twice of this value. 145 One broadcast source can send multiple streams 155 This option sets the maximum number of streams per broadcast source 186 One broadcast sink can receive multiple streams 196 This option sets the maximum number of streams per broadcast sink
|
D | bap_broadcast_sink.c | 309 if (sys_slist_is_empty(&sink->streams)) { in broadcast_sink_is_in_state() 315 SYS_SLIST_FOR_EACH_CONTAINER(&sink->streams, stream, _node) { in broadcast_sink_is_in_state() 402 if (!sys_slist_find_and_remove(&sink->streams, &stream->_node)) { in broadcast_sink_iso_disconnected() 1122 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&sink->streams, stream, next, _node) { in broadcast_sink_cleanup_streams() 1133 sys_slist_remove(&sink->streams, NULL, &stream->_node); in broadcast_sink_cleanup_streams() 1224 struct bt_bap_stream *streams[], in bt_bap_broadcast_sink_sync() argument 1243 CHECKIF(streams == NULL) { in bt_bap_broadcast_sink_sync() 1298 CHECKIF(streams[i] == NULL) { in bt_bap_broadcast_sink_sync() 1309 stream = streams[i]; in bt_bap_broadcast_sink_sync() 1320 sys_slist_append(&sink->streams, &stream->_node); in bt_bap_broadcast_sink_sync() [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_http2.c | 69 ARRAY_FOR_EACH(client->streams, i) { in find_http_stream_context() 70 if (client->streams[i].stream_id == stream_id) { in find_http_stream_context() 71 return &client->streams[i]; in find_http_stream_context() 81 ARRAY_FOR_EACH(client->streams, i) { in allocate_http_stream_context() 82 if (client->streams[i].stream_state == HTTP2_STREAM_IDLE) { in allocate_http_stream_context() 83 client->streams[i].stream_id = stream_id; in allocate_http_stream_context() 84 client->streams[i].stream_state = HTTP2_STREAM_OPEN; in allocate_http_stream_context() 85 client->streams[i].window_size = in allocate_http_stream_context() 87 client->streams[i].headers_sent = false; in allocate_http_stream_context() 88 client->streams[i].end_stream_sent = false; in allocate_http_stream_context() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_cap.c | 308 for (size_t i = 0; i < ARRAY_SIZE(u_conn->streams); i++) { in btp_cap_unicast_audio_start() 310 struct btp_bap_unicast_stream *u_stream = &u_conn->streams[i]; in btp_cap_unicast_audio_start() 410 *streams[ARRAY_SIZE(btp_csip_set_members) * BTP_BAP_UNICAST_MAX_STREAMS_COUNT]; in btp_cap_unicast_audio_stop() local 427 for (size_t i = 0; i < ARRAY_SIZE(u_conn->streams); i++) { in btp_cap_unicast_audio_stop() 428 struct btp_bap_unicast_stream *u_stream = &u_conn->streams[i]; in btp_cap_unicast_audio_stop() 434 streams[stream_cnt++] = stream_unicast_to_cap(u_stream); in btp_cap_unicast_audio_stop() 438 param.streams = streams; in btp_cap_unicast_audio_stop() 615 for (size_t i = 0; i < ARRAY_SIZE(source->streams); i++) { in btp_cap_broadcast_source_setup() 616 struct btp_bap_broadcast_stream *stream = &source->streams[i]; in btp_cap_broadcast_source_setup()
|
D | btp_bap_broadcast.h | 30 struct btp_bap_broadcast_stream streams[CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT]; member 46 struct btp_bap_broadcast_stream streams[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; member
|