Home
last modified time | relevance | path

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

/linux-4.4.14/kernel/time/
Dtimer_list.c82 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)), in print_timer()
83 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), in print_timer()
84 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
85 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
137 (unsigned long long) ktime_to_ns(base->offset)); in print_base()
140 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
158 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
177 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu()
230 (unsigned long long) ktime_to_ns(dev->next_event)); in print_tickdevice()
315 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show()
[all …]
Dalarmtimer.c257 if (ktime_to_ns(min) < 2 * NSEC_PER_SEC) { in alarmtimer_suspend()
412 s64 incr = ktime_to_ns(interval); in alarm_forward()
557 if (ktime_to_ns(relative_expiry_time) > 0) { in alarm_timer_get()
Dtick-sched.c76 s64 incr = ktime_to_ns(tick_period); in tick_do_update_jiffies64()
1110 u64 offset = ktime_to_ns(tick_period) >> 1; in tick_setup_sched_timer()
Dhrtimer.c290 dclc = ktime_to_ns(kt); in __ktime_divns()
850 s64 incr = ktime_to_ns(interval); in hrtimer_forward()
1404 ktime_to_ns(delta)); in hrtimer_interrupt()
Dclockevents.c331 delta = ktime_to_ns(ktime_sub(expires, ktime_get())); in clockevents_program_event()
Dtimekeeping.c386 now = ktime_to_ns(tkr->base) + timekeeping_get_ns(tkr); in __ktime_get_fast_ns()
/linux-4.4.14/include/linux/
Dtimekeeping.h211 return ktime_to_ns(ktime_get()); in ktime_get_ns()
216 return ktime_to_ns(ktime_get_real()); in ktime_get_real_ns()
221 return ktime_to_ns(ktime_get_boottime()); in ktime_get_boot_ns()
226 return ktime_to_ns(ktime_get_clocktai()); in ktime_get_tai_ns()
231 return ktime_to_ns(ktime_get_raw()); in ktime_get_raw_ns()
Dhrtimer.h268 return ktime_to_ns(timer->node.expires); in hrtimer_get_expires_ns()
406 delta = ktime_to_ns(ktime_sub(hard, soft)); in hrtimer_start_expires()
Dktime.h108 #define ktime_to_ns(kt) ((kt).tv64) macro
/linux-4.4.14/include/trace/events/
Dtimer.h186 (unsigned long long)ktime_to_ns((ktime_t) {
188 (unsigned long long)ktime_to_ns((ktime_t) {
219 (unsigned long long)ktime_to_ns((ktime_t) { .tv64 = __entry->now }))
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Drootnv04.c70 args->v0.time[0] = ktime_to_ns(ktime_get()); in nv04_disp_scanoutpos()
72 args->v0.time[1] = ktime_to_ns(ktime_get()); in nv04_disp_scanoutpos()
Drootgf119.c56 args->v0.time[0] = ktime_to_ns(ktime_get()); in gf119_disp_root_scanoutpos()
59 args->v0.time[1] = ktime_to_ns(ktime_get()); in gf119_disp_root_scanoutpos()
Drootnv50.c56 args->v0.time[0] = ktime_to_ns(ktime_get()); in nv50_disp_root_scanoutpos()
59 args->v0.time[1] = ktime_to_ns(ktime_get()); in nv50_disp_root_scanoutpos()
/linux-4.4.14/fs/ocfs2/cluster/
Dnetdebug.c285 # define sc_tv_acquiry_total_ns(_s) (ktime_to_ns((_s)->sc_tv_acquiry_total))
286 # define sc_tv_send_total_ns(_s) (ktime_to_ns((_s)->sc_tv_send_total))
287 # define sc_tv_status_total_ns(_s) (ktime_to_ns((_s)->sc_tv_status_total))
288 # define sc_tv_process_total_ns(_s) (ktime_to_ns((_s)->sc_tv_process_total))
/linux-4.4.14/kernel/
Dasync.c130 (long long)ktime_to_ns(delta) >> 10); in async_run_entry_fn()
300 (long long)ktime_to_ns(delta) >> 10); in async_synchronize_cookie_domain()
/linux-4.4.14/kernel/sched/
Dclock.c147 u64 ktime_now = ktime_to_ns(ktime_get()); in sched_clock_init()
331 now_gtod = ktime_to_ns(ktime_get()); in sched_clock_tick()
Drt.c199 ktime_to_ns(def_rt_bandwidth.rt_period), 0); in alloc_rt_sched_group()
454 return ktime_to_ns(rt_rq->tg->rt_bandwidth.rt_period); in sched_rt_period()
571 return ktime_to_ns(def_rt_bandwidth.rt_period); in sched_rt_period()
648 rt_period = ktime_to_ns(rt_b->rt_period); in do_balance_runtime()
Ddebug.c353 ktime = ktime_to_ns(ktime_get()); in sched_debug_header()
Dcore.c7856 period = ktime_to_ns(tg->rt_bandwidth.rt_period); in tg_rt_schedulable()
7888 period = ktime_to_ns(child->rt_bandwidth.rt_period); in tg_rt_schedulable()
7967 rt_period = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_set_rt_runtime()
8001 rt_period_us = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_rt_period()
8367 period = ktime_to_ns(tg->cfs_bandwidth.period); in tg_set_cfs_quota()
8403 cfs_period_us = ktime_to_ns(tg->cfs_bandwidth.period); in tg_get_cfs_period()
Ddeadline.c540 delta = ktime_to_ns(now) - rq_clock(rq); in start_dl_timer()
Dfair.c3381 cfs_b->runtime_expires = now + ktime_to_ns(cfs_b->period); in __refill_cfs_bandwidth_runtime()
3791 remaining = ktime_to_ns(hrtimer_expires_remaining(refresh_timer)); in runtime_refresh_within()
/linux-4.4.14/samples/kprobes/
Dkretprobe_example.c64 delta = ktime_to_ns(ktime_sub(now, data->entry_stamp)); in ret_handler()
/linux-4.4.14/drivers/base/power/
Dwakeup.c655 if (ktime_to_ns(duration) > ktime_to_ns(ws->max_time)) in wakeup_source_deactivate()
820 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
821 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
Ddomain.c120 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in genpd_power_on()
149 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in genpd_power_off()
430 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in pm_genpd_runtime_suspend()
501 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in pm_genpd_runtime_resume()
Dmain.c212 nsecs = (s64) ktime_to_ns(ktime_sub(rettime, calltime)); in initcall_debug_report()
366 usecs64 = ktime_to_ns(ktime_sub(calltime, starttime)); in dpm_show_time()
/linux-4.4.14/drivers/dma-buf/
Dfence.c74 if (!ktime_to_ns(fence->timestamp)) { in fence_signal_locked()
114 if (!ktime_to_ns(fence->timestamp)) { in fence_signal()
/linux-4.4.14/net/bluetooth/
Dselftest.c202 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in test_ecdh()
Dsmp.c3757 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in run_selftests()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c118 tmr->func->time(tmr, ktime_to_ns(ktime_get())); in nvkm_timer_init()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c267 ktime_to_ns(ktime_get_real())); in xgbe_ptp_register()
Dxgbe-dev.c1286 ktime_to_ns(ktime_get_real())); in xgbe_config_tstamp()
/linux-4.4.14/net/netfilter/
Dxt_time.c174 stamp = ktime_to_ns(skb->tstamp); in time_mt()
Dnf_conntrack_core.c673 tstamp->start = ktime_to_ns(skb->tstamp); in __nf_conntrack_confirm()
/linux-4.4.14/arch/x86/kvm/
Di8254.c126 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed()
137 return ktime_to_ns(ktime_sub(ktime_get(), c->count_load_time)); in kpit_elapsed()
630 refresh_clock = ((unsigned int)ktime_to_ns(ktime_get()) >> 14) & 1; in speaker_ioport_read()
Dlapic.c1042 if (ktime_to_ns(remaining) < 0) in apic_get_tmcct()
1045 ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); in apic_get_tmcct()
1301 APIC_BUS_CYCLE_NS, ktime_to_ns(now), in start_apic_timer()
1304 ktime_to_ns(ktime_add_ns(now, in start_apic_timer()
Dvmx.c8435 ktime_to_ns(ktime_sub(ktime_get(), vmx->entry_time)); in vmx_recover_nmi_blocking()
10114 if (ktime_to_ns(remaining) <= 0) in vmx_get_preemption_timer_value()
10117 value = ktime_to_ns(remaining) * vcpu->arch.virtual_tsc_khz; in vmx_get_preemption_timer_value()
Dx86.c1122 boot_ns = ktime_to_ns(ktime_add(tk->tkr_mono.base, tk->offs_boot)); in update_pvclock_gtod()
/linux-4.4.14/kernel/power/
Dwakelock.c115 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws.last_time)); in __wakelocks_gc()
/linux-4.4.14/drivers/staging/olpc_dcon/
Dolpc_dcon.c245 if (ktime_to_ns(delta_t) > NSEC_PER_MSEC * 20) in dcon_load_holdoff()
356 if (dcon->switched && ktime_to_ns(delta_t) in dcon_source_switch()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c282 ktime_to_ns(ktime_get_real())); in mlx4_en_init_timestamp()
/linux-4.4.14/drivers/media/rc/
Drc-ir-raw.c118 delta = ktime_to_ns(ktime_sub(now, dev->raw->last_event)); in ir_raw_event_store_edge()
Dir-lirc-codec.c78 lirc->gap_duration += ktime_to_ns(ktime_sub(ktime_get(), in ir_lirc_decode()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gem.c347 if (ktime_to_ns(timeout) < 0) in amdgpu_gem_timeout()
350 timeout_jiffies = nsecs_to_jiffies(ktime_to_ns(timeout)); in amdgpu_gem_timeout()
/linux-4.4.14/drivers/net/can/softing/
Dsofting_fw.c412 while (unlikely(ktime_to_ns(tmp) > ktime_to_ns(now))) { in softing_raw2ktime()
/linux-4.4.14/drivers/input/joystick/
Dwalkera0701.c132 w->irq_time = ktime_to_ns(ktime_get()); in walkera0701_irq_handler()
/linux-4.4.14/drivers/ptp/
Dptp_clock.c150 delta = ktime_to_ns(kt); in ptp_clock_adjtime()
/linux-4.4.14/fs/dlm/
Ddebug_fs.c253 (unsigned long long)ktime_to_ns(lkb->lkb_timestamp), in print_format3_lock()
254 (unsigned long long)ktime_to_ns(lkb->lkb_last_bast_time)); in print_format3_lock()
/linux-4.4.14/drivers/md/
Ddm-stats.c497 now = ktime_to_ns(ktime_get()); in dm_stat_round()
661 stats_aux->duration_ns = ktime_to_ns(ktime_get()); in dm_stats_account_io()
663 stats_aux->duration_ns = ktime_to_ns(ktime_get()) - stats_aux->duration_ns; in dm_stats_account_io()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_ptp.c146 s64 ns = ktime_to_ns(ktime_get_real()); in fm10k_ts_reset()
/linux-4.4.14/drivers/net/ethernet/ti/
Dcpts.c387 timecounter_init(&cpts->tc, &cpts->cc, ktime_to_ns(ktime_get_real())); in cpts_register()
/linux-4.4.14/drivers/net/ethernet/renesas/
Dravb_ptp.c142 u64 now = ktime_to_ns(timespec64_to_ktime(ts)); in ravb_ptp_adjtime()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
Digb_ptp.c1096 ktime_to_ns(ktime_get_real())); in igb_ptp_init()
1210 ktime_to_ns(ktime_get_real())); in igb_ptp_reset()
/linux-4.4.14/fs/gfs2/
Dlock_dlm.c82 rtt = ktime_to_ns(ktime_sub(ktime_get_real(), gl->gl_dstamp)); in gfs2_update_reply_times()
110 irt = ktime_to_ns(ktime_sub(gl->gl_dstamp, dstamp)); in gfs2_update_request_times()
Drgrp.c1919 tdiff = ktime_to_ns(ktime_sub(ktime_get_real(), in gfs2_rgrp_used_recently()
/linux-4.4.14/fs/ubifs/
Dio.c461 div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), in new_wbuf_timer_nolock()
462 div_u64(ktime_to_ns(wbuf->softlimit) + wbuf->delta, in new_wbuf_timer_nolock()
/linux-4.4.14/drivers/bluetooth/
Dhci_intel.c862 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in intel_setup()
907 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in intel_setup()
Dbtusb.c2294 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in btusb_setup_intel_new()
2340 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in btusb_setup_intel_new()
/linux-4.4.14/drivers/net/ethernet/freescale/
Dfec_ptp.c286 timecounter_init(&fep->tc, &fep->cc, ktime_to_ns(ktime_get_real())); in fec_ptp_start_cyclecounter()
/linux-4.4.14/init/
Dmain.c775 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in do_one_initcall_debug()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_irq.c824 duration_ns = ktime_to_ns(etime) - ktime_to_ns(stime); in drm_calc_vbltimestamp_from_scanoutpos()
/linux-4.4.14/net/core/
Dpktgen.c2247 remaining = ktime_to_ns(hrtimer_expires_remaining(&t.timer)); in spin()
2275 pkt_dev->idle_acc += ktime_to_ns(ktime_sub(end_time, start_time)); in spin()
3225 ktime_to_ns(elapsed)); in show_results()
3347 pkt_dev->idle_acc += ktime_to_ns(ktime_sub(ktime_get(), idle_start)); in pktgen_resched()
3363 pkt_dev->idle_acc += ktime_to_ns(ktime_sub(ktime_get(), idle_start)); in pktgen_wait_for_skb()
/linux-4.4.14/arch/mips/kvm/
Dtrap_emul.c526 *v = ktime_to_ns(vcpu->arch.count_resume); in kvm_trap_emul_get_one_reg()
Demulate.c251 now_ns = ktime_to_ns(now); in kvm_mips_ktime_to_count()
727 if (count_resume < 0 || count_resume > ktime_to_ns(ktime_get())) in kvm_mips_set_count_resume()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c831 ktime_to_ns(ktime_get_real())); in ixgbe_ptp_reset()
/linux-4.4.14/drivers/staging/android/
Dsync.c646 info->timestamp_ns = ktime_to_ns(fence->timestamp); in sync_fill_pt_info()
/linux-4.4.14/kernel/trace/
Dblktrace.c96 t->time = ktime_to_ns(ktime_get()); in trace_note()
259 t->time = ktime_to_ns(ktime_get()); in __blk_add_trace()
/linux-4.4.14/drivers/rtc/
Dinterface.c850 if (ktime_to_ns(timer->period)) { in rtc_timer_do_work()
/linux-4.4.14/drivers/scsi/
Dst.c480 atomic64_add(ktime_to_ns(now), &STp->stats->tot_write_time); in st_do_stats()
481 atomic64_add(ktime_to_ns(now), &STp->stats->tot_io_time); in st_do_stats()
494 atomic64_add(ktime_to_ns(now), &STp->stats->tot_read_time); in st_do_stats()
495 atomic64_add(ktime_to_ns(now), &STp->stats->tot_io_time); in st_do_stats()
508 atomic64_add(ktime_to_ns(now), &STp->stats->tot_io_time); in st_do_stats()
/linux-4.4.14/fs/jbd2/
Dcommit.c1108 commit_time = ktime_to_ns(ktime_sub(ktime_get(), start_time)); in jbd2_journal_commit_transaction()
Dtransaction.c1705 trans_time = ktime_to_ns(ktime_sub(ktime_get(), in jbd2_journal_stop()
/linux-4.4.14/fs/ext4/
Dextents_status.c1041 scan_time = ktime_to_ns(ktime_sub(ktime_get(), start_time)); in __es_shrink()
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr_core.c967 (long)(ktime_to_ns(diff_time)), err); in pcxhr_set_pipe_state()
Dpcxhr.c830 (long)(ktime_to_ns(diff_time)), err); in pcxhr_start_linked_stream()
/linux-4.4.14/drivers/acpi/
Dosl.c904 u64 time_ns = ktime_to_ns(ktime_get()); in acpi_os_get_timer()
/linux-4.4.14/virt/kvm/
Dkvm_main.c2045 block_ns = ktime_to_ns(cur) - ktime_to_ns(start); in kvm_vcpu_block()
/linux-4.4.14/drivers/staging/fbtft/
Dfbtft-core.c395 if (ktime_to_ns(par->update_time)) in fbtft_update_display()
/linux-4.4.14/fs/ocfs2/
Ddlmglue.c457 stats->ls_total += ktime_to_ns(kt); in ocfs2_update_lock_stats()
461 stats->ls_total = ktime_to_ns(kt); in ocfs2_update_lock_stats()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dsge.c404 delta_time_ns = ktime_to_ns(ktime_sub(now, s->last_updated)); in sched_update_avail()
/linux-4.4.14/net/sched/
Dsch_cbq.c510 ktime_to_ns(ktime_sub( in cbq_ovl_delay()
/linux-4.4.14/drivers/crypto/
Dhifn_795x.c798 nsec = ktime_to_ns(ktime_sub(ktime_get(), dev->rngtime)); in hifn_rng_data_present()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Drc.c1862 cc_event->timestamp = ktime_to_ns(ktime_get()) / 1024; in log_cca_event()
Dmad.c3270 ts = ktime_to_ns(ktime_get()) / 1024; in __subn_get_opa_hfi1_cong_log()
/linux-4.4.14/drivers/pci/
Dquirks.c3016 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in fixup_debug_report()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dnetdev.c3743 ktime_to_ns(ktime_get_real())); in e1000e_config_hwtstamp()
/linux-4.4.14/kernel/events/
Dcore.c7207 local64_set(&hwc->period_left, ktime_to_ns(remaining)); in perf_swevent_cancel_hrtimer()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dtg3.c6341 tg3_refclk_write(tp, ktime_to_ns(ktime_get_real())); in tg3_ptp_init()
6352 tg3_refclk_write(tp, ktime_to_ns(ktime_get_real()) + tp->ptp_adjust); in tg3_ptp_resume()
/linux-4.4.14/fs/nfs/
Dnfs4proc.c1118 p->o_arg.id.create_time = ktime_to_ns(sp->so_seqid.create_time); in nfs4_opendata_alloc()
/linux-4.4.14/fs/btrfs/
Dextent-tree.c2665 u64 runtime = ktime_to_ns(ktime_sub(ktime_get(), start)); in __btrfs_run_delayed_refs()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c15387 ktime_to_ns(ktime_get_real())); in bnx2x_init_ptp()