/Linux-v6.1/drivers/base/power/ |
D | wakeup_stats.c | 43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show() 57 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show() 73 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show() 109 ktime_sub(ktime_get(), ws->start_prevent_time)); in prevent_suspend_time_ms_show()
|
D | domain_governor.c | 169 idle_time_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in next_wakeup_allows_state() 374 idle_duration_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in cpu_power_down_ok()
|
D | wakeup.c | 652 ktime_t delta = ktime_sub(now, ws->start_prevent_time); in update_prevent_sleep_time() 692 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate() 1075 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats() 1082 ktime_sub(now, ws->start_prevent_time)); in print_wakeup_source_stats()
|
/Linux-v6.1/include/linux/ |
D | ktime.h | 47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) macro 171 return ktime_to_us(ktime_sub(later, earlier)); in ktime_us_delta() 176 return ktime_to_ms(ktime_sub(later, earlier)); in ktime_ms_delta()
|
D | hrtimer.h | 302 return ktime_sub(timer->node.expires, timer->base->get_time()); in hrtimer_expires_remaining() 332 ktime_t rem = ktime_sub(timer->node.expires, now); in __hrtimer_expires_remaining_adjusted() 431 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
|
/Linux-v6.1/drivers/gpu/drm/i915/gt/ |
D | selftest_engine_pm.c | 282 de = ktime_sub(intel_engine_get_busy_time(engine, &t[1]), de); in live_engine_busy_stats() 284 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats() 321 de = ktime_sub(intel_engine_get_busy_time(engine, &t[1]), de); in live_engine_busy_stats() 323 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats()
|
D | selftest_rc6.c | 67 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual() 95 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual()
|
D | intel_engine_stats.h | 55 ktime_sub(ktime_get(), stats->start)); in intel_engine_context_out()
|
D | selftest_timeline.c | 315 kt = ktime_sub(ktime_get(), kt); in bench_sync() 331 kt = ktime_sub(ktime_get(), kt); in bench_sync() 349 kt = ktime_sub(ktime_get(), kt); in bench_sync() 366 kt = ktime_sub(ktime_get(), kt); in bench_sync() 380 kt = ktime_sub(ktime_get(), kt); in bench_sync() 403 kt = ktime_sub(ktime_get(), kt); in bench_sync() 432 kt = ktime_sub(ktime_get(), kt); in bench_sync()
|
D | intel_gt_pm.c | 61 ktime_sub(ktime_get(), gt->stats.start)); in runtime_end() 397 ktime_sub(ktime_get(), gt->stats.start)); in __intel_gt_get_awake_time()
|
/Linux-v6.1/kernel/time/ |
D | alarmtimer.c | 228 return ktime_sub(alarm->node.expires, base->get_ktime()); in alarm_expires_remaining() 273 delta = ktime_sub(next->expires, base->get_ktime()); in alarmtimer_suspend() 446 delta = ktime_sub(now, alarm->node.expires); in alarm_forward() 503 delta = ktime_sub(absexp, base->get_ktime()); in alarmtimer_freezerset() 599 return ktime_sub(alarm->node.expires, now); in alarm_timer_remaining() 774 rem = ktime_sub(absexp, alarm_bases[type].get_ktime()); in alarmtimer_do_nsleep()
|
D | tick-sched.c | 103 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64() 649 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats() 705 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_idle_time_us() 746 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_iowait_time_us() 1233 *delta_next = ktime_sub(dev->next_event, now); in tick_nohz_get_sleep_length() 1249 return ktime_sub(next_event, now); in tick_nohz_get_sleep_length()
|
/Linux-v6.1/drivers/isdn/mISDN/ |
D | clock.c | 165 delta = ktime_divns(ktime_sub(timestamp_now, iclock_timestamp), in mISDN_clock_update() 190 delta = ktime_divns(ktime_sub(timestamp_now, iclock_timestamp), in mISDN_clock_get()
|
/Linux-v6.1/drivers/gpu/drm/lima/ |
D | lima_devfreq.c | 27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 29 devfreq->idle_time += ktime_sub(now, last); in lima_devfreq_update_utilization()
|
/Linux-v6.1/drivers/media/rc/ |
D | gpio-ir-tx.c | 129 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated() 135 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
|
/Linux-v6.1/drivers/gpu/drm/panfrost/ |
D | panfrost_devfreq.c | 21 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization() 23 pfdevfreq->idle_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
|
/Linux-v6.1/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_integ.c | 42 if (ktime_to_ms(ktime_sub(ktime_get(), start)) > in cxd2880_integ_init()
|
/Linux-v6.1/drivers/input/joystick/ |
D | analog.c | 197 if ((last ^ this) && (ktime_sub(now, loop) < loopout)) { in analog_cooked_read() 203 } while (this && (i < 4) && (ktime_sub(now, start) < timeout)); in analog_cooked_read() 211 port->axes[j] = ((u32)ktime_sub(time[i], start) << ANALOG_FUZZ_BITS) / port->loop; in analog_cooked_read() 326 t = ktime_sub(t2, t1) - ktime_sub(t3, t2); in analog_calibrate_timer()
|
/Linux-v6.1/drivers/infiniband/hw/hfi1/ |
D | aspm.c | 146 close_interrupts = ktime_to_ns(ktime_sub(now, prev)) < ASPM_TRIGGER_NS; in __aspm_ctx_disable() 149 restart_timer = ktime_to_ns(ktime_sub(now, rcd->aspm_ts_timer_sched)) > in __aspm_ctx_disable()
|
/Linux-v6.1/net/rxrpc/ |
D | call_event.c | 210 ktime_to_ns(ktime_sub(skb->tstamp, max_age))); in rxrpc_resend() 213 resend_at = nsecs_to_jiffies(ktime_to_ns(ktime_sub(now, oldest))); in rxrpc_resend() 228 ack_ts = ktime_sub(now, call->acks_latest_ts); in rxrpc_resend()
|
/Linux-v6.1/fs/ocfs2/cluster/ |
D | netdebug.c | 121 sock = ktime_to_us(ktime_sub(now, nst->st_sock_time)); in nst_seq_show() 122 send = ktime_to_us(ktime_sub(now, nst->st_send_time)); in nst_seq_show() 123 status = ktime_to_us(ktime_sub(now, nst->st_status_time)); in nst_seq_show()
|
/Linux-v6.1/samples/kprobes/ |
D | kretprobe_example.c | 65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|
/Linux-v6.1/drivers/watchdog/ |
D | watchdog_dev.c | 121 last_heartbeat = ktime_sub(virt_timeout, ms_to_ktime(hw_heartbeat_ms)); in watchdog_next_keepalive() 122 latest_heartbeat = ktime_sub(last_heartbeat, ktime_get()); in watchdog_next_keepalive() 155 ktime_sub(earliest_keepalive, now), in __watchdog_ping() 1072 wd_data->last_hw_keepalive = ktime_sub(ktime_get(), 1); in watchdog_cdev_register() 1192 wd_data->last_hw_keepalive = ktime_sub(now, ms_to_ktime(last_ping_ms)); in watchdog_set_last_hw_keepalive()
|
/Linux-v6.1/drivers/gpu/drm/i915/selftests/ |
D | i915_request.c | 601 times[1] = ktime_sub(ktime_get_raw(), times[1]); in live_nop_request() 1065 times[1] = ktime_sub(ktime_get_raw(), times[1]); in live_empty_request() 2849 p->busy = ktime_sub(intel_engine_get_busy_time(p->engine, in perf_series_engines() 2854 p->time = ktime_sub(now, p->time); in perf_series_engines() 2948 p->busy = ktime_sub(intel_engine_get_busy_time(engine, &now), in p_sync0() 2950 p->time = ktime_sub(now, p->time); in p_sync0() 2952 p->time = ktime_sub(ktime_get(), p->time); in p_sync0() 3021 p->busy = ktime_sub(intel_engine_get_busy_time(engine, &now), in p_sync1() 3023 p->time = ktime_sub(now, p->time); in p_sync1() 3025 p->time = ktime_sub(ktime_get(), p->time); in p_sync1() [all …]
|
/Linux-v6.1/drivers/gpu/drm/sti/ |
D | sti_plane.c | 64 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); in sti_plane_update_fps()
|