Home
last modified time | relevance | path

Searched refs:ktime_to_ns (Results 1 – 25 of 108) sorted by relevance

12345

/linux/drivers/media/rc/
H A Dserial_ir.c237 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 Duhead.c68 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 Dnetdebug.c264 # 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 Dlima_devfreq.c67 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/md/
H A Ddm-stats.h45 aux->duration_ns = ktime_to_ns(ktime_get()); in dm_stats_record_start()
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_timeline.c317 __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 Dselftest_rc6.c91 ktime_to_ns(dt)); in live_rc6_manual()
126 ktime_to_ns(dt)); in live_rc6_manual()
/linux/net/sched/
H A Dsch_cake.c451 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()
1791 min(ktime_to_ns(q->time_next_packet), in cake_enqueue()
1792 ktime_to_ns( in cake_enqueue()
1879 ktime_to_ns(ktime_su in cake_enqueue()
[all...]
/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c110 if (ktime_to_ns(time_ref->tv_host) > 0) { in peak_usb_update_ts_now()
125 if (ktime_to_ns(time_ref->tv_host_0) == 0) { in peak_usb_set_ts_now()
135 if (ktime_to_ns(time_ref->tv_host)) { in peak_usb_set_ts_now()
138 if (ktime_to_ns(delta) > (4200ull * NSEC_PER_SEC)) { in peak_usb_set_ts_now()
158 if (ktime_to_ns(time_ref->tv_host)) { in peak_usb_get_ts_time()
/linux/samples/kprobes/
H A Dkretprobe_example.c65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
/linux/drivers/ptp/
H A Dptp_vclock.c141 ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device)); in ptp_vclock_getcrosststamp()
285 ns = ktime_to_ns(*hwtstamp); in ptp_convert_timestamp()
/linux/sound/soc/sof/
H A Dsof-client-ipc-flood-test.c92 ipc_response_time = ktime_to_ns(ktime_sub(end, start)); in sof_debug_ipc_flood_test()
102 if (ktime_to_ns(end) >= test_end) in sof_debug_ipc_flood_test()
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c286 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/arch/arm64/kvm/
H A Dhyp_trace.c53 boot = ktime_to_ns(snap.systime); in __hyp_clock_work()
118 hyp_clock->boot = ktime_to_ns(snap.systime); in hyp_trace_clock_enable()
/linux/include/linux/
H A Dktime.h78 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() function
/linux/samples/ftrace/
H A Dftrace-ops.c222 period = ktime_to_ns(ktime_sub(end, start)); in ftrace_ops_sample_init()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dbase.c165 tmr->func->time(tmr, ktime_to_ns(ktime_get())); in nvkm_timer_init()
/linux/arch/x86/kvm/
H A Di8254.c101 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/drivers/gpu/drm/i915/
H A Di915_pmu.c200 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/kernel/trace/
H A Dtrace_osnoise.c1758 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq()
1857 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1884 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1941 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
2540 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2578 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_request.c637 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()
/linux/kernel/
H A Dasync.c86 return ktime_to_ns(ktime_sub(now, start)) >> 10; in microseconds_since()
/linux/kernel/power/
H A Dwakelock.c116 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time)); in __wakelocks_gc()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c285 ktime_to_ns(ktime_get_real())); in mlx4_en_init_timestamp()
/linux/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c102 timestamp = ktime_to_ns(ec->last_event_time); in cros_ec_mkbp_proximity_push_event()

12345