Home
last modified time | relevance | path

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

1234567

/linux/include/linux/
A Dtimekeeping.h126 return ktime_to_ns(ktime_get_coarse()); in ktime_get_coarse_ns()
131 return ktime_to_ns(ktime_get_coarse_real()); in ktime_get_coarse_real_ns()
136 return ktime_to_ns(ktime_get_coarse_boottime()); in ktime_get_coarse_boottime_ns()
141 return ktime_to_ns(ktime_get_coarse_clocktai()); in ktime_get_coarse_clocktai_ns()
154 return ktime_to_ns(ktime_get()); in ktime_get_ns()
159 return ktime_to_ns(ktime_get_real()); in ktime_get_real_ns()
164 return ktime_to_ns(ktime_get_boottime()); in ktime_get_boottime_ns()
169 return ktime_to_ns(ktime_get_clocktai()); in ktime_get_clocktai_ns()
174 return ktime_to_ns(ktime_get_raw()); in ktime_get_raw_ns()
A Dhrtimer.h297 return ktime_to_ns(timer->node.expires); in hrtimer_get_expires_ns()
431 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
/linux/kernel/time/
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()
109 (unsigned long long) ktime_to_ns(base->offset)); in print_base()
112 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
130 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
149 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu()
204 (unsigned long long) ktime_to_ns(dev->next_event)); in print_tickdevice()
267 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show()
[all …]
A Dtimekeeping.c441 now = ktime_to_ns(tkr->base); in __ktime_get_fast_ns()
531 return (ktime_get_mono_fast_ns() + ktime_to_ns(tk->offs_boot)); in ktime_get_boot_fast_ns()
544 basem = ktime_to_ns(tkr->base); in __ktime_get_real_fast()
545 baser = ktime_to_ns(tkr->base_real); in __ktime_get_real_fast()
619 snapshot->boot = snapshot->mono + ktime_to_ns(data_race(tk->offs_boot)); in ktime_get_fast_timestamps()
1125 corr_raw = (u64)ktime_to_ns( in adjust_historical_crosststamp()
1143 corr_real = (u64)ktime_to_ns( in adjust_historical_crosststamp()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
A Dhead.c71 args->v0.time[0] = ktime_to_ns(ktime_get()); in nvkm_head_mthd_scanoutpos()
73 args->v0.time[1] = ktime_to_ns(ktime_get()); in nvkm_head_mthd_scanoutpos()
/linux/drivers/media/rc/
A Dserial_ir.c236 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier()
244 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier()
358 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler()
359 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler()
370 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler()
371 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler()
A Dgpio-ir-tx.c110 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
116 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
/linux/fs/ocfs2/cluster/
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/panfrost/
A Dpanfrost_devfreq.c61 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status()
64 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status()
/linux/drivers/gpu/drm/lima/
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/gpu/drm/i915/gt/
A Dselftest_timeline.c315 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
316 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync()
332 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
350 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
366 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
380 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
404 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
433 (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
A Dselftest_rc6.c78 ktime_to_ns(dt)); in live_rc6_manual()
107 ktime_to_ns(dt)); in live_rc6_manual()
/linux/net/sched/
A Dsch_cake.c581 else if (ktime_to_ns(schedule) > 0 && !drop) in cobalt_should_drop()
1729 min(ktime_to_ns(q->time_next_packet), in cake_enqueue()
1730 ktime_to_ns( in cake_enqueue()
1814 ktime_to_ns(ktime_sub(now, q->last_packet_time)); in cake_enqueue()
1830 ktime_to_ns(ktime_sub(now, in cake_enqueue()
1966 u64 next = min(ktime_to_ns(q->time_next_packet), in cake_dequeue()
1967 ktime_to_ns(q->failsafe_next_packet)); in cake_dequeue()
2020 if (ktime_to_ns(time_to_pkt) <= 0 || in cake_dequeue()
2199 u64 next = min(ktime_to_ns(q->time_next_packet), in cake_dequeue()
2200 ktime_to_ns(q->failsafe_next_packet)); in cake_dequeue()
[all …]
/linux/drivers/ptp/
A Dptp_idt82p33.c272 dynamic_overhead_ns = ktime_to_ns(ktime_get_raw()) in _idt82p33_settime()
273 - ktime_to_ns(idt82p33->start_time); in _idt82p33_settime()
392 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_one_byte_write_overhead()
428 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_tod_write_9_byte_overhead()
/linux/drivers/net/can/usb/peak_usb/
A Dpcan_usb_core.c88 if (ktime_to_ns(time_ref->tv_host) > 0) { in peak_usb_update_ts_now()
103 if (ktime_to_ns(time_ref->tv_host_0) == 0) { in peak_usb_set_ts_now()
113 if (ktime_to_ns(time_ref->tv_host)) { in peak_usb_set_ts_now()
116 if (ktime_to_ns(delta) > (4200ull * NSEC_PER_SEC)) { in peak_usb_set_ts_now()
136 if (ktime_to_ns(time_ref->tv_host)) { in peak_usb_get_ts_time()
/linux/drivers/infiniband/hw/hfi1/
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/drivers/base/power/
A Ddomain_governor.c164 idle_time_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in next_wakeup_allows_state()
368 idle_duration_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in cpu_power_down_ok()
A Dwakeup.c723 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate()
889 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
890 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
/linux/drivers/media/cec/core/
A Dcec-pin.c672 pin->rx_start_bit_low_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states()
704 pin->rx_start_bit_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states()
774 pin->rx_data_bit_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states()
819 pin->work_rx_msg.rx_ts = ktime_to_ns(ts); in cec_pin_rx_states()
851 if (ktime_to_ns(pin->timer_ts)) { in cec_pin_timer()
952 if (ktime_to_ns(pin->ts) == 0) in cec_pin_timer()
/linux/samples/kprobes/
A Dkretprobe_example.c66 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
/linux/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835-pcm.c287 if ((ktime_to_ns(alsa_stream->interpolate_start)) && in snd_bcm2835_pcm_pointer()
290 (ktime_to_ns(ktime_sub(now, in snd_bcm2835_pcm_pointer()
/linux/drivers/gpu/drm/
A Ddrm_vblank.c310 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count()
758 duration_ns = ktime_to_ns(etime) - ktime_to_ns(stime); in drm_crtc_vblank_helper_get_vblank_timestamp_internal()
1005 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event()
1500 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_vblank_restore()
2063 get_seq->sequence_ns = ktime_to_ns(now); in drm_crtc_get_sequence_ioctl()
/linux/arch/x86/kvm/
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()
614 refresh_clock = ((unsigned int)ktime_to_ns(ktime_get()) >> 14) & 1; in speaker_ioport_read()
/linux/kernel/sched/
A Drt.c203 ktime_to_ns(def_rt_bandwidth.rt_period), 0); in alloc_rt_sched_group()
500 return ktime_to_ns(rt_rq->tg->rt_bandwidth.rt_period); in sched_rt_period()
620 return ktime_to_ns(def_rt_bandwidth.rt_period); in sched_rt_period()
697 rt_period = ktime_to_ns(rt_b->rt_period); in do_balance_runtime()
2698 period = ktime_to_ns(tg->rt_bandwidth.rt_period); in tg_rt_schedulable()
2731 period = ktime_to_ns(child->rt_bandwidth.rt_period); in tg_rt_schedulable()
2814 rt_period = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_set_rt_runtime()
2853 rt_period_us = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_rt_period()
/linux/drivers/gpu/drm/i915/selftests/
A Di915_request.c605 ktime_to_ns(times[0]), in live_nop_request()
606 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_nop_request()
953 ktime_to_ns(times[0]), in live_empty_request()
954 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_empty_request()
2732 busy = 100 * ktime_to_ns(p->busy); in perf_series_engines()
2733 dt = ktime_to_ns(p->time); in perf_series_engines()
2747 div_u64(ktime_to_ns(p->time), 1000 * 1000)); in perf_series_engines()
3049 u64 busy = 100 * ktime_to_ns(p->busy); in perf_parallel_engines()
3050 u64 dt = ktime_to_ns(p->time); in perf_parallel_engines()
3066 div_u64(ktime_to_ns(p->time), 1000 * 1000)); in perf_parallel_engines()

Completed in 64 milliseconds

1234567