Lines Matching refs:resource

30 struct resource ioport_resource = {
38 struct resource iomem_resource = {
49 resource_size_t (*alignf)(void *, const struct resource *,
61 static struct resource *bootmem_resource_free;
64 static struct resource *next_resource(struct resource *p, bool sibling_only) in next_resource()
79 struct resource *p = v; in r_next()
91 struct resource *p = PDE_DATA(file_inode(m->file)); in r_start()
107 struct resource *root = PDE_DATA(file_inode(m->file)); in r_show()
108 struct resource *r = v, *p; in r_show()
150 static void free_resource(struct resource *res) in free_resource()
165 static struct resource *alloc_resource(gfp_t flags) in alloc_resource()
167 struct resource *res = NULL; in alloc_resource()
177 memset(res, 0, sizeof(struct resource)); in alloc_resource()
179 res = kzalloc(sizeof(struct resource), flags); in alloc_resource()
185 static struct resource * __request_resource(struct resource *root, struct resource *new) in __request_resource()
189 struct resource *tmp, **p; in __request_resource()
213 static int __release_resource(struct resource *old, bool release_child) in __release_resource()
215 struct resource *tmp, **p, *chd; in __release_resource()
242 static void __release_child_resources(struct resource *r) in __release_child_resources()
244 struct resource *tmp, *p; in __release_child_resources()
265 void release_child_resources(struct resource *r) in release_child_resources()
279 struct resource *request_resource_conflict(struct resource *root, struct resource *new) in request_resource_conflict()
281 struct resource *conflict; in request_resource_conflict()
296 int request_resource(struct resource *root, struct resource *new) in request_resource()
298 struct resource *conflict; in request_resource()
310 int release_resource(struct resource *old) in release_resource()
343 bool first_lvl, struct resource *res) in find_next_iomem_res()
346 struct resource *p; in find_next_iomem_res()
385 *res = (struct resource) { in find_next_iomem_res()
401 int (*func)(struct resource *, void *)) in __walk_iomem_res_desc() argument
403 struct resource res; in __walk_iomem_res_desc()
435 u64 end, void *arg, int (*func)(struct resource *, void *)) in walk_iomem_res_desc() argument
449 int (*func)(struct resource *, void *)) in walk_system_ram_res() argument
462 int (*func)(struct resource *, void *)) in walk_mem_res() argument
483 struct resource res; in walk_system_ram_range()
542 struct resource res; in region_intersects()
544 struct resource *p; in region_intersects()
570 void __weak arch_remove_reservations(struct resource *avail) in arch_remove_reservations()
575 const struct resource *avail, in simple_align_resource()
582 static void resource_clip(struct resource *res, resource_size_t min, in resource_clip()
595 static int __find_resource(struct resource *root, struct resource *old, in __find_resource()
596 struct resource *new, in __find_resource()
600 struct resource *this = root->child; in __find_resource()
601 struct resource tmp = *new, avail, alloc; in __find_resource()
654 static int find_resource(struct resource *root, struct resource *new, in find_resource()
671 static int reallocate_resource(struct resource *root, struct resource *old, in reallocate_resource()
676 struct resource new = *old; in reallocate_resource()
677 struct resource *conflict; in reallocate_resource()
722 int allocate_resource(struct resource *root, struct resource *new, in allocate_resource()
726 const struct resource *, in allocate_resource() argument
766 struct resource *lookup_resource(struct resource *root, resource_size_t start) in lookup_resource()
768 struct resource *res; in lookup_resource()
784 static struct resource * __insert_resource(struct resource *parent, struct resource *new) in __insert_resource()
786 struct resource *first, *next; in __insert_resource()
849 struct resource *insert_resource_conflict(struct resource *parent, struct resource *new) in insert_resource_conflict()
851 struct resource *conflict; in insert_resource_conflict()
869 int insert_resource(struct resource *parent, struct resource *new) in insert_resource()
871 struct resource *conflict; in insert_resource()
886 void insert_resource_expand_to_fit(struct resource *root, struct resource *new) in insert_resource_expand_to_fit()
893 struct resource *conflict; in insert_resource_expand_to_fit()
927 int remove_resource(struct resource *old) in remove_resource()
938 static int __adjust_resource(struct resource *res, resource_size_t start, in __adjust_resource()
941 struct resource *tmp, *parent = res->parent; in __adjust_resource()
985 int adjust_resource(struct resource *res, resource_size_t start, in adjust_resource()
998 __reserve_region_with_split(struct resource *root, resource_size_t start, in __reserve_region_with_split()
1001 struct resource *parent = root; in __reserve_region_with_split()
1002 struct resource *conflict; in __reserve_region_with_split()
1003 struct resource *res = alloc_resource(GFP_ATOMIC); in __reserve_region_with_split()
1004 struct resource *next_res = NULL; in __reserve_region_with_split()
1059 reserve_region_with_split(struct resource *root, resource_size_t start, in reserve_region_with_split()
1093 resource_size_t resource_alignment(struct resource *res) in resource_alignment()
1126 struct resource * __request_region(struct resource *parent, in __request_region()
1131 struct resource *res = alloc_resource(GFP_KERNEL); in __request_region()
1132 struct resource *orig_parent = parent; in __request_region()
1144 struct resource *conflict; in __request_region()
1199 void __release_region(struct resource *parent, resource_size_t start, in __release_region()
1202 struct resource **p; in __release_region()
1211 struct resource *res = *p; in __release_region()
1262 struct resource *parent = &iomem_resource; in release_mem_region_adjustable()
1263 struct resource *new_res = NULL; in release_mem_region_adjustable()
1265 struct resource **p; in release_mem_region_adjustable()
1266 struct resource *res; in release_mem_region_adjustable()
1366 static bool system_ram_resources_mergeable(struct resource *r1, in system_ram_resources_mergeable()
1367 struct resource *r2) in system_ram_resources_mergeable()
1393 void merge_system_ram_resource(struct resource *res) in merge_system_ram_resource()
1396 struct resource *cur; in merge_system_ram_resource()
1430 struct resource **r = ptr; in devm_resource_release()
1453 int devm_request_resource(struct device *dev, struct resource *root, in devm_request_resource()
1454 struct resource *new) in devm_request_resource()
1456 struct resource *conflict, **ptr; in devm_request_resource()
1479 struct resource **ptr = res; in devm_resource_match()
1491 void devm_release_resource(struct device *dev, struct resource *new) in devm_release_resource()
1499 struct resource *parent;
1519 struct resource *
1520 __devm_request_region(struct device *dev, struct resource *parent, in __devm_request_region()
1524 struct resource *res; in __devm_request_region()
1545 void __devm_release_region(struct device *dev, struct resource *parent, in __devm_release_region()
1563 static struct resource reserve[MAXRESERVE]; in reserve_setup()
1568 struct resource *parent; in reserve_setup()
1575 struct resource *res = reserve + x; in reserve_setup()
1608 struct resource *p = &iomem_resource; in iomem_map_sanity_check()
1658 struct resource *p = &iomem_resource; in iomem_is_exclusive()
1696 struct resource_entry *resource_list_create_entry(struct resource *res, in resource_list_create_entry()
1721 static struct resource *__request_free_mem_region(struct device *dev, in __request_free_mem_region()
1722 struct resource *base, unsigned long size, const char *name) in __request_free_mem_region()
1725 struct resource *res; in __request_free_mem_region()
1760 struct resource *devm_request_free_mem_region(struct device *dev, in devm_request_free_mem_region()
1761 struct resource *base, unsigned long size) in devm_request_free_mem_region()
1767 struct resource *request_free_mem_region(struct resource *base, in request_free_mem_region()