| /linux/include/linux/ |
| H A D | ktime.h | 36 static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs) in ktime_set() 69 static inline ktime_t timespec64_to_ktime(struct timespec64 ts) in timespec64_to_ktime() 78 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() 93 static inline int ktime_compare(const ktime_t cmp1, const ktime_t cmp2) in ktime_compare() 109 static inline bool ktime_after(const ktime_t cmp1, const ktime_t cmp2) in ktime_after() 121 static inline bool ktime_before(const ktime_t cmp1, const ktime_t cmp2) in ktime_before() 127 extern s64 __ktime_divns(const ktime_t kt, s64 div); 128 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() 146 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() 157 static inline s64 ktime_to_us(const ktime_t kt) in ktime_to_us() [all …]
|
| H A D | timekeeping.h | 74 extern ktime_t ktime_get(void); 75 extern ktime_t ktime_get_with_offset(enum tk_offsets offs); 76 extern ktime_t ktime_get_coarse_with_offset(enum tk_offsets offs); 77 extern ktime_t ktime_mono_to_any(ktime_t tmono, enum tk_offsets offs); 78 extern ktime_t ktime_get_raw(void); 86 static inline ktime_t ktime_get_real(void) in ktime_get_real() 91 static inline ktime_t ktime_get_coarse_real(void) in ktime_get_coarse_real() 104 static inline ktime_t ktime_get_boottime(void) in ktime_get_boottime() 109 static inline ktime_t ktime_get_coarse_boottime(void) in ktime_get_coarse_boottime() 119 static inline ktime_t ktime_get_clocktai(void) in ktime_get_clocktai() [all …]
|
| H A D | rtc.h | 26 ktime_t rtc_tm_to_ktime(struct rtc_time tm); 27 struct rtc_time rtc_ktime_to_tm(ktime_t kt); 77 ktime_t period; 218 ktime_t expires, ktime_t period); 236 static inline ktime_t rtc_bound_alarmtime(struct rtc_device *rtc, in rtc_bound_alarmtime() 237 ktime_t requested) in rtc_bound_alarmtime()
|
| /linux/fs/ocfs2/cluster/ |
| H A D | tcp_internal.h | 159 ktime_t sc_tv_timer; 160 ktime_t sc_tv_data_ready; 161 ktime_t sc_tv_advance_start; 162 ktime_t sc_tv_advance_stop; 163 ktime_t sc_tv_func_start; 164 ktime_t sc_tv_func_stop; 167 ktime_t sc_tv_acquiry_total; 168 ktime_t sc_tv_send_total; 169 ktime_t sc_tv_status_total; 172 ktime_t sc_tv_process_total; [all …]
|
| /linux/fs/ceph/ |
| H A D | metric.h | 197 ktime_t latency_sum; 198 ktime_t latency_avg; 199 ktime_t latency_sq_sum; 200 ktime_t latency_min; 201 ktime_t latency_max; 250 ktime_t r_start, ktime_t r_end, 254 ktime_t r_start, ktime_t r_end, in ceph_update_read_metrics() 261 ktime_t r_start, ktime_t r_end, in ceph_update_write_metrics() 268 ktime_t r_start, ktime_t r_end, in ceph_update_metadata_metrics() 275 ktime_t r_start, ktime_t r_end, in ceph_update_copyfrom_metrics()
|
| /linux/kernel/time/ |
| H A D | tick-sched.h | 74 ktime_t last_tick; 75 ktime_t next_tick; 77 ktime_t idle_waketime; 82 ktime_t idle_entrytime; 89 ktime_t idle_expires; 94 ktime_t idle_exittime; 95 ktime_t idle_sleeptime; 96 ktime_t iowait_sleeptime;
|
| H A D | alarmtimer.c | 47 ktime_t (*get_ktime)(void); 55 static ktime_t freezer_expires; 56 static ktime_t freezer_delta; 201 ktime_t alarm_expires_remaining(const struct alarm *alarm) in alarm_expires_remaining() 220 ktime_t min, now, expires; in alarmtimer_suspend() 241 ktime_t next_expires; in alarmtimer_suspend() 242 ktime_t delta; in alarmtimer_suspend() 316 void (*function)(struct alarm *, ktime_t)) in __alarm_init() argument 331 void (*function)(struct alarm *, ktime_t)) in alarm_init() argument 344 void alarm_start(struct alarm *alarm, ktime_t start) in alarm_start() [all …]
|
| H A D | tick-sched.c | 52 static ktime_t last_jiffies_update; 57 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() 60 ktime_t delta, nextp; in tick_do_update_jiffies64() 155 static ktime_t tick_init_jiffy_update(void) in tick_init_jiffy_update() 157 ktime_t period; in tick_init_jiffy_update() 210 static bool tick_limited_update_jiffies64(struct tick_sched *ts, ktime_t now) in tick_limited_update_jiffies64() 227 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() 310 ktime_t now = ktime_get(); in tick_nohz_handler() 741 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() 754 static void tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) in tick_nohz_stop_idle() [all …]
|
| H A D | hrtimer.c | 92 static ktime_t __hrtimer_cb_get_time(clockid_t clock_id); 219 ktime_t expires; in hrtimer_suitable_target() 339 s64 __ktime_divns(const ktime_t kt, s64 div) in __ktime_divns() 363 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() 365 ktime_t res = ktime_add_unsafe(lhs, rhs); in ktime_add_safe() 544 static ktime_t hrtimer_bases_next_event_without(struct hrtimer_cpu_base *cpu_base, in hrtimer_bases_next_event_without() 546 unsigned int active, ktime_t expires_next) in hrtimer_bases_next_event_without() 549 ktime_t expires; in hrtimer_bases_next_event_without() 588 ktime_t *expires_next, struct hrtimer **next_timer) in hrtimer_bases_first() 591 ktime_t expires; in hrtimer_bases_first() [all …]
|
| H A D | posix-timers.h | 19 ktime_t (*clock_get_ktime)(const clockid_t which_clock); 31 s64 (*timer_forward)(struct k_itimer *timr, ktime_t now); 32 ktime_t (*timer_remaining)(struct k_itimer *timr, ktime_t now); 34 void (*timer_arm)(struct k_itimer *timr, ktime_t expires,
|
| /linux/net/rxrpc/ |
| H A D | input_rack.c | 12 static bool rxrpc_rack_sent_after(ktime_t t1, rxrpc_seq_t seq1, in rxrpc_rack_sent_after() 13 ktime_t t2, rxrpc_seq_t seq2) in rxrpc_rack_sent_after() 38 static ktime_t rxrpc_get_xmit_ts(const struct rxrpc_txqueue *tq, unsigned int ix) in rxrpc_get_xmit_ts() 68 ktime_t xmit_ts = rxrpc_get_xmit_ts(tq, ix); in rxrpc_rack_update() 69 ktime_t rtt = ktime_sub(call->acks_latest_ts, xmit_ts); in rxrpc_rack_update() 156 static ktime_t rxrpc_rack_update_reo_wnd(struct rxrpc_call *call, in rxrpc_rack_update_reo_wnd() 197 static ktime_t rxrpc_rack_detect_loss(struct rxrpc_call *call, in rxrpc_rack_detect_loss() 201 ktime_t timeout = 0, lost_after, now = ktime_get_real(); in rxrpc_rack_detect_loss() 220 ktime_t remaining; in rxrpc_rack_detect_loss() 221 ktime_t xmit_ts = rxrpc_get_xmit_ts(tq, ix); in rxrpc_rack_detect_loss() [all …]
|
| H A D | ar-internal.h | 705 ktime_t delay_ack_at; /* When DELAY ACK needs to happen */ 706 ktime_t rack_timo_at; /* When ACK is figured as lost */ 707 ktime_t ping_at; /* When next to send a ping */ 708 ktime_t keepalive_at; /* When next to send a keepalive ping */ 709 ktime_t expect_rx_by; /* When we expect to get a packet by */ 710 ktime_t expect_req_by; /* When we expect to get a request DATA packet by */ 711 ktime_t expect_term_by; /* When we expect call termination by */ 771 ktime_t tx_last_sent; /* Last time a transmission occurred */ 795 ktime_t cong_tstamp; /* Last time cwnd was changed */ 798 ktime_t rack_xmit_ts; /* Latest transmission timestamp */ [all …]
|
| /linux/rust/helpers/ |
| H A D | time.c | 12 __rust_helper ktime_t rust_helper_ktime_get_real(void) in rust_helper_ktime_get_real() 17 __rust_helper ktime_t rust_helper_ktime_get_boottime(void) in rust_helper_ktime_get_boottime() 22 __rust_helper ktime_t rust_helper_ktime_get_clocktai(void) in rust_helper_ktime_get_clocktai() 27 __rust_helper s64 rust_helper_ktime_to_us(const ktime_t kt) in rust_helper_ktime_to_us() 32 __rust_helper s64 rust_helper_ktime_to_ms(const ktime_t kt) in rust_helper_ktime_to_ms()
|
| /linux/include/trace/events/ |
| H A D | alarmtimer.h | 26 TP_PROTO(ktime_t expires, int flag), 49 TP_PROTO(struct alarm *alarm, ktime_t now), 77 TP_PROTO(struct alarm *alarm, ktime_t now), 84 TP_PROTO(struct alarm *alarm, ktime_t now), 91 TP_PROTO(struct alarm *alarm, ktime_t now),
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | sched_policy.c | 59 ktime_t pri_time; 60 ktime_t sched_in_time; 61 ktime_t sched_time; 62 ktime_t left_ts; 63 ktime_t allocated_ts; 73 ktime_t expire_time; 76 static void vgpu_update_timeslice(struct intel_vgpu *vgpu, ktime_t cur_time) in vgpu_update_timeslice() 78 ktime_t delta_ts; in vgpu_update_timeslice() 106 ktime_t fair_timeslice; in gvt_balance_timeslice() 139 ktime_t cur_time; in try_to_schedule_next_vgpu() [all …]
|
| /linux/net/dccp/ccids/ |
| H A D | ccid3.h | |
| /linux/drivers/md/dm-vdo/ |
| H A D | time-utils.h | 13 static inline s64 ktime_to_seconds(ktime_t reltime) in ktime_to_seconds() 18 static inline ktime_t current_time_ns(clockid_t clock) in current_time_ns() 23 static inline ktime_t current_time_us(void) in current_time_us()
|
| /linux/drivers/base/power/ |
| H A D | wakeup_stats.c | 43 ktime_t active_time = in active_time_ms_show() 54 ktime_t active_time; in total_time_ms_show() 55 ktime_t total_time = ws->total_time; in total_time_ms_show() 70 ktime_t active_time; in max_time_ms_show() 71 ktime_t max_time = ws->max_time; in max_time_ms_show() 106 ktime_t prevent_sleep_time = ws->prevent_sleep_time; in prevent_suspend_time_ms_show()
|
| /linux/drivers/thermal/ |
| H A D | thermal_debugfs.c | 59 ktime_t timestamp; 81 ktime_t residency; 101 ktime_t timestamp; 102 ktime_t duration; 127 ktime_t timestamp; 128 ktime_t duration; 435 ktime_t now = ktime_get(); in thermal_debug_cdev_state_update() 436 ktime_t delta = ktime_sub(now, cdev_dbg->timestamp); in thermal_debug_cdev_state_update() 557 ktime_t now) in thermal_debugfs_tz_event_alloc() 584 ktime_t now = ktime_get(); in thermal_debug_tz_trip_up() [all …]
|
| /linux/Documentation/core-api/ |
| H A D | timekeeping.rst | 9 Basic ktime_t based interfaces 12 The recommended simplest form returns an opaque ktime_t, with variants 16 .. c:function:: ktime_t ktime_get( void ) 23 .. c:function:: ktime_t ktime_get_boottime( void ) 31 .. c:function:: ktime_t ktime_get_real( void ) 43 .. c:function:: ktime_t ktime_get_clocktai( void ) 51 .. c:function:: ktime_t ktime_get_raw( void ) 102 .. c:function:: ktime_t ktime_get_coarse( void ) 103 ktime_t ktime_get_coarse_boottime( void ) 104 ktime_t ktime_get_coarse_real( void ) [all …]
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_devfreq.h | 21 ktime_t busy_time; 22 ktime_t idle_time; 23 ktime_t time_last_update;
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_devfreq.h | 25 ktime_t busy_time; 26 ktime_t idle_time; 27 ktime_t time_last_update;
|
| /linux/drivers/net/can/softing/ |
| H A D | softing.h | 42 ktime_t ts_ref; 43 ktime_t ts_overflow; /* timestamp overflow value, in ktime */ 77 ktime_t softing_raw2ktime(struct softing *card, u32 raw); 102 ktime_t ktime);
|
| /linux/net/sched/ |
| H A D | sch_taprio.c | 61 ktime_t gate_close_time[TC_MAX_QUEUE]; 64 ktime_t end_time; 65 ktime_t next_txtime; 82 ktime_t cycle_end_time; 164 static bool taprio_entry_allows_tx(ktime_t skb_end_time, in taprio_entry_allows_tx() 170 static ktime_t sched_base_time(const struct sched_gate_list *sched) in sched_base_time() 178 static ktime_t taprio_mono_to_any(const struct taprio_sched *q, ktime_t mono) in taprio_mono_to_any() 191 static ktime_t taprio_get_time(const struct taprio_sched *q) in taprio_get_time() 224 static s32 get_cycle_time_elapsed(struct sched_gate_list *sched, ktime_t time) in get_cycle_time_elapsed() 226 ktime_t time_since_sched_start; in get_cycle_time_elapsed() [all …]
|
| /linux/drivers/watchdog/ |
| H A D | watchdog_core.h | 51 ktime_t last_keepalive; 52 ktime_t last_hw_keepalive; 53 ktime_t open_deadline;
|