• Home
  • Raw
  • Download

Lines Matching refs:runtime

190 	if (substream->runtime) {  in snd_pcm_lib_preallocate_proc_write()
417 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local
425 runtime = substream->runtime; in snd_pcm_lib_malloc_pages()
428 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages()
432 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
433 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
462 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
477 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local
481 runtime = substream->runtime; in snd_pcm_lib_free_pages()
482 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages()
484 if (runtime->dma_buffer_p != &substream->dma_buffer) { in snd_pcm_lib_free_pages()
488 do_free_pages(card, runtime->dma_buffer_p); in snd_pcm_lib_free_pages()
489 kfree(runtime->dma_buffer_p); in snd_pcm_lib_free_pages()
499 struct snd_pcm_runtime *runtime; in _snd_pcm_lib_alloc_vmalloc_buffer() local
503 runtime = substream->runtime; in _snd_pcm_lib_alloc_vmalloc_buffer()
504 if (runtime->dma_area) { in _snd_pcm_lib_alloc_vmalloc_buffer()
505 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
507 vfree(runtime->dma_area); in _snd_pcm_lib_alloc_vmalloc_buffer()
509 runtime->dma_area = __vmalloc(size, gfp_flags); in _snd_pcm_lib_alloc_vmalloc_buffer()
510 if (!runtime->dma_area) in _snd_pcm_lib_alloc_vmalloc_buffer()
512 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
526 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_vmalloc_buffer() local
530 runtime = substream->runtime; in snd_pcm_lib_free_vmalloc_buffer()
531 vfree(runtime->dma_area); in snd_pcm_lib_free_vmalloc_buffer()
532 runtime->dma_area = NULL; in snd_pcm_lib_free_vmalloc_buffer()
550 return vmalloc_to_page(substream->runtime->dma_area + offset); in snd_pcm_lib_get_vmalloc_page()