Searched refs:now_ns (Results 1 – 6 of 6) sorted by relevance
273 s64 now_ns; in _idt82p33_adjtime() local283 now_ns = timespec64_to_ns(&ts); in _idt82p33_adjtime()284 now_ns += delta_ns + idt82p33->tod_write_overhead_ns; in _idt82p33_adjtime()286 ts = ns_to_timespec64(now_ns); in _idt82p33_adjtime()
438 u64 now_ns, edt_ns, interval_us; in bbr_packets_in_net_at_edt() local441 now_ns = tp->tcp_clock_cache; in bbr_packets_in_net_at_edt()442 edt_ns = max(tp->tcp_wstamp_ns, now_ns); in bbr_packets_in_net_at_edt()443 interval_us = div_u64(edt_ns - now_ns, NSEC_PER_USEC); in bbr_packets_in_net_at_edt()
559 u64 now_ns; member812 u64 now_ns; in ioc_autop_idx() local832 now_ns = ktime_get_ns(); in ioc_autop_idx()836 ioc->autop_too_fast_at = now_ns; in ioc_autop_idx()837 if (now_ns - ioc->autop_too_fast_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()845 ioc->autop_too_slow_at = now_ns; in ioc_autop_idx()846 if (now_ns - ioc->autop_too_slow_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()981 now->now_ns = ktime_get(); in ioc_now()982 now->now = ktime_to_us(now->now_ns); in ioc_now()1473 expires = now->now_ns + in iocg_kick_waitq()
3178 u64 now_ns = ktime_get_ns(); in bfq_update_peak_rate() local3199 if (now_ns - bfqd->last_dispatch > 100*NSEC_PER_MSEC && in bfq_update_peak_rate()3207 now_ns - bfqd->last_completion < BFQ_MIN_TT) in bfq_update_peak_rate()3220 bfqd->delta_from_first = now_ns - bfqd->first_dispatch; in bfq_update_peak_rate()3232 bfqd->last_dispatch = now_ns; in bfq_update_peak_rate()5607 u64 now_ns; in bfq_completed_request() local5627 now_ns = ktime_get_ns(); in bfq_completed_request()5629 bfqq->ttime.last_end_request = now_ns; in bfq_completed_request()5635 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()5657 bfqd->last_completion = now_ns; in bfq_completed_request()
329 s64 now_ns, periods; in kvm_mips_ktime_to_count() local332 now_ns = ktime_to_ns(now); in kvm_mips_ktime_to_count()333 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()337 periods = div64_s64(now_ns, vcpu->arch.count_period); in kvm_mips_ktime_to_count()340 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
5613 u64 now_ns; in kvm_arch_vm_ioctl() local5630 now_ns = get_kvmclock_ns(kvm); in kvm_arch_vm_ioctl()5631 kvm->arch.kvmclock_offset += user_ns.clock - now_ns; in kvm_arch_vm_ioctl()5637 u64 now_ns; in kvm_arch_vm_ioctl() local5639 now_ns = get_kvmclock_ns(kvm); in kvm_arch_vm_ioctl()5640 user_ns.clock = now_ns; in kvm_arch_vm_ioctl()