Lines Matching refs:runtime

136 	if (substream->runtime) {  in snd_pcm_lib_preallocate_proc_write()
289 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local
297 runtime = substream->runtime; in snd_pcm_lib_malloc_pages()
299 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages()
303 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
304 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
325 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
340 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local
344 runtime = substream->runtime; in snd_pcm_lib_free_pages()
345 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages()
347 if (runtime->dma_buffer_p != &substream->dma_buffer) { in snd_pcm_lib_free_pages()
349 snd_dma_free_pages(runtime->dma_buffer_p); in snd_pcm_lib_free_pages()
350 kfree(runtime->dma_buffer_p); in snd_pcm_lib_free_pages()
360 struct snd_pcm_runtime *runtime; in _snd_pcm_lib_alloc_vmalloc_buffer() local
364 runtime = substream->runtime; in _snd_pcm_lib_alloc_vmalloc_buffer()
365 if (runtime->dma_area) { in _snd_pcm_lib_alloc_vmalloc_buffer()
366 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
368 vfree(runtime->dma_area); in _snd_pcm_lib_alloc_vmalloc_buffer()
370 runtime->dma_area = __vmalloc(size, gfp_flags, PAGE_KERNEL); in _snd_pcm_lib_alloc_vmalloc_buffer()
371 if (!runtime->dma_area) in _snd_pcm_lib_alloc_vmalloc_buffer()
373 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
387 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_vmalloc_buffer() local
391 runtime = substream->runtime; in snd_pcm_lib_free_vmalloc_buffer()
392 vfree(runtime->dma_area); in snd_pcm_lib_free_vmalloc_buffer()
393 runtime->dma_area = NULL; in snd_pcm_lib_free_vmalloc_buffer()
411 return vmalloc_to_page(substream->runtime->dma_area + offset); in snd_pcm_lib_get_vmalloc_page()