Lines Matching refs:end
32 .end = IO_SPACE_LIMIT,
40 .end = -1,
108 unsigned long long start, end; in r_show() local
109 int width = root->end < 0x10000 ? 4 : 8; in r_show()
118 end = r->end; in r_show()
120 start = end = 0; in r_show()
126 width, end, in r_show()
187 resource_size_t end = new->end; in __request_resource() local
190 if (end < start) in __request_resource()
194 if (end > root->end) in __request_resource()
199 if (!tmp || tmp->start > end) { in __request_resource()
206 if (tmp->end < start) in __request_resource()
260 tmp->end = size - 1; in __release_child_resources()
331 resource_size_t start, end; in find_next_iomem_res() local
338 end = res->end; in find_next_iomem_res()
339 BUG_ON(start >= end); in find_next_iomem_res()
351 if (p->start > end) { in find_next_iomem_res()
355 if ((p->end >= start) && (p->start < end)) in find_next_iomem_res()
365 if (res->end > p->end) in find_next_iomem_res()
366 res->end = p->end; in find_next_iomem_res()
377 u64 orig_end = res->end; in __walk_iomem_res_desc()
380 while ((res->start < res->end) && in __walk_iomem_res_desc()
386 res->start = res->end + 1; in __walk_iomem_res_desc()
387 res->end = orig_end; in __walk_iomem_res_desc()
408 u64 end, void *arg, int (*func)(struct resource *, void *)) in walk_iomem_res_desc() argument
413 res.end = end; in walk_iomem_res_desc()
427 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument
433 res.end = end; in walk_system_ram_res()
444 int walk_mem_res(u64 start, u64 end, void *arg, in walk_mem_res() argument
450 res.end = end; in walk_mem_res()
473 res.end = ((u64)(start_pfn + nr_pages) << PAGE_SHIFT) - 1; in walk_system_ram_range()
475 orig_end = res.end; in walk_system_ram_range()
476 while ((res.start < res.end) && in walk_system_ram_range()
479 end_pfn = (res.end + 1) >> PAGE_SHIFT; in walk_system_ram_range()
484 res.start = res.end + 1; in walk_system_ram_range()
485 res.end = orig_end; in walk_system_ram_range()
530 resource_size_t end = start + size - 1; in region_intersects() local
540 if (start >= p->start && start <= p->end) in region_intersects()
542 if (end >= p->start && end <= p->end) in region_intersects()
544 if (p->start >= start && p->end <= end) in region_intersects()
576 if (res->end > max) in resource_clip()
577 res->end = max; in resource_clip()
598 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
603 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
605 tmp.end = root->end; in __find_resource()
607 if (tmp.end < tmp.start) in __find_resource()
615 avail.end = tmp.end; in __find_resource()
621 alloc.end = alloc.start + size - 1; in __find_resource()
622 if (alloc.start <= alloc.end && in __find_resource()
625 new->end = alloc.end; in __find_resource()
630 next: if (!this || this->end == root->end) in __find_resource()
634 tmp.start = this->end + 1; in __find_resource()
675 old->end = new.end; in reallocate_resource()
686 old->end = new.end; in reallocate_resource()
787 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
789 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
795 if (next->start < new->start || next->end > new->end) in __insert_resource()
799 if (next->sibling->start > new->end) in __insert_resource()
893 if (conflict->end > new->end) in insert_resource_expand_to_fit()
894 new->end = conflict->end; in insert_resource_expand_to_fit()
931 resource_size_t end = start + size - 1; in __adjust_resource() local
937 if ((start < parent->start) || (end > parent->end)) in __adjust_resource()
940 if (res->sibling && (res->sibling->start <= end)) in __adjust_resource()
947 if (start <= tmp->end) in __adjust_resource()
953 if ((tmp->start < start) || (tmp->end > end)) in __adjust_resource()
957 res->end = end; in __adjust_resource()
987 resource_size_t start, resource_size_t end, in __reserve_region_with_split() argument
1001 res->end = end; in __reserve_region_with_split()
1018 conflict->end >= res->end) { in __reserve_region_with_split()
1026 end = res->end; in __reserve_region_with_split()
1027 res->end = conflict->start - 1; in __reserve_region_with_split()
1028 if (conflict->end < end) { in __reserve_region_with_split()
1035 next_res->start = conflict->end + 1; in __reserve_region_with_split()
1036 next_res->end = end; in __reserve_region_with_split()
1041 res->start = conflict->end + 1; in __reserve_region_with_split()
1048 resource_size_t start, resource_size_t end, in reserve_region_with_split() argument
1054 if (root->start > start || root->end < end) { in reserve_region_with_split()
1056 (unsigned long long)start, (unsigned long long)end, in reserve_region_with_split()
1058 if (start > root->end || end < root->start) in reserve_region_with_split()
1061 if (end > root->end) in reserve_region_with_split()
1062 end = root->end; in reserve_region_with_split()
1067 (unsigned long long)end); in reserve_region_with_split()
1072 __reserve_region_with_split(root, start, end, name); in reserve_region_with_split()
1127 res->end = start + n - 1; in __request_region()
1178 resource_size_t end; in __release_region() local
1181 end = start + n - 1; in __release_region()
1190 if (res->start <= start && res->end >= end) { in __release_region()
1195 if (res->start != start || res->end != end) in __release_region()
1211 (unsigned long long)end); in __release_region()
1242 resource_size_t end; in release_mem_region_adjustable() local
1245 end = start + size - 1; in release_mem_region_adjustable()
1246 if ((start < parent->start) || (end > parent->end)) in release_mem_region_adjustable()
1256 if (res->start >= end) in release_mem_region_adjustable()
1260 if (res->start > start || res->end < end) { in release_mem_region_adjustable()
1274 if (res->start == start && res->end == end) { in release_mem_region_adjustable()
1279 } else if (res->start == start && res->end != end) { in release_mem_region_adjustable()
1281 ret = __adjust_resource(res, end + 1, in release_mem_region_adjustable()
1282 res->end - end); in release_mem_region_adjustable()
1283 } else if (res->start != start && res->end == end) { in release_mem_region_adjustable()
1294 new_res->start = end + 1; in release_mem_region_adjustable()
1295 new_res->end = res->end; in release_mem_region_adjustable()
1484 res->end = io_start + io_num - 1; in reserve_setup()
1514 if (p->end < addr) in iomem_map_sanity_check()
1517 PFN_DOWN(p->end) >= PFN_DOWN(addr + size - 1)) in iomem_map_sanity_check()
1570 if (p->end < addr) in iomem_is_exclusive()