• Home
  • Raw
  • Download

Lines Matching refs:size

231 	resource_size_t size;  in __release_child_resources()  local
245 size = resource_size(tmp); in __release_child_resources()
247 tmp->end = size - 1; in __release_child_resources()
493 size_t size, unsigned long flags, in __region_intersects() argument
501 res.end = start + size - 1; in __region_intersects()
541 int region_intersects(resource_size_t start, size_t size, unsigned long flags, in region_intersects() argument
547 ret = __region_intersects(&iomem_resource, start, size, flags, desc); in region_intersects()
560 resource_size_t size, in simple_align_resource() argument
581 resource_size_t size, in __find_resource() argument
615 size, constraint->align); in __find_resource()
616 alloc.end = alloc.start + size - 1; in __find_resource()
639 resource_size_t size, in find_resource() argument
642 return __find_resource(root, NULL, new, size, constraint); in find_resource()
707 resource_size_t size, resource_size_t min, in allocate_resource() argument
730 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
734 err = find_resource(root, new, size, &constraint); in allocate_resource()
930 resource_size_t size) in __adjust_resource() argument
933 resource_size_t end = start + size - 1; in __adjust_resource()
977 resource_size_t size) in adjust_resource() argument
982 result = __adjust_resource(res, start, size); in adjust_resource()
1312 void release_mem_region_adjustable(resource_size_t start, resource_size_t size) in release_mem_region_adjustable() argument
1321 end = start + size - 1; in release_mem_region_adjustable()
1644 int iomem_map_sanity_check(resource_size_t addr, unsigned long size) in iomem_map_sanity_check() argument
1656 if (p->start >= addr + size) in iomem_map_sanity_check()
1661 PFN_DOWN(p->end) >= PFN_DOWN(addr + size - 1)) in iomem_map_sanity_check()
1674 (unsigned long long)(addr + size - 1), in iomem_map_sanity_check()
1701 int size = PAGE_SIZE; in iomem_is_exclusive() local
1708 if (p->start >= addr + size) in iomem_is_exclusive()
1775 static resource_size_t gfr_start(struct resource *base, resource_size_t size, in gfr_start() argument
1783 return end - size + 1; in gfr_start()
1790 resource_size_t size, unsigned long flags) in gfr_continue() argument
1793 return addr > size && addr >= base->start; in gfr_continue()
1798 return addr > addr - size && in gfr_continue()
1803 static resource_size_t gfr_next(resource_size_t addr, resource_size_t size, in gfr_next() argument
1807 return addr - size; in gfr_next()
1808 return addr + size; in gfr_next()
1822 resource_size_t size, const unsigned long align, in get_free_mem_region() argument
1830 size = ALIGN(size, align); in get_free_mem_region()
1849 for (addr = gfr_start(base, size, align, flags); in get_free_mem_region()
1850 gfr_continue(base, addr, size, flags); in get_free_mem_region()
1851 addr = gfr_next(addr, size, flags)) { in get_free_mem_region()
1852 if (__region_intersects(base, addr, size, 0, IORES_DESC_NONE) != in get_free_mem_region()
1858 size, name, 0)) in get_free_mem_region()
1864 dr->n = size; in get_free_mem_region()
1879 res->end = addr + size - 1; in get_free_mem_region()
1919 struct resource *base, unsigned long size) in devm_request_free_mem_region() argument
1923 return get_free_mem_region(dev, base, size, GFR_DEFAULT_ALIGN, in devm_request_free_mem_region()
1930 unsigned long size, const char *name) in request_free_mem_region() argument
1934 return get_free_mem_region(NULL, base, size, GFR_DEFAULT_ALIGN, name, in request_free_mem_region()
1952 unsigned long size, unsigned long align, in alloc_free_mem_region() argument
1958 return get_free_mem_region(NULL, base, size, align, name, in alloc_free_mem_region()