Lines Matching refs:spcm
54 struct snd_sof_pcm *spcm; in snd_sof_compr_fragment_elapsed() local
64 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed()
65 if (!spcm) { 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()
75 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
85 struct snd_sof_pcm *spcm; in create_page_table() local
87 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
88 if (!spcm) in create_page_table()
92 spcm->stream[dir].page_table.area, size); in create_page_table()
101 struct snd_sof_pcm *spcm; in sof_compr_open() local
108 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_open()
109 if (!spcm) { in sof_compr_open()
116 if (spcm->stream[dir].cstream) { in sof_compr_open()
121 spcm->stream[dir].cstream = cstream; in sof_compr_open()
122 spcm->stream[dir].posn.host_posn = 0; in sof_compr_open()
123 spcm->stream[dir].posn.dai_posn = 0; in sof_compr_open()
124 spcm->prepared[dir] = false; in sof_compr_open()
138 struct snd_sof_pcm *spcm; in sof_compr_free() local
141 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_free()
142 if (!spcm) in sof_compr_free()
147 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_free()
149 if (spcm->prepared[cstream->direction]) { in sof_compr_free()
152 spcm->prepared[cstream->direction] = false; in sof_compr_free()
155 cancel_work_sync(&spcm->stream[cstream->direction].period_elapsed_work); in sof_compr_free()
156 spcm->stream[cstream->direction].cstream = NULL; in sof_compr_free()
173 struct snd_sof_pcm *spcm; in sof_compr_set_params() local
188 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_set_params()
190 if (!spcm) in sof_compr_set_params()
216 pcm->comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_set_params()
218 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params()
239 ret = snd_sof_set_stream_data_offset(sdev, &spcm->stream[cstream->direction], in sof_compr_set_params()
243 spcm->pcm.pcm_id); in sof_compr_set_params()
251 spcm->prepared[cstream->direction] = true; in sof_compr_set_params()
274 struct snd_sof_pcm *spcm; in sof_compr_trigger() local
276 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_trigger()
277 if (!spcm) in sof_compr_trigger()
282 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_trigger()
366 struct snd_sof_pcm *spcm; in sof_compr_pointer() local
370 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_pointer()
371 if (!spcm) in sof_compr_pointer()
376 tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn, in sof_compr_pointer()