Searched refs:now_ns (Results 1 - 9 of 9) sorted by relevance

/linux-master/kernel/
H A Dtsacct.c26 u64 now_ns, delta; local
32 now_ns = ktime_get_ns();
34 delta = now_ns - tsk->group_leader->start_time;
38 delta = now_ns - tsk->start_time;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_redirect.c478 __u64 now_ns, pkt_ns; local
512 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec;
514 if (ASSERT_GE(now_ns, pkt_ns, "check rcv tstamp"))
515 ASSERT_LT(now_ns - pkt_ns, 5 * NSEC_PER_SEC,
581 __u64 now_ns; local
586 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec;
598 cmsg->cmsg_len = CMSG_LEN(sizeof(now_ns));
599 *(__u64 *)CMSG_DATA(cmsg) = now_ns;
/linux-master/block/
H A Dbfq-iosched.c2051 static void bfq_update_io_intensity(struct bfq_queue *bfqq, u64 now_ns) argument
2053 u64 tot_io_time = now_ns - bfqq->io_start_time;
2057 now_ns - bfqq->ttime.last_end_request;
2076 bfqq->io_start_time = now_ns - (tot_io_time>>1);
2133 u64 now_ns)
2140 now_ns - bfqd->last_completion >= 4 * NSEC_PER_MSEC ||
2153 now_ns > bfqq->waker_detection_started +
2163 bfqq->waker_detection_started = now_ns;
2211 u64 now_ns = blk_time_get_ns(); local
2222 bfq_check_waker(bfqd, bfqq, now_ns);
2132 bfq_check_waker(struct bfq_data *bfqd, struct bfq_queue *bfqq, u64 now_ns) argument
3593 u64 now_ns = blk_time_get_ns(); local
5594 u64 now_ns = blk_time_get_ns(); local
6351 u64 now_ns; local
[all...]
H A Dblk-iocost.c560 u64 now_ns; member in struct:ioc_now
812 u64 now_ns; local
832 now_ns = blk_time_get_ns();
836 ioc->autop_too_fast_at = now_ns;
837 if (now_ns - ioc->autop_too_fast_at >= AUTOP_CYCLE_NSEC)
845 ioc->autop_too_slow_at = now_ns;
846 if (now_ns - ioc->autop_too_slow_at >= AUTOP_CYCLE_NSEC)
1047 now->now_ns = blk_time_get_ns();
1048 now->now = ktime_to_us(now->now_ns);
1561 expires = now->now_ns
[all...]
/linux-master/drivers/net/dsa/microchip/
H A Dksz_ptp.c641 s64 now_ns, first_ns, period_ns, next_ns; local
654 now_ns = timespec64_to_ns(&now);
660 if (first_ns < now_ns) {
661 count = div_u64(now_ns - first_ns, period_ns);
668 while (next_ns < now_ns + 100000000)
/linux-master/net/ipv4/
H A Dtcp_bbr.c441 u64 now_ns, edt_ns, interval_us; local
444 now_ns = tp->tcp_clock_cache;
445 edt_ns = max(tp->tcp_wstamp_ns, now_ns);
446 interval_us = div_u64(edt_ns - now_ns, NSEC_PER_USEC);
/linux-master/drivers/ptp/
H A Dptp_fc3.c387 s64 offset_ns, now_ns; local
401 now_ns = timespec64_to_ns(ts);
402 (void)ns2counters(idtfc3, offset_ns + now_ns, &sub_ns);
405 return idtfc3_timecounter_update(idtfc3, counter, now_ns);
H A Dptp_idt82p33.c461 s64 now_ns; local
471 now_ns = timespec64_to_ns(&ts);
472 now_ns += delta_ns + idt82p33->tod_write_overhead_ns;
474 ts = ns_to_timespec64(now_ns);
/linux-master/arch/mips/kvm/
H A Demulate.c330 s64 now_ns, periods; local
333 now_ns = ktime_to_ns(now);
334 delta = now_ns + vcpu->arch.count_dyn_bias;
338 periods = div64_s64(now_ns, vcpu->arch.count_period);
341 delta = now_ns + vcpu->arch.count_dyn_bias;

Completed in 191 milliseconds