| /Linux-v5.4/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 | 296 return ktime_to_ns(timer->node.expires); in hrtimer_get_expires_ns() 434 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
|
| /Linux-v5.4/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 …]
|
| D | itimer.c | 154 nval = ktime_to_ns(timeval_to_ktime(value->it_value)); in set_cpu_itimer() 155 ninterval = ktime_to_ns(timeval_to_ktime(value->it_interval)); in set_cpu_itimer()
|
| /Linux-v5.4/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() 379 data = ktime_to_ns(delkt); in serial_ir_irq_handler()
|
| D | gpio-ir-tx.c | 96 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx() 102 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx()
|
| D | rc-ir-raw.c | 111 ev.duration = ktime_to_ns(ktime_sub(now, dev->raw->last_event)); in ir_raw_event_store_edge() 564 if (ktime_to_ns(interval) >= dev->timeout) { in ir_raw_edge_handle() 567 .duration = ktime_to_ns(interval) in ir_raw_edge_handle() 574 ktime_to_ns(interval))); in ir_raw_edge_handle()
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/drivers/gpu/drm/i915/gt/ |
| D | selftest_timeline.c | 279 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 280 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync() 296 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 314 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 330 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 344 __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() 397 (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
|
| /Linux-v5.4/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))
|
| /Linux-v5.4/kernel/ |
| D | async.c | 130 (long long)ktime_to_ns(delta) >> 10); in async_run_entry_fn() 305 (long long)ktime_to_ns(delta) >> 10); in async_synchronize_cookie_domain()
|
| /Linux-v5.4/net/sched/ |
| D | sch_cake.c | 455 if (ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_full() 480 ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_empty() 490 if (vars->count && ktime_to_ns(ktime_sub(now, vars->drop_next)) >= 0) { in cobalt_queue_empty() 529 sojourn = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cobalt_should_drop() 534 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop() 571 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop() 582 else if (ktime_to_ns(schedule) > 0 && !drop) in cobalt_should_drop() 1665 min(ktime_to_ns(q->time_next_packet), in cake_enqueue() 1666 ktime_to_ns( in cake_enqueue() 1752 ktime_to_ns(ktime_sub(now, q->last_packet_time)); in cake_enqueue() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/panfrost/ |
| D | panfrost_devfreq.c | 97 status->total_time = ktime_to_ns(ktime_add(pfdev->devfreq.slot[0].busy_time, in panfrost_devfreq_get_dev_status() 102 status->busy_time += ktime_to_ns(pfdev->devfreq.slot[i].busy_time); in panfrost_devfreq_get_dev_status()
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/samples/kprobes/ |
| D | kretprobe_example.c | 65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|
| /Linux-v5.4/net/rxrpc/ |
| D | call_event.c | 218 ktime_to_ns(ktime_sub(skb->tstamp, max_age))); in rxrpc_resend() 221 resend_at = nsecs_to_jiffies(ktime_to_ns(ktime_sub(now, oldest))); in rxrpc_resend() 237 if (ktime_to_ns(ack_ts) < call->peer->rtt) in rxrpc_resend()
|
| /Linux-v5.4/drivers/media/cec/ |
| 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()
|
| /Linux-v5.4/drivers/base/power/ |
| D | wakeup.c | 663 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate() 829 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources() 830 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
|
| /Linux-v5.4/drivers/staging/vc04_services/bcm2835-audio/ |
| D | bcm2835-pcm.c | 298 if ((ktime_to_ns(alsa_stream->interpolate_start)) && in snd_bcm2835_pcm_pointer() 301 (ktime_to_ns(ktime_sub(now, in snd_bcm2835_pcm_pointer()
|
| /Linux-v5.4/sound/soc/sof/ |
| D | debug.c | 60 ipc_response_time = ktime_to_ns(ktime_sub(end, start)); in sof_debug_ipc_flood_test() 70 if (ktime_to_ns(end) >= test_end) in sof_debug_ipc_flood_test()
|
| /Linux-v5.4/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() 602 refresh_clock = ((unsigned int)ktime_to_ns(ktime_get()) >> 14) & 1; in speaker_ioport_read()
|
| /Linux-v5.4/drivers/gpu/drm/ |
| D | drm_vblank.c | 236 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count() 668 duration_ns = ktime_to_ns(etime) - ktime_to_ns(stime); in drm_calc_vbltimestamp_from_scanoutpos() 851 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event() 1335 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_vblank_restore() 1866 get_seq->sequence_ns = ktime_to_ns(now); in drm_crtc_get_sequence_ioctl()
|
| /Linux-v5.4/net/bluetooth/ |
| D | selftest.c | 240 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in test_ecdh()
|
| /Linux-v5.4/kernel/sched/ |
| D | rt.c | 197 ktime_to_ns(def_rt_bandwidth.rt_period), 0); in alloc_rt_sched_group() 452 return ktime_to_ns(rt_rq->tg->rt_bandwidth.rt_period); in sched_rt_period() 572 return ktime_to_ns(def_rt_bandwidth.rt_period); in sched_rt_period() 649 rt_period = ktime_to_ns(rt_b->rt_period); in do_balance_runtime() 2431 period = ktime_to_ns(tg->rt_bandwidth.rt_period); in tg_rt_schedulable() 2463 period = ktime_to_ns(child->rt_bandwidth.rt_period); in tg_rt_schedulable() 2542 rt_period = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_set_rt_runtime() 2581 rt_period_us = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_rt_period()
|