Lines Matching full:start
16 uint64_t start; member
20 /* return just the part of range before (start) */
22 uint64_t start, PageRange *out) in page_range_part_before() argument
24 uint64_t endr = range->start + range->count; in page_range_part_before()
25 uint64_t end = MIN(endr, start); in page_range_part_before()
27 out->start = range->start; in page_range_part_before()
28 if (end > out->start) { in page_range_part_before()
29 out->count = end - out->start; in page_range_part_before()
35 /* return just the part of range after (start, count) */
37 uint64_t start, uint64_t count, in page_range_part_after() argument
40 uint64_t end = range->start + range->count; in page_range_part_after()
41 uint64_t ends = start + count; in page_range_part_after()
43 out->start = MAX(range->start, ends); in page_range_part_after()
44 if (end > out->start) { in page_range_part_after()
45 out->count = end - out->start; in page_range_part_after()
52 uint64_t start, uint64_t count, in page_range_intersect() argument
55 uint64_t end1 = range->start + range->count; in page_range_intersect()
56 uint64_t end2 = start + count; in page_range_intersect()
59 out->start = MAX(range->start, start); in page_range_intersect()
60 out->count = out->start < end ? end - out->start : 0; in page_range_intersect()
64 uint64_t start, uint64_t count) in page_range_intersection_size() argument
68 page_range_intersect(range, start, count, &trange); in page_range_intersection_size()
73 uint64_t start, uint64_t count) in page_range_joinable_left() argument
75 return start + count == range->start; in page_range_joinable_left()
79 uint64_t start, uint64_t count) in page_range_joinable_right() argument
81 return range->start + range->count == start; in page_range_joinable_right()
85 uint64_t start, uint64_t count) in page_range_joinable() argument
87 return page_range_joinable_left(range, start, count) || in page_range_joinable()
88 page_range_joinable_right(range, start, count); in page_range_joinable()
108 uint64_t start, uint64_t count);
114 uint64_t start, uint64_t count,