Lines Matching refs:gen_pool
39 struct gen_pool;
54 void *data, struct gen_pool *pool);
59 struct gen_pool { struct
96 extern struct gen_pool *gen_pool_create(int, int);
97 extern phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long);
98 extern int gen_pool_add_virt(struct gen_pool *, unsigned long, phys_addr_t,
112 static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, in gen_pool_add()
117 extern void gen_pool_destroy(struct gen_pool *);
118 extern unsigned long gen_pool_alloc(struct gen_pool *, size_t);
119 extern unsigned long gen_pool_alloc_algo(struct gen_pool *, size_t,
121 extern void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size,
123 extern void gen_pool_free(struct gen_pool *, unsigned long, size_t);
124 extern void gen_pool_for_each_chunk(struct gen_pool *,
125 void (*)(struct gen_pool *, struct gen_pool_chunk *, void *), void *);
126 extern size_t gen_pool_avail(struct gen_pool *);
127 extern size_t gen_pool_size(struct gen_pool *);
129 extern void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo,
134 struct gen_pool *pool);
138 void *data, struct gen_pool *pool);
142 void *data, struct gen_pool *pool);
147 void *data, struct gen_pool *pool);
151 struct gen_pool *pool);
154 extern struct gen_pool *devm_gen_pool_create(struct device *dev,
156 extern struct gen_pool *gen_pool_get(struct device *dev, const char *name);
158 bool addr_in_gen_pool(struct gen_pool *pool, unsigned long start,
162 extern struct gen_pool *of_gen_pool_get(struct device_node *np,
165 static inline struct gen_pool *of_gen_pool_get(struct device_node *np, in of_gen_pool_get()