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