Home
last modified time | relevance | path

Searched refs:time_ns (Results 1 – 23 of 23) sorted by relevance

/linux/kernel/time/
H A Dnamespace.c197 return current->nsproxy->time_ns->vvar_page; in find_timens_vvar_page()
272 ns = nsproxy->time_ns; in timens_get()
320 put_time_ns(nsproxy->time_ns); in timens_install()
321 nsproxy->time_ns = ns; in timens_install()
335 if (nsproxy->time_ns == nsproxy->time_ns_for_children) in timens_on_fork()
339 put_time_ns(nsproxy->time_ns); in timens_on_fork()
340 nsproxy->time_ns = ns; in timens_on_fork()
371 struct time_namespace *time_ns; in proc_timens_show_offsets() local
376 time_ns = to_time_ns(ns); in proc_timens_show_offsets()
378 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets()
[all …]
/linux/include/linux/
H A Dtime_namespace.h76 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_monotonic()
83 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_boottime()
90 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_boottime_ns()
97 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_sub_boottime()
107 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host()
H A Dnsfs.h34 struct time_namespace *: current->nsproxy->time_ns, \
H A Dnsproxy.h39 struct time_namespace *time_ns; member
/linux/kernel/
H A Dnsproxy.c48 .time_ns = &init_time_ns,
69 put_time_ns(ns->time_ns); in nsproxy_free()
142 new_nsp->time_ns = get_time_ns(tsk->nsproxy->time_ns); in create_new_namespaces()
177 likely(old_ns->time_ns_for_children == old_ns->time_ns)) { in copy_namespaces()
281 if (tsk->nsproxy->time_ns_for_children == tsk->nsproxy->time_ns) in exec_task_namespaces()
504 ret = validate_ns(nsset, &nsp->time_ns->ns); in validate_nsset()
555 timens_commit(me, nsset->nsproxy->time_ns); in commit_nsset()
/linux/drivers/iio/common/scmi_sensors/
H A Dscmi_iio.c46 u64 time, time_ns; in scmi_iio_sensor_update_cb() local
58 time_ns = ktime_to_ns(sensor_update->timestamp); in scmi_iio_sensor_update_cb()
74 time_ns = time; in scmi_iio_sensor_update_cb()
76 time_ns = time * int_pow(10, tstamp_scale); in scmi_iio_sensor_update_cb()
82 time_ns); in scmi_iio_sensor_update_cb()
/linux/fs/xfs/
H A Dxfs_healthmon.c276 event->time_ns = (now.tv_sec * NSEC_PER_SEC) + now.tv_nsec; in __xfs_healthmon_insert()
298 event->time_ns = (now.tv_sec * NSEC_PER_SEC) + now.tv_nsec; in __xfs_healthmon_push()
748 .time_ns = event->time_ns, in xfs_healthmon_format_v0()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_ptp.c317 u64 time_ns; in idpf_ptp_gettimex64() local
320 err = idpf_ptp_read_src_clk_reg(adapter, &time_ns, sts); in idpf_ptp_gettimex64()
324 *ts = ns_to_timespec64(time_ns); in idpf_ptp_gettimex64()
/linux/drivers/memory/
H A Domap-gpmc.c335 static unsigned int gpmc_ns_to_clk_ticks(unsigned int time_ns, int cs, in gpmc_ns_to_clk_ticks() argument
343 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks()
346 static unsigned int gpmc_ns_to_ticks(unsigned int time_ns) in gpmc_ns_to_ticks() argument
348 return gpmc_ns_to_clk_ticks(time_ns, /* any CS */ 0, GPMC_CD_FCLK); in gpmc_ns_to_ticks()
461 unsigned int time_ns; in get_gpmc_timing_reg() local
466 time_ns = gpmc_clk_ticks_to_ns(l, cs, cd); in get_gpmc_timing_reg()
468 name, time_ns, time_ns_min, time_ns, l, in get_gpmc_timing_reg()
/linux/fs/
H A Dnsfs.c700 ns_ref_active_get(ns->time_ns); in nsproxy_ns_active_get()
712 ns_ref_active_put(ns->time_ns); in nsproxy_ns_active_put()
H A Dpidfs.c585 if (!ns_ref_get(nsp->time_ns)) in pidfd_ioctl()
587 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl()
/linux/drivers/ptp/
H A Dptp_ocp.c48 u32 time_ns; member
127 u32 time_ns; member
1216 u32 ctrl, time_sec, time_ns; in __ptp_ocp_gettime_locked() local
1237 time_ns = ioread32(&bp->reg->time_ns); in __ptp_ocp_gettime_locked()
1241 ts->tv_nsec = time_ns; in __ptp_ocp_gettime_locked()
1264 u32 ctrl, time_sec, time_ns; in __ptp_ocp_settime_locked() local
1267 time_ns = ts->tv_nsec; in __ptp_ocp_settime_locked()
1273 iowrite32(time_ns, &bp->reg->adjust_ns); in __ptp_ocp_settime_locked()
2180 nsec = ioread32(&reg->time_ns); in ptp_ocp_ts_irq()
/linux/tools/perf/scripts/python/
H A Dtask-analyzer.py770 def _time_to_internal(time_ns): argument
774 return decimal.Decimal(time_ns) / decimal.Decimal(1e9)
/linux/drivers/cpuidle/
H A Dcpuidle.c306 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
H A Dsysfs.c276 return sysfs_emit(buf, "%llu\n", ktime_to_us(state_usage->time_ns)); in define_show_state_time_function()
/linux/include/uapi/drm/
H A Ddrm.h1438 __s64 time_ns; member
/linux/tools/include/uapi/drm/
H A Ddrm.h1438 __s64 time_ns; member
/linux/tools/perf/
H A Dbuiltin-ftrace.c1228 static int add_func_duration(struct perf_ftrace *ftrace, char *func, double time_ns) in add_func_duration() argument
1248 update_stats(&prof->st, time_ns); in add_func_duration()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c78 u64 time_ns; in fbnic_ts40_to_ns() local
91 time_ns = (u64)(high >> 8) << 40 | ts40; in fbnic_ts40_to_ns()
100 time_ns += 1ULL << 40; in fbnic_ts40_to_ns()
102 return time_ns + offset; in fbnic_ts40_to_ns()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c1880 u64 time_ns; in ice_ptp_gettimex64() local
1882 time_ns = ice_ptp_read_src_clk_reg(pf, sts); in ice_ptp_gettimex64()
1883 *ts = ns_to_timespec64(time_ns); in ice_ptp_gettimex64()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_psr.c436 ktime_t time_ns = ktime_get(); in intel_psr_irq_handler() local
439 intel_dp->psr.last_entry_attempt = time_ns; in intel_psr_irq_handler()
446 intel_dp->psr.last_exit = time_ns; in intel_psr_irq_handler()
/linux/drivers/video/fbdev/
H A Dpxafb.c1212 static unsigned int __smart_timing(unsigned time_ns, unsigned long lcd_clk) in __smart_timing() argument
1214 unsigned int t = (time_ns * (lcd_clk / 1000000) / 1000); in __smart_timing()
/linux/drivers/gpu/drm/
H A Ddrm_vblank.c1061 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event()