Lines Matching refs:runtime
26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \
29 const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
30 unsigned int period_pos = tx_ptr % runtime->period_size; \
37 if (++tx_ptr >= runtime->buffer_size) \
40 *period_elapsed = period_pos >= runtime->period_size; \
46 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \
49 u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
57 if (++rx_ptr >= runtime->buffer_size) \
60 *period_elapsed = period_pos >= runtime->period_size; \
112 new_ptr = dev->tx_fn(dev, substream->runtime, ptr, in dw_pcm_transfer()
117 new_ptr = dev->rx_fn(dev, substream->runtime, ptr, in dw_pcm_transfer()
141 struct snd_pcm_runtime *runtime = substream->runtime; in dw_pcm_open() local
146 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in dw_pcm_open()
147 runtime->private_data = dev; in dw_pcm_open()
163 struct snd_pcm_runtime *runtime = substream->runtime; in dw_pcm_hw_params() local
164 struct dw_i2s_dev *dev = runtime->private_data; in dw_pcm_hw_params()
195 struct snd_pcm_runtime *runtime = substream->runtime; in dw_pcm_trigger() local
196 struct dw_i2s_dev *dev = runtime->private_data; in dw_pcm_trigger()
230 struct snd_pcm_runtime *runtime = substream->runtime; in dw_pcm_pointer() local
231 struct dw_i2s_dev *dev = runtime->private_data; in dw_pcm_pointer()
239 return pos < runtime->buffer_size ? pos : 0; in dw_pcm_pointer()