Lines Matching refs:from
244 long from; member
280 if (&rg->link == head || t < rg->from) { in region_add()
288 nrg->from = f; in region_add()
297 if (f > rg->from) in region_add()
298 f = rg->from; in region_add()
305 if (rg->from > t) in region_add()
318 add -= (rg->to - rg->from); in region_add()
324 add += (nrg->from - f); /* Added to beginning of region */ in region_add()
325 nrg->from = f; in region_add()
401 if (&rg->link == head || t < rg->from) { in region_chg()
409 nrg->from = f; in region_chg()
421 if (f > rg->from) in region_chg()
422 f = rg->from; in region_chg()
429 if (rg->from > t) in region_chg()
439 chg -= rg->to - rg->from; in region_chg()
502 if (rg->to <= f && (rg->to != rg->from || rg->to != f)) in region_del()
505 if (rg->from >= t) in region_del()
508 if (f > rg->from && t < rg->to) { /* Must split region */ in region_del()
533 nrg->from = t; in region_del()
545 if (f <= rg->from && t >= rg->to) { /* Remove entire region */ in region_del()
546 del += rg->to - rg->from; in region_del()
552 if (f <= rg->from) { /* Trim beginning of region */ in region_del()
553 del += t - rg->from; in region_del()
554 rg->from = t; in region_del()
606 if (rg->from >= t) in region_count()
609 seg_from = max(rg->from, f); in region_count()
4646 long from, long to, in hugetlb_reserve_pages() argument
4657 if (from > to) { in hugetlb_reserve_pages()
4684 chg = region_chg(resv_map, from, to); in hugetlb_reserve_pages()
4691 chg = to - from; in hugetlb_reserve_pages()
4736 long add = region_add(resv_map, from, to); in hugetlb_reserve_pages()
4758 region_abort(resv_map, from, to); in hugetlb_reserve_pages()