lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators
authorFredrik Noring <noring@nocrew.org>
Tue, 25 Jun 2019 15:05:58 +0000 (17:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 28 Jun 2019 05:56:50 +0000 (07:56 +0200)
commitcf394fc5f7155c24efb584979e81427575ab3539
treeb0efff0a4653f217e8dc1a98231ff88575f27ea3
parentb1acd4b8a8942f614053e516c56c88e1716562d6
lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators

Provide the algorithm option to DMA allocators as well, along with
convenience variants for zeroed and aligned memory. The following
four functions are added:

- gen_pool_dma_alloc_algo()
- gen_pool_dma_alloc_align()
- gen_pool_dma_zalloc_algo()
- gen_pool_dma_zalloc_align()

Signed-off-by: Fredrik Noring <noring@nocrew.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/genalloc.h
lib/genalloc.c