| /linux/include/linux/ |
| H A D | timekeeping.h | 139 return ktime_to_ns(ktime_get_coarse()); in ktime_get_coarse_ns() 144 return ktime_to_ns(ktime_get_coarse_real()); in ktime_get_coarse_real_ns() 149 return ktime_to_ns(ktime_get_coarse_boottime()); in ktime_get_coarse_boottime_ns() 154 return ktime_to_ns(ktime_get_coarse_clocktai()); in ktime_get_coarse_clocktai_ns() 175 return ktime_to_ns(ktime_get()); in ktime_get_ns() 185 return ktime_to_ns(ktime_get_real()); in ktime_get_real_ns() 195 return ktime_to_ns(ktime_get_boottime()); in ktime_get_boottime_ns() 205 return ktime_to_ns(ktime_get_clocktai()); in ktime_get_clocktai_ns() 215 return ktime_to_ns(ktime_get_raw()); in ktime_get_raw_ns()
|
| H A D | ktime.h | 78 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() function
|
| /linux/drivers/media/rc/ |
| H A D | serial_ir.c | 237 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier() 245 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier() 359 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 360 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler() 371 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 372 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | uhead.c | 68 args->v0.time[0] = ktime_to_ns(ktime_get()); in nvkm_uhead_mthd_scanoutpos() 70 args->v0.time[1] = ktime_to_ns(ktime_get()); in nvkm_uhead_mthd_scanoutpos()
|
| /linux/fs/ocfs2/cluster/ |
| H A D | netdebug.c | 264 # define sc_tv_acquiry_total_ns(_s) (ktime_to_ns((_s)->sc_tv_acquiry_total)) 265 # define sc_tv_send_total_ns(_s) (ktime_to_ns((_s)->sc_tv_send_total)) 266 # define sc_tv_status_total_ns(_s) (ktime_to_ns((_s)->sc_tv_status_total)) 267 # define sc_tv_process_total_ns(_s) (ktime_to_ns((_s)->sc_tv_process_total))
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_devfreq.c | 67 status->total_time = ktime_to_ns(ktime_add(devfreq->busy_time, in lima_devfreq_get_dev_status() 69 status->busy_time = ktime_to_ns(devfreq->busy_time); in lima_devfreq_get_dev_status()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_timeline.c | 317 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 318 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync() 334 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 352 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 368 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 382 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 406 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 435 (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
|
| H A D | selftest_rc6.c | 91 ktime_to_ns(dt)); in live_rc6_manual() 126 ktime_to_ns(dt)); in live_rc6_manual()
|
| /linux/drivers/md/ |
| H A D | dm-stats.h | 45 aux->duration_ns = ktime_to_ns(ktime_get()); in dm_stats_record_start()
|
| /linux/net/sched/ |
| H A D | sch_cake.c | 451 if (ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_full() 479 ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_empty() 489 if (vars->count && ktime_to_ns(ktime_sub(now, vars->drop_next)) >= 0) { in cobalt_queue_empty() 530 sojourn = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cobalt_should_drop() 536 next_due = count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop() 574 next_due = count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop() 587 else if (ktime_to_ns(schedule) > 0 && reason == QDISC_DROP_UNSPEC) in cobalt_should_drop() 1795 min(ktime_to_ns(q->time_next_packet), in cake_enqueue() 1796 ktime_to_ns( in cake_enqueue() 1883 ktime_to_ns(ktime_sub(now, q->last_packet_time)); in cake_enqueue() [all …]
|
| /linux/drivers/base/power/ |
| H A D | wakeup.c | 684 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate() 850 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources() 851 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
|
| /linux/samples/kprobes/ |
| H A D | kretprobe_example.c | 65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|
| /linux/sound/soc/sof/ |
| H A D | sof-client-ipc-flood-test.c | 93 ipc_response_time = ktime_to_ns(ktime_sub(end, start)); in sof_debug_ipc_flood_test() 103 if (ktime_to_ns(end) >= test_end) in sof_debug_ipc_flood_test()
|
| /linux/drivers/ptp/ |
| H A D | ptp_vclock.c | 139 ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device)); in ptp_vclock_getcrosststamp() 282 ns = ktime_to_ns(*hwtstamp); in ptp_convert_timestamp()
|
| /linux/drivers/media/cec/core/ |
| H A D | cec-pin.c | 700 pin->rx_start_bit_low_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states() 732 pin->rx_start_bit_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states() 802 pin->rx_data_bit_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states() 847 pin->work_rx_msg.rx_ts = ktime_to_ns(ts); in cec_pin_rx_states() 879 if (ktime_to_ns(pin->timer_ts)) { in cec_pin_timer() 980 if (ktime_to_ns(pin->ts) == 0) in cec_pin_timer()
|
| /linux/drivers/staging/vc04_services/bcm2835-audio/ |
| H A D | bcm2835-pcm.c | 286 if ((ktime_to_ns(alsa_stream->interpolate_start)) && in snd_bcm2835_pcm_pointer() 289 (ktime_to_ns(ktime_sub(now, in snd_bcm2835_pcm_pointer()
|
| /linux/drivers/misc/mei/ |
| H A D | platform-vsc.c | 62 .realtime = ktime_to_ns(ktime_get_real()), in mei_vsc_read_helper() 63 .boottime = ktime_to_ns(ktime_get_boottime()), in mei_vsc_read_helper()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_vblank.c | 327 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count() 777 duration_ns = ktime_to_ns(etime) - ktime_to_ns(stime); in drm_crtc_vblank_helper_get_vblank_timestamp_internal() 1061 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event() 1566 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_vblank_restore() 2049 get_seq->sequence_ns = ktime_to_ns(now); in drm_crtc_get_sequence_ioctl()
|
| /linux/arch/loongarch/kvm/ |
| H A D | timer.c | 18 delta = ktime_to_ns(now); in ktime_to_tick()
|
| /linux/net/bluetooth/ |
| H A D | selftest.c | 240 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in test_ecdh()
|
| /linux/kernel/trace/ |
| H A D | trace_osnoise.c | 1747 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq() 1846 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period() 1873 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period() 1930 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main() 2529 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read() 2564 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_pmu.c | 200 return ktime_to_ns(ktime_sub(ktime_get_raw(), kt)); in ktime_since_raw() 518 period_ns = ktime_to_ns(ktime_sub(now, pmu->timer_last)); in i915_sample() 679 val = ktime_to_ns(intel_engine_get_busy_time(engine, in __i915_pmu_event_read() 708 val = ktime_to_ns(intel_gt_get_awake_time(to_gt(i915))); in __i915_pmu_event_read()
|
| /linux/arch/x86/kvm/ |
| H A D | i8254.c | 101 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed() 112 return ktime_to_ns(ktime_sub(ktime_get(), c->count_load_time)); in kpit_elapsed() 615 refresh_clock = ((unsigned int)ktime_to_ns(ktime_get()) >> 14) & 1; in speaker_ioport_read()
|
| /linux/samples/ftrace/ |
| H A D | ftrace-ops.c | 222 period = ktime_to_ns(ktime_sub(end, start)); in ftrace_ops_sample_init()
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_request.c | 637 ktime_to_ns(times[0]), in live_nop_request() 638 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_nop_request() 1107 ktime_to_ns(times[0]), in live_empty_request() 1108 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_empty_request() 2921 busy = 100 * ktime_to_ns(p->busy); in perf_series_engines() 2922 dt = ktime_to_ns(p->time); in perf_series_engines() 2936 div_u64(ktime_to_ns(p->time), 1000 * 1000)); in perf_series_engines() 3264 u64 busy = 100 * ktime_to_ns(p->busy); in perf_parallel_engines() 3265 u64 dt = ktime_to_ns(p->time); in perf_parallel_engines() 3281 div_u64(ktime_to_ns(p->time), 1000 * 1000)); in perf_parallel_engines()
|