Home
last modified time | relevance | path

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

12345678

/openbmc/linux/include/linux/
H 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()
H A Dhrtimer.h299 return ktime_to_ns(timer->node.expires); in hrtimer_get_expires_ns()
433 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
/openbmc/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()
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 …]
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/media/rc/
H 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()
H A Dgpio-ir-tx.c129 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
135 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
/openbmc/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))
/openbmc/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()
/openbmc/linux/drivers/md/
H A Ddm-stats.h45 aux->duration_ns = ktime_to_ns(ktime_get()); in dm_stats_record_start()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_rc6.c78 ktime_to_ns(dt)); in live_rc6_manual()
107 ktime_to_ns(dt)); in live_rc6_manual()
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()
/openbmc/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_devfreq.c62 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status()
65 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status()
/openbmc/linux/drivers/ptp/
H A Dptp_idt82p33.c433 dynamic_overhead_ns = ktime_to_ns(ktime_get_raw()) in _idt82p33_settime()
434 - ktime_to_ns(idt82p33->start_time); in _idt82p33_settime()
663 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_one_byte_write_overhead()
696 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_one_byte_read_overhead()
732 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_tod_write_9_byte_overhead()
H A Dptp_vclock.c139 ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device)); in ptp_vclock_getcrosststamp()
275 ns = ktime_to_ns(*hwtstamp); in ptp_convert_timestamp()
/openbmc/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()
/openbmc/linux/net/sched/
H A Dsch_cake.c582 else if (ktime_to_ns(schedule) > 0 && !drop) in cobalt_should_drop()
1730 min(ktime_to_ns(q->time_next_packet), in cake_enqueue()
1731 ktime_to_ns( in cake_enqueue()
1815 ktime_to_ns(ktime_sub(now, q->last_packet_time)); in cake_enqueue()
1831 ktime_to_ns(ktime_sub(now, in cake_enqueue()
1967 u64 next = min(ktime_to_ns(q->time_next_packet), in cake_dequeue()
1968 ktime_to_ns(q->failsafe_next_packet)); in cake_dequeue()
2021 if (ktime_to_ns(time_to_pkt) <= 0 || in cake_dequeue()
2200 u64 next = min(ktime_to_ns(q->time_next_packet), in cake_dequeue()
2201 ktime_to_ns(q->failsafe_next_packet)); in cake_dequeue()
[all …]
/openbmc/linux/samples/kprobes/
H A Dkretprobe_example.c65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
/openbmc/linux/drivers/base/power/
H A Ddomain_governor.c169 idle_time_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in next_wakeup_allows_state()
374 idle_duration_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in cpu_power_down_ok()
H A Dwakeup.c689 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate()
855 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
856 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_fdinfo.c117 ktime_to_ns(usage[hw_ip])); in amdgpu_show_fdinfo()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/media/cec/core/
H 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()

12345678