Lines Matching refs:resource

20 struct resource {  struct
26 struct resource *parent, *sibling, *child; argument
183 extern struct resource ioport_resource;
184 extern struct resource iomem_resource;
186 extern struct resource *request_resource_conflict(struct resource *root, struct resource *new);
187 extern int request_resource(struct resource *root, struct resource *new);
188 extern int release_resource(struct resource *new);
189 void release_child_resources(struct resource *new);
190 extern void reserve_region_with_split(struct resource *root,
193 extern struct resource *insert_resource_conflict(struct resource *parent, struct resource *new);
194 extern int insert_resource(struct resource *parent, struct resource *new);
195 extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
196 extern int remove_resource(struct resource *old);
197 extern void arch_remove_reservations(struct resource *avail);
198 extern int allocate_resource(struct resource *root, struct resource *new,
202 const struct resource *,
206 struct resource *lookup_resource(struct resource *root, resource_size_t start);
207 int adjust_resource(struct resource *res, resource_size_t start,
209 resource_size_t resource_alignment(struct resource *res);
210 static inline resource_size_t resource_size(const struct resource *res) in resource_size()
214 static inline unsigned long resource_type(const struct resource *res) in resource_type()
218 static inline unsigned long resource_ext_type(const struct resource *res) in resource_ext_type()
223 static inline bool resource_contains(struct resource *r1, struct resource *r2) in resource_contains()
242 extern struct resource * __request_region(struct resource *,
251 extern void __release_region(struct resource *, resource_size_t,
257 extern void merge_system_ram_resource(struct resource *res);
263 extern int devm_request_resource(struct device *dev, struct resource *root,
264 struct resource *new);
265 extern void devm_release_resource(struct device *dev, struct resource *new);
272 extern struct resource * __devm_request_region(struct device *dev,
273 struct resource *parent, resource_size_t start,
281 extern void __devm_release_region(struct device *dev, struct resource *parent,
291 int (*func)(struct resource *, void *));
294 int (*func)(struct resource *, void *));
297 void *arg, int (*func)(struct resource *, void *));
300 static inline bool resource_overlaps(struct resource *r1, struct resource *r2) in resource_overlaps()
305 struct resource *devm_request_free_mem_region(struct device *dev,
306 struct resource *base, unsigned long size);
307 struct resource *request_free_mem_region(struct resource *base,
311 void revoke_devmem(struct resource *res);
313 static inline void revoke_devmem(struct resource *res) { }; in revoke_devmem()