| /linux/drivers/iio/proximity/ |
| H A D | ping.c | 96 u32 time_ns, distance_mm; in ping_read() local 171 time_ns = dt_ns; in ping_read() 178 if ((time_ns > 12500000) && (time_ns <= 13500000)) { in ping_read() 182 if ((time_ns > 13500000) && (time_ns <= 14500000)) { in ping_read() 186 if ((time_ns > 14500000) && (time_ns <= 15500000)) { in ping_read() 212 distance_mm = time_ns * 232 / 1350800; in ping_read()
|
| H A D | srf04.c | 99 u32 time_ns, distance_mm; in srf04_read() local 163 time_ns = dt_ns; in srf04_read() 185 distance_mm = time_ns * 106 / 617176; in srf04_read()
|
| /linux/include/linux/ |
| H A D | nsfs.h | 34 struct time_namespace *: current->nsproxy->time_ns, \
|
| H A D | nsproxy.h | 39 struct time_namespace *time_ns; member
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | so_txtime.py | 26 tstart = time.time_ns() + (2000_000_000 if slow_machine else 200_000_000)
|
| /linux/drivers/iio/light/ |
| H A D | vl6180.c | 540 s64 time_ns = iio_get_time_ns(indio_dev); in vl6180_trigger_handler() local 565 iio_push_to_buffers_with_ts(indio_dev, &scan, sizeof(scan), time_ns); in vl6180_trigger_handler()
|
| /linux/fs/ |
| H A D | pidfs.c | 624 if (!ns_ref_get(nsp->time_ns)) in pidfd_ioctl() 626 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl()
|
| /linux/drivers/ptp/ |
| H A D | ptp_ocp.c | 49 u32 time_ns; member 142 u32 time_ns; member 1479 u32 ctrl, time_sec, time_ns; in __ptp_ocp_gettime_locked() local 1497 time_ns = ioread32(&bp->reg->time_ns); in __ptp_ocp_gettime_locked() 1501 ts->tv_nsec = time_ns; in __ptp_ocp_gettime_locked() 1524 u32 ctrl, time_sec, time_ns; in __ptp_ocp_settime_locked() local 1527 time_ns = ts->tv_nsec; in __ptp_ocp_settime_locked() 1533 iowrite32(time_ns, &bp->reg->adjust_ns); in __ptp_ocp_settime_locked() 2442 nsec = ioread32(®->time_ns); in ptp_ocp_ts_irq()
|
| /linux/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/drivers/iio/accel/ |
| H A D | bma180.c | 865 s64 time_ns = iio_get_time_ns(indio_dev); in bma180_trigger_handler() local 885 iio_push_to_buffers_with_ts(indio_dev, &scan, sizeof(scan), time_ns); in bma180_trigger_handler()
|
| /linux/drivers/cpuidle/ |
| H A D | cpuidle.c | 306 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
|
| H A D | sysfs.c | 276 return sysfs_emit(buf, "%llu\n", ktime_to_us(state_usage->time_ns)); in define_show_state_time_function()
|
| /linux/tools/include/uapi/drm/ |
| H A D | drm.h | |
| /linux/tools/perf/trace/beauty/include/uapi/drm/ |
| H A D | drm.h | 1427 __s64 time_ns; member
|
| /linux/tools/perf/ |
| H A D | builtin-ftrace.c | 1222 static int add_func_duration(struct perf_ftrace *ftrace, char *func, double time_ns) in prepare_func_profile() 1242 update_stats(&prof->st, time_ns); in add_func_duration() 1229 add_func_duration(struct perf_ftrace * ftrace,char * func,double time_ns) add_func_duration() argument
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_txrx.c | 78 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 D | ice_ptp.c | 1881 u64 time_ns; in ice_ptp_gettimex64() local 1883 time_ns = ice_ptp_read_src_clk_reg(pf, sts); in ice_ptp_gettimex64() 1884 *ts = ns_to_timespec64(time_ns); in ice_ptp_gettimex64()
|