| /linux/include/linux/ |
| H A D | timekeeping.h | 139 return ktime_to_ns(ktime_get_coarse()); in ktime_get_coarse_ns() 144 return ktime_to_ns(ktime_get_coarse_real()); in ktime_get_coarse_real_ns() 149 return ktime_to_ns(ktime_get_coarse_boottime()); in ktime_get_coarse_boottime_ns() 154 return ktime_to_ns(ktime_get_coarse_clocktai()); in ktime_get_coarse_clocktai_ns() 175 return ktime_to_ns(ktime_get()); in ktime_get_ns() 185 return ktime_to_ns(ktime_get_real()); in ktime_get_real_ns() 195 return ktime_to_ns(ktime_get_boottime()); in ktime_get_boottime_ns() 205 return ktime_to_ns(ktime_get_clocktai()); in ktime_get_clocktai_ns() 215 return ktime_to_ns(ktime_get_raw()); in ktime_get_raw_ns()
|
| /linux/kernel/time/ |
| H A D | timer_list.c | 53 (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() 108 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base() 126 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu() 145 (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() 325 iter->now = ktime_to_ns(ktime_ge in timer_list_start() [all...] |
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | time-sync.c | 88 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()
|
| /linux/drivers/media/rc/ |
| H A D | serial_ir.c | 237 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier() 245 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier() 359 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 360 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler() 371 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 372 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | uhead.c | 68 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()
|
| /linux/fs/ocfs2/cluster/ |
| H A D | netdebug.c | 264 # 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/lima/ |
| H A D | lima_devfreq.c | 67 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/ptp/ |
| H A D | ptp_idt82p33.c | 421 dynamic_overhead_ns = ktime_to_ns(ktime_get_raw()) in _idt82p33_settime() 422 - ktime_to_ns(idt82p33->start_time); in _idt82p33_settime() 651 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_one_byte_write_overhead() 684 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_one_byte_read_overhead() 720 total_ns += ktime_to_ns(stop) - ktime_to_ns(start); in idt82p33_measure_tod_write_9_byte_overhead()
|
| H A D | ptp_vclock.c | 139 ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device)); in ptp_vclock_getcrosststamp() 282 ns = ktime_to_ns(*hwtstamp); in ptp_convert_timestamp()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_timeline.c | 317 __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()
|
| H A D | selftest_rc6.c | 91 ktime_to_ns(dt)); in live_rc6_manual() 126 ktime_to_ns(dt)); in live_rc6_manual()
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_devfreq.c | 70 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status() 73 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status()
|
| /linux/drivers/md/ |
| H A D | dm-stats.h | 45 aux->duration_ns = ktime_to_ns(ktime_get()); in dm_stats_record_start()
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_devfreq.c | 99 status->total_time = ktime_to_ns(ktime_add(pdevfreq->busy_time, in panthor_devfreq_get_dev_status() 102 status->busy_time = ktime_to_ns(pdevfreq->busy_time); in panthor_devfreq_get_dev_status()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A 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/net/sched/ |
| H A D | sch_cake.c | 451 if (ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_full() 476 ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_empty() 486 if (vars->count && ktime_to_ns(ktime_sub(now, vars->drop_next)) >= 0) { in cobalt_queue_empty() 526 sojourn = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cobalt_should_drop() 531 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop() 569 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop() 581 else if (ktime_to_ns(schedule) > 0 && reason == QDISC_DROP_UNSPEC) in cobalt_should_drop() 1788 min(ktime_to_ns(q->time_next_packet), in cake_enqueue() 1789 ktime_to_ns( in cake_enqueue() 1876 ktime_to_ns(ktime_sub(now, q->last_packet_time)); in cake_enqueue() [all …]
|
| /linux/drivers/net/can/usb/peak_usb/ |
| H A D | pcan_usb_core.c | 110 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()
|
| /linux/samples/kprobes/ |
| H A D | kretprobe_example.c | 65 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
|
| /linux/drivers/base/power/ |
| H A D | wakeup.c | 684 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate() 850 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources() 851 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
|
| /linux/sound/soc/sof/ |
| H A D | sof-client-ipc-flood-test.c | 93 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()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_fdinfo.c | 122 ktime_to_ns(usage[hw_ip])); in amdgpu_show_fdinfo()
|
| /linux/drivers/media/cec/core/ |
| H A D | cec-pin.c | 700 pin->rx_start_bit_low_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states() 732 pin->rx_start_bit_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states() 802 pin->rx_data_bit_too_short_ts = ktime_to_ns(pin->ts); in cec_pin_rx_states() 847 pin->work_rx_msg.rx_ts = ktime_to_ns(ts); in cec_pin_rx_states() 879 if (ktime_to_ns(pin->timer_ts)) { in cec_pin_timer() 980 if (ktime_to_ns(pin->ts) == 0) in cec_pin_timer()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | gk20a_devfreq.c | 240 status->busy_time = ktime_to_ns(gdevfreq->busy_time); in gk20a_devfreq_get_dev_status() 241 status->total_time = ktime_to_ns(gdevfreq->total_time); in gk20a_devfreq_get_dev_status()
|
| /linux/drivers/staging/vc04_services/bcm2835-audio/ |
| H A D | bcm2835-pcm.c | 286 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()
|
| /linux/drivers/pmdomain/ |
| H A D | governor.c | 172 idle_time_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in next_wakeup_allows_state() 394 idle_duration_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in cpu_power_down_ok()
|