Lines Matching refs:t
262 static long region_add(struct resv_map *resv, long f, long t) in region_add() argument
280 if (&rg->link == head || t < rg->from) { in region_add()
289 nrg->to = t; in region_add()
292 add += t - f; in region_add()
305 if (rg->from > t) in region_add()
311 if (rg->to > t) in region_add()
312 t = rg->to; in region_add()
326 add += t - nrg->to; /* Added to end of region */ in region_add()
327 nrg->to = t; in region_add()
358 static long region_chg(struct resv_map *resv, long f, long t) in region_chg() argument
401 if (&rg->link == head || t < rg->from) { in region_chg()
416 chg = t - f; in region_chg()
423 chg = t - f; in region_chg()
429 if (rg->from > t) in region_chg()
435 if (rg->to > t) { in region_chg()
436 chg += rg->to - t; in region_chg()
437 t = rg->to; in region_chg()
463 static void region_abort(struct resv_map *resv, long f, long t) in region_abort() argument
485 static long region_del(struct resv_map *resv, long f, long t) in region_del() argument
505 if (rg->from >= t) in region_del()
508 if (f > rg->from && t < rg->to) { /* Must split region */ in region_del()
530 del += t - f; in region_del()
533 nrg->from = t; in region_del()
545 if (f <= rg->from && t >= rg->to) { /* Remove entire region */ in region_del()
553 del += t - rg->from; in region_del()
554 rg->from = t; in region_del()
592 static long region_count(struct resv_map *resv, long f, long t) in region_count() argument
606 if (rg->from >= t) in region_count()
610 seg_to = min(rg->to, t); in region_count()