Home
last modified time | relevance | path

Searched refs:ktime_t (Results 1 – 25 of 711) sorted by relevance

12345678910>>...29

/Linux-v6.6/include/linux/
Dktime.h29 typedef s64 ktime_t; typedef
38 static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs) in ktime_set()
71 static inline ktime_t timespec64_to_ktime(struct timespec64 ts) in timespec64_to_ktime()
80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns()
95 static inline int ktime_compare(const ktime_t cmp1, const ktime_t cmp2) in ktime_compare()
111 static inline bool ktime_after(const ktime_t cmp1, const ktime_t cmp2) in ktime_after()
123 static inline bool ktime_before(const ktime_t cmp1, const ktime_t cmp2) in ktime_before()
129 extern s64 __ktime_divns(const ktime_t kt, s64 div);
130 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns()
148 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns()
[all …]
Dtimekeeping.h67 extern ktime_t ktime_get(void);
68 extern ktime_t ktime_get_with_offset(enum tk_offsets offs);
69 extern ktime_t ktime_get_coarse_with_offset(enum tk_offsets offs);
70 extern ktime_t ktime_mono_to_any(ktime_t tmono, enum tk_offsets offs);
71 extern ktime_t ktime_get_raw(void);
77 static inline ktime_t ktime_get_real(void) in ktime_get_real()
82 static inline ktime_t ktime_get_coarse_real(void) in ktime_get_coarse_real()
93 static inline ktime_t ktime_get_boottime(void) in ktime_get_boottime()
98 static inline ktime_t ktime_get_coarse_boottime(void) in ktime_get_coarse_boottime()
106 static inline ktime_t ktime_get_clocktai(void) in ktime_get_clocktai()
[all …]
Dhrtimer.h120 ktime_t _softexpires;
166 ktime_t (*get_time)(void);
167 ktime_t offset;
233 ktime_t expires_next;
235 ktime_t softirq_expires_next;
240 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires()
246 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range()
252 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) in hrtimer_set_expires_range_ns()
264 static inline void hrtimer_add_expires(struct hrtimer *timer, ktime_t time) in hrtimer_add_expires()
276 static inline ktime_t hrtimer_get_expires(const struct hrtimer *timer) in hrtimer_get_expires()
[all …]
Dalarmtimer.h45 enum alarmtimer_restart (*function)(struct alarm *, ktime_t now);
52 enum alarmtimer_restart (*function)(struct alarm *, ktime_t));
53 void alarm_start(struct alarm *alarm, ktime_t start);
54 void alarm_start_relative(struct alarm *alarm, ktime_t start);
59 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);
60 u64 alarm_forward_now(struct alarm *alarm, ktime_t interval);
61 ktime_t alarm_expires_remaining(const struct alarm *alarm);
Dtimekeeper_internal.h41 ktime_t base;
98 ktime_t offs_real;
99 ktime_t offs_boot;
100 ktime_t offs_tai;
104 ktime_t next_leap_ktime;
Dtime_namespace.h93 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim,
96 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host()
159 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host()
Ddma-fence.h87 ktime_t timestamp;
279 void (*set_deadline)(struct dma_fence *fence, ktime_t deadline);
392 int dma_fence_signal_timestamp(struct dma_fence *fence, ktime_t timestamp);
394 ktime_t timestamp);
579 static inline ktime_t dma_fence_timestamp(struct dma_fence *fence) in dma_fence_timestamp()
625 void dma_fence_set_deadline(struct dma_fence *fence, ktime_t deadline);
628 struct dma_fence *dma_fence_allocate_private_stub(ktime_t timestamp);
/Linux-v6.6/fs/ocfs2/cluster/
Dtcp_internal.h159 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-v6.6/fs/ceph/
Dmetric.h160 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-v6.6/kernel/time/
Dtick-sched.h72 ktime_t last_tick;
73 ktime_t next_tick;
75 ktime_t idle_waketime;
79 ktime_t idle_entrytime;
87 ktime_t idle_expires;
92 ktime_t idle_exittime;
93 ktime_t idle_sleeptime;
94 ktime_t iowait_sleeptime;
Dalarmtimer.c47 ktime_t (*get_ktime)(void);
55 static ktime_t freezer_expires;
56 static ktime_t freezer_delta;
224 ktime_t alarm_expires_remaining(const struct alarm *alarm) in alarm_expires_remaining()
243 ktime_t min, now, expires; in alarmtimer_suspend()
265 ktime_t delta; in alarmtimer_suspend()
326 enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) in __alarm_init() argument
342 enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) in alarm_init() argument
355 void alarm_start(struct alarm *alarm, ktime_t start) in alarm_start()
375 void alarm_start_relative(struct alarm *alarm, ktime_t start) in alarm_start_relative()
[all …]
Dtick-sched.c52 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()
157 static ktime_t tick_init_jiffy_update(void) in tick_init_jiffy_update()
159 ktime_t period; in tick_init_jiffy_update()
185 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer()
648 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies()
661 static void tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) in tick_nohz_stop_idle()
663 ktime_t delta; in tick_nohz_stop_idle()
693 static u64 get_cpu_sleep_time_us(struct tick_sched *ts, ktime_t *sleeptime, in get_cpu_sleep_time_us()
[all …]
Dhrtimer.c196 ktime_t expires; in hrtimer_check_target()
305 s64 __ktime_divns(const ktime_t kt, s64 div) in __ktime_divns()
329 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe()
331 ktime_t res = ktime_add_unsafe(lhs, rhs); in ktime_add_safe()
504 static ktime_t __hrtimer_next_event_base(struct hrtimer_cpu_base *cpu_base, in __hrtimer_next_event_base()
507 ktime_t expires_next) in __hrtimer_next_event_base()
510 ktime_t expires; in __hrtimer_next_event_base()
570 static ktime_t
575 ktime_t expires_next = KTIME_MAX; in __hrtimer_get_next_event()
596 static ktime_t hrtimer_update_next_event(struct hrtimer_cpu_base *cpu_base) in hrtimer_update_next_event()
[all …]
Dtimekeeping.h7 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);
Dposix-timers.h13 ktime_t (*clock_get_ktime)(const clockid_t which_clock);
25 s64 (*timer_forward)(struct k_itimer *timr, ktime_t now);
26 ktime_t (*timer_remaining)(struct k_itimer *timr, ktime_t now);
28 void (*timer_arm)(struct k_itimer *timr, ktime_t expires,
Dtick-internal.h17 extern ktime_t tick_next_period;
56 ktime_t expires, bool force);
102 ktime_t nextevt);
103 extern int tick_program_event(ktime_t expires, int force);
116 ktime_t nextevt) { BUG(); } in tick_setup_oneshot()
118 static inline int tick_program_event(ktime_t expires, int force) { return 0; } in tick_program_event()
/Linux-v6.6/include/drm/
Ddrm_vblank.h131 ktime_t time;
232 ktime_t *vblanktime);
233 int drm_crtc_next_vblank_start(struct drm_crtc *crtc, ktime_t *vblanktime);
240 ktime_t *now);
266 ktime_t *stime,
267 ktime_t *etime,
273 ktime_t *vblank_time,
278 ktime_t *vblank_time,
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.h54 typedef ktime_t (*cqe_ts_to_ns)(struct mlx5_clock *, u64);
65 static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock, in mlx5_timecounter_cyc2time()
82 static inline ktime_t mlx5_real_time_cyc2time(struct mlx5_clock *clock, in mlx5_real_time_cyc2time()
97 static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock, in mlx5_timecounter_cyc2time()
103 static inline ktime_t mlx5_real_time_cyc2time(struct mlx5_clock *clock, in mlx5_real_time_cyc2time()
/Linux-v6.6/include/trace/events/
Dalarmtimer.h25 TP_PROTO(ktime_t expires, int flag),
47 TP_PROTO(struct alarm *alarm, ktime_t now),
75 TP_PROTO(struct alarm *alarm, ktime_t now),
82 TP_PROTO(struct alarm *alarm, ktime_t now),
89 TP_PROTO(struct alarm *alarm, ktime_t now),
/Linux-v6.6/lib/
Dfind_bit_benchmark.c39 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-v6.6/drivers/gpu/drm/i915/gvt/
Dsched_policy.c58 ktime_t pri_time;
59 ktime_t sched_in_time;
60 ktime_t sched_time;
61 ktime_t left_ts;
62 ktime_t allocated_ts;
72 ktime_t expire_time;
75 static void vgpu_update_timeslice(struct intel_vgpu *vgpu, ktime_t cur_time) in vgpu_update_timeslice()
77 ktime_t delta_ts; in vgpu_update_timeslice()
105 ktime_t fair_timeslice; in gvt_balance_timeslice()
138 ktime_t cur_time; in try_to_schedule_next_vgpu()
[all …]
/Linux-v6.6/net/dccp/ccids/
Dccid3.h94 ktime_t tx_t_last_win_count;
97 ktime_t tx_t_ld;
98 ktime_t tx_t_nom;
134 ktime_t rx_tstamp_last_feedback;
/Linux-v6.6/drivers/base/power/
Ddomain_governor.c123 static void update_domain_next_wakeup(struct generic_pm_domain *genpd, ktime_t now) in update_domain_next_wakeup()
125 ktime_t domain_wakeup = KTIME_MAX; in update_domain_next_wakeup()
126 ktime_t next_wakeup; in update_domain_next_wakeup()
161 unsigned int state, ktime_t now) in next_wakeup_allows_state()
163 ktime_t domain_wakeup = genpd->gd->next_wakeup; in next_wakeup_allows_state()
265 static bool _default_power_down_ok(struct dev_pm_domain *pd, ktime_t now) in _default_power_down_ok()
346 ktime_t domain_wakeup, next_hrtimer; in cpu_power_down_ok()
347 ktime_t now = ktime_get(); in cpu_power_down_ok()
/Linux-v6.6/drivers/gpu/drm/lima/
Dlima_devfreq.h21 ktime_t busy_time;
22 ktime_t idle_time;
23 ktime_t time_last_update;
/Linux-v6.6/drivers/gpu/drm/panfrost/
Dpanfrost_devfreq.h22 ktime_t busy_time;
23 ktime_t idle_time;
24 ktime_t time_last_update;

12345678910>>...29