Lines Matching refs:start
32 .start = 0,
40 .start = 0,
109 unsigned long long start, end; in r_show() local
118 start = r->start; in r_show()
121 start = end = 0; in r_show()
126 width, start, in r_show()
133 .start = r_start,
187 resource_size_t start = new->start; in __request_resource() local
191 if (end < start) in __request_resource()
193 if (start < root->start) in __request_resource()
200 if (!tmp || tmp->start > end) { in __request_resource()
207 if (tmp->end < start) in __request_resource()
260 tmp->start = 0; in __release_child_resources()
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()
385 res->start = max(start, p->start); in find_next_iomem_res()
395 static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end, in __walk_iomem_res_desc() argument
403 while (start < end && in __walk_iomem_res_desc()
404 !find_next_iomem_res(start, end, flags, desc, first_lvl, &res)) { in __walk_iomem_res_desc()
409 start = res.end + 1; in __walk_iomem_res_desc()
431 int walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start, in walk_iomem_res_desc() argument
434 return __walk_iomem_res_desc(start, end, flags, desc, false, arg, func); in walk_iomem_res_desc()
445 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument
450 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, true, in walk_system_ram_res()
458 int walk_mem_res(u64 start, u64 end, void *arg, in walk_mem_res() argument
463 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, true, in walk_mem_res()
478 resource_size_t start, end; in walk_system_ram_range() local
484 start = (u64) start_pfn << PAGE_SHIFT; in walk_system_ram_range()
487 while (start < end && in walk_system_ram_range()
488 !find_next_iomem_res(start, end, flags, IORES_DESC_NONE, in walk_system_ram_range()
490 pfn = PFN_UP(res.start); in walk_system_ram_range()
496 start = res.end + 1; in walk_system_ram_range()
536 int region_intersects(resource_size_t start, size_t size, unsigned long flags, in region_intersects() argument
543 res.start = start; in region_intersects()
544 res.end = start + size - 1; in region_intersects()
576 return avail->start; in simple_align_resource()
582 if (res->start < min) in resource_clip()
583 res->start = min; in resource_clip()
600 tmp.start = root->start; in __find_resource()
605 if (this && this->start == root->start) { in __find_resource()
606 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
611 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
615 if (tmp.end < tmp.start) in __find_resource()
622 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
625 if (avail.start >= tmp.start) { in __find_resource()
627 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
629 alloc.end = alloc.start + size - 1; in __find_resource()
630 if (alloc.start <= alloc.end && in __find_resource()
632 new->start = alloc.start; in __find_resource()
642 tmp.start = this->end + 1; in __find_resource()
682 old->start = new.start; in reallocate_resource()
693 old->start = new.start; in reallocate_resource()
763 struct resource *lookup_resource(struct resource *root, resource_size_t start) in lookup_resource() argument
769 if (res->start == start) in lookup_resource()
795 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
797 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
803 if (next->start < new->start || next->end > new->end) in __insert_resource()
807 if (next->sibling->start > new->end) in __insert_resource()
899 if (conflict->start < new->start) in insert_resource_expand_to_fit()
900 new->start = conflict->start; in insert_resource_expand_to_fit()
935 static int __adjust_resource(struct resource *res, resource_size_t start, in __adjust_resource() argument
939 resource_size_t end = start + size - 1; in __adjust_resource()
945 if ((start < parent->start) || (end > parent->end)) in __adjust_resource()
948 if (res->sibling && (res->sibling->start <= end)) in __adjust_resource()
955 if (start <= tmp->end) in __adjust_resource()
961 if ((tmp->start < start) || (tmp->end > end)) in __adjust_resource()
964 res->start = start; in __adjust_resource()
982 int adjust_resource(struct resource *res, resource_size_t start, in adjust_resource() argument
988 result = __adjust_resource(res, start, size); in adjust_resource()
995 __reserve_region_with_split(struct resource *root, resource_size_t start, in __reserve_region_with_split() argument
1008 res->start = start; in __reserve_region_with_split()
1025 if (conflict->start <= res->start && in __reserve_region_with_split()
1033 if (conflict->start > res->start) { in __reserve_region_with_split()
1035 res->end = conflict->start - 1; in __reserve_region_with_split()
1043 next_res->start = conflict->end + 1; in __reserve_region_with_split()
1049 res->start = conflict->end + 1; in __reserve_region_with_split()
1056 reserve_region_with_split(struct resource *root, resource_size_t start, in reserve_region_with_split() argument
1062 if (root->start > start || root->end < end) { in reserve_region_with_split()
1064 (unsigned long long)start, (unsigned long long)end, in reserve_region_with_split()
1066 if (start > root->end || end < root->start) in reserve_region_with_split()
1071 if (start < root->start) in reserve_region_with_split()
1072 start = root->start; in reserve_region_with_split()
1074 (unsigned long long)start, in reserve_region_with_split()
1080 __reserve_region_with_split(root, start, end, name); in reserve_region_with_split()
1096 return res->start; in resource_alignment()
1124 resource_size_t start, resource_size_t n, in __request_region() argument
1134 res->start = start; in __request_region()
1135 res->end = start + n - 1; in __request_region()
1191 void __release_region(struct resource *parent, resource_size_t start, in __release_region() argument
1198 end = start + n - 1; in __release_region()
1207 if (res->start <= start && res->end >= end) { in __release_region()
1212 if (res->start != start || res->end != end) in __release_region()
1227 "<%016llx-%016llx>\n", (unsigned long long)start, in __release_region()
1254 resource_size_t start, resource_size_t size) in release_mem_region_adjustable() argument
1262 end = start + size - 1; in release_mem_region_adjustable()
1263 if ((start < parent->start) || (end > parent->end)) in release_mem_region_adjustable()
1273 if (res->start >= end) in release_mem_region_adjustable()
1277 if (res->start > start || res->end < end) { in release_mem_region_adjustable()
1306 if (res->start == start && res->end == end) { in release_mem_region_adjustable()
1311 } else if (res->start == start && res->end != end) { in release_mem_region_adjustable()
1315 } else if (res->start != start && res->end == end) { in release_mem_region_adjustable()
1317 ret = __adjust_resource(res, res->start, in release_mem_region_adjustable()
1318 start - res->start); in release_mem_region_adjustable()
1326 new_res->start = end + 1; in release_mem_region_adjustable()
1334 ret = __adjust_resource(res, res->start, in release_mem_region_adjustable()
1335 start - res->start); in release_mem_region_adjustable()
1426 resource_size_t start; member
1434 __release_region(this->parent, this->start, this->n); in devm_region_release()
1442 this->start == match->start && this->n == match->n; in devm_region_match()
1447 resource_size_t start, resource_size_t n, const char *name) in __devm_request_region() argument
1458 dr->start = start; in __devm_request_region()
1461 res = __request_region(parent, start, n, name, 0); in __devm_request_region()
1472 resource_size_t start, resource_size_t n) in __devm_release_region() argument
1474 struct region_devres match_data = { parent, start, n }; in __devm_release_region()
1476 __release_region(parent, start, n); in __devm_release_region()
1515 res->start = io_start; in reserve_setup()
1544 if (p->start >= addr + size) in iomem_map_sanity_check()
1548 if (PFN_DOWN(p->start) <= PFN_DOWN(addr) && in iomem_map_sanity_check()
1600 if (p->start >= addr + size) in iomem_is_exclusive()
1657 for (; addr > size && addr >= base->start; addr -= size) { in __request_free_mem_region()