Lines Matching refs:u_stream
196 struct btp_bap_unicast_stream *u_stream; in cap_unicast_setup_ase() local
200 u_stream = btp_bap_unicast_stream_find(u_conn, ase_id); in cap_unicast_setup_ase()
201 if (u_stream == NULL) { in cap_unicast_setup_ase()
203 u_stream = btp_bap_unicast_stream_alloc(u_conn); in cap_unicast_setup_ase()
204 if (u_stream == NULL) { in cap_unicast_setup_ase()
211 stream = stream_unicast_to_bap(u_stream); in cap_unicast_setup_ase()
212 bt_cap_stream_ops_register(&u_stream->audio_stream.cap_stream, stream->ops); in cap_unicast_setup_ase()
214 u_stream->conn_id = bt_conn_index(conn); in cap_unicast_setup_ase()
215 u_stream->ase_id = ase_id; in cap_unicast_setup_ase()
216 u_stream->cig_id = cig_id; in cap_unicast_setup_ase()
217 u_stream->cis_id = cis_id; in cap_unicast_setup_ase()
218 memcpy(&u_stream->codec_cfg, codec_cfg, sizeof(*codec_cfg)); in cap_unicast_setup_ase()
310 struct btp_bap_unicast_stream *u_stream = &u_conn->streams[i]; in btp_cap_unicast_audio_start() local
312 if (!u_stream->in_use || u_stream->cig_id != cp->cig_id) { in btp_cap_unicast_audio_start()
317 stream_param->stream = stream_unicast_to_cap(u_stream); in btp_cap_unicast_audio_start()
318 stream_param->codec_cfg = &u_stream->codec_cfg; in btp_cap_unicast_audio_start()
321 stream_param->ep = btp_bap_unicast_end_point_find(u_conn, u_stream->ase_id); in btp_cap_unicast_audio_start()
358 struct btp_bap_unicast_stream *u_stream; in btp_cap_unicast_audio_update() local
379 u_stream = btp_bap_unicast_stream_find(u_conn, update_data->ase_id); in btp_cap_unicast_audio_update()
380 if (u_stream == NULL) { in btp_cap_unicast_audio_update()
384 stream_param->stream = &u_stream->audio_stream.cap_stream; in btp_cap_unicast_audio_update()
428 struct btp_bap_unicast_stream *u_stream = &u_conn->streams[i]; in btp_cap_unicast_audio_stop() local
430 if (!u_stream->in_use || u_stream->cig_id != cp->cig_id) { in btp_cap_unicast_audio_stop()
434 streams[stream_cnt++] = stream_unicast_to_cap(u_stream); in btp_cap_unicast_audio_stop()