Lines Matching refs:bap_stream

30 static bool stream_is_central(struct bt_bap_stream *bap_stream)  in stream_is_central()  argument
36 if (bap_stream->conn == NULL) { in stream_is_central()
40 err = bt_conn_get_info(bap_stream->conn, &info); in stream_is_central()
50 static void cap_stream_configured_cb(struct bt_bap_stream *bap_stream, in cap_stream_configured_cb() argument
53 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_configured_cb()
55 bap_stream); in cap_stream_configured_cb()
61 ops->configured(bap_stream, pref); in cap_stream_configured_cb()
65 stream_is_central(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() argument
72 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_qos_set_cb()
74 bap_stream); in cap_stream_qos_set_cb()
80 ops->qos_set(bap_stream); in cap_stream_qos_set_cb()
84 stream_is_central(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() argument
91 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_enabled_cb()
93 bap_stream); in cap_stream_enabled_cb()
99 ops->enabled(bap_stream); in cap_stream_enabled_cb()
103 stream_is_central(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() argument
110 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_metadata_updated_cb()
112 bap_stream); in cap_stream_metadata_updated_cb()
118 ops->metadata_updated(bap_stream); in cap_stream_metadata_updated_cb()
122 stream_is_central(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() argument
129 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_disabled_cb()
131 bap_stream); in cap_stream_disabled_cb()
137 stream_is_central(bap_stream)) { in cap_stream_disabled_cb()
142 ops->disabled(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() argument
148 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_released_cb()
150 bap_stream); in cap_stream_released_cb()
156 ops->released(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() argument
171 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_started_cb()
173 bap_stream); in cap_stream_started_cb()
179 ops->started(bap_stream); in cap_stream_started_cb()
183 stream_is_central(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() argument
190 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_stopped_cb()
192 bap_stream); in cap_stream_stopped_cb()
198 stream_is_central(bap_stream)) { in cap_stream_stopped_cb()
203 ops->stopped(bap_stream, reason); in cap_stream_stopped_cb()
208 static void cap_stream_recv_cb(struct bt_bap_stream *bap_stream, in cap_stream_recv_cb() argument
211 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_recv_cb()
213 bap_stream); in cap_stream_recv_cb()
217 ops->recv(bap_stream, info, buf); in cap_stream_recv_cb()
223 static void cap_stream_sent_cb(struct bt_bap_stream *bap_stream) in cap_stream_sent_cb() argument
225 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_sent_cb()
227 bap_stream); in cap_stream_sent_cb()
231 ops->sent(bap_stream); in cap_stream_sent_cb()
236 static void cap_stream_connected_cb(struct bt_bap_stream *bap_stream) in cap_stream_connected_cb() argument
239 CONTAINER_OF(bap_stream, struct bt_cap_stream, bap_stream); in cap_stream_connected_cb()
243 ops->connected(bap_stream); in cap_stream_connected_cb()
247 stream_is_central(bap_stream)) { in cap_stream_connected_cb()
252 static void cap_stream_disconnected_cb(struct bt_bap_stream *bap_stream, uint8_t reason) in cap_stream_disconnected_cb() argument
255 CONTAINER_OF(bap_stream, struct bt_cap_stream, bap_stream); in cap_stream_disconnected_cb()
259 ops->disconnected(bap_stream, reason); in cap_stream_disconnected_cb()
284 static void unicast_client_cp_cb(struct bt_bap_stream *bap_stream, in unicast_client_cp_cb() argument
288 stream_is_central(bap_stream)) { in unicast_client_cp_cb()
290 CONTAINER_OF(bap_stream, struct bt_cap_stream, bap_stream); in unicast_client_cp_cb()
298 bt_bap_stream_cb_register(&cap_stream->bap_stream, &bap_stream_ops); in bt_cap_stream_ops_register_bap()
346 return bt_bap_stream_send(&stream->bap_stream, buf, seq_num); in bt_cap_stream_send()
358 return bt_bap_stream_send_ts(&stream->bap_stream, buf, seq_num, ts); in bt_cap_stream_send_ts()
369 return bt_bap_stream_get_tx_sync(&stream->bap_stream, info); in bt_cap_stream_get_tx_sync()