Lines Matching refs:runtime

161 	if (substream->runtime) {  in snd_pcm_lib_preallocate_proc_write()
386 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local
394 runtime = substream->runtime; in snd_pcm_lib_malloc_pages()
397 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages()
401 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
402 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
431 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
447 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local
451 runtime = substream->runtime; in snd_pcm_lib_free_pages()
452 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages()
454 if (runtime->dma_buffer_p != &substream->dma_buffer) { in snd_pcm_lib_free_pages()
456 do_free_pages(card, runtime->dma_buffer_p); in snd_pcm_lib_free_pages()
457 kfree(runtime->dma_buffer_p); in snd_pcm_lib_free_pages()
467 struct snd_pcm_runtime *runtime; in _snd_pcm_lib_alloc_vmalloc_buffer() local
471 runtime = substream->runtime; in _snd_pcm_lib_alloc_vmalloc_buffer()
472 if (runtime->dma_area) { in _snd_pcm_lib_alloc_vmalloc_buffer()
473 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
475 vfree(runtime->dma_area); in _snd_pcm_lib_alloc_vmalloc_buffer()
477 runtime->dma_area = __vmalloc(size, gfp_flags); in _snd_pcm_lib_alloc_vmalloc_buffer()
478 if (!runtime->dma_area) in _snd_pcm_lib_alloc_vmalloc_buffer()
480 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
494 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_vmalloc_buffer() local
498 runtime = substream->runtime; in snd_pcm_lib_free_vmalloc_buffer()
499 vfree(runtime->dma_area); in snd_pcm_lib_free_vmalloc_buffer()
500 runtime->dma_area = NULL; in snd_pcm_lib_free_vmalloc_buffer()
518 return vmalloc_to_page(substream->runtime->dma_area + offset); in snd_pcm_lib_get_vmalloc_page()