| /linux-6.15/kernel/time/ |
| H A D | namespace.c | 271 ns = nsproxy->time_ns; in timens_get() 319 put_time_ns(nsproxy->time_ns); in timens_install() 320 nsproxy->time_ns = ns; in timens_install() 338 put_time_ns(nsproxy->time_ns); in timens_on_fork() 339 nsproxy->time_ns = ns; in timens_on_fork() 375 time_ns = to_time_ns(ns); in proc_timens_show_offsets() 379 put_time_ns(time_ns); in proc_timens_show_offsets() 393 time_ns = to_time_ns(ns); in proc_timens_set_offset() 396 put_time_ns(time_ns); in proc_timens_set_offset() 431 if (time_ns->frozen_offsets) { in proc_timens_set_offset() [all …]
|
| /linux-6.15/drivers/iio/proximity/ |
| H A D | ping.c | 97 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()
|
| H A D | srf04.c | 100 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.15/include/linux/ |
| H A D | time_namespace.h | 70 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_monotonic() 77 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_boottime() 84 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_boottime_ns() 91 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_sub_boottime() 101 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host()
|
| H A D | nsproxy.h | 39 struct time_namespace *time_ns; member
|
| H A D | cpuidle.h | 39 u64 time_ns; member
|
| /linux-6.15/kernel/ |
| H A D | nsproxy.c | 47 .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.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_time.c | 152 u64 time_ns; in fbnic_ptp_gettimex64() local 169 time_ns = ((u64)hi << 32 | lo) + fbn->time_offset; in fbnic_ptp_gettimex64() 175 *ts = ns_to_timespec64(time_ns); in fbnic_ptp_gettimex64()
|
| H A D | fbnic_txrx.c | 66 u64 time_ns; in fbnic_ts40_to_ns() local 79 time_ns = (u64)(high >> 8) << 40 | ts40; in fbnic_ts40_to_ns() 88 time_ns += 1ULL << 40; in fbnic_ts40_to_ns() 90 return time_ns + offset; in fbnic_ts40_to_ns()
|
| /linux-6.15/drivers/iio/common/scmi_sensors/ |
| H A D | scmi_iio.c | 46 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.15/drivers/iio/light/ |
| H A D | adjd_s311.c | 121 s64 time_ns = iio_get_time_ns(indio_dev); in adjd_s311_trigger_handler() local 137 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in adjd_s311_trigger_handler()
|
| H A D | vl6180.c | 546 s64 time_ns = iio_get_time_ns(indio_dev); in vl6180_trigger_handler() local 566 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in vl6180_trigger_handler()
|
| /linux-6.15/drivers/memory/ |
| H A D | omap-gpmc.c | 335 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-6.15/fs/ |
| H A D | pidfs.c | 459 get_time_ns(nsp->time_ns); in pidfd_ioctl() 460 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl()
|
| /linux-6.15/drivers/ptp/ |
| H A D | ptp_ocp.c | 49 u32 time_ns; member 128 u32 time_ns; member 1215 u32 ctrl, time_sec, time_ns; in __ptp_ocp_gettime_locked() local 1236 time_ns = ioread32(&bp->reg->time_ns); in __ptp_ocp_gettime_locked() 1240 ts->tv_nsec = time_ns; in __ptp_ocp_gettime_locked() 1263 u32 ctrl, time_sec, time_ns; in __ptp_ocp_settime_locked() local 1266 time_ns = ts->tv_nsec; in __ptp_ocp_settime_locked() 1272 iowrite32(time_ns, &bp->reg->adjust_ns); in __ptp_ocp_settime_locked() 2181 nsec = ioread32(®->time_ns); in ptp_ocp_ts_irq()
|
| /linux-6.15/drivers/iio/accel/ |
| H A D | bma180.c | 874 s64 time_ns = iio_get_time_ns(indio_dev); in bma180_trigger_handler() local 890 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in bma180_trigger_handler()
|
| /linux-6.15/tools/perf/scripts/python/ |
| H A D | task-analyzer.py | 770 def _time_to_internal(time_ns): argument 774 return decimal.Decimal(time_ns) / decimal.Decimal(1e9)
|
| /linux-6.15/drivers/cpuidle/ |
| H A D | cpuidle.c | 304 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
|
| H A D | sysfs.c | 276 return sprintf(buf, "%llu\n", ktime_to_us(state_usage->time_ns)); in define_show_state_time_function()
|
| /linux-6.15/include/uapi/drm/ |
| H A D | drm.h | 1380 __s64 time_ns; member
|
| /linux-6.15/tools/include/uapi/drm/ |
| H A D | drm.h | 1380 __s64 time_ns; member
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-ftrace.c | 1099 static int add_func_duration(struct perf_ftrace *ftrace, char *func, double time_ns) in add_func_duration() argument 1119 update_stats(&prof->st, time_ns); in add_func_duration()
|
| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ptp.c | 2052 u64 time_ns; in ice_ptp_gettimex64() local 2054 time_ns = ice_ptp_read_src_clk_reg(pf, sts); in ice_ptp_gettimex64() 2055 *ts = ns_to_timespec64(time_ns); in ice_ptp_gettimex64()
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_psr.c | 448 ktime_t time_ns = ktime_get(); in intel_psr_irq_handler() local 451 intel_dp->psr.last_entry_attempt = time_ns; in intel_psr_irq_handler() 458 intel_dp->psr.last_exit = time_ns; in intel_psr_irq_handler()
|
| /linux-6.15/drivers/video/fbdev/ |
| H A D | pxafb.c | 1224 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()
|