Lines Matching refs:spcm
53 struct snd_sof_pcm *spcm; in snd_sof_compr_fragment_elapsed() local
63 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed()
64 if (!spcm) { 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()
74 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
84 struct snd_sof_pcm *spcm; in create_page_table() local
86 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
87 if (!spcm) in create_page_table()
91 spcm->stream[dir].page_table.area, size); in create_page_table()
100 struct snd_sof_pcm *spcm; in sof_compr_open() local
107 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_open()
108 if (!spcm) { in sof_compr_open()
115 if (spcm->stream[dir].cstream) { in sof_compr_open()
120 spcm->stream[dir].cstream = cstream; in sof_compr_open()
121 spcm->stream[dir].posn.host_posn = 0; in sof_compr_open()
122 spcm->stream[dir].posn.dai_posn = 0; in sof_compr_open()
123 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()
153 spcm->prepared[cstream->direction] = false; in sof_compr_free()
156 cancel_work_sync(&spcm->stream[cstream->direction].period_elapsed_work); in sof_compr_free()
157 spcm->stream[cstream->direction].cstream = NULL; in sof_compr_free()
174 struct snd_sof_pcm *spcm; in sof_compr_set_params() local
189 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_set_params()
191 if (!spcm) in sof_compr_set_params()
217 pcm->comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_set_params()
219 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params()
244 spcm->prepared[cstream->direction] = true; in sof_compr_set_params()
268 struct snd_sof_pcm *spcm; in sof_compr_trigger() local
270 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_trigger()
271 if (!spcm) in sof_compr_trigger()
276 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_trigger()
361 struct snd_sof_pcm *spcm; in sof_compr_pointer() local
365 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_pointer()
366 if (!spcm) in sof_compr_pointer()
371 tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn, in sof_compr_pointer()