Lines Matching refs:sstream

15 static void sof_set_transferred_bytes(struct sof_compr_stream *sstream,  in sof_set_transferred_bytes()  argument
21 div64_u64_rem(sstream->copied_total, buffer_size, &prev_pos); in sof_set_transferred_bytes()
28 sstream->copied_total += copied; in sof_set_transferred_bytes()
53 struct sof_compr_stream *sstream; in snd_sof_compr_fragment_elapsed() local
61 sstream = crtd->private_data; in snd_sof_compr_fragment_elapsed()
71 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed()
100 struct sof_compr_stream *sstream; in sof_compr_open() local
104 sstream = kzalloc(sizeof(*sstream), GFP_KERNEL); in sof_compr_open()
105 if (!sstream) in sof_compr_open()
110 kfree(sstream); in sof_compr_open()
117 kfree(sstream); in sof_compr_open()
126 crtd->private_data = sstream; in sof_compr_open()
135 struct sof_compr_stream *sstream = cstream->runtime->private_data; in sof_compr_free() local
157 kfree(sstream); in sof_compr_free()
171 struct sof_compr_stream *sstream; in sof_compr_set_params() local
186 sstream = crtd->private_data; in sof_compr_set_params()
247 sstream->sampling_rate = params->codec.sample_rate; in sof_compr_set_params()
248 sstream->channels = params->codec.ch_out; in sof_compr_set_params()
249 sstream->sample_container_bytes = pcm->params.sample_container_bytes; in sof_compr_set_params()
368 struct sof_compr_stream *sstream = cstream->runtime->private_data; in sof_compr_pointer() local
374 tstamp->sampling_rate = sstream->sampling_rate; in sof_compr_pointer()
375 tstamp->copied_total = sstream->copied_total; in sof_compr_pointer()
377 sstream->channels * sstream->sample_container_bytes); in sof_compr_pointer()