Home
last modified time | relevance | path

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

12345

/linux/include/linux/
H A Dtimekeeping.h139 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 Dhrtimer.h154 return ktime_to_ns(timer->node.expires); in hrtimer_get_expires_ns()
272 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
H A Dktime.h78 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() function
/linux/kernel/time/
H A Dtimer_list.c53 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)), in print_timer()
54 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), in print_timer()
55 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
56 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
107 (unsigned long long) ktime_to_ns(base->offset)); in print_base()
110 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
128 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
147 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu()
206 (unsigned long long) ktime_to_ns(dev->next_event)); in print_tickdevice()
269 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dtime-sync.c88 ktime_to_ns(shwt->hwtstamp), in iwl_mvm_time_sync_msmt_event()
89 ktime_to_ns(rx_status->ack_tx_hwtstamp)); in iwl_mvm_time_sync_msmt_event()
123 ktime_to_ns(shwt->hwtstamp), in iwl_mvm_time_sync_msmt_confirm_event()
124 ktime_to_ns(status.ack_hwtstamp)); in iwl_mvm_time_sync_msmt_confirm_event()
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dtime_sync.c201 ktime_to_ns(shwt->hwtstamp), in iwl_mld_handle_time_msmt_notif()
202 ktime_to_ns(rx_status->ack_tx_hwtstamp)); in iwl_mld_handle_time_msmt_notif()
237 ktime_to_ns(shwt->hwtstamp), in iwl_mld_handle_time_sync_confirm_notif()
238 ktime_to_ns(status.ack_hwtstamp)); in iwl_mld_handle_time_sync_confirm_notif()
/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()
/linux/net/sched/
H A Dsch_cake.c438 if (ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_full()
463 ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_empty()
473 if (vars->count && ktime_to_ns(ktime_sub(now, vars->drop_next)) >= 0) { in cobalt_queue_empty()
513 sojourn = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cobalt_should_drop()
518 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop()
556 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop()
568 else if (ktime_to_ns(schedule) > 0 && reason == SKB_NOT_DROPPED_YET) in cobalt_should_drop()
1772 min(ktime_to_ns(q->time_next_packet), in cake_enqueue()
1773 ktime_to_ns( in cake_enqueue()
1860 ktime_to_ns(ktime_su in cake_enqueue()
[all...]
/linux/drivers/infiniband/hw/hfi1/
H A Daspm.c146 close_interrupts = ktime_to_ns(ktime_sub(now, prev)) < ASPM_TRIGGER_NS; in __aspm_ctx_disable()
149 restart_timer = ktime_to_ns(ktime_sub(now, rcd->aspm_ts_timer_sched)) > in __aspm_ctx_disable()
/linux/samples/kprobes/
H A Dkretprobe_example.c65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
/linux/sound/soc/sof/
H A Dsof-client-ipc-flood-test.c93 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 Dptp_vclock.c139 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/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/drivers/misc/mei/
H A Dplatform-vsc.c62 .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/crypto/
H A Dxor.c109 speed = (1000 * reps * BENCH_SIZE) / (unsigned int)ktime_to_ns(min); in do_xor_speed()
/linux/arch/loongarch/kvm/
H A Dtimer.c18 delta = ktime_to_ns(now); in ktime_to_tick()
/linux/net/bluetooth/
H A Dselftest.c240 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in test_ecdh()
/linux/drivers/gpu/drm/xe/
H A Dxe_wait_user_fence.c174 args->timeout -= ktime_to_ns(ktime_sub(ktime_get(), start)); in xe_wait_user_fence_ioctl()
/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()

12345