Lines Matching refs:r_start
86 rman_res_t r_start; /* index of the first entry in this resource */ member
164 r->r_start = start; in rman_manage_region()
174 if (s->r_end + 1 >= r->r_start) in rman_manage_region()
183 if (r->r_start <= s->r_end && r->r_end >= s->r_start) { in rman_manage_region()
190 if (t && r->r_start <= t->r_end && r->r_end >= t->r_start) { in rman_manage_region()
199 if (t && (r->r_end + 1 != t->r_start || t->r_flags != 0)) in rman_manage_region()
203 if (s->r_end + 1 == r->r_start && s->r_flags == 0) { in rman_manage_region()
216 t->r_start = r->r_start; in rman_manage_region()
218 } else if (s->r_end < r->r_start) { in rman_manage_region()
236 return (rman_manage_region(rm, r->__r_i->r_start, r->__r_i->r_end)); in rman_init_from_resource()
279 *start = r->r_start; in rman_first_free_region()
297 *start = r->r_start; in rman_last_free_region()
324 if (end < r->r_start || r->r_end < start) in rman_adjust_resource()
343 KASSERT(s == NULL || s->r_end + 1 == r->r_start, in rman_adjust_resource()
345 KASSERT(t == NULL || r->r_end + 1 == t->r_start, in rman_adjust_resource()
352 if (start < r->r_start && (s == NULL || (s->r_flags & RF_ALLOCATED) || in rman_adjust_resource()
353 s->r_start > start)) { in rman_adjust_resource()
369 if (start < r->r_start || in rman_adjust_resource()
370 (start > r->r_start && s != NULL && !(s->r_flags & RF_ALLOCATED))) { in rman_adjust_resource()
372 r->r_start = start; in rman_adjust_resource()
373 if (s->r_start == start) { in rman_adjust_resource()
387 t->r_start = end + 1; in rman_adjust_resource()
396 if (start > r->r_start) { in rman_adjust_resource()
398 new->r_start = r->r_start; in rman_adjust_resource()
402 r->r_start = start; in rman_adjust_resource()
413 new->r_start = end + 1; in rman_adjust_resource()
420 t->r_start = end + 1; in rman_adjust_resource()
478 DPRINTF("considering [%#jx, %#jx]\n", s->r_start, s->r_end); in rman_reserve_resource()
483 if (s->r_start > end - (count - 1)) { in rman_reserve_resource()
485 s->r_start, end); in rman_reserve_resource()
488 if (s->r_start > RM_MAX_END - amask) { in rman_reserve_resource()
490 s->r_start, amask); in rman_reserve_resource()
497 rstart = ummax(s->r_start, start); in rman_reserve_resource()
518 if ((s->r_end - s->r_start + 1) == count) { in rman_reserve_resource()
539 rv->r_start = rstart; in rman_reserve_resource()
545 if (s->r_start < rv->r_start && s->r_end > rv->r_end) { in rman_reserve_resource()
548 s->r_start, rv->r_start - 1, in rman_reserve_resource()
549 rv->r_start, rv->r_end, in rman_reserve_resource()
560 r->r_start = rv->r_end + 1; in rman_reserve_resource()
564 s->r_end = rv->r_start - 1; in rman_reserve_resource()
569 } else if (s->r_start == rv->r_start) { in rman_reserve_resource()
574 s->r_start = rv->r_end + 1; in rman_reserve_resource()
581 s->r_end = rv->r_start - 1; in rman_reserve_resource()
603 s->r_start >= start && in rman_reserve_resource()
604 (s->r_end - s->r_start + 1) == count && in rman_reserve_resource()
605 (s->r_start & amask) == 0) { in rman_reserve_resource()
609 rv->r_start = s->r_start; in rman_reserve_resource()
714 s->r_end + 1 != r->r_start)) in int_rman_release_resource()
718 r->r_end + 1 != t->r_start)) in int_rman_release_resource()
739 t->r_start = r->r_start; in int_rman_release_resource()
793 return (r->__r_i->r_start); in rman_get_start()
807 return (r->__r_i->r_end - r->__r_i->r_start + 1); in rman_get_size()
1033 ures.r_start = res->r_start; in sysctl_rman()
1034 ures.r_size = res->r_end - res->r_start + 1; in sysctl_rman()
1073 r->r_start, r->r_end, r->r_rid); in dump_rman()