Home
last modified time | relevance | path

Searched full:stream (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/Zephyr-Core-3.5.0/tests/bluetooth/audio/ascs/src/
Dtest_ase_state_transition.c36 struct bt_bap_stream stream; member
81 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
87 test_ase_control_client_config_codec(conn, ase_id, stream); in ZTEST_F()
91 expect_bt_bap_stream_ops_configured_called_once(stream, EMPTY); in ZTEST_F()
96 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
102 test_preamble_state_codec_configured(conn, ase_id, stream); in ZTEST_F()
107 expect_bt_bap_unicast_server_cb_qos_called_once(stream, EMPTY); in ZTEST_F()
108 expect_bt_bap_stream_ops_qos_set_called_once(stream); in ZTEST_F()
113 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
119 test_preamble_state_qos_configured(conn, ase_id, stream); in ZTEST_F()
[all …]
Dtest_ase_state_transition_invalid.c32 struct bt_bap_stream stream; member
263 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
270 test_preamble_state_codec_configured(conn, ase_id, stream); in ZTEST_F()
282 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
289 test_preamble_state_qos_configured(conn, ase_id, stream); in ZTEST_F()
300 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
307 test_preamble_state_enabling(conn, ase_id, stream); in ZTEST_F()
319 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
327 test_preamble_state_streaming(conn, ase_id, stream, &chan, false); in ZTEST_F()
358 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() local
[all …]
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dbap_stream.c1 /* Bluetooth Audio Stream */
60 void bt_bap_stream_init(struct bt_bap_stream *stream) in bt_bap_stream_init() argument
65 /* Save the stream->ops and stream->user_data owned by API user */ in bt_bap_stream_init()
66 ops = stream->ops; in bt_bap_stream_init()
67 user_data = stream->user_data; in bt_bap_stream_init()
69 memset(stream, 0, sizeof(*stream)); in bt_bap_stream_init()
72 stream->ops = ops; in bt_bap_stream_init()
73 stream->user_data = user_data; in bt_bap_stream_init()
76 void bt_bap_stream_attach(struct bt_conn *conn, struct bt_bap_stream *stream, struct bt_bap_ep *ep, in bt_bap_stream_attach() argument
79 LOG_DBG("conn %p stream %p ep %p codec_cfg %p", (void *)conn, stream, ep, codec_cfg); in bt_bap_stream_attach()
[all …]
Dbap_stream.h2 * @brief Internal APIs for Audio Stream handling
10 void bt_bap_stream_init(struct bt_bap_stream *stream);
13 int bt_bap_stream_disconnect(struct bt_bap_stream *stream);
15 void bt_bap_stream_reset(struct bt_bap_stream *stream);
17 void bt_bap_stream_attach(struct bt_conn *conn, struct bt_bap_stream *stream, struct bt_bap_ep *ep,
25 void bt_bap_stream_detach(struct bt_bap_stream *stream);
29 bool bt_bap_stream_can_disconnect(const struct bt_bap_stream *stream);
31 enum bt_bap_ascs_reason bt_bap_stream_verify_qos(const struct bt_bap_stream *stream,
34 struct bt_iso_chan *bt_bap_stream_iso_chan_get(struct bt_bap_stream *stream);
Dbap_broadcast_source.c114 struct bt_bap_stream *stream; in broadcast_source_set_state() local
116 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_set_state()
117 broadcast_source_set_ep_state(stream->ep, state); in broadcast_source_set_state()
126 struct bt_bap_stream *stream; in broadcast_source_iso_sent() local
134 stream = ep->stream; in broadcast_source_iso_sent()
135 if (stream == NULL) { in broadcast_source_iso_sent()
136 LOG_ERR("No stream for ep %p", ep); in broadcast_source_iso_sent()
140 ops = stream->ops; in broadcast_source_iso_sent()
143 LOG_DBG("stream %p ep %p", stream, stream->ep); in broadcast_source_iso_sent()
147 ops->sent(stream); in broadcast_source_iso_sent()
[all …]
DKconfig.ascs1 # Bluetooth Audio - Audio Stream Control configuration options
10 bool "Audio Stream Control Service Support"
12 This option enables support for Audio Stream Control Service.
16 int "Number of Audio Stream Endpoint Sink Characteristics"
21 coupled to a single direction of a unicast Audio Stream.
24 int "Number of Audio Stream Endpoint Source Characteristics"
29 coupled to a single direction of a unicast Audio Stream.
51 int "Milliseconds of delay before ASCS disconnects ISO after stream stop"
56 of a stopped stream. The delay is added as it is the Unicast Client's
Dbap_unicast_server.c66 int bt_bap_unicast_server_reconfig(struct bt_bap_stream *stream, in bt_bap_unicast_server_reconfig() argument
74 ep = stream->ep; in bt_bap_unicast_server_reconfig()
78 err = unicast_server_cb->reconfig(stream, ep->dir, codec_cfg, &ep->qos_pref, &rsp); in bt_bap_unicast_server_reconfig()
92 int bt_bap_unicast_server_start(struct bt_bap_stream *stream) in bt_bap_unicast_server_start() argument
94 struct bt_bap_ep *ep = stream->ep; in bt_bap_unicast_server_start()
97 LOG_DBG("Invalid operation for stream %p with dir %u", in bt_bap_unicast_server_start()
98 stream, ep->dir); in bt_bap_unicast_server_start()
115 int bt_bap_unicast_server_metadata(struct bt_bap_stream *stream, const uint8_t meta[], in bt_bap_unicast_server_metadata() argument
128 err = unicast_server_cb->metadata(stream, meta, meta_len, &rsp); in bt_bap_unicast_server_metadata()
139 ep = stream->ep; in bt_bap_unicast_server_metadata()
[all …]
Dbap_iso.c237 void bt_bap_iso_bind_stream(struct bt_bap_iso *bap_iso, struct bt_bap_stream *stream, in bt_bap_iso_bind_stream() argument
242 __ASSERT_NO_MSG(stream != NULL); in bt_bap_iso_bind_stream()
244 __ASSERT(stream->bap_iso == NULL, "stream %p bound with bap_iso %p already", stream, in bt_bap_iso_bind_stream()
245 stream->bap_iso); in bt_bap_iso_bind_stream()
247 LOG_DBG("bap_iso %p stream %p dir %s", bap_iso, stream, bt_audio_dir_str(dir)); in bt_bap_iso_bind_stream()
256 __ASSERT(bap_iso_ep->stream == NULL, "bap_iso %p bound with stream %p", bap_iso, in bt_bap_iso_bind_stream()
257 bap_iso_ep->stream); in bt_bap_iso_bind_stream()
258 bap_iso_ep->stream = stream; in bt_bap_iso_bind_stream()
260 stream->bap_iso = bt_bap_iso_ref(bap_iso); in bt_bap_iso_bind_stream()
263 void bt_bap_iso_unbind_stream(struct bt_bap_iso *bap_iso, struct bt_bap_stream *stream, in bt_bap_iso_unbind_stream() argument
[all …]
Dbap_unicast_client_internal.h9 int bt_bap_unicast_client_config(struct bt_bap_stream *stream,
14 int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, const uint8_t meta[],
17 int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, const uint8_t meta[],
20 int bt_bap_unicast_client_disable(struct bt_bap_stream *stream);
22 int bt_bap_unicast_client_start(struct bt_bap_stream *stream);
24 int bt_bap_unicast_client_stop(struct bt_bap_stream *stream);
26 int bt_bap_unicast_client_release(struct bt_bap_stream *stream);
Dbap_unicast_client.c146 buf = bt_bap_unicast_client_ep_create_pdu(ep->stream->conn, BT_ASCS_START_OP); in unicast_client_send_start()
163 err = bt_bap_unicast_client_ep_send(ep->stream->conn, ep, buf); in unicast_client_send_start()
190 return client_ep->ep.stream; in audio_stream_by_ep_id()
201 return client_ep->ep.stream; in audio_stream_by_ep_id()
221 struct bt_bap_stream *stream; in unicast_client_ep_iso_recv() local
249 stream = ep->stream; in unicast_client_ep_iso_recv()
250 if (stream == NULL) { in unicast_client_ep_iso_recv()
251 LOG_ERR("No stream for ep %p", ep); in unicast_client_ep_iso_recv()
255 ops = stream->ops; in unicast_client_ep_iso_recv()
258 LOG_DBG("stream %p ep %p len %zu", stream, ep, net_buf_frags_len(buf)); in unicast_client_ep_iso_recv()
[all …]
/Zephyr-Core-3.5.0/drivers/i2s/
Di2s_ll_stm32.c184 struct stream *stream; in i2s_stm32_configure() local
190 stream = &dev_data->rx; in i2s_stm32_configure()
192 stream = &dev_data->tx; in i2s_stm32_configure()
200 if (stream->state != I2S_STATE_NOT_READY && in i2s_stm32_configure()
201 stream->state != I2S_STATE_READY) { in i2s_stm32_configure()
206 stream->master = true; in i2s_stm32_configure()
209 stream->master = false; in i2s_stm32_configure()
213 stream->queue_drop(stream); in i2s_stm32_configure()
214 memset(&stream->cfg, 0, sizeof(struct i2s_config)); in i2s_stm32_configure()
215 stream->state = I2S_STATE_NOT_READY; in i2s_stm32_configure()
[all …]
Di2s_mcux_flexcomm.c33 struct stream { struct
50 struct stream rx; argument
55 struct stream tx;
174 struct stream *stream; in i2s_mcux_config_get() local
177 stream = &dev_data->rx; in i2s_mcux_config_get()
179 stream = &dev_data->tx; in i2s_mcux_config_get()
182 if (stream->state == I2S_STATE_NOT_READY) { in i2s_mcux_config_get()
186 return &stream->cfg; in i2s_mcux_config_get()
195 struct stream *stream; in i2s_mcux_configure() local
203 stream = &dev_data->rx; in i2s_mcux_configure()
[all …]
Di2s_sam_ssc.c78 struct stream { struct
88 int (*stream_start)(struct stream *, Ssc *const, argument
90 void (*stream_disable)(struct stream *, Ssc *const, argument
92 void (*queue_drop)(struct stream *); argument
99 struct stream rx; argument
100 struct stream tx;
108 static void rx_stream_disable(struct stream *, Ssc *const,
110 static void tx_stream_disable(struct stream *, Ssc *const,
212 struct stream *stream = &dev_data->rx; in dma_rx_callback() local
216 __ASSERT_NO_MSG(stream->mem_block != NULL); in dma_rx_callback()
[all …]
/Zephyr-Core-3.5.0/lib/libc/minimal/source/stdout/
Dstdout_console.c28 int z_impl_zephyr_fputc(int c, FILE *stream) in z_impl_zephyr_fputc() argument
30 return (stream == stdout || stream == stderr) ? _stdout_hook(c) : EOF; in z_impl_zephyr_fputc()
34 static inline int z_vrfy_zephyr_fputc(int c, FILE *stream) in z_vrfy_zephyr_fputc() argument
36 return z_impl_zephyr_fputc(c, stream); in z_vrfy_zephyr_fputc()
41 int fputc(int c, FILE *stream) in fputc() argument
43 return zephyr_fputc(c, stream); in fputc()
46 int fputs(const char *ZRESTRICT s, FILE *ZRESTRICT stream) in fputs() argument
51 ret = fwrite(s, 1, len, stream); in fputs()
57 int putc(int c, FILE *stream) in putc() argument
59 return zephyr_fputc(c, stream); in putc()
[all …]
/Zephyr-Core-3.5.0/samples/bluetooth/hap_ha/src/
Dbap_unicast_sr.c33 struct bt_bap_stream *stream; member
41 static uint16_t get_and_incr_seq_num(const struct bt_bap_stream *stream) in get_and_incr_seq_num() argument
44 if (stream == source_streams[i].stream) { in get_and_incr_seq_num()
49 printk("Could not find endpoint from stream %p\n", stream); in get_and_incr_seq_num()
147 * we can use `stream[i]` to select sink streams (i.e. streams with in audio_timer_timeout()
151 struct bt_bap_stream *stream = source_streams[i].stream; in audio_timer_timeout() local
158 ret = bt_bap_stream_send(stream, buf, in audio_timer_timeout()
159 get_and_incr_seq_num(stream), in audio_timer_timeout()
163 i, stream, ret); in audio_timer_timeout()
167 len_to_send, i, stream); in audio_timer_timeout()
[all …]
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/
Dbap_unicast_client_test.c45 static void stream_configured(struct bt_bap_stream *stream, in stream_configured() argument
48 printk("Configured stream %p\n", stream); in stream_configured()
57 static void stream_qos_set(struct bt_bap_stream *stream) in stream_qos_set() argument
59 printk("QoS set stream %p\n", stream); in stream_qos_set()
64 static void stream_enabled(struct bt_bap_stream *stream) in stream_enabled() argument
66 printk("Enabled stream %p\n", stream); in stream_enabled()
71 static void stream_started(struct bt_bap_stream *stream) in stream_started() argument
73 printk("Started stream %p\n", stream); in stream_started()
78 static void stream_metadata_updated(struct bt_bap_stream *stream) in stream_metadata_updated() argument
80 printk("Metadata updated stream %p\n", stream); in stream_metadata_updated()
[all …]
Dbap_unicast_server_test.c79 struct bt_bap_stream *stream = &streams[i]; in stream_alloc() local
81 if (!stream->conn) { in stream_alloc()
82 return stream; in stream_alloc()
90 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() argument
97 *stream = stream_alloc(); in lc3_config()
98 if (*stream == NULL) { in lc3_config()
104 printk("ASE Codec Config stream %p\n", *stream); in lc3_config()
115 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() argument
119 printk("ASE Codec Reconfig: stream %p\n", stream); in lc3_reconfig()
128 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_audio_codec_qos *qos, in lc3_qos() argument
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/
Dbtp_bap.c47 struct bt_bap_stream stream; member
191 struct audio_stream *stream = &conn->streams[i]; in stream_alloc() local
193 if (!stream->stream.conn) { in stream_alloc()
194 return stream; in stream_alloc()
201 static void stream_free(struct audio_stream *stream) in stream_free() argument
203 (void)memset(stream, 0, sizeof(*stream)); in stream_free()
209 struct bt_bap_stream *stream = &conn->streams[i].stream; in stream_find() local
211 if (stream->ep != NULL && stream->ep->status.id == ase_id) { in stream_find()
310 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() argument
334 LOG_DBG("No free stream available"); in lc3_config()
[all …]
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c35 struct bt_bap_stream *stream; member
107 struct bt_bap_stream *stream = &streams[i]; in stream_alloc() local
109 if (!stream->conn) { in stream_alloc()
110 return stream; in stream_alloc()
118 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() argument
126 *stream = stream_alloc(); in lc3_config()
127 if (*stream == NULL) { in lc3_config()
134 printk("ASE Codec Config stream %p\n", *stream); in lc3_config()
137 source_streams[configured_source_stream_count++].stream = *stream; in lc3_config()
145 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() argument
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/audio/mocks/include/
Dbap_stream_expects.h25 func_name, "stream");)) \
40 static inline void expect_bt_bap_stream_ops_qos_set_called_once(struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_qos_set_called_once() argument
47 zexpect_equal_ptr(stream, mock_bap_stream_qos_set_cb_fake.arg0_val, in expect_bt_bap_stream_ops_qos_set_called_once()
48 "'%s()' was called with incorrect '%s'", func_name, "stream"); in expect_bt_bap_stream_ops_qos_set_called_once()
59 static inline void expect_bt_bap_stream_ops_enabled_called_once(struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_enabled_called_once() argument
66 zexpect_equal_ptr(stream, mock_bap_stream_enabled_cb_fake.arg0_val, in expect_bt_bap_stream_ops_enabled_called_once()
67 "'%s()' was called with incorrect '%s'", func_name, "stream"); in expect_bt_bap_stream_ops_enabled_called_once()
79 struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_metadata_updated_called_once() argument
86 zexpect_equal_ptr(stream, mock_bap_stream_metadata_updated_cb_fake.arg0_val, in expect_bt_bap_stream_ops_metadata_updated_called_once()
87 "'%s()' was called with incorrect '%s'", func_name, "stream"); in expect_bt_bap_stream_ops_metadata_updated_called_once()
[all …]
/Zephyr-Core-3.5.0/doc/services/storage/stream/
Dstream_flash.rst3 Stream Flash
5 The Stream Flash module takes contiguous fragments of a stream of data (e.g.
7 buffer fills (or stream ends) writes it to a raw flash partition. It supports
9 stream content.
11 One typical use of a stream write operation is when receiving a new firmware
20 Persistent stream write progress
22 Some stream write operations, such as DFU operations, may run for a long time.
24 the stream write progress to persistent storage so that the operation can resume
27 The Stream Flash module offers an API for loading, saving and clearing stream
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_server/src/
Dmain.c45 struct bt_bap_stream stream; member
75 static uint16_t get_and_incr_seq_num(const struct bt_bap_stream *stream) in get_and_incr_seq_num() argument
78 if (stream == &source_streams[i].stream) { in get_and_incr_seq_num()
94 printk("Could not find endpoint from stream %p\n", stream); in get_and_incr_seq_num()
206 * we can use `stream[i]` to select sink streams (i.e. streams with in audio_timer_timeout()
210 struct bt_bap_stream *stream = &source_streams[i].stream; in audio_timer_timeout() local
217 ret = bt_bap_stream_send(stream, buf, in audio_timer_timeout()
218 get_and_incr_seq_num(stream), in audio_timer_timeout()
222 i, stream, ret); in audio_timer_timeout()
226 source_streams[i].len_to_send, i, stream); in audio_timer_timeout()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/audio/
Dbap.h118 /** Audio Stream Endpoint Idle state */
121 /** Audio Stream Endpoint Codec Configured state */
124 /** Audio Stream Endpoint QoS Configured state */
127 /** Audio Stream Endpoint Enabling state */
130 /** Audio Stream Endpoint Streaming state */
133 /** Audio Stream Endpoint Disabling state */
136 /** Audio Stream Endpoint Streaming state */
143 * These are sent by the server to the client when a stream operation is
395 * @brief Broadcast Isochronous Stream synchronize request
398 * Isochronous Stream states. The request shall be fulfilled with
[all …]
Dbap_lc3_preset.h34 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
44 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
54 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
66 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
76 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
88 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
98 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
108 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
118 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
129 * @param _stream_context Stream context (BT_AUDIO_CONTEXT_*)
[all …]
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/common/include/
Dintel_adsp_hda.h15 * @brief HDA stream functionality for Intel ADSP
21 * addresses, the stream count, and the size of the ip blocks.
31 /* Calculate base address of the stream registers */
32 #define HDA_ADDR(base, regblock_size, stream) ((base) + (stream)*(regblock_size)) argument
35 #define DGCS(base, regblock_size, stream) \ argument
36 ((volatile uint32_t *)HDA_ADDR(base, regblock_size, stream))
53 #define DGBBA(base, regblock_size, stream) \ argument
54 ((volatile uint32_t *)(HDA_ADDR(base, regblock_size, stream) + 0x04))
57 #define DGBS(base, regblock_size, stream) \ argument
58 ((volatile uint32_t *)(HDA_ADDR(base, regblock_size, stream) + 0x08))
[all …]

12345678910>>...12