Searched refs:now_ns (Results 1 – 8 of 8) sorted by relevance
/linux/kernel/ |
H A D | tsacct.c | 26 u64 now_ns, delta; in bacct_add_tsk() local 32 now_ns = ktime_get_ns(); in bacct_add_tsk() 34 delta = now_ns - tsk->group_leader->start_time; in bacct_add_tsk() 38 delta = now_ns - tsk->start_time; in bacct_add_tsk()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_redirect.c | 493 __u64 now_ns, pkt_ns; in __rcv_tstamp() local 527 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in __rcv_tstamp() 529 if (ASSERT_GE(now_ns, pkt_ns, "check rcv tstamp")) in __rcv_tstamp() 530 ASSERT_LT(now_ns - pkt_ns, 5 * NSEC_PER_SEC, in __rcv_tstamp() 596 __u64 now_ns; in snd_tstamp() local 601 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in snd_tstamp() 613 cmsg->cmsg_len = CMSG_LEN(sizeof(now_ns)); in snd_tstamp() 614 *(__u64 *)CMSG_DATA(cmsg) = now_ns; in snd_tstamp()
|
/linux/block/ |
H A D | bfq-iosched.c | 2062 static void bfq_update_io_intensity(struct bfq_queue *bfqq, u64 now_ns) in bfq_update_io_intensity() argument 2064 u64 tot_io_time = now_ns - bfqq->io_start_time; in bfq_update_io_intensity() 2068 now_ns - bfqq->ttime.last_end_request; in bfq_update_io_intensity() 2087 bfqq->io_start_time = now_ns - (tot_io_time>>1); in bfq_update_io_intensity() 2144 u64 now_ns) in bfq_check_waker() argument 2151 now_ns - bfqd->last_completion >= 4 * NSEC_PER_MSEC || in bfq_check_waker() 2164 now_ns > bfqq->waker_detection_started + in bfq_check_waker() 2174 bfqq->waker_detection_started = now_ns; in bfq_check_waker() 2222 u64 now_ns = blk_time_get_ns(); in bfq_add_request() local 2233 bfq_check_waker(bfqd, bfqq, now_ns); in bfq_add_request() [all …]
|
/linux/drivers/ptp/ |
H A D | ptp_fc3.c | 387 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()
|
H A D | ptp_idt82p33.c | 461 s64 now_ns; in _idt82p33_adjtime_immediate() local 471 now_ns = timespec64_to_ns(&ts); in _idt82p33_adjtime_immediate() 472 now_ns += delta_ns + idt82p33->tod_write_overhead_ns; in _idt82p33_adjtime_immediate() 474 ts = ns_to_timespec64(now_ns); in _idt82p33_adjtime_immediate()
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz_ptp.c | 638 s64 now_ns, first_ns, period_ns, next_ns; in ksz_ptp_restart_perout() local 651 now_ns = timespec64_to_ns(&now); in ksz_ptp_restart_perout() 657 if (first_ns < now_ns) { in ksz_ptp_restart_perout() 658 count = div_u64(now_ns - first_ns, period_ns); in ksz_ptp_restart_perout() 665 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()
|
/linux/net/ipv4/ |
H A D | tcp_bbr.c | 441 u64 now_ns, edt_ns, interval_us; in bbr_packets_in_net_at_edt() local 444 now_ns = tp->tcp_clock_cache; in bbr_packets_in_net_at_edt() 445 edt_ns = max(tp->tcp_wstamp_ns, now_ns); in bbr_packets_in_net_at_edt() 446 interval_us = div_u64(edt_ns - now_ns, NSEC_PER_USEC); in bbr_packets_in_net_at_edt()
|