Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/time/
Dnamespace.c198 return current->nsproxy->time_ns->vvar_page; in find_timens_vvar_page()
269 ns = nsproxy->time_ns; in timens_get()
317 put_time_ns(nsproxy->time_ns); in timens_install()
318 nsproxy->time_ns = ns; in timens_install()
332 if (nsproxy->time_ns == nsproxy->time_ns_for_children) in timens_on_fork()
336 put_time_ns(nsproxy->time_ns); in timens_on_fork()
337 nsproxy->time_ns = ns; in timens_on_fork()
368 struct time_namespace *time_ns; in proc_timens_show_offsets() local
373 time_ns = to_time_ns(ns); in proc_timens_show_offsets()
375 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets()
[all …]
/linux-6.6.21/drivers/iio/proximity/
Dping.c97 u32 time_ns, distance_mm; in ping_read() local
172 time_ns = dt_ns; in ping_read()
179 if ((time_ns > 12500000) && (time_ns <= 13500000)) { in ping_read()
183 if ((time_ns > 13500000) && (time_ns <= 14500000)) { in ping_read()
187 if ((time_ns > 14500000) && (time_ns <= 15500000)) { in ping_read()
213 distance_mm = time_ns * 232 / 1350800; in ping_read()
Dsrf04.c100 u32 time_ns, distance_mm; in srf04_read() local
166 time_ns = dt_ns; in srf04_read()
188 distance_mm = time_ns * 106 / 617176; in srf04_read()
/linux-6.6.21/include/linux/
Dtime_namespace.h67 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_monotonic()
74 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_boottime()
81 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_boottime_ns()
88 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_sub_boottime()
98 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host()
Dnsproxy.h38 struct time_namespace *time_ns; member
Dcpuidle.h39 u64 time_ns; member
/linux-6.6.21/kernel/
Dnsproxy.c47 .time_ns = &init_time_ns,
122 new_nsp->time_ns = get_time_ns(tsk->nsproxy->time_ns); in create_new_namespaces()
161 likely(old_ns->time_ns_for_children == old_ns->time_ns)) { in copy_namespaces()
200 if (ns->time_ns) in free_nsproxy()
201 put_time_ns(ns->time_ns); in free_nsproxy()
264 if (tsk->nsproxy->time_ns_for_children == tsk->nsproxy->time_ns) in exec_task_namespaces()
487 ret = validate_ns(nsset, &nsp->time_ns->ns); in validate_nsset()
538 timens_commit(me, nsset->nsproxy->time_ns); in commit_nsset()
/linux-6.6.21/drivers/iio/common/scmi_sensors/
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()
75 time_ns = time; in scmi_iio_sensor_update_cb()
77 time_ns = time * int_pow(10, tstamp_scale); in scmi_iio_sensor_update_cb()
83 time_ns); in scmi_iio_sensor_update_cb()
/linux-6.6.21/drivers/iio/light/
Dadjd_s311.c121 s64 time_ns = iio_get_time_ns(indio_dev); in adjd_s311_trigger_handler() local
138 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in adjd_s311_trigger_handler()
/linux-6.6.21/drivers/memory/
Domap-gpmc.c334 static unsigned int gpmc_ns_to_clk_ticks(unsigned int time_ns, int cs, in gpmc_ns_to_clk_ticks() argument
342 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks()
345 static unsigned int gpmc_ns_to_ticks(unsigned int time_ns) in gpmc_ns_to_ticks() argument
347 return gpmc_ns_to_clk_ticks(time_ns, /* any CS */ 0, GPMC_CD_FCLK); in gpmc_ns_to_ticks()
464 unsigned int time_ns; in get_gpmc_timing_reg() local
469 time_ns = gpmc_clk_ticks_to_ns(l, cs, cd); in get_gpmc_timing_reg()
471 name, time_ns, time_ns_min, time_ns, l, in get_gpmc_timing_reg()
/linux-6.6.21/drivers/ptp/
Dptp_ocp.c45 u32 time_ns; member
117 u32 time_ns; member
981 u32 ctrl, time_sec, time_ns; in __ptp_ocp_gettime_locked() local
1002 time_ns = ioread32(&bp->reg->time_ns); in __ptp_ocp_gettime_locked()
1006 ts->tv_nsec = time_ns; in __ptp_ocp_gettime_locked()
1029 u32 ctrl, time_sec, time_ns; in __ptp_ocp_settime_locked() local
1032 time_ns = ts->tv_nsec; in __ptp_ocp_settime_locked()
1038 iowrite32(time_ns, &bp->reg->adjust_ns); in __ptp_ocp_settime_locked()
1947 nsec = ioread32(&reg->time_ns); in ptp_ocp_ts_irq()
/linux-6.6.21/tools/perf/scripts/python/
Dtask-analyzer.py770 def _time_to_internal(time_ns): argument
774 return decimal.Decimal(time_ns) / decimal.Decimal(1e9)
/linux-6.6.21/drivers/iio/accel/
Dbma180.c874 s64 time_ns = iio_get_time_ns(indio_dev); in bma180_trigger_handler() local
891 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in bma180_trigger_handler()
/linux-6.6.21/drivers/cpuidle/
Dcpuidle.c303 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
Dsysfs.c276 return sprintf(buf, "%llu\n", ktime_to_us(state_usage->time_ns)); in define_show_state_time_function()
/linux-6.6.21/tools/include/uapi/drm/
Ddrm.h1273 __s64 time_ns; member
/linux-6.6.21/include/uapi/drm/
Ddrm.h1273 __s64 time_ns; member
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_psr.c366 ktime_t time_ns = ktime_get(); in intel_psr_irq_handler() local
369 intel_dp->psr.last_entry_attempt = time_ns; in intel_psr_irq_handler()
376 intel_dp->psr.last_exit = time_ns; in intel_psr_irq_handler()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_ptp.c1107 u64 time_ns = ice_ptp_read_src_clk_reg(pf, sts); in ice_ptp_read_time() local
1109 *ts = ns_to_timespec64(time_ns); in ice_ptp_read_time()
/linux-6.6.21/block/
Dblk-throttle.c2304 void blk_throtl_stat_add(struct request *rq, u64 time_ns) in blk_throtl_stat_add() argument
2310 time_ns >> 10); in blk_throtl_stat_add()
/linux-6.6.21/drivers/video/fbdev/
Dpxafb.c1224 static unsigned int __smart_timing(unsigned time_ns, unsigned long lcd_clk) in __smart_timing() argument
1226 unsigned int t = (time_ns * (lcd_clk / 1000000) / 1000); in __smart_timing()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_vblank.c1046 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event()