Lines Matching refs:resource
21 struct resource { struct
27 struct resource *parent, *sibling, *child; argument
185 extern struct resource ioport_resource;
186 extern struct resource iomem_resource;
188 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new);
189 extern int request_resource(struct resource *root, struct resource *new);
190 extern int release_resource(struct resource *new);
191 void release_child_resources(struct resource *new);
192 extern void reserve_region_with_split(struct resource *root,
195 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new);
196 extern int insert_resource(struct resource *parent, struct resource *new);
197 extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
198 extern int remove_resource(struct resource *old);
199 extern void arch_remove_reservations(struct resource *avail);
200 extern int allocate_resource(struct resource *root, struct resource *new,
204 const struct resource *,
208 struct resource *lookup_resource(struct resource *root, resource_size_t start);
209 int adjust_resource(struct resource *res, resource_size_t start,
211 resource_size_t resource_alignment(struct resource *res);
212 static inline resource_size_t resource_size(const struct resource *res) in resource_size()
216 static inline unsigned long resource_type(const struct resource *res) in resource_type()
220 static inline unsigned long resource_ext_type(const struct resource *res) in resource_ext_type()
225 static inline bool resource_contains(struct resource *r1, struct resource *r2) in resource_contains()
235 static inline bool resource_overlaps(struct resource *r1, struct resource *r2) in resource_overlaps()
241 resource_intersection(struct resource *r1, struct resource *r2, struct resource *r) in resource_intersection()
251 resource_union(struct resource *r1, struct resource *r2, struct resource *r) in resource_union()
269 extern struct resource * __request_region(struct resource *,
278 extern void __release_region(struct resource *, resource_size_t,
284 extern void merge_system_ram_resource(struct resource *res);
290 extern int devm_request_resource(struct device *dev, struct resource *root,
291 struct resource *new);
292 extern void devm_release_resource(struct device *dev, struct resource *new);
299 extern struct resource * __devm_request_region(struct device *dev,
300 struct resource *parent, resource_size_t start,
308 extern void __devm_release_region(struct device *dev, struct resource *parent,
318 int (*func)(struct resource *, void *));
321 int (*func)(struct resource *, void *));
324 void *arg, int (*func)(struct resource *, void *));
326 struct resource *devm_request_free_mem_region(struct device *dev,
327 struct resource *base, unsigned long size);
328 struct resource *request_free_mem_region(struct resource *base,
331 static inline void irqresource_disabled(struct resource *res, u32 irq) in irqresource_disabled()