Home
last modified time | relevance | path

Searched refs:now_ns (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/block/
Dbfq-iosched.c2706 u64 now_ns = ktime_get_ns(); in bfq_update_peak_rate() local
2727 if (now_ns - bfqd->last_dispatch > 100*NSEC_PER_MSEC && in bfq_update_peak_rate()
2735 now_ns - bfqd->last_completion < BFQ_MIN_TT) in bfq_update_peak_rate()
2748 bfqd->delta_from_first = now_ns - bfqd->first_dispatch; in bfq_update_peak_rate()
2758 bfqd->last_dispatch = now_ns; in bfq_update_peak_rate()
4660 u64 now_ns; in bfq_completed_request() local
4680 now_ns = ktime_get_ns(); in bfq_completed_request()
4682 bfqq->ttime.last_end_request = now_ns; in bfq_completed_request()
4688 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
4710 bfqd->last_completion = now_ns; in bfq_completed_request()
/Linux-v4.19/arch/mips/kvm/
Demulate.c328 s64 now_ns, periods; in kvm_mips_ktime_to_count() local
331 now_ns = ktime_to_ns(now); in kvm_mips_ktime_to_count()
332 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
336 periods = div64_s64(now_ns, vcpu->arch.count_period); in kvm_mips_ktime_to_count()
339 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
/Linux-v4.19/arch/x86/kvm/
Dx86.c4594 u64 now_ns; in kvm_arch_vm_ioctl() local
4611 now_ns = get_kvmclock_ns(kvm); in kvm_arch_vm_ioctl()
4612 kvm->arch.kvmclock_offset += user_ns.clock - now_ns; in kvm_arch_vm_ioctl()
4618 u64 now_ns; in kvm_arch_vm_ioctl() local
4620 now_ns = get_kvmclock_ns(kvm); in kvm_arch_vm_ioctl()
4621 user_ns.clock = now_ns; in kvm_arch_vm_ioctl()