Lines Matching refs:dmab
38 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages() local
43 if ((err = snd_dma_alloc_pages(dmab->dev.type, dmab->dev.dev, in preallocate_pcm_pages()
44 size, dmab)) < 0) { in preallocate_pcm_pages()
51 dmab->bytes = 0; /* tell error */ in preallocate_pcm_pages()
290 struct snd_dma_buffer *dmab = NULL; in snd_pcm_lib_malloc_pages() local
311 dmab = &substream->dma_buffer; /* use the pre-allocated buffer */ in snd_pcm_lib_malloc_pages()
313 dmab = kzalloc(sizeof(*dmab), GFP_KERNEL); in snd_pcm_lib_malloc_pages()
314 if (! dmab) in snd_pcm_lib_malloc_pages()
316 dmab->dev = substream->dma_buffer.dev; in snd_pcm_lib_malloc_pages()
319 size, dmab) < 0) { in snd_pcm_lib_malloc_pages()
320 kfree(dmab); in snd_pcm_lib_malloc_pages()
324 snd_pcm_set_runtime_buffer(substream, dmab); in snd_pcm_lib_malloc_pages()