Lines Matching defs:runtime
76 static void hdmi_reformat_iec958(struct snd_pcm_runtime *runtime,
80 u32(*buf)[2] = (void *)runtime->dma_area;
99 struct snd_pcm_runtime *runtime,
102 unsigned int period_pos = tx_ptr % runtime->period_size;
104 void *buf = runtime->dma_area;
108 hdmi_reformat_iec958(runtime, kmb_i2s, tx_ptr);
122 if (++tx_ptr >= runtime->buffer_size)
126 *period_elapsed = period_pos >= runtime->period_size;
132 struct snd_pcm_runtime *runtime,
135 unsigned int period_pos = rx_ptr % runtime->period_size;
138 void *buf = runtime->dma_area;
158 if (++rx_ptr >= runtime->buffer_size)
162 *period_elapsed = period_pos >= runtime->period_size;
236 new_ptr = kmb_pcm_tx_fn(kmb_i2s, substream->runtime,
241 new_ptr = kmb_pcm_rx_fn(kmb_i2s, substream->runtime,
253 struct snd_pcm_runtime *runtime = substream->runtime;
259 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
260 runtime->private_data = kmb_i2s;
268 struct snd_pcm_runtime *runtime = substream->runtime;
269 struct kmb_i2s_info *kmb_i2s = runtime->private_data;
377 struct snd_pcm_runtime *runtime = substream->runtime;
378 struct kmb_i2s_info *kmb_i2s = runtime->private_data;
386 return pos < runtime->buffer_size ? pos : 0;