Searched refs:now_ns (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | tc_redirect.c | 494 __u64 now_ns, pkt_ns; in __rcv_tstamp() local 528 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in __rcv_tstamp() 530 if (ASSERT_GE(now_ns, pkt_ns, "check rcv tstamp")) in __rcv_tstamp() 531 ASSERT_LT(now_ns - pkt_ns, 5 * NSEC_PER_SEC, in __rcv_tstamp() 597 __u64 now_ns; in snd_tstamp() local 602 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in snd_tstamp() 614 cmsg->cmsg_len = CMSG_LEN(sizeof(now_ns)); in snd_tstamp() 615 *(__u64 *)CMSG_DATA(cmsg) = now_ns; in snd_tstamp()
|
| /linux/block/ |
| H A D | bfq-iosched.c | 2053 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 …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_ptp.c | 635 s64 now_ns, first_ns, period_ns, next_ns; in ksz_ptp_restart_perout() local 648 now_ns = timespec64_to_ns(&now); in ksz_ptp_restart_perout() 654 if (first_ns < now_ns) { in ksz_ptp_restart_perout() 655 count = div_u64(now_ns - first_ns, period_ns); in ksz_ptp_restart_perout() 662 while (next_ns < now_ns + 100000000) in ksz_ptp_restart_perout()
|
| /linux/arch/mips/kvm/ |
| H A D | emulate.c | 330 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()
|