Lines Matching defs:start
163 range_tree_add(void *arg, uint64_t start, uint64_t size)
168 uint64_t end = start + size;
174 rsearch.rs_start = start;
178 if (rs != NULL && rs->rs_start <= start && rs->rs_end >= end) {
181 (longlong_t)start, (longlong_t)size);
191 merge_before = (rs_before != NULL && rs_before->rs_end == start);
221 rs_after->rs_start = start;
225 rs->rs_start = start;
238 range_tree_remove(void *arg, uint64_t start, uint64_t size)
243 uint64_t end = start + size;
250 rsearch.rs_start = start;
258 (longlong_t)start, (longlong_t)size);
261 VERIFY3U(rs->rs_start, <=, start);
264 left_over = (rs->rs_start != start);
278 rs->rs_end = start;
284 rs->rs_end = start;
304 range_tree_find_impl(range_tree_t *rt, uint64_t start, uint64_t size)
308 uint64_t end = start + size;
313 rsearch.rs_start = start;
319 range_tree_find(range_tree_t *rt, uint64_t start, uint64_t size)
321 range_seg_t *rs = range_tree_find_impl(rt, start, size);
322 if (rs != NULL && rs->rs_start <= start && rs->rs_end >= start + size)
340 range_tree_contains(range_tree_t *rt, uint64_t start, uint64_t size)
342 return (range_tree_find(rt, start, size) != NULL);
350 range_tree_clear(range_tree_t *rt, uint64_t start, uint64_t size)
354 while ((rs = range_tree_find_impl(rt, start, size)) != NULL) {
355 uint64_t free_start = MAX(rs->rs_start, start);
356 uint64_t free_end = MIN(rs->rs_end, start + size);