/linux/drivers/base/power/ |
A 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()
|
A D | domain_governor.c | 164 idle_time_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in next_wakeup_allows_state() 368 idle_duration_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in cpu_power_down_ok()
|
A D | wakeup.c | 681 ktime_t delta = ktime_sub(now, ws->start_prevent_time); in update_prevent_sleep_time() 721 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/drivers/base/test/ |
A D | test_async_driver_probe.c | 136 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init() 164 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init() 200 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init() 226 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init()
|
/linux/include/linux/ |
A 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()
|
A 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/drivers/gpu/drm/i915/gt/ |
A D | selftest_engine_pm.c | 255 de = ktime_sub(intel_engine_get_busy_time(engine, &t[1]), de); in live_engine_busy_stats() 257 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats() 287 de = ktime_sub(intel_engine_get_busy_time(engine, &t[1]), de); in live_engine_busy_stats() 289 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats()
|
A 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()
|
A D | selftest_timeline.c | 313 kt = ktime_sub(ktime_get(), kt); in bench_sync() 329 kt = ktime_sub(ktime_get(), kt); in bench_sync() 347 kt = ktime_sub(ktime_get(), kt); in bench_sync() 364 kt = ktime_sub(ktime_get(), kt); in bench_sync() 378 kt = ktime_sub(ktime_get(), kt); in bench_sync() 401 kt = ktime_sub(ktime_get(), kt); in bench_sync() 430 kt = ktime_sub(ktime_get(), kt); in bench_sync()
|
A D | intel_engine_stats.h | 54 ktime_sub(ktime_get(), engine->stats.start)); in intel_engine_context_out()
|
A D | intel_gt_pm.c | 60 ktime_sub(ktime_get(), gt->stats.start)); in runtime_end() 386 ktime_sub(ktime_get(), gt->stats.start)); in __intel_gt_get_awake_time()
|
/linux/kernel/time/ |
A 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()
|
A D | tick-sched.c | 103 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64() 633 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats() 689 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_idle_time_us() 730 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_iowait_time_us() 1187 *delta_next = ktime_sub(dev->next_event, now); in tick_nohz_get_sleep_length() 1203 return ktime_sub(next_event, now); in tick_nohz_get_sleep_length()
|
/linux/net/rxrpc/ |
A D | call_event.c | 171 max_age = ktime_sub(now, jiffies_to_usecs(rto_j)); in rxrpc_resend() 212 ktime_to_ns(ktime_sub(skb->tstamp, max_age))); in rxrpc_resend() 215 resend_at = nsecs_to_jiffies(ktime_to_ns(ktime_sub(now, oldest))); in rxrpc_resend() 230 ack_ts = ktime_sub(now, call->acks_latest_ts); in rxrpc_resend()
|
/linux/drivers/isdn/mISDN/ |
A 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/drivers/media/rc/ |
A D | gpio-ir-tx.c | 110 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated() 116 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
|
/linux/drivers/gpu/drm/panfrost/ |
A 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/drivers/gpu/drm/lima/ |
A 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/drivers/input/joystick/ |
A D | analog.c | 200 if ((last ^ this) && (ktime_sub(now, loop) < loopout)) { in analog_cooked_read() 206 } while (this && (i < 4) && (ktime_sub(now, start) < timeout)); in analog_cooked_read() 214 port->axes[j] = ((u32)ktime_sub(time[i], start) << ANALOG_FUZZ_BITS) / port->loop; in analog_cooked_read() 329 t = ktime_sub(t2, t1) - ktime_sub(t3, t2); in analog_calibrate_timer()
|
/linux/drivers/infiniband/hw/hfi1/ |
A 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/fs/ocfs2/cluster/ |
A 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/drivers/media/dvb-frontends/cxd2880/ |
A D | cxd2880_integ.c | 42 if (ktime_to_ms(ktime_sub(ktime_get(), start)) > in cxd2880_integ_init()
|
/linux/drivers/watchdog/ |
A D | watchdog_dev.c | 119 last_heartbeat = ktime_sub(virt_timeout, ms_to_ktime(hw_heartbeat_ms)); in watchdog_next_keepalive() 120 latest_heartbeat = ktime_sub(last_heartbeat, ktime_get()); in watchdog_next_keepalive() 153 ktime_sub(earliest_keepalive, now), in __watchdog_ping() 1055 wd_data->last_hw_keepalive = ktime_sub(ktime_get(), 1); in watchdog_cdev_register() 1174 wd_data->last_hw_keepalive = ktime_sub(now, ms_to_ktime(last_ping_ms)); in watchdog_set_last_hw_keepalive()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_request.c | 590 times[1] = ktime_sub(ktime_get_raw(), times[1]); in live_nop_request() 937 times[1] = ktime_sub(ktime_get_raw(), times[1]); in live_empty_request() 2721 p->busy = ktime_sub(intel_engine_get_busy_time(p->engine, in perf_series_engines() 2726 p->time = ktime_sub(now, p->time); in perf_series_engines() 2820 p->busy = ktime_sub(intel_engine_get_busy_time(engine, &now), in p_sync0() 2822 p->time = ktime_sub(now, p->time); in p_sync0() 2824 p->time = ktime_sub(ktime_get(), p->time); in p_sync0() 2895 p->time = ktime_sub(now, p->time); in p_sync1() 2897 p->time = ktime_sub(ktime_get(), p->time); in p_sync1() 2956 p->time = ktime_sub(now, p->time); in p_many() [all …]
|
/linux/samples/kprobes/ |
A D | kretprobe_example.c | 66 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|