Lines Matching refs:gen_pool

152 struct gen_pool *gen_pool_create(int min_alloc_order, int nid)
154 struct gen_pool *pool;
156 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid);
183 int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys,
216 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr)
241 void gen_pool_destroy(struct gen_pool *pool)
276 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size,
340 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma)
361 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size,
394 void *gen_pool_dma_alloc_align(struct gen_pool *pool, size_t size,
418 void *gen_pool_dma_zalloc(struct gen_pool *pool, size_t size, dma_addr_t *dma)
439 void *gen_pool_dma_zalloc_algo(struct gen_pool *pool, size_t size,
465 void *gen_pool_dma_zalloc_align(struct gen_pool *pool, size_t size,
486 void gen_pool_free_owner(struct gen_pool *pool, unsigned long addr, size_t size,
530 void gen_pool_for_each_chunk(struct gen_pool *pool,
531 void (*func)(struct gen_pool *pool, struct gen_pool_chunk *chunk, void *data),
552 bool gen_pool_has_addr(struct gen_pool *pool, unsigned long start,
579 size_t gen_pool_avail(struct gen_pool *pool)
598 size_t gen_pool_size(struct gen_pool *pool)
621 void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo, void *data)
647 struct gen_pool *pool, unsigned long start_addr)
665 struct gen_pool *pool, unsigned long start_addr)
692 struct gen_pool *pool, unsigned long start_addr)
726 unsigned int nr, void *data, struct gen_pool *pool,
750 struct gen_pool *pool, unsigned long start_addr)
776 gen_pool_destroy(*(struct gen_pool **)res);
781 struct gen_pool **p = res;
794 * gen_pool_get - Obtain the gen_pool (if any) for a device
795 * @dev: device to retrieve the gen_pool from
796 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device
798 * Returns the gen_pool for the device if one is present, or NULL.
800 struct gen_pool *gen_pool_get(struct device *dev, const char *name)
802 struct gen_pool **p;
814 * @dev: device that provides the gen_pool
816 * @nid: node selector for allocated gen_pool, %NUMA_NO_NODE for all nodes
817 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device
823 struct gen_pool *devm_gen_pool_create(struct device *dev, int min_alloc_order,
826 struct gen_pool **ptr, *pool;
873 struct gen_pool *of_gen_pool_get(struct device_node *np,
879 struct gen_pool *pool = NULL;
887 /* Check if named gen_pool is created by parent node device */