/Zephyr-latest/tests/bluetooth/audio/mocks/include/ |
D | bap_stream.h | 18 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_configured_cb, struct bt_bap_stream *, 20 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_qos_set_cb, struct bt_bap_stream *); 21 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_enabled_cb, struct bt_bap_stream *); 22 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_metadata_updated_cb, struct bt_bap_stream *); 23 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_disabled_cb, struct bt_bap_stream *); 24 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_released_cb, struct bt_bap_stream *); 25 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_started_cb, struct bt_bap_stream *); 26 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_stopped_cb, struct bt_bap_stream *, uint8_t); 27 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_recv_cb, struct bt_bap_stream *, 29 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_sent_cb, struct bt_bap_stream *); [all …]
|
D | bap_stream_expects.h | 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() 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() 79 struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_metadata_updated_called_once() 98 static inline void expect_bt_bap_stream_ops_disabled_called_once(struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_disabled_called_once() 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() 138 static inline void expect_bt_bap_stream_ops_released_called_once(const struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_released_called_once() 151 static inline void expect_bt_bap_stream_ops_started_called_once(struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_started_called_once() 197 expect_bt_bap_stream_ops_connected_called_once(const struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_connected_called_once() 210 expect_bt_bap_stream_ops_connected_called_twice(const struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_connected_called_twice() 223 expect_bt_bap_stream_ops_disconnected_called_once(const struct bt_bap_stream *stream) in expect_bt_bap_stream_ops_disconnected_called_once() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/ascs/include/ |
D | bap_unicast_server.h | 20 const struct bt_audio_codec_cfg *, struct bt_bap_stream **, 22 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *, 25 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *, 27 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *, 29 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *, 31 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, struct bt_bap_stream *, 33 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_disable, struct bt_bap_stream *, 35 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *, 37 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *,
|
D | test_common.h | 48 struct bt_bap_stream *stream); 59 struct bt_bap_stream *stream); 61 struct bt_bap_stream *stream); 63 struct bt_bap_stream *stream); 65 struct bt_bap_stream *stream, struct bt_iso_chan **chan, 68 struct bt_bap_stream *stream, struct bt_iso_chan **chan); 70 struct bt_bap_stream *stream, struct bt_iso_chan **chan,
|
/Zephyr-latest/tests/bluetooth/audio/mocks/src/ |
D | bap_stream.c | 28 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_configured_cb, struct bt_bap_stream *, 30 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_qos_set_cb, struct bt_bap_stream *); 31 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_enabled_cb, struct bt_bap_stream *); 32 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_metadata_updated_cb, struct bt_bap_stream *); 33 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_disabled_cb, struct bt_bap_stream *); 34 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_released_cb, struct bt_bap_stream *); 35 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_started_cb, struct bt_bap_stream *); 36 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_stopped_cb, struct bt_bap_stream *, uint8_t); 37 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_recv_cb, struct bt_bap_stream *, 39 DEFINE_FAKE_VOID_FUNC(mock_bap_stream_sent_cb, struct bt_bap_stream *); [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_stream.h | 18 void bt_bap_stream_init(struct bt_bap_stream *stream); 21 int bt_bap_stream_disconnect(struct bt_bap_stream *stream); 23 void bt_bap_stream_reset(struct bt_bap_stream *stream); 25 void bt_bap_stream_attach(struct bt_conn *conn, struct bt_bap_stream *stream, struct bt_bap_ep *ep, 30 void bt_bap_stream_detach(struct bt_bap_stream *stream); 35 bool bt_bap_stream_can_disconnect(const struct bt_bap_stream *stream); 37 enum bt_bap_ascs_reason bt_bap_stream_verify_qos(const struct bt_bap_stream *stream, 40 struct bt_iso_chan *bt_bap_stream_iso_chan_get(struct bt_bap_stream *stream);
|
D | bap_unicast_client_internal.h | 17 int bt_bap_unicast_client_config(struct bt_bap_stream *stream, 22 int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, const uint8_t meta[], 25 int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, const uint8_t meta[], 28 int bt_bap_unicast_client_disable(struct bt_bap_stream *stream); 30 int bt_bap_unicast_client_start(struct bt_bap_stream *stream); 31 int bt_bap_unicast_client_connect(struct bt_bap_stream *stream); 33 int bt_bap_unicast_client_stop(struct bt_bap_stream *stream); 35 int bt_bap_unicast_client_release(struct bt_bap_stream *stream);
|
D | bap_unicast_server.h | 15 int bt_bap_unicast_server_reconfig(struct bt_bap_stream *stream, 17 int bt_bap_unicast_server_start(struct bt_bap_stream *stream); 18 int bt_bap_unicast_server_metadata(struct bt_bap_stream *stream, const uint8_t meta[], 20 int bt_bap_unicast_server_disable(struct bt_bap_stream *stream); 21 int bt_bap_unicast_server_release(struct bt_bap_stream *stream);
|
D | cap_stream.c | 30 static bool stream_is_central(struct bt_bap_stream *bap_stream) in stream_is_central() 50 static void cap_stream_configured_cb(struct bt_bap_stream *bap_stream, in cap_stream_configured_cb() 70 static void cap_stream_qos_set_cb(struct bt_bap_stream *bap_stream) in cap_stream_qos_set_cb() 89 static void cap_stream_enabled_cb(struct bt_bap_stream *bap_stream) in cap_stream_enabled_cb() 108 static void cap_stream_metadata_updated_cb(struct bt_bap_stream *bap_stream) in cap_stream_metadata_updated_cb() 127 static void cap_stream_disabled_cb(struct bt_bap_stream *bap_stream) in cap_stream_disabled_cb() 146 static void cap_stream_released_cb(struct bt_bap_stream *bap_stream) in cap_stream_released_cb() 169 static void cap_stream_started_cb(struct bt_bap_stream *bap_stream) in cap_stream_started_cb() 188 static void cap_stream_stopped_cb(struct bt_bap_stream *bap_stream, uint8_t reason) in cap_stream_stopped_cb() 208 static void cap_stream_recv_cb(struct bt_bap_stream *bap_stream, in cap_stream_recv_cb() [all …]
|
D | bap_iso.h | 20 struct bt_bap_stream *stream; 56 void bt_bap_iso_bind_stream(struct bt_bap_iso *bap_iso, struct bt_bap_stream *stream, 58 void bt_bap_iso_unbind_stream(struct bt_bap_iso *bap_iso, struct bt_bap_stream *stream, 60 struct bt_bap_stream *bt_bap_iso_get_stream(struct bt_bap_iso *iso, enum bt_audio_dir dir);
|
/Zephyr-latest/tests/bluetooth/audio/ascs/uut/ |
D | bap_unicast_client.c | 14 int bt_bap_unicast_client_config(struct bt_bap_stream *stream, in bt_bap_unicast_client_config() 27 int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, uint8_t meta[], in bt_bap_unicast_client_enable() 34 int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, uint8_t meta[], in bt_bap_unicast_client_metadata() 41 int bt_bap_unicast_client_disable(struct bt_bap_stream *stream) in bt_bap_unicast_client_disable() 47 int bt_bap_unicast_client_connect(struct bt_bap_stream *stream) in bt_bap_unicast_client_connect() 53 int bt_bap_unicast_client_start(struct bt_bap_stream *stream) in bt_bap_unicast_client_start() 59 int bt_bap_unicast_client_stop(struct bt_bap_stream *stream) in bt_bap_unicast_client_stop() 65 int bt_bap_unicast_client_release(struct bt_bap_stream *stream) in bt_bap_unicast_client_release()
|
D | bap_unicast_server.c | 35 const struct bt_audio_codec_cfg *, struct bt_bap_stream **, 37 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *, 40 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *, 42 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *, 44 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *, 46 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, struct bt_bap_stream *, 48 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_disable, struct bt_bap_stream *, 50 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *, 52 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *,
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | bap.h | 746 struct bt_bap_stream { struct 797 void (*configured)(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg_pref *pref); argument 807 void (*qos_set)(struct bt_bap_stream *stream); 816 void (*enabled)(struct bt_bap_stream *stream); 826 void (*metadata_updated)(struct bt_bap_stream *stream); 835 void (*disabled)(struct bt_bap_stream *stream); 845 void (*released)(struct bt_bap_stream *stream); 856 void (*started)(struct bt_bap_stream *stream); 866 void (*stopped)(struct bt_bap_stream *stream, uint8_t reason); 880 void (*recv)(struct bt_bap_stream *stream, const struct bt_iso_recv_info *info, [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_stream_tx.h | 38 int bap_stream_tx_register(struct bt_bap_stream *bap_stream); 52 int bap_stream_tx_unregister(struct bt_bap_stream *bap_stream); 61 bool bap_stream_tx_can_send(const struct bt_bap_stream *stream); 68 void bap_stream_tx_sent_cb(struct bt_bap_stream *stream);
|
D | bap_unicast_client_test.c | 72 static void stream_configured(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg_pref *pref) in stream_configured() 83 static void stream_qos_set(struct bt_bap_stream *stream) in stream_qos_set() 94 static void stream_enabled(struct bt_bap_stream *stream) in stream_enabled() 101 static void stream_started(struct bt_bap_stream *stream) in stream_started() 118 static void stream_connected(struct bt_bap_stream *stream) in stream_connected() 125 static void stream_disconnected(struct bt_bap_stream *stream, uint8_t reason) in stream_disconnected() 132 static void stream_metadata_updated(struct bt_bap_stream *stream) in stream_metadata_updated() 139 static void stream_disabled(struct bt_bap_stream *stream) in stream_disabled() 146 static void stream_stopped(struct bt_bap_stream *stream, uint8_t reason) in stream_stopped() 163 static void stream_released(struct bt_bap_stream *stream) in stream_released() [all …]
|
D | bap_unicast_server_test.c | 98 static struct bt_bap_stream *stream_alloc(void) in stream_alloc() 101 struct bt_bap_stream *stream = bap_stream_from_audio_test_stream(&test_streams[i]); in stream_alloc() 112 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() 137 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() 150 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in lc3_qos() 164 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() 172 static int lc3_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_start() 192 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() 200 static int lc3_disable(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_disable() 207 static int lc3_stop(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_stop() [all …]
|
D | bap_stream_tx.c | 39 struct bt_bap_stream *bap_stream; 46 static bool stream_is_streaming(const struct bt_bap_stream *bap_stream) in stream_is_streaming() 89 struct bt_bap_stream *bap_stream = tx_streams[i].bap_stream; in tx_thread_func() 125 int bap_stream_tx_register(struct bt_bap_stream *bap_stream) in bap_stream_tx_register() 149 int bap_stream_tx_unregister(struct bt_bap_stream *bap_stream) in bap_stream_tx_unregister() 185 bool bap_stream_tx_can_send(const struct bt_bap_stream *stream) in bap_stream_tx_can_send() 202 void bap_stream_tx_sent_cb(struct bt_bap_stream *stream) in bap_stream_tx_sent_cb()
|
D | gmap_ugt_test.c | 56 static void unicast_stream_enabled_cb(struct bt_bap_stream *stream) in unicast_stream_enabled_cb() 80 static void unicast_stream_started_cb(struct bt_bap_stream *stream) in unicast_stream_started_cb() 99 static struct bt_bap_stream *unicast_stream_alloc(void) in unicast_stream_alloc() 102 struct bt_bap_stream *stream = &unicast_streams[i].bap_stream; in unicast_stream_alloc() 114 struct bt_bap_stream **stream, in unicast_server_config() 137 static int unicast_server_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in unicast_server_reconfig() 154 static int unicast_server_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in unicast_server_qos() 178 static int unicast_server_enable(struct bt_bap_stream *stream, const uint8_t meta[], in unicast_server_enable() 186 static int unicast_server_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_start() 193 static int unicast_server_metadata(struct bt_bap_stream *stream, const uint8_t meta[], in unicast_server_metadata() [all …]
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_unicast.c | 111 struct bt_bap_stream **bap_stream, in unicast_server_config_cb() 138 static int unicast_server_reconfig_cb(struct bt_bap_stream *bap_stream, enum bt_audio_dir dir, in unicast_server_reconfig_cb() 150 static int unicast_server_qos_cb(struct bt_bap_stream *bap_stream, const struct bt_bap_qos_cfg *qos, in unicast_server_qos_cb() 160 static int unicast_server_enable_cb(struct bt_bap_stream *bap_stream, const uint8_t meta[], in unicast_server_enable_cb() 168 static int unicast_server_start_cb(struct bt_bap_stream *bap_stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_start_cb() 191 static int unicast_server_metadata_cb(struct bt_bap_stream *bap_stream, const uint8_t meta[], in unicast_server_metadata_cb() 218 static int unicast_server_disable_cb(struct bt_bap_stream *bap_stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_disable_cb() 225 static int unicast_server_stop_cb(struct bt_bap_stream *bap_stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_stop_cb() 232 static int unicast_server_release_cb(struct bt_bap_stream *bap_stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_release_cb() 251 static void unicast_stream_configured_cb(struct bt_bap_stream *bap_stream, in unicast_stream_configured_cb() [all …]
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | stream_tx.h | 20 struct bt_bap_stream *bap_stream; 47 int stream_tx_register(struct bt_bap_stream *bap_stream); 58 int stream_tx_unregister(struct bt_bap_stream *bap_stream);
|
/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 + 35 struct bt_bap_stream *stream; 43 static uint16_t get_and_incr_seq_num(const struct bt_bap_stream *stream) in get_and_incr_seq_num() 158 struct bt_bap_stream *stream = source_streams[i].stream; in audio_timer_timeout() 189 static struct bt_bap_stream *stream_alloc(void) in stream_alloc() 192 struct bt_bap_stream *stream = &streams[i]; in stream_alloc() 203 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() 228 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() 242 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in lc3_qos() 252 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/ascs/src/ |
D | test_ase_state_transition.c | 39 struct bt_bap_stream stream; 133 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 147 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 165 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 182 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 200 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 217 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 235 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 253 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() 270 struct bt_bap_stream *stream = &fixture->stream; in ZTEST_F() [all …]
|
/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 + 48 struct bt_bap_stream *stream; 122 static struct bt_bap_stream *stream_alloc(void) in stream_alloc() 125 struct bt_bap_stream *stream = &streams[i]; in stream_alloc() 136 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() 163 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() 174 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in lc3_qos() 184 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() 192 static int lc3_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_start() 239 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() [all …]
|
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/ |
D | main.c | 57 static struct bt_bap_stream sink_streams[CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT]; 59 struct bt_bap_stream stream; 90 static uint16_t get_and_incr_seq_num(const struct bt_bap_stream *stream) in get_and_incr_seq_num() 230 struct bt_bap_stream *stream = &source_streams[i].stream; in audio_timer_timeout() 264 static enum bt_audio_dir stream_dir(const struct bt_bap_stream *stream) in stream_dir() 282 static struct bt_bap_stream *stream_alloc(enum bt_audio_dir dir) in stream_alloc() 286 struct bt_bap_stream *stream = &source_streams[i].stream; in stream_alloc() 294 struct bt_bap_stream *stream = &sink_streams[i]; in stream_alloc() 306 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() 337 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_bap_audio_stream.c | 43 static inline struct bt_bap_stream *audio_stream_to_bap_stream(struct btp_bap_audio_stream *stream) in audio_stream_to_bap_stream() 48 struct bt_bap_stream *bap_stream; 54 static bool stream_is_streaming(const struct bt_bap_stream *bap_stream) in stream_is_streaming() 95 struct bt_bap_stream *bap_stream = tx_streams[i].bap_stream; in tx_thread_func() 159 const struct bt_bap_stream *bap_stream; in btp_bap_audio_stream_tx_unregister() 198 struct bt_bap_stream *bap_stream; in btp_bap_audio_stream_can_send() 217 void btp_bap_audio_stream_sent_cb(struct bt_bap_stream *stream) in btp_bap_audio_stream_sent_cb()
|