Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 43) sorted by relevance

12

/include/linux/
A Dtime64.h54 return ts->tv_sec == 0 && ts->tv_nsec == 0; in timespec64_is_epoch()
100 if (ts->tv_sec < 0) in timespec64_valid()
103 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
110 if (!timespec64_valid(ts)) in timespec64_valid_strict()
113 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
120 if (!timespec64_valid(ts)) in timespec64_valid_settod()
123 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod()
135 static inline s64 timespec64_to_ns(const struct timespec64 *ts) in timespec64_to_ns() argument
138 if (ts->tv_sec >= KTIME_SEC_MAX) in timespec64_to_ns()
141 if (ts->tv_sec <= KTIME_SEC_MIN) in timespec64_to_ns()
[all …]
A Dpps_kernel.h89 struct pps_event_time *ts, int event, void *data);
94 struct timespec64 ts) in timespec_to_pps_ktime() argument
96 kt->sec = ts.tv_sec; in timespec_to_pps_ktime()
97 kt->nsec = ts.tv_nsec; in timespec_to_pps_ktime()
100 static inline void pps_get_ts(struct pps_event_time *ts) in pps_get_ts() argument
105 ts->ts_real = ktime_to_timespec64(snap.real); in pps_get_ts()
107 ts->ts_raw = ktime_to_timespec64(snap.raw); in pps_get_ts()
112 static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec64 delta) in pps_sub_ts() argument
114 ts->ts_real = timespec64_sub(ts->ts_real, delta); in pps_sub_ts()
116 ts->ts_raw = timespec64_sub(ts->ts_raw, delta); in pps_sub_ts()
A Dtimekeeping.h20 extern int do_settimeofday64(const struct timespec64 *ts);
42 extern void ktime_get_raw_ts64(struct timespec64 *ts);
43 extern void ktime_get_ts64(struct timespec64 *ts);
45 extern void ktime_get_coarse_ts64(struct timespec64 *ts);
51 extern void ktime_get_real_ts64_mg(struct timespec64 *ts);
54 void getboottime64(struct timespec64 *ts);
131 struct timespec64 ts; in ktime_get_coarse() local
133 ktime_get_coarse_ts64(&ts); in ktime_get_coarse()
134 return timespec64_to_ktime(ts); in ktime_get_coarse()
231 *ts = ktime_to_timespec64(ktime_get_boottime()); in ktime_get_boottime_ts64()
[all …]
A Dpstore.h216 u64 ts; member
254 return rec->ts; in pstore_ftrace_read_timestamp()
260 rec->ts = val; in pstore_ftrace_write_timestamp()
266 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
267 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
273 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
279 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
285 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()
A Dtime_namespace.h69 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() argument
73 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
76 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() argument
80 *ts = timespec64_add(*ts, ns_offsets->boottime); in timens_add_boottime()
90 static inline void timens_sub_boottime(struct timespec64 *ts) in timens_sub_boottime() argument
94 *ts = timespec64_sub(*ts, ns_offsets->boottime); in timens_sub_boottime()
153 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() argument
154 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime() argument
161 static inline void timens_sub_boottime(struct timespec64 *ts) { } in timens_sub_boottime() argument
A Dposix-clock.h44 int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts);
46 int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts);
49 const struct timespec64 *ts);
A Dktime.h69 static inline ktime_t timespec64_to_ktime(struct timespec64 ts) in timespec64_to_ktime() argument
71 return ktime_set(ts.tv_sec, ts.tv_nsec); in timespec64_to_ktime()
208 struct timespec64 *ts) in ktime_to_timespec64_cond() argument
211 *ts = ktime_to_timespec64(kt); in ktime_to_timespec64_cond()
A Dptp_clock_kernel.h200 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
201 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
205 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
206 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
207 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
A Dtime.h11 int get_timespec64(struct timespec64 *ts,
13 int put_timespec64(const struct timespec64 *ts,
A Dptp_kvm.h18 int kvm_arch_ptp_get_clock(struct timespec64 *ts);
A Dring_buffer.h151 ring_buffer_peek(struct trace_buffer *buffer, int cpu, u64 *ts,
154 ring_buffer_consume(struct trace_buffer *buffer, int cpu, u64 *ts,
162 ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts);
212 int cpu, u64 *ts);
A Dinit_syscalls.h18 int __init init_utimes(char *filename, struct timespec64 *ts);
/include/linux/iio/common/
A Dinv_sensors_timestamp.h67 void inv_sensors_timestamp_init(struct inv_sensors_timestamp *ts,
70 int inv_sensors_timestamp_update_odr(struct inv_sensors_timestamp *ts,
73 void inv_sensors_timestamp_interrupt(struct inv_sensors_timestamp *ts,
76 static inline int64_t inv_sensors_timestamp_pop(struct inv_sensors_timestamp *ts) in inv_sensors_timestamp_pop() argument
78 ts->timestamp += ts->period; in inv_sensors_timestamp_pop()
79 return ts->timestamp; in inv_sensors_timestamp_pop()
82 void inv_sensors_timestamp_apply_odr(struct inv_sensors_timestamp *ts,
86 static inline void inv_sensors_timestamp_reset(struct inv_sensors_timestamp *ts) in inv_sensors_timestamp_reset() argument
90 ts->it = interval_init; in inv_sensors_timestamp_reset()
91 ts->timestamp = 0; in inv_sensors_timestamp_reset()
/include/vdso/
A Dgettime.h13 int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
16 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
21 int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
/include/uapi/linux/
A Derrqueue.h58 struct __kernel_old_timespec ts[3]; member
60 struct timespec ts[3];
65 struct __kernel_timespec ts[3]; member
A Dptp_clock.h155 struct ptp_clock_time ts[2 * PTP_MAX_SAMPLES + 1]; member
177 struct ptp_clock_time ts[PTP_MAX_SAMPLES][3]; member
/include/soc/mscc/
A Docelot_ptp.h48 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts);
50 const struct timespec64 *ts);
/include/media/
A Ddmxdev.h85 struct dmx_ts_feed *ts; member
131 struct list_head ts; member
A Dcec.h385 u8 error_cnt, ktime_t ts);
400 u8 status, ktime_t ts);
409 struct cec_msg *msg, ktime_t ts);
427 bool dropped_events, ktime_t ts);
437 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
447 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
A Ddvb_demux.h132 struct dmx_ts_feed ts; member
137 dmx_ts_cb ts; member
A Dv4l2-event.h35 u64 ts; member
/include/linux/spi/
A Dmax7301.h35 extern int __max730x_probe(struct max7301 *ts);
/include/linux/ceph/
A Ddecode.h199 static inline void ceph_decode_timespec64(struct timespec64 *ts, in ceph_decode_timespec64() argument
208 ts->tv_sec = (time64_t)le32_to_cpu(tv->tv_sec); in ceph_decode_timespec64()
209 ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); in ceph_decode_timespec64()
212 const struct timespec64 *ts) in ceph_encode_timespec64() argument
214 tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); in ceph_encode_timespec64()
215 tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); in ceph_encode_timespec64()
/include/linux/fsl/
A Dptp_qoriq.h192 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
194 const struct timespec64 *ts);
/include/linux/mfd/
A Dipaq-micro.h121 void (*ts) (void *data, int len, unsigned char *rxdata); member

Completed in 36 milliseconds

12