| /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 | hrtimer.h | 97 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires() 103 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range() 109 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) in hrtimer_set_expires_range_ns() 115 static inline void hrtimer_add_expires(struct hrtimer *timer, ktime_t time) in hrtimer_add_expires() 127 static inline ktime_t hrtimer_get_expires(const struct hrtimer *timer) in hrtimer_get_expires() 132 static inline ktime_t hrtimer_get_softexpires(const struct hrtimer *timer) in hrtimer_get_softexpires() 142 ktime_t hrtimer_cb_get_time(const struct hrtimer *timer); 144 static inline ktime_t hrtimer_expires_remaining(const struct hrtimer *timer) in hrtimer_expires_remaining() 168 static inline ktime_t 169 __hrtimer_expires_remaining_adjusted(const struct hrtimer *timer, ktime_t now) in __hrtimer_expires_remaining_adjusted() [all …]
|
| H A D | alarmtimer.h | 39 void (*function)(struct alarm *, ktime_t now); 46 void (*function)(struct alarm *, ktime_t)); 47 void alarm_start(struct alarm *alarm, ktime_t start); 48 void alarm_start_relative(struct alarm *alarm, ktime_t start); 53 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval); 54 u64 alarm_forward_now(struct alarm *alarm, ktime_t interval); 55 ktime_t alarm_expires_remaining(const struct alarm *alarm);
|
| H A D | timekeeper_internal.h | 57 ktime_t base; 148 ktime_t offs_real; 149 ktime_t offs_boot; 151 ktime_t offs_tai; 152 ktime_t offs_aux; 176 ktime_t next_leap_ktime;
|
| H A D | time_namespace.h | 102 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim, 105 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host() 172 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host()
|
| 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()
|
| H A D | dma-fence.h | 89 ktime_t timestamp; 253 void (*set_deadline)(struct dma_fence *fence, ktime_t deadline); 371 void dma_fence_signal_timestamp(struct dma_fence *fence, ktime_t timestamp); 372 void dma_fence_signal_timestamp_locked(struct dma_fence *fence, ktime_t timestamp); 620 static inline ktime_t dma_fence_timestamp(struct dma_fence *fence) 666 void dma_fence_set_deadline(struct dma_fence *fence, ktime_t deadline); 669 struct dma_fence *dma_fence_allocate_private_stub(ktime_t timestamp);
|
| /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 | 160 ktime_t latency_sum; 161 ktime_t latency_avg; 162 ktime_t latency_sq_sum; 163 ktime_t latency_min; 164 ktime_t latency_max; 213 ktime_t r_start, ktime_t r_end, 217 ktime_t r_start, ktime_t r_end, in ceph_update_read_metrics() 224 ktime_t r_start, ktime_t r_end, in ceph_update_write_metrics() 231 ktime_t r_start, ktime_t r_end, in ceph_update_metadata_metrics() 238 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 delta; in alarmtimer_suspend() 312 void (*function)(struct alarm *, ktime_t)) in __alarm_init() argument 327 void (*function)(struct alarm *, ktime_t)) in alarm_init() argument 340 void alarm_start(struct alarm *alarm, ktime_t start) in alarm_start() 359 void alarm_start_relative(struct alarm *alarm, ktime_t start) in alarm_start_relative() [all …]
|
| H A D | hrtimer.c | 70 static ktime_t __hrtimer_cb_get_time(clockid_t clock_id); 200 ktime_t expires; in hrtimer_suitable_target() 324 s64 __ktime_divns(const ktime_t kt, s64 div) in __ktime_divns() 348 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() 350 ktime_t res = ktime_add_unsafe(lhs, rhs); in ktime_add_safe() 512 static ktime_t __hrtimer_next_event_base(struct hrtimer_cpu_base *cpu_base, in __hrtimer_next_event_base() 515 ktime_t expires_next) in __hrtimer_next_event_base() 518 ktime_t expires; in __hrtimer_next_event_base() 578 static ktime_t 583 ktime_t expires_next = KTIME_MAX; in __hrtimer_get_next_event() [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 | 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,
|
| H A D | timekeeping.h | 7 extern ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, 8 ktime_t *offs_real, 9 ktime_t *offs_boot, 10 ktime_t *offs_tai);
|
| H A D | tick-internal.h | 22 extern ktime_t tick_next_period; 62 ktime_t expires, bool force); 107 ktime_t nextevt); 108 extern int tick_program_event(ktime_t expires, int force); 121 ktime_t nextevt) { BUG(); } in tick_setup_oneshot() 123 static inline int tick_program_event(ktime_t expires, int force) { return 0; } in tick_program_event()
|
| /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/lib/ |
| H A D | find_bit_benchmark.c | 39 ktime_t time; in test_find_first_bit() 56 ktime_t time; in test_find_first_and_bit() 74 ktime_t time; in test_find_next_bit() 88 ktime_t time; in test_find_next_zero_bit() 102 ktime_t time; in test_find_last_bit() 121 ktime_t time; in test_find_nth_bit() 138 ktime_t time; in test_find_next_and_bit()
|
| /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/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | clock.h | 82 typedef ktime_t (*cqe_ts_to_ns)(struct mlx5_clock *, u64); 95 static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock, in mlx5_timecounter_cyc2time() 112 static inline ktime_t mlx5_real_time_cyc2time(struct mlx5_clock *clock, in mlx5_real_time_cyc2time() 129 static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock, in mlx5_timecounter_cyc2time() 135 static inline ktime_t mlx5_real_time_cyc2time(struct mlx5_clock *clock, in mlx5_real_time_cyc2time()
|
| /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 …]
|