/linux-6.6.21/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 | 647 ktime_t delta = ktime_sub(now, ws->start_prevent_time); in update_prevent_sleep_time() 687 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate() 1070 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats() 1077 ktime_sub(now, ws->start_prevent_time)); in print_wakeup_source_stats()
|
/linux-6.6.21/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 | 304 return ktime_sub(timer->node.expires, timer->base->get_time()); in hrtimer_expires_remaining() 334 ktime_t rem = ktime_sub(timer->node.expires, now); in __hrtimer_expires_remaining_adjusted() 433 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | selftest_engine_pm.c | 283 de = ktime_sub(intel_engine_get_busy_time(engine, &t[1]), de); in live_engine_busy_stats() 285 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats() 322 de = ktime_sub(intel_engine_get_busy_time(engine, &t[1]), de); in live_engine_busy_stats() 324 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 | 62 ktime_sub(ktime_get(), gt->stats.start)); in runtime_end() 388 ktime_sub(ktime_get(), gt->stats.start)); in __intel_gt_get_awake_time()
|
/linux-6.6.21/kernel/time/ |
D | alarmtimer.c | 227 return ktime_sub(alarm->node.expires, base->get_ktime()); in alarm_expires_remaining() 272 delta = ktime_sub(next->expires, base->get_ktime()); in alarmtimer_suspend() 445 delta = ktime_sub(now, alarm->node.expires); in alarm_forward() 526 delta = ktime_sub(absexp, base->get_ktime()); in alarmtimer_freezerset() 623 return ktime_sub(alarm->node.expires, now); in alarm_timer_remaining() 798 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() 668 delta = ktime_sub(now, ts->idle_entrytime); in tick_nohz_stop_idle() 710 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_sleep_time_us() 1245 *delta_next = ktime_sub(dev->next_event, now); in tick_nohz_get_sleep_length() 1261 return ktime_sub(next_event, now); in tick_nohz_get_sleep_length()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_integ.c | 42 if (ktime_to_ms(ktime_sub(ktime_get(), start)) > in cxd2880_integ_init()
|
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/panfrost/ |
D | panfrost_devfreq.c | 22 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization() 24 pfdevfreq->idle_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/samples/kprobes/ |
D | kretprobe_example.c | 65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|
/linux-6.6.21/drivers/watchdog/ |
D | watchdog_dev.c | 122 last_heartbeat = ktime_sub(virt_timeout, ms_to_ktime(hw_heartbeat_ms)); in watchdog_next_keepalive() 123 latest_heartbeat = ktime_sub(last_heartbeat, ktime_get()); in watchdog_next_keepalive() 156 ktime_sub(earliest_keepalive, now), in __watchdog_ping() 1092 wd_data->last_hw_keepalive = ktime_sub(ktime_get(), 1); in watchdog_cdev_register() 1212 wd_data->last_hw_keepalive = ktime_sub(now, ms_to_ktime(last_ping_ms)); in watchdog_set_last_hw_keepalive()
|
/linux-6.6.21/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()
|
/linux-6.6.21/kernel/dma/ |
D | map_benchmark.c | 70 map_delta = ktime_sub(map_etime, map_stime); in map_benchmark_thread() 78 unmap_delta = ktime_sub(unmap_etime, unmap_stime); in map_benchmark_thread()
|
/linux-6.6.21/net/sunrpc/ |
D | stats.c | 176 backlog = ktime_sub(req->rq_xtime, task->tk_start); in rpc_count_iostats_metrics() 182 execute = ktime_sub(now, task->tk_start); in rpc_count_iostats_metrics()
|