/openbmc/linux/lib/ |
H A D | find_bit_benchmark.c | 41 time = ktime_get(); in test_find_first_bit() 46 time = ktime_get() - time; in test_find_first_bit() 60 time = ktime_get(); in test_find_first_and_bit() 65 time = ktime_get() - time; in test_find_first_and_bit() 76 time = ktime_get(); in test_find_next_bit() 79 time = ktime_get() - time; in test_find_next_bit() 90 time = ktime_get(); in test_find_next_zero_bit() 93 time = ktime_get() - time; in test_find_next_zero_bit() 104 time = ktime_get(); in test_find_last_bit() 123 time = ktime_get(); in test_find_nth_bit() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | subdev.c | 61 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 75 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 86 time = ktime_to_us(ktime_get()); in nvkm_subdev_preinit() 96 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 111 time = ktime_to_us(ktime_get()); in nvkm_subdev_oneinit_() 119 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_oneinit_() 136 time = ktime_to_us(ktime_get()); in nvkm_subdev_init_() 152 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_init_() 223 time = ktime_to_us(ktime_get()); in nvkm_subdev_del() 228 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_del()
|
H A D | object.c | 201 time = ktime_to_us(ktime_get()); in nvkm_object_fini() 218 time = ktime_to_us(ktime_get()) - time; in nvkm_object_fini() 243 time = ktime_to_us(ktime_get()); in nvkm_object_init() 257 time = ktime_to_us(ktime_get()) - time; in nvkm_object_init() 279 time = ktime_to_us(ktime_get()); in nvkm_object_dtor() 289 time = ktime_to_us(ktime_get()) - time; in nvkm_object_dtor()
|
/openbmc/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()
|
/openbmc/linux/drivers/media/rc/ |
H A D | gpio-ir-tx.c | 60 delta = ktime_us_delta(until, ktime_get()); in delay_until() 83 edge = ktime_get(); in gpio_ir_tx_unmodulated() 115 edge = ktime_get(); in gpio_ir_tx_modulated() 126 while (ktime_before(ktime_get(), last)) { in gpio_ir_tx_modulated() 130 ktime_get())); in gpio_ir_tx_modulated() 136 ktime_get())); in gpio_ir_tx_modulated()
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | zl6100.c | 129 s64 delta = ktime_us_delta(ktime_get(), data->access); in zl6100_wait() 179 data->access = ktime_get(); in zl6100_read_word_data() 228 data->access = ktime_get(); in zl6100_read_byte_data() 270 data->access = ktime_get(); in zl6100_write_word_data() 286 data->access = ktime_get(); in zl6100_write_byte() 372 data->access = ktime_get(); in zl6100_probe() 407 data->access = ktime_get(); in zl6100_probe() 421 data->access = ktime_get(); in zl6100_probe() 431 data->access = ktime_get(); in zl6100_probe() 449 data->access = ktime_get(); in zl6100_probe()
|
H A D | max15301.c | 62 s64 delta = ktime_us_delta(ktime_get(), data->access); in max15301_wait() 84 data->access = ktime_get(); in max15301_read_word_data() 100 data->access = ktime_get(); in max15301_read_byte_data() 120 data->access = ktime_get(); in max15301_write_word_data() 136 data->access = ktime_get(); in max15301_write_byte()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | fwio.c | 153 start = ktime_get(); in wait_ncp_status() 158 now = ktime_get(); in wait_ncp_status() 183 start = ktime_get(); in upload_firmware() 185 now = ktime_get(); in upload_firmware() 271 start = ktime_get(); in load_firmware_secure() 276 ktime_us_delta(ktime_get(), start)); in load_firmware_secure() 364 start = ktime_get(); in wfx_init_device() 367 now = ktime_get(); in wfx_init_device()
|
/openbmc/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()
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | clock.c | 48 iclock_timestamp = ktime_get(); in mISDN_init_clock() 156 iclock_timestamp = ktime_get(); in mISDN_clock_update() 163 timestamp_now = ktime_get(); in mISDN_clock_update() 189 timestamp_now = ktime_get(); in mISDN_clock_get()
|
/openbmc/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()
|
/openbmc/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() 305 all_off_time = ktime_get(); in mt6360_adc_reset()
|
/openbmc/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()
|
/openbmc/linux/drivers/base/power/ |
H 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()
|
/openbmc/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_rc6.c | 63 dt = ktime_get(); in live_rc6_manual() 67 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual() 91 dt = ktime_get(); in live_rc6_manual() 95 dt = ktime_sub(ktime_get(), dt); in live_rc6_manual()
|
H A D | selftest_rps.c | 304 dt_[i] = ktime_get(); in live_rps_clock_interval() 460 max_dt = ktime_get(); in live_rps_control() 464 min_dt = ktime_get(); in live_rps_control() 542 dt = ktime_get(); in __measure_frequency() 545 dt = ktime_get() - dt; in __measure_frequency() 571 dt = ktime_get(); in __measure_cs_frequency() 574 dt = ktime_get() - dt; in __measure_cs_frequency() 1099 dt = ktime_get(); in __measure_power() 1102 dt = ktime_get() - dt; in __measure_power() 1287 max.dt = ktime_get(); in live_rps_dynamic() [all …]
|
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() 392 kt = ktime_get(); in bench_sync() [all …]
|
/openbmc/linux/crypto/ |
H A D | xor.c | 95 t0 = ktime_get(); in do_xor_speed() 97 while ((start = ktime_get()) == t0) in do_xor_speed() 103 } while (reps++ < REPS || (t0 = ktime_get()) == start); in do_xor_speed()
|
/openbmc/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.
|
/openbmc/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()
|
/openbmc/linux/kernel/ |
H A D | async.c | 83 ktime_t now = ktime_get(); in microseconds_since() 125 calltime = ktime_get(); in async_run_entry_fn() 313 starttime = ktime_get(); in async_synchronize_cookie_domain()
|
/openbmc/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()
|