Lines Matching refs:runtime

105 	struct snd_pcm_runtime *runtime;  in cx231xx_audio_isocirq()  local
129 runtime = substream->runtime; in cx231xx_audio_isocirq()
130 stride = runtime->frame_bits >> 3; in cx231xx_audio_isocirq()
142 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq()
145 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq()
146 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
148 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_isocirq()
151 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
159 runtime->buffer_size) in cx231xx_audio_isocirq()
161 runtime->buffer_size; in cx231xx_audio_isocirq()
165 runtime->period_size) { in cx231xx_audio_isocirq()
167 runtime->period_size; in cx231xx_audio_isocirq()
195 struct snd_pcm_runtime *runtime; in cx231xx_audio_bulkirq() local
219 runtime = substream->runtime; in cx231xx_audio_bulkirq()
220 stride = runtime->frame_bits >> 3; in cx231xx_audio_bulkirq()
228 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_bulkirq()
231 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_bulkirq()
232 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_bulkirq()
234 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_bulkirq()
237 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_bulkirq()
245 runtime->buffer_size) in cx231xx_audio_bulkirq()
247 runtime->buffer_size; in cx231xx_audio_bulkirq()
251 runtime->period_size) { in cx231xx_audio_bulkirq()
253 runtime->period_size; in cx231xx_audio_bulkirq()
393 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pcm_alloc_vmalloc_buffer() local
397 if (runtime->dma_area) { in snd_pcm_alloc_vmalloc_buffer()
398 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
401 vfree(runtime->dma_area); in snd_pcm_alloc_vmalloc_buffer()
403 runtime->dma_area = vmalloc(size); in snd_pcm_alloc_vmalloc_buffer()
404 if (!runtime->dma_area) in snd_pcm_alloc_vmalloc_buffer()
407 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
436 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx231xx_capture_open() local
463 runtime->hw = snd_cx231xx_hw_capture; in snd_cx231xx_capture_open()
472 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cx231xx_capture_open()
474 runtime->private_data = dev; in snd_cx231xx_capture_open()
630 void *pageptr = subs->runtime->dma_area + offset; in snd_pcm_get_vmalloc_page()