Home
last modified time | relevance | path

Searched refs:ktime_sub (Results 1 – 25 of 176) sorted by relevance

12345678

/openbmc/linux/drivers/base/power/
H A Dwakeup_stats.c43 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()
H A Ddomain_governor.c169 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()
H A Dwakeup.c647 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()
/openbmc/linux/include/linux/
H A Dktime.h47 #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()
H A Dhrtimer.h304 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()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_engine_pm.c283 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()
H A Dintel_engine_stats.h55 ktime_sub(ktime_get(), stats->start)); in intel_engine_context_out()
H A Dselftest_rc6.c67 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual()
95 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual()
H A Dselftest_timeline.c315 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()
H A Dintel_gt_pm.c62 ktime_sub(ktime_get(), gt->stats.start)); in runtime_end()
388 ktime_sub(ktime_get(), gt->stats.start)); in __intel_gt_get_awake_time()
/openbmc/linux/kernel/time/
H A Dalarmtimer.c227 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()
H A Dtick-sched.c103 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()
/openbmc/linux/drivers/isdn/mISDN/
H A Dclock.c165 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()
/openbmc/linux/drivers/media/rc/
H A Dgpio-ir-tx.c129 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()
/openbmc/linux/drivers/gpu/drm/lima/
H A Dlima_devfreq.c27 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()
/openbmc/linux/drivers/media/dvb-frontends/cxd2880/
H A Dcxd2880_integ.c42 if (ktime_to_ms(ktime_sub(ktime_get(), start)) > in cxd2880_integ_init()
/openbmc/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_devfreq.c22 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()
/openbmc/linux/drivers/input/joystick/
H A Danalog.c197 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()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Daspm.c146 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()
/openbmc/linux/samples/kprobes/
H A Dkretprobe_example.c65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
/openbmc/linux/fs/ocfs2/cluster/
H A Dnetdebug.c121 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()
/openbmc/linux/drivers/gpu/drm/sti/
H A Dsti_plane.c64 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); in sti_plane_update_fps()
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_kms.h55 ktime_compare(ktime_sub((A), (B)), ktime_set(0, 0))
/openbmc/linux/drivers/watchdog/
H A Dwatchdog_dev.c122 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()
/openbmc/linux/net/sunrpc/
H A Dstats.c176 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()

12345678