Lines Matching refs:bap_stream

174 struct shell_stream *shell_stream_from_bap_stream(struct bt_bap_stream *bap_stream)  in shell_stream_from_bap_stream()  argument
177 CONTAINER_OF(bap_stream, struct bt_cap_stream, bap_stream); in shell_stream_from_bap_stream()
185 return &sh_stream->stream.bap_stream; in bap_stream_from_shell_stream()
253 uint16_t get_next_seq_num(struct bt_bap_stream *bap_stream) in get_next_seq_num() argument
255 struct shell_stream *sh_stream = shell_stream_from_bap_stream(bap_stream); in get_next_seq_num()
256 const uint32_t interval_us = bap_stream->qos->interval; in get_next_seq_num()
447 struct bt_bap_stream *bap_stream = bap_stream_from_shell_stream(sh_stream); in lc3_audio_send_data() local
463 if (bap_stream == NULL || bap_stream->qos == NULL) { in lc3_audio_send_data()
488 err = bt_bap_stream_send(bap_stream, buf, sh_stream->tx.seq_num); in lc3_audio_send_data()
498 sh_stream->tx.lc3_sdu_cnt, bap_stream, tx_sdu_len, in lc3_audio_send_data()
507 static void lc3_sent_cb(struct bt_bap_stream *bap_stream) in lc3_sent_cb() argument
509 struct shell_stream *sh_stream = shell_stream_from_bap_stream(bap_stream); in lc3_sent_cb()
1152 struct bt_bap_stream *bap_stream; in cmd_config() local
1166 bap_stream = bap_stream_from_shell_stream(&unicast_streams[0]); in cmd_config()
1168 bap_stream = default_stream; in cmd_config()
1260 uni_stream = shell_stream_from_bap_stream(bap_stream); in cmd_config()
1297 if (bap_stream->ep == ep) { in cmd_config()
1298 err = bt_bap_stream_reconfig(bap_stream, &uni_stream->codec_cfg); in cmd_config()
1304 err = bt_bap_stream_config(default_conn, bap_stream, ep, in cmd_config()
1745 struct bt_bap_stream *stream = &unicast_streams[i].stream.bap_stream; in cmd_list()
2917 static void stream_started_cb(struct bt_bap_stream *bap_stream) in stream_started_cb() argument
2919 struct shell_stream *sh_stream = shell_stream_from_bap_stream(bap_stream); in stream_started_cb()
2923 printk("Stream %p started\n", bap_stream); in stream_started_cb()
2925 ret = bt_bap_ep_get_info(bap_stream->ep, &info); in stream_started_cb()
2935 const struct bt_audio_codec_cfg *codec_cfg = bap_stream->codec_cfg; in stream_started_cb()
3194 const struct bt_bap_stream *bap_stream = in stream_released_cb() local
3197 if (bap_stream->ep != NULL) { in stream_released_cb()
3201 err = bt_bap_ep_get_info(bap_stream->ep, &ep_info); in stream_released_cb()
3983 struct bt_bap_stream *bap_stream = bap_stream_from_shell_stream(sh_stream); in start_sine_stream_cb() local
3989 shell_error(sh, "Failed to init LC3 %d for stream %p", err, bap_stream); in start_sine_stream_cb()
3997 shell_print(sh, "Started transmitting sine on stream %p", bap_stream); in start_sine_stream_cb()
4029 struct bt_bap_stream *bap_stream = bap_stream_from_shell_stream(sh_stream); in stop_sine_stream_cb() local
4032 shell_print(sh, "Stopped transmitting on stream %p", bap_stream); in stop_sine_stream_cb()