Home
last modified time | relevance | path

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

/Linux-v5.4/block/
Dblk-iocost.c510 u64 now_ns; member
724 u64 now_ns; in ioc_autop_idx() local
745 now_ns = ktime_get_ns(); in ioc_autop_idx()
749 ioc->autop_too_fast_at = now_ns; in ioc_autop_idx()
750 if (now_ns - ioc->autop_too_fast_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()
758 ioc->autop_too_slow_at = now_ns; in ioc_autop_idx()
759 if (now_ns - ioc->autop_too_slow_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()
857 now->now_ns = ktime_get(); in ioc_now()
858 now->now = ktime_to_us(now->now_ns); in ioc_now()
1186 expires = now->now_ns + in iocg_kick_waitq()
[all …]
Dbfq-iosched.c3176 u64 now_ns = ktime_get_ns(); in bfq_update_peak_rate() local
3197 if (now_ns - bfqd->last_dispatch > 100*NSEC_PER_MSEC && in bfq_update_peak_rate()
3205 now_ns - bfqd->last_completion < BFQ_MIN_TT) in bfq_update_peak_rate()
3218 bfqd->delta_from_first = now_ns - bfqd->first_dispatch; in bfq_update_peak_rate()
3230 bfqd->last_dispatch = now_ns; in bfq_update_peak_rate()
5588 u64 now_ns; in bfq_completed_request() local
5608 now_ns = ktime_get_ns(); in bfq_completed_request()
5610 bfqq->ttime.last_end_request = now_ns; in bfq_completed_request()
5616 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
5638 bfqd->last_completion = now_ns; in bfq_completed_request()
/Linux-v5.4/net/ipv4/
Dtcp_bbr.c437 u64 now_ns, edt_ns, interval_us; in bbr_packets_in_net_at_edt() local
440 now_ns = tp->tcp_clock_cache; in bbr_packets_in_net_at_edt()
441 edt_ns = max(tp->tcp_wstamp_ns, now_ns); in bbr_packets_in_net_at_edt()
442 interval_us = div_u64(edt_ns - now_ns, NSEC_PER_USEC); in bbr_packets_in_net_at_edt()
/Linux-v5.4/arch/mips/kvm/
Demulate.c329 s64 now_ns, periods; in kvm_mips_ktime_to_count() local
332 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()
/Linux-v5.4/arch/x86/kvm/
Dx86.c5036 u64 now_ns; in kvm_arch_vm_ioctl() local
5053 now_ns = get_kvmclock_ns(kvm); in kvm_arch_vm_ioctl()
5054 kvm->arch.kvmclock_offset += user_ns.clock - now_ns; in kvm_arch_vm_ioctl()
5060 u64 now_ns; in kvm_arch_vm_ioctl() local
5062 now_ns = get_kvmclock_ns(kvm); in kvm_arch_vm_ioctl()
5063 user_ns.clock = now_ns; in kvm_arch_vm_ioctl()