Lines Matching refs:resource

21 struct resource {  struct
27 struct resource *parent, *sibling, *child; argument
192 extern struct resource ioport_resource;
193 extern struct resource iomem_resource;
195 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new);
196 extern int request_resource(struct resource *root, struct resource *new);
197 extern int release_resource(struct resource *new);
198 void release_child_resources(struct resource *new);
199 extern void reserve_region_with_split(struct resource *root,
202 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new);
203 extern int insert_resource(struct resource *parent, struct resource *new);
204 extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
205 extern int remove_resource(struct resource *old);
206 extern void arch_remove_reservations(struct resource *avail);
207 extern int allocate_resource(struct resource *root, struct resource *new,
211 const struct resource *,
215 struct resource *lookup_resource(struct resource *root, resource_size_t start);
216 int adjust_resource(struct resource *res, resource_size_t start,
218 resource_size_t resource_alignment(struct resource *res);
219 static inline resource_size_t resource_size(const struct resource *res) in resource_size()
223 static inline unsigned long resource_type(const struct resource *res) in resource_type()
227 static inline unsigned long resource_ext_type(const struct resource *res) in resource_ext_type()
232 static inline bool resource_contains(struct resource *r1, struct resource *r2) in resource_contains()
242 static inline bool resource_overlaps(struct resource *r1, struct resource *r2) in resource_overlaps()
248 resource_intersection(struct resource *r1, struct resource *r2, struct resource *r) in resource_intersection()
258 resource_union(struct resource *r1, struct resource *r2, struct resource *r) in resource_union()
278 extern struct resource * __request_region(struct resource *,
287 extern void __release_region(struct resource *, resource_size_t,
293 extern void merge_system_ram_resource(struct resource *res);
299 extern int devm_request_resource(struct device *dev, struct resource *root,
300 struct resource *new);
301 extern void devm_release_resource(struct device *dev, struct resource *new);
308 extern struct resource * __devm_request_region(struct device *dev,
309 struct resource *parent, resource_size_t start,
317 extern void __devm_release_region(struct device *dev, struct resource *parent,
327 int (*func)(struct resource *, void *));
330 int (*func)(struct resource *, void *));
333 void *arg, int (*func)(struct resource *, void *));
335 struct resource *devm_request_free_mem_region(struct device *dev,
336 struct resource *base, unsigned long size);
337 struct resource *request_free_mem_region(struct resource *base,
339 struct resource *alloc_free_mem_region(struct resource *base,
342 static inline void irqresource_disabled(struct resource *res, u32 irq) in irqresource_disabled()