Lines Matching refs:sstream

14 static void sof_set_transferred_bytes(struct sof_compr_stream *sstream,  in sof_set_transferred_bytes()  argument
20 div64_u64_rem(sstream->copied_total, buffer_size, &prev_pos); in sof_set_transferred_bytes()
27 sstream->copied_total += copied; in sof_set_transferred_bytes()
52 struct sof_compr_stream *sstream; in snd_sof_compr_fragment_elapsed() local
60 sstream = crtd->private_data; in snd_sof_compr_fragment_elapsed()
70 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed()
99 struct sof_compr_stream *sstream; in sof_compr_open() local
103 sstream = kzalloc(sizeof(*sstream), GFP_KERNEL); in sof_compr_open()
104 if (!sstream) in sof_compr_open()
109 kfree(sstream); in sof_compr_open()
116 kfree(sstream); in sof_compr_open()
125 crtd->private_data = sstream; in sof_compr_open()
134 struct sof_compr_stream *sstream = cstream->runtime->private_data; in sof_compr_free() local
158 kfree(sstream); in sof_compr_free()
172 struct sof_compr_stream *sstream; in sof_compr_set_params() local
187 sstream = crtd->private_data; in sof_compr_set_params()
240 sstream->sampling_rate = params->codec.sample_rate; in sof_compr_set_params()
241 sstream->channels = params->codec.ch_out; in sof_compr_set_params()
242 sstream->sample_container_bytes = pcm->params.sample_container_bytes; in sof_compr_set_params()
363 struct sof_compr_stream *sstream = cstream->runtime->private_data; in sof_compr_pointer() local
369 tstamp->sampling_rate = sstream->sampling_rate; in sof_compr_pointer()
370 tstamp->copied_total = sstream->copied_total; in sof_compr_pointer()
372 sstream->channels * sstream->sample_container_bytes); in sof_compr_pointer()