Lines Matching refs:runtime
91 struct snd_pcm_runtime *runtime; in em28xx_audio_isocirq() local
117 runtime = substream->runtime; in em28xx_audio_isocirq()
118 stride = runtime->frame_bits >> 3; in em28xx_audio_isocirq()
130 if (oldptr + length >= runtime->buffer_size) { in em28xx_audio_isocirq()
132 runtime->buffer_size - oldptr; in em28xx_audio_isocirq()
133 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq()
135 memcpy(runtime->dma_area, cp + cnt * stride, in em28xx_audio_isocirq()
138 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq()
146 runtime->buffer_size) in em28xx_audio_isocirq()
148 runtime->buffer_size; in em28xx_audio_isocirq()
152 runtime->period_size) { in em28xx_audio_isocirq()
154 runtime->period_size; in em28xx_audio_isocirq()
200 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pcm_alloc_vmalloc_buffer() local
203 if (runtime->dma_area) { in snd_pcm_alloc_vmalloc_buffer()
204 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
207 vfree(runtime->dma_area); in snd_pcm_alloc_vmalloc_buffer()
209 runtime->dma_area = vmalloc(size); in snd_pcm_alloc_vmalloc_buffer()
210 if (!runtime->dma_area) in snd_pcm_alloc_vmalloc_buffer()
213 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
253 struct snd_pcm_runtime *runtime = substream->runtime; in snd_em28xx_capture_open() local
274 runtime->hw = snd_em28xx_hw_capture; in snd_em28xx_capture_open()
310 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_em28xx_capture_open()
311 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, in snd_em28xx_capture_open()
340 if (substream->runtime->dma_area) { in snd_em28xx_pcm_close()
342 vfree(substream->runtime->dma_area); in snd_em28xx_pcm_close()
343 substream->runtime->dma_area = NULL; in snd_em28xx_pcm_close()
471 void *pageptr = subs->runtime->dma_area + offset; in snd_pcm_get_vmalloc_page()