| /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() 112 time = ktime_get() - time; in test_find_last_bit() [all …]
|
| /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 | 153 time = ktime_to_us(ktime_get()); in nvkm_object_fini() 170 time = ktime_to_us(ktime_get()) - time; in nvkm_object_fini() 195 time = ktime_to_us(ktime_get()); in nvkm_object_init() 209 time = ktime_to_us(ktime_get()) - time; in nvkm_object_init() 231 time = ktime_to_us(ktime_get()); in nvkm_object_dtor() 241 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/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()
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | max31785.c | 49 s64 delta = ktime_us_delta(ktime_get(), data->access); in max31785_wait() 64 driver_data->access = ktime_get(); in max31785_i2c_write_byte_data() 76 driver_data->access = ktime_get(); in max31785_i2c_read_word_data() 88 driver_data->access = ktime_get(); in _max31785_read_byte_data() 100 driver_data->access = ktime_get(); in _max31785_write_byte_data() 112 driver_data->access = ktime_get(); in _max31785_read_word_data() 124 driver_data->access = ktime_get(); in _max31785_write_word_data() 488 driver_data->access = ktime_get(); in max31785_probe()
|
| /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/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()
|
| /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()
|
| /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/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()
|
| /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 …]
|
| /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/firmware/samsung/ |
| H A D | exynos-acpm-dvfs.c | 42 cmd[3] = ktime_to_ms(ktime_get()); in acpm_dvfs_init_set_rate_cmd() 62 cmd[3] = ktime_to_ms(ktime_get()); in acpm_dvfs_init_get_rate_cmd()
|
| /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/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/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/mm/ |
| H A D | gup_test.c | 126 start_time = ktime_get(); in __gup_test_ioctl() 174 end_time = ktime_get(); in __gup_test_ioctl() 191 start_time = ktime_get(); in __gup_test_ioctl() 195 end_time = ktime_get(); in __gup_test_ioctl()
|
| /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()
|