Home
last modified time | relevance | path

Searched refs:tv64 (Results 1 – 47 of 47) sorted by relevance

/linux-4.4.14/include/linux/
Dktime.h38 s64 tv64; member
53 return (ktime_t){ .tv64 = KTIME_MAX }; in ktime_set()
55 return (ktime_t) { .tv64 = secs * NSEC_PER_SEC + (s64)nsecs }; in ktime_set()
60 ({ (ktime_t){ .tv64 = (lhs).tv64 - (rhs).tv64 }; })
64 ({ (ktime_t){ .tv64 = (lhs).tv64 + (rhs).tv64 }; })
71 ({ (ktime_t){ .tv64 = (kt).tv64 + (nsval) }; })
78 ({ (ktime_t){ .tv64 = (kt).tv64 - (nsval) }; })
99 #define ktime_to_timespec(kt) ns_to_timespec((kt).tv64)
102 #define ktime_to_timespec64(kt) ns_to_timespec64((kt).tv64)
105 #define ktime_to_timeval(kt) ns_to_timeval((kt).tv64)
[all …]
Dhrtimer.h229 static inline void hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv64) in hrtimer_set_expires_tv64() argument
231 timer->node.expires.tv64 = tv64; in hrtimer_set_expires_tv64()
232 timer->_softexpires.tv64 = tv64; in hrtimer_set_expires_tv64()
259 return timer->node.expires.tv64; in hrtimer_get_expires_tv64()
263 return timer->_softexpires.tv64; in hrtimer_get_softexpires_tv64()
300 # define KTIME_HIGH_RES (ktime_t) { .tv64 = HIGH_RES_NSEC }
336 rem.tv64 -= hrtimer_resolution; in __hrtimer_expires_remaining_adjusted()
Dtick.h115 ktime_t len = { .tv64 = NSEC_PER_SEC/HZ }; in tick_nohz_get_sleep_length()
Dwait.h470 if ((timeout).tv64 != KTIME_MAX) \
/linux-4.4.14/kernel/time/
Dhrtimer.c174 return expires.tv64 <= new_base->cpu_base->expires_next.tv64; in hrtimer_check_target()
316 if (res.tv64 < 0 || res.tv64 < lhs.tv64 || res.tv64 < rhs.tv64) in ktime_add_safe()
472 ktime_t expires, expires_next = { .tv64 = KTIME_MAX }; in __hrtimer_get_next_event()
486 if (expires.tv64 < expires_next.tv64) { in __hrtimer_get_next_event()
496 if (expires_next.tv64 < 0) in __hrtimer_get_next_event()
497 expires_next.tv64 = 0; in __hrtimer_get_next_event()
574 if (skip_equal && expires_next.tv64 == cpu_base->expires_next.tv64) in hrtimer_force_reprogram()
577 cpu_base->expires_next.tv64 = expires_next.tv64; in hrtimer_force_reprogram()
635 if (expires.tv64 < 0) in hrtimer_reprogram()
636 expires.tv64 = 0; in hrtimer_reprogram()
[all …]
Dtick-broadcast.c607 dev->next_event.tv64 = KTIME_MAX; in tick_handle_oneshot_broadcast()
608 next_event.tv64 = KTIME_MAX; in tick_handle_oneshot_broadcast()
614 if (td->evtdev->next_event.tv64 <= now.tv64) { in tick_handle_oneshot_broadcast()
622 } else if (td->evtdev->next_event.tv64 < next_event.tv64) { in tick_handle_oneshot_broadcast()
623 next_event.tv64 = td->evtdev->next_event.tv64; in tick_handle_oneshot_broadcast()
660 if (next_event.tv64 != KTIME_MAX) in tick_handle_oneshot_broadcast()
675 if (bc->next_event.tv64 == KTIME_MAX) in broadcast_needs_cpu()
691 if (dev->next_event.tv64 < bc->next_event.tv64) in broadcast_shutdown_local()
757 } else if (dev->next_event.tv64 < bc->next_event.tv64) { in __tick_broadcast_oneshot_control()
792 if (dev->next_event.tv64 == KTIME_MAX) in __tick_broadcast_oneshot_control()
[all …]
Dalarmtimer.c251 if (!min.tv64 || (delta.tv64 < min.tv64)) in alarmtimer_suspend()
254 if (min.tv64 == 0) in alarmtimer_suspend()
290 if (!freezer_delta.tv64 || (delta.tv64 < freezer_delta.tv64)) in alarmtimer_freezerset()
408 if (delta.tv64 < 0) in alarm_forward()
411 if (unlikely(delta.tv64 >= interval.tv64)) { in alarm_forward()
419 if (alarm->node.expires.tv64 > now.tv64) in alarm_forward()
476 if (ptr->it.alarm.interval.tv64) { in alarm_handle_timer()
686 if (rem.tv64 <= 0) in update_rmtp()
711 exp.tv64 = restart->nanosleep.expires; in alarm_timer_nsleep_restart()
791 restart->nanosleep.expires = exp.tv64; in alarm_timer_nsleep()
Dtick-sched.c61 if (delta.tv64 < tick_period.tv64) in tick_do_update_jiffies64()
68 if (delta.tv64 >= tick_period.tv64) { in tick_do_update_jiffies64()
75 if (unlikely(delta.tv64 >= tick_period.tv64)) { in tick_do_update_jiffies64()
104 if (last_jiffies_update.tv64 == 0) in tick_init_jiffy_update()
582 basemono = last_jiffies_update.tv64; in tick_nohz_stop_sched_tick()
610 tick.tv64 = 0; in tick_nohz_stop_sched_tick()
655 tick.tv64 = expires; in tick_nohz_stop_sched_tick()
658 if (ts->tick_stopped && (expires == dev->next_event.tv64)) in tick_nohz_stop_sched_tick()
748 ts->sleep_length = (ktime_t) { .tv64 = NSEC_PER_SEC/HZ }; in can_stop_idle_tick()
798 if (expires.tv64 > 0LL) { in __tick_nohz_idle_enter()
[all …]
Ditimer.c37 if (rem.tv64 <= 0) in itimer_get_remtime()
38 rem.tv64 = NSEC_PER_USEC; in itimer_get_remtime()
40 rem.tv64 = 0; in itimer_get_remtime()
219 if (expires.tv64 != 0) { in do_setitimer()
224 tsk->signal->it_real_incr.tv64 = 0; in do_setitimer()
Dposix-timers.c362 if (timr->it.real.interval.tv64 == 0) in schedule_next_timer()
452 if (timr->it.real.interval.tv64 != 0) in posix_timer_fn()
461 if (timr->it.real.interval.tv64 != 0) { in posix_timer_fn()
490 if (timr->it.real.interval.tv64 < kj.tv64) in posix_timer_fn()
746 if (iv.tv64) in common_timer_get()
759 if (iv.tv64 && (timr->it_requeue_pending & REQUEUE_PENDING || in common_timer_get()
765 if (remaining.tv64 <= 0) { in common_timer_get()
842 timr->it.real.interval.tv64 = 0; in common_timer_set()
927 timer->it.real.interval.tv64 = 0; in common_timer_del()
Dtick-broadcast-hrtimer.c99 if (ce_broadcast_hrtimer.next_event.tv64 != KTIME_MAX) in bc_handler()
Dtick-oneshot.c31 if (unlikely(expires.tv64 == KTIME_MAX)) { in tick_program_event()
Dclockevents.c182 dev->next_event.tv64 = KTIME_MAX; in clockevents_shutdown()
216 dev->next_event.tv64 = KTIME_MAX; in clockevents_increase_min_delta()
313 if (unlikely(expires.tv64 < 0)) { in clockevents_program_event()
Dtimekeeping.c107 WARN_ON_ONCE(tk->offs_real.tv64 != timespec64_to_ktime(tmp).tv64); in tk_set_wall_to_mono()
522 if (tk->next_leap_ktime.tv64 != KTIME_MAX) in tk_update_leap_state()
1963 if (unlikely(base.tv64 >= tk->next_leap_ktime.tv64)) in ktime_get_update_offsets_now()
Dntp.c379 ret.tv64 = KTIME_MAX; in ntp_get_next_leap()
/linux-4.4.14/drivers/rtc/
Dhctosys.c31 struct timespec64 tv64 = { in rtc_hctosys() local
50 tv64.tv_sec = rtc_tm_to_time64(&tm); in rtc_hctosys()
52 err = do_settimeofday64(&tv64); in rtc_hctosys()
59 (long long) tv64.tv_sec); in rtc_hctosys()
Dinterface.c387 if (alarm->enabled && (rtc_tm_to_ktime(now).tv64 < in rtc_initialize_alarm()
388 rtc->aie_timer.node.expires.tv64)) { in rtc_initialize_alarm()
839 if (next->expires.tv64 > now.tv64) in rtc_timer_do_work()
/linux-4.4.14/lib/
Dtimerqueue.c51 if (node->expires.tv64 < ptr->expires.tv64) in timerqueue_add()
59 if (!head->next || node->expires.tv64 < head->next->expires.tv64) { in timerqueue_add()
/linux-4.4.14/fs/
Dtimerfd.c96 ktime_t moffs = ktime_mono_to_real((ktime_t){ .tv64 = 0 }); in timerfd_clock_was_set()
105 if (ctx->moffs.tv64 != moffs.tv64) { in timerfd_clock_was_set()
106 ctx->moffs.tv64 = KTIME_MAX; in timerfd_clock_was_set()
127 if (!ctx->might_cancel || ctx->moffs.tv64 != KTIME_MAX) in timerfd_canceled()
129 ctx->moffs = ktime_mono_to_real((ktime_t){ .tv64 = 0 }); in timerfd_canceled()
158 return remaining.tv64 < 0 ? ktime_set(0, 0): remaining; in timerfd_get_remaining()
187 if (texp.tv64 != 0) { in timerfd_setup()
264 if (ctx->expired && ctx->tintv.tv64) { in timerfd_read()
408 ctx->moffs = ktime_mono_to_real((ktime_t){ .tv64 = 0 }); in SYSCALL_DEFINE2()
462 if (ctx->expired && ctx->tintv.tv64) { in do_timerfd_settime()
[all …]
Daio.c1264 ktime_t until = { .tv64 = KTIME_MAX }; in read_events()
1290 if (until.tv64 == 0) in read_events()
/linux-4.4.14/include/trace/events/
Dtimer.h180 __entry->expires = hrtimer_get_expires(hrtimer).tv64;
181 __entry->softexpires = hrtimer_get_softexpires(hrtimer).tv64;
187 .tv64 = __entry->expires }),
189 .tv64 = __entry->softexpires }))
214 __entry->now = now->tv64;
219 (unsigned long long)ktime_to_ns((ktime_t) { .tv64 = __entry->now }))
/linux-4.4.14/arch/powerpc/kvm/
Dtiming.c49 vcpu->arch.timing_exit.tv64 = 0; in kvmppc_init_timing_stats()
50 vcpu->arch.timing_last_enter.tv64 = 0; in kvmppc_init_timing_stats()
96 u64 enter = vcpu->arch.timing_last_enter.tv64; in kvmppc_update_timing_stats()
99 vcpu->arch.timing_last_exit = vcpu->arch.timing_exit.tv64; in kvmppc_update_timing_stats()
/linux-4.4.14/net/can/
Dbcm.c190 if (op->kt_ival1.tv64) in bcm_proc_show()
195 if (op->kt_ival2.tv64) in bcm_proc_show()
216 if (op->kt_ival1.tv64) in bcm_proc_show()
220 if (op->kt_ival2.tv64) in bcm_proc_show()
355 if (op->kt_ival1.tv64 && op->count) in bcm_tx_start_timer()
359 else if (op->kt_ival2.tv64) in bcm_tx_start_timer()
370 if (op->kt_ival1.tv64 && (op->count > 0)) { in bcm_tx_timeout_tsklet()
388 } else if (op->kt_ival2.tv64) in bcm_tx_timeout_tsklet()
449 if (!op->kt_ival2.tv64) { in bcm_rx_update_and_send()
460 if (!op->kt_lastmsg.tv64) in bcm_rx_update_and_send()
[all …]
Dgw.c432 nskb->tstamp.tv64 = 0; in can_can_gw_rcv()
/linux-4.4.14/drivers/usb/chipidea/
Dotg_fsm.c225 (ci->hr_timeouts[ci->next_otg_timer].tv64 > in ci_otg_add_timer()
226 ci->hr_timeouts[t].tv64)) { in ci_otg_add_timer()
260 (ci->hr_timeouts[next_timer].tv64 < in ci_otg_del_timer()
261 ci->hr_timeouts[cur_timer].tv64)) in ci_otg_del_timer()
381 if (now.tv64 >= ci->hr_timeouts[cur_timer].tv64) { in ci_otg_hrtimer_func()
387 (ci->hr_timeouts[cur_timer].tv64 < in ci_otg_hrtimer_func()
388 ci->hr_timeouts[next_timer].tv64)) in ci_otg_hrtimer_func()
/linux-4.4.14/include/net/
Dred.h210 return v->qidlestart.tv64 != 0; in red_is_idling()
220 v->qidlestart.tv64 = 0; in red_end_of_idle_period()
Dsock.h2151 (kt.tv64 && sk->sk_tsflags & SOF_TIMESTAMPING_SOFTWARE) || in sock_recv_timestamp()
2152 (hwtstamps->hwtstamp.tv64 && in sock_recv_timestamp()
/linux-4.4.14/drivers/usb/host/
Dehci-timer.c425 if (now.tv64 >= ehci->hr_timeouts[e].tv64) in ehci_hrtimer_func()
Dfotg210-hcd.c1384 if (now.tv64 >= fotg210->hr_timeouts[e].tv64) in fotg210_hrtimer_func()
/linux-4.4.14/net/netfilter/
Dxt_time.c171 if (skb->tstamp.tv64 == 0) in time_mt()
Dnfnetlink_queue.c334 if (entskb->tstamp.tv64) in nfqnl_build_packet_message()
502 if (entskb->tstamp.tv64) { in nfqnl_build_packet_message()
Dnfnetlink_log.c542 if (skb->tstamp.tv64) { in __build_packet_message()
Dnf_conntrack_core.c670 if (skb->tstamp.tv64 == 0) in __nf_conntrack_confirm()
/linux-4.4.14/Documentation/
Dgdb-kernel-debugging.txt128 tv64 = 1835268000000
132 tv64 = 1835268000000
/linux-4.4.14/drivers/base/power/
Dwakeup.c1003 if (active_time.tv64 > max_time.tv64) in print_wakeup_source_stats()
/linux-4.4.14/arch/powerpc/include/asm/
Dkvm_host.h166 u64 tv64; member
/linux-4.4.14/net/ipv6/
Dexthdrs.c229 if (skb->tstamp.tv64 == 0) in ipv6_dest_hao()
/linux-4.4.14/kernel/
Dfutex.c2339 restart->futex.time = abs_time->tv64; in futex_wait()
2360 t.tv64 = restart->futex.time; in futex_wait_restart()
Dsignal.c587 tsk->signal->it_real_incr.tv64 != 0) { in dequeue_signal()
/linux-4.4.14/fs/ocfs2/cluster/
Dheartbeat.c1108 before_hb.tv64, after_hb.tv64, elapsed_msec, ret); in o2hb_thread()
/linux-4.4.14/net/sched/
Dsch_netem.c649 skb->tstamp.tv64 = 0; in netem_dequeue()
/linux-4.4.14/net/ipv4/
Dtcp_output.c1022 skb->tstamp.tv64 = 0; in tcp_transmit_skb()
3034 skb->tstamp.tv64 = 0; in tcp_make_synack()
/linux-4.4.14/net/sunrpc/
Dsvcsock.c612 if (skb->tstamp.tv64 == 0) { in svc_udp_recvfrom()
/linux-4.4.14/net/ipx/
Daf_ipx.c1812 if (skb->tstamp.tv64) in ipx_recvmsg()
/linux-4.4.14/net/core/
Ddev.c1715 skb->tstamp.tv64 = 0; in net_timestamp_set()
1722 if ((COND) && !(SKB)->tstamp.tv64) \
Dskbuff.c4235 skb->tstamp.tv64 = 0; in skb_scrub_packet()
/linux-4.4.14/net/
Dsocket.c647 if (need_software_tstamp && skb->tstamp.tv64 == 0) in __sock_recv_timestamp()