Lines Matching full:area
34 dmab->area = dma_alloc_coherent(dmab->dev.dev, size, &dmab->addr, in snd_malloc_dev_pages()
37 if (dmab->area && dmab->dev.type == SNDRV_DMA_TYPE_DEV_UC) in snd_malloc_dev_pages()
38 set_memory_wc((unsigned long)dmab->area, in snd_malloc_dev_pages()
48 set_memory_wb((unsigned long)dmab->area, in snd_free_dev_pages()
51 dma_free_coherent(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); in snd_free_dev_pages()
67 dmab->area = NULL; in snd_malloc_dev_iram()
79 dmab->area = gen_pool_dma_alloc(pool, size, &dmab->addr); in snd_malloc_dev_iram()
90 if (pool && dmab->area) in snd_free_dev_iram()
91 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_free_dev_iram()
104 * snd_dma_alloc_pages - allocate the buffer area according to the given type
131 dmab->area = alloc_pages_exact(size, in snd_dma_alloc_pages()
139 if (dmab->area) in snd_dma_alloc_pages()
160 dmab->area = NULL; in snd_dma_alloc_pages()
164 if (! dmab->area) in snd_dma_alloc_pages()
172 * snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
199 if (! dmab->area) in snd_dma_alloc_pages_fallback()
216 free_pages_exact(dmab->area, dmab->bytes); in snd_dma_free_pages()