/kernel/linux/linux-5.10/include/linux/ |
D | timekeeping.h | 126 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()
|
D | hrtimer.h | 300 return ktime_to_ns(timer->node.expires); in hrtimer_get_expires_ns() 439 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
|
D | ktime.h | 80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() function
|
/kernel/linux/linux-5.10/kernel/time/ |
D | timer_list.c | 66 (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() 287 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | head.c | 71 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | selftest_timeline.c | 285 __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()
|
D | selftest_rc6.c | 74 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()
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
D | serial_ir.c | 236 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()
|
D | gpio-ir-tx.c | 124 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()
|
/kernel/linux/linux-5.10/fs/ocfs2/cluster/ |
D | netdebug.c | 266 # 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))
|
/kernel/linux/linux-5.10/kernel/ |
D | async.c | 130 (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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/ |
D | panfrost_devfreq.c | 66 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()
|
/kernel/linux/linux-5.10/drivers/ptp/ |
D | ptp_idt82p33.c | 246 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/ |
D | lima_devfreq.c | 72 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()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | aspm.c | 146 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()
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_cake.c | 454 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 …]
|
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 83 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()
|
/kernel/linux/linux-5.10/samples/kprobes/ |
D | kretprobe_example.c | 66 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|
/kernel/linux/linux-5.10/drivers/base/power/ |
D | wakeup.c | 723 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()
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-audio/ |
D | bcm2835-pcm.c | 287 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()
|
/kernel/linux/linux-5.10/drivers/media/cec/core/ |
D | cec-pin.c | 672 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()
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | i8254.c | 101 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() 613 refresh_clock = ((unsigned int)ktime_to_ns(ktime_get()) >> 14) & 1; in speaker_ioport_read()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_vblank.c | 307 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count() 752 duration_ns = ktime_to_ns(etime) - ktime_to_ns(stime); in drm_crtc_vblank_helper_get_vblank_timestamp_internal() 999 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event() 1496 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_vblank_restore() 2042 get_seq->sequence_ns = ktime_to_ns(now); in drm_crtc_get_sequence_ioctl()
|
/kernel/linux/linux-5.10/crypto/ |
D | xor.c | 112 speed = (1000 * REPS * BENCH_SIZE) / (unsigned int)ktime_to_ns(min); in do_xor_speed()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_request.c | 604 ktime_to_ns(times[0]), in live_nop_request() 605 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_nop_request() 752 ktime_to_ns(times[0]), in live_empty_request() 753 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_empty_request() 2534 busy = 100 * ktime_to_ns(p->busy); in perf_series_engines() 2535 dt = ktime_to_ns(p->time); in perf_series_engines() 2549 div_u64(ktime_to_ns(p->time), 1000 * 1000)); in perf_series_engines() 2851 u64 busy = 100 * ktime_to_ns(p->busy); in perf_parallel_engines() 2852 u64 dt = ktime_to_ns(p->time); in perf_parallel_engines() 2868 div_u64(ktime_to_ns(p->time), 1000 * 1000)); in perf_parallel_engines()
|