Lines Matching refs:now_ns

2051 static void bfq_update_io_intensity(struct bfq_queue *bfqq, u64 now_ns)  in bfq_update_io_intensity()  argument
2053 u64 tot_io_time = now_ns - bfqq->io_start_time; in bfq_update_io_intensity()
2057 now_ns - bfqq->ttime.last_end_request; in bfq_update_io_intensity()
2076 bfqq->io_start_time = now_ns - (tot_io_time>>1); in bfq_update_io_intensity()
2133 u64 now_ns) in bfq_check_waker() argument
2140 now_ns - bfqd->last_completion >= 4 * NSEC_PER_MSEC || in bfq_check_waker()
2153 now_ns > bfqq->waker_detection_started + in bfq_check_waker()
2163 bfqq->waker_detection_started = now_ns; in bfq_check_waker()
2211 u64 now_ns = ktime_get_ns(); in bfq_add_request() local
2222 bfq_check_waker(bfqd, bfqq, now_ns); in bfq_add_request()
2292 bfq_update_io_intensity(bfqq, now_ns); in bfq_add_request()
3593 u64 now_ns = ktime_get_ns(); in bfq_update_peak_rate() local
3614 if (now_ns - bfqd->last_dispatch > 100*NSEC_PER_MSEC && in bfq_update_peak_rate()
3622 now_ns - bfqd->last_completion < BFQ_MIN_TT) in bfq_update_peak_rate()
3635 bfqd->delta_from_first = now_ns - bfqd->first_dispatch; in bfq_update_peak_rate()
3647 bfqd->last_dispatch = now_ns; in bfq_update_peak_rate()
5594 u64 now_ns = ktime_get_ns(); in bfq_init_bfqq() local
5624 bfqq->ttime.last_end_request = now_ns + 1; in bfq_init_bfqq()
5628 bfqq->io_start_time = now_ns; in bfq_init_bfqq()
6351 u64 now_ns; in bfq_completed_request() local
6373 now_ns = ktime_get_ns(); in bfq_completed_request()
6375 bfqq->ttime.last_end_request = now_ns; in bfq_completed_request()
6381 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
6403 bfqd->last_completion = now_ns; in bfq_completed_request()