Lines Matching refs:jiffy_elapsed_rnd
836 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd;
845 jiffy_elapsed_rnd = roundup(jiffy_elapsed + 1, tg->td->throtl_slice);
846 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd) +
852 jiffy_wait = jiffy_elapsed_rnd - jiffy_elapsed;
862 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd;
870 jiffy_elapsed = jiffy_elapsed_rnd = jiffies - tg->slice_start[rw];
874 jiffy_elapsed_rnd = tg->td->throtl_slice;
876 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, tg->td->throtl_slice);
877 bytes_allowed = calculate_bytes_allowed(bps_limit, jiffy_elapsed_rnd) +
893 jiffy_wait = jiffy_wait + (jiffy_elapsed_rnd - jiffy_elapsed);