Lines Matching refs:gen_pool
153 struct gen_pool *gen_pool_create(int min_alloc_order, int nid)
155 struct gen_pool *pool;
157 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid);
184 int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys,
217 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr)
242 void gen_pool_destroy(struct gen_pool *pool)
277 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size,
341 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma)
362 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size,
395 void *gen_pool_dma_alloc_align(struct gen_pool *pool, size_t size,
419 void *gen_pool_dma_zalloc(struct gen_pool *pool, size_t size, dma_addr_t *dma)
440 void *gen_pool_dma_zalloc_algo(struct gen_pool *pool, size_t size,
466 void *gen_pool_dma_zalloc_align(struct gen_pool *pool, size_t size,
487 void gen_pool_free_owner(struct gen_pool *pool, unsigned long addr, size_t size,
531 void gen_pool_for_each_chunk(struct gen_pool *pool,
532 void (*func)(struct gen_pool *pool, struct gen_pool_chunk *chunk, void *data),
553 bool gen_pool_has_addr(struct gen_pool *pool, unsigned long start,
580 size_t gen_pool_avail(struct gen_pool *pool)
599 size_t gen_pool_size(struct gen_pool *pool)
622 void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo, void *data)
649 struct gen_pool *pool, unsigned long start_addr)
668 struct gen_pool *pool, unsigned long start_addr)
696 struct gen_pool *pool, unsigned long start_addr)
731 unsigned int nr, void *data, struct gen_pool *pool,
756 struct gen_pool *pool, unsigned long start_addr)
782 gen_pool_destroy(*(struct gen_pool **)res);
787 struct gen_pool **p = res;
800 * gen_pool_get - Obtain the gen_pool (if any) for a device
801 * @dev: device to retrieve the gen_pool from
802 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device
804 * Returns the gen_pool for the device if one is present, or NULL.
806 struct gen_pool *gen_pool_get(struct device *dev, const char *name)
808 struct gen_pool **p;
820 * @dev: device that provides the gen_pool
822 * @nid: node selector for allocated gen_pool, %NUMA_NO_NODE for all nodes
823 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device
829 struct gen_pool *devm_gen_pool_create(struct device *dev, int min_alloc_order,
832 struct gen_pool **ptr, *pool;
879 struct gen_pool *of_gen_pool_get(struct device_node *np,
885 struct gen_pool *pool = NULL;
893 /* Check if named gen_pool is created by parent node device */