| /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 | 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; 220 ktime_t expires, ktime_t period); 238 static inline ktime_t rtc_bound_alarmtime(struct rtc_device *rtc, in rtc_bound_alarmtime() 239 ktime_t requested) in rtc_bound_alarmtime()
|
| H A D | dma-fence.h | 95 ktime_t timestamp; 278 void (*set_deadline)(struct dma_fence *fence, ktime_t deadline); 448 void dma_fence_signal_timestamp(struct dma_fence *fence, ktime_t timestamp); 449 void dma_fence_signal_timestamp_locked(struct dma_fence *fence, ktime_t timestamp); 709 static inline ktime_t dma_fence_timestamp(struct dma_fence *fence) in dma_fence_timestamp() 755 void dma_fence_set_deadline(struct dma_fence *fence, ktime_t deadline); 758 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 | 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/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 | 725 ktime_t delay_ack_at; /* When DELAY ACK needs to happen */ 726 ktime_t rack_timo_at; /* When ACK is figured as lost */ 727 ktime_t ping_at; /* When next to send a ping */ 728 ktime_t keepalive_at; /* When next to send a keepalive ping */ 729 ktime_t expect_rx_by; /* When we expect to get a packet by */ 730 ktime_t expect_req_by; /* When we expect to get a request DATA packet by */ 731 ktime_t expect_term_by; /* When we expect call termination by */ 791 ktime_t tx_last_sent; /* Last time a transmission occurred */ 820 ktime_t cong_tstamp; /* Last time cwnd was changed */ 823 ktime_t rack_xmit_ts; /* Latest transmission timestamp */ [all …]
|
| /linux/drivers/gpu/drm/scheduler/ |
| H A D | sched_rq.c | 67 ktime_t ts) in drm_sched_rq_update_fifo_locked() 123 static ktime_t 126 ktime_t vruntime = 0; in drm_sched_rq_get_min_vruntime() 147 ktime_t min_vruntime) in drm_sched_entity_save_vruntime() 150 ktime_t vruntime; in drm_sched_entity_save_vruntime() 162 static ktime_t 164 ktime_t min_vruntime, in drm_sched_entity_restore_vruntime() 171 ktime_t vruntime; in drm_sched_entity_restore_vruntime() 224 static ktime_t drm_sched_entity_update_vruntime(struct drm_sched_entity *entity) in drm_sched_entity_update_vruntime() 227 ktime_t runtime, prev; in drm_sched_entity_update_vruntime() [all …]
|
| /linux/kernel/time/ |
| H A D | hrtimer.c | 93 static ktime_t __hrtimer_cb_get_time(clockid_t clock_id); 220 ktime_t expires; in hrtimer_suitable_target() 340 s64 __ktime_divns(const ktime_t kt, s64 div) in __ktime_divns() 364 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() 366 ktime_t res = ktime_add_unsafe(lhs, rhs); in ktime_add_safe() 545 static ktime_t hrtimer_bases_next_event_without(struct hrtimer_cpu_base *cpu_base, in hrtimer_bases_next_event_without() 547 unsigned int active, ktime_t expires_next) in hrtimer_bases_next_event_without() 550 ktime_t expires; in hrtimer_bases_next_event_without() 589 ktime_t *expires_next, struct hrtimer **next_timer) in hrtimer_bases_first() 592 ktime_t expires; in hrtimer_bases_first() [all …]
|
| H A D | tick-internal.h | 23 extern ktime_t tick_next_period; 65 ktime_t expires, bool force); 110 ktime_t nextevt); 111 extern int tick_program_event(ktime_t expires, int force); 124 ktime_t nextevt) { BUG(); } in tick_setup_oneshot() 126 static inline int tick_program_event(ktime_t expires, int force) { return 0; } in tick_program_event()
|
| /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() 59 ktime_t time; in test_find_first_and_bit() 77 ktime_t time; in test_find_next_bit() 91 ktime_t time; in test_find_next_zero_bit() 105 ktime_t time; in test_find_last_bit() 124 ktime_t time; in test_find_nth_bit() 141 ktime_t time; in test_find_next_and_bit() 156 ktime_t time; in test_bitmap_find_next_zero_area_off()
|
| /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/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/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/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/drivers/watchdog/ |
| H A D | watchdog_core.h | 51 ktime_t last_keepalive; 52 ktime_t last_hw_keepalive; 53 ktime_t open_deadline;
|
| /linux/drivers/media/cec/usb/extron-da-hd-4k-plus/ |
| H A D | cec-splitter.h | 20 ktime_t lost_sink_ts; 22 ktime_t out_request_current_latency_ts; 25 ktime_t out_give_device_power_status_ts;
|
| /linux/kernel/ |
| H A D | torture.c | 91 int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, const enum hrtimer_mode mode, in torture_hrtimeout_ns() 94 ktime_t hto = baset_ns; in torture_hrtimeout_ns() 109 ktime_t baset_ns = baset_us * NSEC_PER_USEC; in torture_hrtimeout_us() 121 ktime_t baset_ns = baset_ms * NSEC_PER_MSEC; in torture_hrtimeout_ms() 139 ktime_t baset_ns = jiffies_to_nsecs(baset_j); in torture_hrtimeout_jiffies() 151 ktime_t baset_ns = baset_s * NSEC_PER_SEC; in torture_hrtimeout_s() 618 static ktime_t shutdown_time; /* time to system shutdown. */ 641 ktime_t ktime_snap; in torture_shutdown() 731 static ktime_t stutter_till_abs_time; 742 ktime_t till_ns; in stutter_wait() [all …]
|