Lines Matching refs:size
46 static void dma_atomic_pool_size_add(gfp_t gfp, size_t size) in dma_atomic_pool_size_add() argument
49 pool_size_dma += size; in dma_atomic_pool_size_add()
51 pool_size_dma32 += size; in dma_atomic_pool_size_add()
53 pool_size_kernel += size; in dma_atomic_pool_size_add()
58 unsigned long size; in cma_in_zone() local
66 size = cma_get_size(cma); in cma_in_zone()
67 if (!size) in cma_in_zone()
71 end = cma_get_base(cma) + size - 1; in cma_in_zone()
240 static struct page *__dma_alloc_from_pool(struct device *dev, size_t size, in __dma_alloc_from_pool() argument
247 addr = gen_pool_alloc(pool, size); in __dma_alloc_from_pool()
252 if (phys_addr_ok && !phys_addr_ok(dev, phys, size)) { in __dma_alloc_from_pool()
253 gen_pool_free(pool, addr, size); in __dma_alloc_from_pool()
261 memset(*cpu_addr, 0, size); in __dma_alloc_from_pool()
265 struct page *dma_alloc_from_pool(struct device *dev, size_t size, in dma_alloc_from_pool() argument
273 page = __dma_alloc_from_pool(dev, size, pool, cpu_addr, in dma_alloc_from_pool()
283 bool dma_free_from_pool(struct device *dev, void *start, size_t size) in dma_free_from_pool() argument
288 if (!gen_pool_has_addr(pool, (unsigned long)start, size)) in dma_free_from_pool()
290 gen_pool_free(pool, (unsigned long)start, size); in dma_free_from_pool()