Lines Matching refs:resource
21 struct resource { struct
27 struct resource *parent, *sibling, *child; argument
158 (struct resource) { \
204 const struct resource *res,
228 extern struct resource ioport_resource;
229 extern struct resource iomem_resource;
231 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new);
232 extern int request_resource(struct resource *root, struct resource *new);
233 extern int release_resource(struct resource *new);
234 void release_child_resources(struct resource *new);
235 extern void reserve_region_with_split(struct resource *root,
238 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new);
239 extern int insert_resource(struct resource *parent, struct resource *new);
240 extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
241 extern int remove_resource(struct resource *old);
242 extern void arch_remove_reservations(struct resource *avail);
243 extern int allocate_resource(struct resource *root, struct resource *new,
248 struct resource *lookup_resource(struct resource *root, resource_size_t start);
249 int adjust_resource(struct resource *res, resource_size_t start,
251 resource_size_t resource_alignment(struct resource *res);
252 static inline resource_size_t resource_size(const struct resource *res) in resource_size()
256 static inline unsigned long resource_type(const struct resource *res) in resource_type()
260 static inline unsigned long resource_ext_type(const struct resource *res) in resource_ext_type()
265 static inline bool resource_contains(const struct resource *r1, const struct resource *r2) in resource_contains()
275 static inline bool resource_overlaps(const struct resource *r1, const struct resource *r2) in resource_overlaps()
280 static inline bool resource_intersection(const struct resource *r1, const struct resource *r2, in resource_intersection()
281 struct resource *r) in resource_intersection()
290 static inline bool resource_union(const struct resource *r1, const struct resource *r2, in resource_union()
291 struct resource *r) in resource_union()
300 int find_resource_space(struct resource *root, struct resource *new,
314 extern struct resource * __request_region(struct resource *,
323 extern void __release_region(struct resource *, resource_size_t,
329 extern void merge_system_ram_resource(struct resource *res);
335 extern int devm_request_resource(struct device *dev, struct resource *root,
336 struct resource *new);
337 extern void devm_release_resource(struct device *dev, struct resource *new);
344 extern struct resource * __devm_request_region(struct device *dev,
345 struct resource *parent, resource_size_t start,
353 extern void __devm_release_region(struct device *dev, struct resource *parent,
357 extern bool resource_is_exclusive(struct resource *resource, u64 addr,
365 int (*func)(struct resource *, void *));
368 int (*func)(struct resource *, void *));
371 int (*func)(struct resource *, void *));
374 void *arg, int (*func)(struct resource *, void *));
376 struct resource *devm_request_free_mem_region(struct device *dev,
377 struct resource *base, unsigned long size);
378 struct resource *request_free_mem_region(struct resource *base,
380 struct resource *alloc_free_mem_region(struct resource *base,
383 static inline void irqresource_disabled(struct resource *res, u32 irq) in irqresource_disabled()