Lines Matching full:rtd

50 	struct snd_soc_pcm_runtime *rtd;  in snd_sof_compr_fragment_elapsed()  local
59 rtd = cstream->private_data; in snd_sof_compr_fragment_elapsed()
62 component = snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_compr_fragment_elapsed()
64 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed()
83 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in create_page_table() local
87 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
98 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_open() local
108 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_open()
136 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_free() local
141 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_free()
166 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_set_params() local
188 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_set_params()
272 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_trigger() local
276 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_trigger()
305 static int sof_compr_copy_playback(struct snd_compr_runtime *rtd, in sof_compr_copy_playback() argument
312 div_u64_rem(rtd->total_bytes_available, rtd->buffer_size, &offset); in sof_compr_copy_playback()
313 ptr = rtd->dma_area + offset; in sof_compr_copy_playback()
314 n = rtd->buffer_size - offset; in sof_compr_copy_playback()
320 ret += copy_from_user(rtd->dma_area, buf + n, count - n); in sof_compr_copy_playback()
326 static int sof_compr_copy_capture(struct snd_compr_runtime *rtd, in sof_compr_copy_capture() argument
333 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in sof_compr_copy_capture()
334 ptr = rtd->dma_area + offset; in sof_compr_copy_capture()
335 n = rtd->buffer_size - offset; in sof_compr_copy_capture()
341 ret += copy_to_user(buf + n, rtd->dma_area, count - n); in sof_compr_copy_capture()
351 struct snd_compr_runtime *rtd = cstream->runtime; in sof_compr_copy() local
353 if (count > rtd->buffer_size) in sof_compr_copy()
354 count = rtd->buffer_size; in sof_compr_copy()
357 return sof_compr_copy_playback(rtd, buf, count); in sof_compr_copy()
359 return sof_compr_copy_capture(rtd, buf, count); in sof_compr_copy()
367 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in sof_compr_pointer() local
370 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_compr_pointer()