Lines Matching refs:start

31 	.start	= 0,
39 .start = 0,
116 width, (unsigned long long) r->start, in r_show()
123 .start = r_start,
210 resource_size_t start = new->start; in __request_resource() local
214 if (end < start) in __request_resource()
216 if (start < root->start) in __request_resource()
223 if (!tmp || tmp->start > end) { in __request_resource()
230 if (tmp->end < start) in __request_resource()
273 tmp->start = 0; in __release_child_resources()
345 resource_size_t start, end; in find_next_iomem_res() local
351 start = res->start; in find_next_iomem_res()
353 BUG_ON(start >= end); in find_next_iomem_res()
365 if (p->start > end) { in find_next_iomem_res()
369 if ((p->end >= start) && (p->start < end)) in find_next_iomem_res()
377 if (res->start < p->start) in find_next_iomem_res()
378 res->start = p->start; in find_next_iomem_res()
395 int walk_iomem_res(char *name, unsigned long flags, u64 start, u64 end, in walk_iomem_res() argument
402 res.start = start; in walk_iomem_res()
406 while ((res.start < res.end) && in walk_iomem_res()
408 ret = (*func)(res.start, res.end, arg); in walk_iomem_res()
411 res.start = res.end + 1; in walk_iomem_res()
424 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument
431 res.start = start; in walk_system_ram_res()
435 while ((res.start < res.end) && in walk_system_ram_res()
437 ret = (*func)(res.start, res.end, arg); in walk_system_ram_res()
440 res.start = res.end + 1; in walk_system_ram_res()
461 res.start = (u64) start_pfn << PAGE_SHIFT; in walk_system_ram_range()
465 while ((res.start < res.end) && in walk_system_ram_range()
467 pfn = (res.start + PAGE_SIZE - 1) >> PAGE_SHIFT; in walk_system_ram_range()
473 res.start = res.end + 1; in walk_system_ram_range()
503 int region_is_ram(resource_size_t start, unsigned long size) in region_is_ram() argument
506 resource_size_t end = start + size - 1; in region_is_ram()
513 if (end < p->start) in region_is_ram()
516 if (p->start <= start && end <= p->end) { in region_is_ram()
524 if (p->end < start) in region_is_ram()
540 return avail->start; in simple_align_resource()
546 if (res->start < min) in resource_clip()
547 res->start = min; in resource_clip()
564 tmp.start = root->start; in __find_resource()
569 if (this && this->start == root->start) { in __find_resource()
570 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
575 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
579 if (tmp.end < tmp.start) in __find_resource()
586 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
589 if (avail.start >= tmp.start) { in __find_resource()
591 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
593 alloc.end = alloc.start + size - 1; in __find_resource()
595 new->start = alloc.start; in __find_resource()
605 tmp.start = this->end + 1; in __find_resource()
645 old->start = new.start; in reallocate_resource()
656 old->start = new.start; in reallocate_resource()
726 struct resource *lookup_resource(struct resource *root, resource_size_t start) in lookup_resource() argument
732 if (res->start == start) in lookup_resource()
758 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
760 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
766 if (next->start < new->start || next->end > new->end) in __insert_resource()
770 if (next->sibling->start > new->end) in __insert_resource()
855 if (conflict->start < new->start) in insert_resource_expand_to_fit()
856 new->start = conflict->start; in insert_resource_expand_to_fit()
865 static int __adjust_resource(struct resource *res, resource_size_t start, in __adjust_resource() argument
869 resource_size_t end = start + size - 1; in __adjust_resource()
875 if ((start < parent->start) || (end > parent->end)) in __adjust_resource()
878 if (res->sibling && (res->sibling->start <= end)) in __adjust_resource()
885 if (start <= tmp->end) in __adjust_resource()
891 if ((tmp->start < start) || (tmp->end > end)) in __adjust_resource()
894 res->start = start; in __adjust_resource()
912 int adjust_resource(struct resource *res, resource_size_t start, in adjust_resource() argument
918 result = __adjust_resource(res, start, size); in adjust_resource()
925 resource_size_t start, resource_size_t end, in __reserve_region_with_split() argument
937 res->start = start; in __reserve_region_with_split()
953 if (conflict->start <= res->start && in __reserve_region_with_split()
961 if (conflict->start > res->start) { in __reserve_region_with_split()
963 res->end = conflict->start - 1; in __reserve_region_with_split()
971 next_res->start = conflict->end + 1; in __reserve_region_with_split()
976 res->start = conflict->end + 1; in __reserve_region_with_split()
983 resource_size_t start, resource_size_t end, in reserve_region_with_split() argument
989 if (root->start > start || root->end < end) { in reserve_region_with_split()
991 (unsigned long long)start, (unsigned long long)end, in reserve_region_with_split()
993 if (start > root->end || end < root->start) in reserve_region_with_split()
998 if (start < root->start) in reserve_region_with_split()
999 start = root->start; in reserve_region_with_split()
1001 (unsigned long long)start, in reserve_region_with_split()
1007 __reserve_region_with_split(root, start, end, name); in reserve_region_with_split()
1023 return res->start; in resource_alignment()
1051 resource_size_t start, resource_size_t n, in __request_region() argument
1061 res->start = start; in __request_region()
1062 res->end = start + n - 1; in __request_region()
1107 void __release_region(struct resource *parent, resource_size_t start, in __release_region() argument
1114 end = start + n - 1; in __release_region()
1123 if (res->start <= start && res->end >= end) { in __release_region()
1128 if (res->start != start || res->end != end) in __release_region()
1143 "<%016llx-%016llx>\n", (unsigned long long)start, in __release_region()
1170 resource_size_t start, resource_size_t size) in release_mem_region_adjustable() argument
1178 end = start + size - 1; in release_mem_region_adjustable()
1179 if ((start < parent->start) || (end > parent->end)) in release_mem_region_adjustable()
1189 if (res->start >= end) in release_mem_region_adjustable()
1193 if (res->start > start || res->end < end) { in release_mem_region_adjustable()
1207 if (res->start == start && res->end == end) { in release_mem_region_adjustable()
1212 } else if (res->start == start && res->end != end) { in release_mem_region_adjustable()
1216 } else if (res->start != start && res->end == end) { in release_mem_region_adjustable()
1218 ret = __adjust_resource(res, res->start, in release_mem_region_adjustable()
1219 start - res->start); in release_mem_region_adjustable()
1227 new_res->start = end + 1; in release_mem_region_adjustable()
1234 ret = __adjust_resource(res, res->start, in release_mem_region_adjustable()
1235 start - res->start); in release_mem_region_adjustable()
1326 resource_size_t start; member
1334 __release_region(this->parent, this->start, this->n); in devm_region_release()
1342 this->start == match->start && this->n == match->n; in devm_region_match()
1346 struct resource *parent, resource_size_t start, in __devm_request_region() argument
1358 dr->start = start; in __devm_request_region()
1361 res = __request_region(parent, start, n, name, 0); in __devm_request_region()
1372 resource_size_t start, resource_size_t n) in __devm_release_region() argument
1374 struct region_devres match_data = { parent, start, n }; in __devm_release_region()
1376 __release_region(parent, start, n); in __devm_release_region()
1402 res->start = io_start; in reserve_setup()
1406 if (request_resource(res->start >= 0x10000 ? &iomem_resource : &ioport_resource, res) == 0) in reserve_setup()
1431 if (p->start >= addr + size) in iomem_map_sanity_check()
1435 if (PFN_DOWN(p->start) <= PFN_DOWN(addr) && in iomem_map_sanity_check()
1487 if (p->start >= addr + size) in iomem_is_exclusive()