Home
last modified time | relevance | path

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

12345678

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_metrics.c68 ns_time = (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_job_status()
89 ns_time = (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_idle()
96 ns_time = (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_idle()
106 ns_time = (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_idle()
113 ns_time = (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_idle()
139 mdev->mali_metrics.time_idle_gp += (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_active()
144 mdev->mali_metrics.time_idle += (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_active()
155 mdev->mali_metrics.time_idle_pp[0] += (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_active()
160 mdev->mali_metrics.time_idle += (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_record_gpu_active()
183 mdev->mali_metrics.time_busy += (u64)(ktime_to_ns(diff) >> MALI_PM_TIME_SHIFT); in mali_pm_get_dvfs_utilisation_calc()
[all …]
/OK3568_Linux_fs/kernel/kernel/time/
H A Dtimer_list.c66 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)), in print_timer()
67 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), in print_timer()
68 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
69 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
124 (unsigned long long) ktime_to_ns(base->offset)); in print_base()
127 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
145 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
164 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu()
219 (unsigned long long) ktime_to_ns(dev->next_event)); in print_tickdevice()
295 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A Dselftest_timeline.c285 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
286 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync()
302 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
320 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
336 __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()
374 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
403 (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
H A Dselftest_rc6.c74 rc0_power = div64_u64(NSEC_PER_SEC * rc0_power, ktime_to_ns(dt)); in live_rc6_manual()
100 rc6_power = div64_u64(NSEC_PER_SEC * rc6_power, ktime_to_ns(dt)); in live_rc6_manual()
/OK3568_Linux_fs/kernel/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.c124 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
130 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H 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()
/OK3568_Linux_fs/kernel/fs/ocfs2/cluster/
H A Dnetdebug.c266 # define sc_tv_acquiry_total_ns(_s) (ktime_to_ns((_s)->sc_tv_acquiry_total))
267 # define sc_tv_send_total_ns(_s) (ktime_to_ns((_s)->sc_tv_send_total))
268 # define sc_tv_status_total_ns(_s) (ktime_to_ns((_s)->sc_tv_status_total))
269 # define sc_tv_process_total_ns(_s) (ktime_to_ns((_s)->sc_tv_process_total))
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_jd_debugfs.c137 if (ktime_to_ns(atom->start_timestamp)) in kbasep_jd_debugfs_atoms_show()
139 ktime_to_ns(ktime_sub(ktime_get_raw(), atom->start_timestamp)); in kbasep_jd_debugfs_atoms_show()
/OK3568_Linux_fs/kernel/drivers/base/power/
H A Dwakeup.c726 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate()
896 ktime_to_ns(ws->last_time) > in pm_get_active_wakeup_sources()
897 ktime_to_ns(last_active_ws->last_time))) { in pm_get_active_wakeup_sources()
923 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
924 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
H A Ddomain_governor.c166 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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_pm_metrics.c239 diff_ns_signed = ktime_to_ns(diff); in kbase_pm_get_dvfs_utilisation_calc()
322 if (ktime_to_ns(diff) < 0) in kbase_pm_get_dvfs_utilisation_calc()
326 u32 ns_time = (u32) (ktime_to_ns(diff) >> KBASE_PM_TIME_SHIFT); in kbase_pm_get_dvfs_utilisation_calc()
341 (u32)(ktime_to_ns(diff) >> KBASE_PM_TIME_SHIFT); in kbase_pm_get_dvfs_utilisation_calc()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_jd_debugfs.c178 if (ktime_to_ns(atom->start_timestamp)) in kbasep_jd_debugfs_atoms_show()
179 start_timestamp = ktime_to_ns( in kbasep_jd_debugfs_atoms_show()
/OK3568_Linux_fs/kernel/drivers/ptp/
H A Dptp_idt82p33.c246 dynamic_overhead_ns = ktime_to_ns(ktime_get_raw()) in _idt82p33_settime()
247 - ktime_to_ns(idt82p33->start_time); in _idt82p33_settime()
374 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_one_byte_write_overhead()
410 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_tod_write_9_byte_overhead()
/OK3568_Linux_fs/kernel/net/sched/
H A Dsch_cake.c454 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()
528 sojourn = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cobalt_should_drop()
533 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop()
570 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop()
581 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()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/panfrost/
H A Dpanfrost_devfreq.c66 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status()
69 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status()
/OK3568_Linux_fs/kernel/kernel/
H A Dasync.c130 (long long)ktime_to_ns(delta) >> 10); in async_run_entry_fn()
302 (long long)ktime_to_ns(delta) >> 10); in async_synchronize_cookie_domain()
/OK3568_Linux_fs/kernel/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c83 if (ktime_to_ns(time_ref->tv_host) > 0) { in peak_usb_update_ts_now()
98 if (ktime_to_ns(time_ref->tv_host_0) == 0) { in peak_usb_set_ts_now()
108 if (ktime_to_ns(time_ref->tv_host)) { in peak_usb_set_ts_now()
111 if (ktime_to_ns(delta) > (4200ull * NSEC_PER_SEC)) { in peak_usb_set_ts_now()
131 if (ktime_to_ns(time_ref->tv_host)) { in peak_usb_get_ts_time()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/lima/
H A Dlima_devfreq.c72 status->total_time = ktime_to_ns(ktime_add(devfreq->busy_time, in lima_devfreq_get_dev_status()
74 status->busy_time = ktime_to_ns(devfreq->busy_time); in lima_devfreq_get_dev_status()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_pm_metrics.c135 if (ktime_to_ns(diff) < 0) in kbase_pm_get_dvfs_utilisation_calc()
139 u32 ns_time = (u32) (ktime_to_ns(diff) >> KBASE_PM_TIME_SHIFT); in kbase_pm_get_dvfs_utilisation_calc()
151 kbdev->pm.backend.metrics.time_idle += (u32) (ktime_to_ns(diff) in kbase_pm_get_dvfs_utilisation_calc()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/staging/vc04_services/bcm2835-audio/
H 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()
/OK3568_Linux_fs/kernel/samples/kprobes/
H A Dkretprobe_example.c66 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()

12345678