Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_redirect.c514 __u64 now_ns, pkt_ns; in __rcv_tstamp() local
548 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in __rcv_tstamp()
550 if (ASSERT_GE(now_ns, pkt_ns, "check rcv tstamp")) in __rcv_tstamp()
551 ASSERT_LT(now_ns - pkt_ns, 5 * NSEC_PER_SEC, in __rcv_tstamp()
617 __u64 now_ns; in snd_tstamp() local
622 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in snd_tstamp()
634 cmsg->cmsg_len = CMSG_LEN(sizeof(now_ns)); in snd_tstamp()
635 *(__u64 *)CMSG_DATA(cmsg) = now_ns; in snd_tstamp()
/linux/block/
H A Dbfq-iosched.c2053 static void bfq_update_io_intensity(struct bfq_queue *bfqq, u64 now_ns) in bfq_update_io_intensity() argument
2055 u64 tot_io_time = now_ns - bfqq->io_start_time; in bfq_update_io_intensity()
2059 now_ns - bfqq->ttime.last_end_request; in bfq_update_io_intensity()
2078 bfqq->io_start_time = now_ns - (tot_io_time>>1); in bfq_update_io_intensity()
2135 u64 now_ns) in bfq_check_waker() argument
2142 now_ns - bfqd->last_completion >= 4 * NSEC_PER_MSEC || in bfq_check_waker()
2155 now_ns > bfqq->waker_detection_started + in bfq_check_waker()
2165 bfqq->waker_detection_started = now_ns; in bfq_check_waker()
2213 u64 now_ns = blk_time_get_ns(); in bfq_add_request() local
2224 bfq_check_waker(bfqd, bfqq, now_ns); in bfq_add_request()
[all …]
H A Dblk-iocost.c560 u64 now_ns; member
792 u64 now_ns; in ioc_autop_idx() local
812 now_ns = blk_time_get_ns(); in ioc_autop_idx()
816 ioc->autop_too_fast_at = now_ns; in ioc_autop_idx()
817 if (now_ns - ioc->autop_too_fast_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()
825 ioc->autop_too_slow_at = now_ns; in ioc_autop_idx()
826 if (now_ns - ioc->autop_too_slow_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()
1027 now->now_ns = blk_time_get_ns(); in ioc_now()
1028 now->now = ktime_to_us(now->now_ns); in ioc_now()
1548 expires = now->now_ns + in iocg_kick_waitq()
/linux/drivers/ptp/
H A Dptp_fc3.c387 s64 offset_ns, now_ns; in _idtfc3_settime() local
401 now_ns = timespec64_to_ns(ts); in _idtfc3_settime()
402 (void)ns2counters(idtfc3, offset_ns + now_ns, &sub_ns); in _idtfc3_settime()
405 return idtfc3_timecounter_update(idtfc3, counter, now_ns); in _idtfc3_settime()
/linux/arch/mips/kvm/
H A Demulate.c330 s64 now_ns, periods; in kvm_mips_ktime_to_count() local
333 now_ns = ktime_to_ns(now); in kvm_mips_ktime_to_count()
334 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
338 periods = div64_s64(now_ns, vcpu->arch.count_period); in kvm_mips_ktime_to_count()
341 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.c762 s64 now_ns, first_ns, period_ns, next_ns; in ksz_ptp_restart_perout() local
775 now_ns = timespec64_to_ns(&now); in ksz_ptp_restart_perout()
781 if (first_ns < now_ns) { in ksz_ptp_restart_perout()
782 count = div_u64(now_ns - first_ns, period_ns); in ksz_ptp_restart_perout()
789 while (next_ns < now_ns + 100000000) in ksz_ptp_restart_perout()