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()
331 struct snd_dma_buffer *dmab = NULL; in snd_pcm_lib_malloc_pages() local
352 dmab = &substream->dma_buffer; /* use the pre-allocated buffer */ in snd_pcm_lib_malloc_pages()
354 dmab = kzalloc(sizeof(*dmab), GFP_KERNEL); in snd_pcm_lib_malloc_pages()
355 if (! dmab) in snd_pcm_lib_malloc_pages()
357 dmab->dev = substream->dma_buffer.dev; in snd_pcm_lib_malloc_pages()
360 size, dmab) < 0) { in snd_pcm_lib_malloc_pages()
361 kfree(dmab); in snd_pcm_lib_malloc_pages()
365 snd_pcm_set_runtime_buffer(substream, dmab); in snd_pcm_lib_malloc_pages()