| /linux/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | subdev.c | 73 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 87 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 98 time = ktime_to_us(ktime_get()); in nvkm_subdev_preinit() 108 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 123 time = ktime_to_us(ktime_get()); in nvkm_subdev_oneinit_() 131 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_oneinit_() 148 time = ktime_to_us(ktime_get()); in nvkm_subdev_init_() 164 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_init_() 235 time = ktime_to_us(ktime_get()); in nvkm_subdev_del() 240 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_del()
|
| H A D | object.c | 165 time = ktime_to_us(ktime_get()); in nvkm_object_fini() 182 time = ktime_to_us(ktime_get()) - time; in nvkm_object_fini() 207 time = ktime_to_us(ktime_get()); in nvkm_object_init() 221 time = ktime_to_us(ktime_get()) - time; in nvkm_object_init() 243 time = ktime_to_us(ktime_get()); in nvkm_object_dtor() 253 time = ktime_to_us(ktime_get()) - time; in nvkm_object_dtor()
|
| /linux/drivers/base/test/ |
| H A D | test_async_driver_probe.c | 129 calltime = ktime_get(); in test_async_probe_init() 136 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init() 145 calltime = ktime_get(); in test_async_probe_init() 163 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init() 191 calltime = ktime_get(); in test_async_probe_init() 198 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init() 209 calltime = ktime_get(); in test_async_probe_init() 223 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
|
| /linux/arch/mips/kernel/ |
| H A D | spinlock_test.c | 21 start = ktime_get(); in ss_get() 31 finish = ktime_get(); in ss_get() 70 pt->start = ktime_get(); in multi_other() 110 finish = ktime_get(); in multi_get()
|
| /linux/drivers/w1/masters/ |
| H A D | mxc_w1.c | 48 timeout = ktime_add_us(ktime_get(), 1500); in mxc_w1_ds2_reset_bus() 58 } while (ktime_before(ktime_get(), timeout)); in mxc_w1_ds2_reset_bus() 76 timeout = ktime_add_us(ktime_get(), 200); in mxc_w1_ds2_touch_bit() 86 } while (ktime_before(ktime_get(), timeout)); in mxc_w1_ds2_touch_bit()
|
| /linux/drivers/platform/x86/intel/speed_select_if/ |
| H A D | isst_if_mbox_pci.c | 48 tm = ktime_get(); in isst_if_mbox_cmd() 57 tm_delta = ktime_us_delta(ktime_get(), tm); in isst_if_mbox_cmd() 87 tm = ktime_get(); in isst_if_mbox_cmd() 96 tm_delta = ktime_us_delta(ktime_get(), tm); in isst_if_mbox_cmd()
|
| /linux/drivers/iio/adc/ |
| H A D | ltc2485.c | 31 time_elapsed = ktime_ms_delta(ktime_get(), data->time_prev); in ltc2485_wait_conv() 50 data->time_prev = ktime_get(); in ltc2485_read() 121 data->time_prev = ktime_get(); in ltc2485_probe()
|
| H A D | mt6360-adc.c | 89 if (ktime_after(ktime_get(), predict_end_t)) in mt6360_adc_read_channel() 99 timeout = ktime_add_ms(ktime_get(), ADC_CONV_TIMEOUT_MS); in mt6360_adc_read_channel() 119 if (ktime_compare(ktime_get(), timeout) > 0) { in mt6360_adc_read_channel() 134 mad->last_off_timestamps[channel] = ktime_get(); in mt6360_adc_read_channel() 304 all_off_time = ktime_get(); in mt6360_adc_reset()
|
| H A D | ltc2497-core.c | 26 time_elapsed = ktime_ms_delta(ktime_get(), ddata->time_prev); in ltc2497core_wait_conv() 71 ddata->time_prev = ktime_get(); in ltc2497core_read() 211 ddata->time_prev = ktime_get(); in ltc2497core_probe()
|
| /linux/drivers/base/power/ |
| H A D | wakeup_stats.c | 44 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show() 58 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show() 74 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show() 110 ktime_sub(ktime_get(), ws->start_prevent_time)); in prevent_suspend_time_ms_show()
|
| /linux/Documentation/core-api/ |
| H A D | timekeeping.rst | 4 Device drivers can read the current time using ktime_get() and the many 16 .. c:function:: ktime_t ktime_get( void ) 27 Like ktime_get(), but does not stop when suspended. This can be 55 Like ktime_get(), but runs at the same rate as the hardware 71 Same as the plain ktime_get functions, but returning a u64 number 156 Use ktime_get() or ktime_get_ts64() instead. 165 (ktime_get()/ktime_get_real()). 190 ktime_get()/ktime_get_ts64() instead for consistency.
|
| /linux/drivers/media/dvb-frontends/cxd2880/ |
| H A D | cxd2880_integ.c | 30 start = ktime_get(); in cxd2880_integ_init() 42 if (ktime_to_ms(ktime_sub(ktime_get(), start)) > in cxd2880_integ_init()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_engine_stats.h | 30 stats->start = ktime_get(); in intel_engine_context_in() 55 ktime_sub(ktime_get(), stats->start)); in intel_engine_context_out()
|
| H A D | selftest_timeline.c | 305 kt = ktime_get(); in bench_sync() 315 kt = ktime_sub(ktime_get(), kt); in bench_sync() 323 kt = ktime_get(); in bench_sync() 331 kt = ktime_sub(ktime_get(), kt); in bench_sync() 339 kt = ktime_get(); in bench_sync() 349 kt = ktime_sub(ktime_get(), kt); in bench_sync() 361 kt = ktime_get(); in bench_sync() 366 kt = ktime_sub(ktime_get(), kt); in bench_sync() 372 kt = ktime_get(); in bench_sync() 380 kt = ktime_sub(ktime_get(), kt); in bench_sync() [all …]
|
| H A D | selftest_rc6.c | 75 dt = ktime_get(); in live_rc6_manual() 79 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual() 109 dt = ktime_get(); in live_rc6_manual() 114 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual()
|
| /linux/drivers/thermal/ |
| H A D | thermal_debugfs.c | 364 duration += ktime_ms_delta(ktime_get(), in cdev_dt_seq_show() 435 ktime_t now = ktime_get(); in thermal_debug_cdev_state_update() 495 cdev_dbg->timestamp = ktime_get(); in thermal_debug_cdev_add() 584 ktime_t now = ktime_get(); in thermal_debug_tz_trip_up() 677 ktime_t now = ktime_get(); in thermal_debug_tz_trip_down() 800 duration_ms = ktime_to_ms(ktime_sub(ktime_get(), tze->timestamp)); in tze_seq_show() 833 ktime_t delta = ktime_sub(ktime_get(), in tze_seq_show() 937 ktime_t now = ktime_get(); in thermal_debug_tz_resume()
|
| /linux/samples/kprobes/ |
| H A D | kretprobe_example.c | 47 data->entry_stamp = ktime_get(); in entry_handler() 64 now = ktime_get(); in ret_handler()
|
| /linux/drivers/media/rc/ |
| H A D | serial_ir.c | 232 now = ktime_get(); in send_pulse_homebrew_softcarrier() 240 now = ktime_get(); in send_pulse_homebrew_softcarrier() 345 kt = ktime_get(); in serial_ir_irq_handler() 606 serial_ir.lastkt = ktime_get(); in serial_ir_open() 649 edge = ktime_get(); in serial_ir_tx() 657 delta = ktime_us_delta(edge, ktime_get()); in serial_ir_tx() 716 serial_ir.lastkt = ktime_get(); in serial_ir_resume()
|
| /linux/arch/s390/kernel/diag/ |
| H A D | diag324.c | 118 if (ktime_before(ktime_get(), timedout)) { in pibwork_handler() 173 if (first || ktime_after(ktime_get(), data->expire)) { in diag324_pibbuf() 176 data->expire = ktime_add_ns(ktime_get(), tod_to_ns(data->pib->intv)); in diag324_pibbuf()
|
| /linux/kernel/ |
| H A D | async.c | 85 ktime_t now = ktime_get(); in microseconds_since() 127 calltime = ktime_get(); in async_run_entry_fn() 315 starttime = ktime_get(); in async_synchronize_cookie_domain()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | sched_policy.c | 161 cur_time = ktime_get(); in try_to_schedule_next_vgpu() 192 if (ktime_before(ktime_get(), vgpu_data->pri_time)) { in find_busy_vgpu() 247 cur_time = ktime_get(); in intel_gvt_schedule() 350 now = ktime_get(); in tbs_sched_start_schedule() 358 hrtimer_start(&sched_data->timer, ktime_add_ns(ktime_get(), in tbs_sched_start_schedule()
|
| /linux/drivers/accel/habanalabs/common/pci/ |
| H A D | pci.c | 108 timeout = ktime_add_ms(ktime_get(), msec); in hl_pci_elbi_read() 113 if (ktime_compare(ktime_get(), timeout) > 0) { in hl_pci_elbi_read() 173 timeout = ktime_add_ms(ktime_get(), msec); in hl_pci_elbi_write() 178 if (ktime_compare(ktime_get(), timeout) > 0) { in hl_pci_elbi_write()
|
| /linux/drivers/mmc/host/ |
| H A D | sdhci-pci-arasan.c | 95 ktime_t timeout = ktime_add_us(ktime_get(), 100); in arasan_phy_addr_poll() 100 failed = ktime_after(ktime_get(), timeout); in arasan_phy_addr_poll() 132 ktime_t timeout = ktime_add_us(ktime_get(), 100); in arasan_phy_sts_poll() 137 failed = ktime_after(ktime_get(), timeout); in arasan_phy_sts_poll()
|
| /linux/drivers/watchdog/ |
| H A D | watchdog_dev.c | 67 return ktime_after(ktime_get(), data->open_deadline); in watchdog_past_open_deadline() 73 ktime_get() + ktime_set(open_timeout, 0) : KTIME_MAX; in watchdog_set_open_deadline() 123 latest_heartbeat = ktime_sub(last_heartbeat, ktime_get()); in watchdog_next_keepalive() 152 now = ktime_get(); in __watchdog_ping() 200 wd_data->last_keepalive = ktime_get(); in watchdog_ping() 259 started_at = ktime_get(); in watchdog_start() 437 s64 last_keepalive_ms = ktime_ms_delta(ktime_get(), wd_data->last_keepalive); in watchdog_get_timeleft() 1087 wd_data->last_hw_keepalive = ktime_sub(ktime_get(), 1); in watchdog_cdev_register() 1205 now = ktime_get(); in watchdog_set_last_hw_keepalive()
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_device.h | 127 ktime_t timeout = ktime_add_us(ktime_get(), timeout_us); in lima_poll_timeout() 134 if (timeout_us && ktime_compare(ktime_get(), timeout) > 0) in lima_poll_timeout()
|