Lines Matching full:end
33 .end = IO_SPACE_LIMIT,
41 .end = -1,
109 unsigned long long start, end; in r_show() local
110 int width = root->end < 0x10000 ? 4 : 8; in r_show()
119 end = r->end; in r_show()
121 start = end = 0; in r_show()
127 width, end, in r_show()
188 resource_size_t end = new->end; in __request_resource() local
191 if (end < start) in __request_resource()
195 if (end > root->end) in __request_resource()
200 if (!tmp || tmp->start > end) { in __request_resource()
207 if (tmp->end < start) in __request_resource()
261 tmp->end = size - 1; in __release_child_resources()
323 * Finds the lowest iomem resource that covers part of [@start..@end]. The
324 * caller must specify @start, @end, @flags, and @desc (which may be
328 * of the resource that's within [@start..@end]; if none is found, returns
335 * @end: end address of same resource
341 static int find_next_iomem_res(resource_size_t start, resource_size_t end, in find_next_iomem_res() argument
351 if (start >= end) in find_next_iomem_res()
358 if (p->start > end) { in find_next_iomem_res()
364 if (p->end < start) in find_next_iomem_res()
387 .end = min(end, p->end), in find_next_iomem_res()
398 static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end, in __walk_iomem_res_desc() argument
406 while (start < end && in __walk_iomem_res_desc()
407 !find_next_iomem_res(start, end, flags, desc, first_lvl, &res)) { in __walk_iomem_res_desc()
412 start = res.end + 1; in __walk_iomem_res_desc()
421 * All the memory ranges which overlap start,end and also match flags and
427 * @end: end addr
435 u64 end, void *arg, int (*func)(struct resource *, void *)) in walk_iomem_res_desc() argument
437 return __walk_iomem_res_desc(start, end, flags, desc, false, arg, func); in walk_iomem_res_desc()
448 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument
453 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, true, in walk_system_ram_res()
461 int walk_mem_res(u64 start, u64 end, void *arg, in walk_mem_res() argument
466 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, true, in walk_mem_res()
481 resource_size_t start, end; in walk_system_ram_range() local
488 end = ((u64)(start_pfn + nr_pages) << PAGE_SHIFT) - 1; in walk_system_ram_range()
490 while (start < end && in walk_system_ram_range()
491 !find_next_iomem_res(start, end, flags, IORES_DESC_NONE, in walk_system_ram_range()
494 end_pfn = PFN_DOWN(res.end + 1); in walk_system_ram_range()
499 start = res.end + 1; in walk_system_ram_range()
547 res.end = start + size - 1; in region_intersects()
587 if (res->end > max) in resource_clip()
588 res->end = max; in resource_clip()
606 * of this->start - 1 to tmp->end below would cause an underflow. in __find_resource()
609 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
614 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
616 tmp.end = root->end; in __find_resource()
618 if (tmp.end < tmp.start) in __find_resource()
626 avail.end = tmp.end; in __find_resource()
632 alloc.end = alloc.start + size - 1; in __find_resource()
633 if (alloc.start <= alloc.end && in __find_resource()
636 new->end = alloc.end; in __find_resource()
641 next: if (!this || this->end == root->end) in __find_resource()
645 tmp.start = this->end + 1; in __find_resource()
686 old->end = new.end; in reallocate_resource()
697 old->end = new.end; in reallocate_resource()
798 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
800 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
806 if (next->start < new->start || next->end > new->end) in __insert_resource()
810 if (next->sibling->start > new->end) in __insert_resource()
904 if (conflict->end > new->end) in insert_resource_expand_to_fit()
905 new->end = conflict->end; in insert_resource_expand_to_fit()
942 resource_size_t end = start + size - 1; in __adjust_resource() local
948 if ((start < parent->start) || (end > parent->end)) in __adjust_resource()
951 if (res->sibling && (res->sibling->start <= end)) in __adjust_resource()
958 if (start <= tmp->end) in __adjust_resource()
964 if ((tmp->start < start) || (tmp->end > end)) in __adjust_resource()
968 res->end = end; in __adjust_resource()
999 resource_size_t end, const char *name) in __reserve_region_with_split() argument
1012 res->end = end; in __reserve_region_with_split()
1029 conflict->end >= res->end) { in __reserve_region_with_split()
1037 end = res->end; in __reserve_region_with_split()
1038 res->end = conflict->start - 1; in __reserve_region_with_split()
1039 if (conflict->end < end) { in __reserve_region_with_split()
1046 next_res->start = conflict->end + 1; in __reserve_region_with_split()
1047 next_res->end = end; in __reserve_region_with_split()
1052 res->start = conflict->end + 1; in __reserve_region_with_split()
1060 resource_size_t end, const char *name) in reserve_region_with_split() argument
1065 if (root->start > start || root->end < end) { in reserve_region_with_split()
1067 (unsigned long long)start, (unsigned long long)end, in reserve_region_with_split()
1069 if (start > root->end || end < root->start) in reserve_region_with_split()
1072 if (end > root->end) in reserve_region_with_split()
1073 end = root->end; in reserve_region_with_split()
1078 (unsigned long long)end); in reserve_region_with_split()
1083 __reserve_region_with_split(root, start, end, name); in reserve_region_with_split()
1139 res->end = start + n - 1; in __request_region()
1203 resource_size_t end; in __release_region() local
1206 end = start + n - 1; in __release_region()
1215 if (res->start <= start && res->end >= end) { in __release_region()
1220 if (res->start != start || res->end != end) in __release_region()
1236 (unsigned long long)end); in __release_region()
1267 resource_size_t end; in release_mem_region_adjustable() local
1269 end = start + size - 1; in release_mem_region_adjustable()
1270 if (WARN_ON_ONCE((start < parent->start) || (end > parent->end))) in release_mem_region_adjustable()
1287 if (res->start >= end) in release_mem_region_adjustable()
1291 if (res->start > start || res->end < end) { in release_mem_region_adjustable()
1319 if (res->start == start && res->end == end) { in release_mem_region_adjustable()
1323 } else if (res->start == start && res->end != end) { in release_mem_region_adjustable()
1325 WARN_ON_ONCE(__adjust_resource(res, end + 1, in release_mem_region_adjustable()
1326 res->end - end)); in release_mem_region_adjustable()
1327 } else if (res->start != start && res->end == end) { in release_mem_region_adjustable()
1328 /* adjust the end */ in release_mem_region_adjustable()
1342 new_res->start = end + 1; in release_mem_region_adjustable()
1343 new_res->end = res->end; in release_mem_region_adjustable()
1370 return r1->flags == r2->flags && r1->end + 1 == r2->start && in system_ram_resources_mergeable()
1407 res->end = cur->end; in merge_system_ram_resource()
1417 cur->end = res->end; in merge_system_ram_resource()
1590 res->end = io_start + io_num - 1; in reserve_setup()
1620 if (p->end < addr) in iomem_map_sanity_check()
1623 PFN_DOWN(p->end) >= PFN_DOWN(addr + size - 1)) in iomem_map_sanity_check()
1676 if (p->end < addr) in iomem_is_exclusive()
1724 resource_size_t end, addr; in __request_free_mem_region() local
1728 end = min_t(unsigned long, base->end, (1UL << MAX_PHYSMEM_BITS) - 1); in __request_free_mem_region()
1729 addr = end - size + 1UL; in __request_free_mem_region()