Lines Matching refs:dmab
53 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages() local
58 if ((err = snd_dma_alloc_pages(dmab->dev.type, dmab->dev.dev, in preallocate_pcm_pages()
59 size, dmab)) < 0) { in preallocate_pcm_pages()
66 dmab->bytes = 0; /* tell error */ in preallocate_pcm_pages()
335 struct snd_dma_buffer *dmab = NULL; in snd_pcm_lib_malloc_pages() local
356 dmab = &substream->dma_buffer; /* use the pre-allocated buffer */ in snd_pcm_lib_malloc_pages()
358 dmab = kzalloc(sizeof(*dmab), GFP_KERNEL); in snd_pcm_lib_malloc_pages()
359 if (! dmab) in snd_pcm_lib_malloc_pages()
361 dmab->dev = substream->dma_buffer.dev; in snd_pcm_lib_malloc_pages()
364 size, dmab) < 0) { in snd_pcm_lib_malloc_pages()
365 kfree(dmab); in snd_pcm_lib_malloc_pages()
369 snd_pcm_set_runtime_buffer(substream, dmab); in snd_pcm_lib_malloc_pages()