Home
last modified time | relevance | path

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

12

/include/linux/iio/common/
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/linux/
Dpps_kernel.h88 struct pps_event_time *ts, int event, void *data);
93 struct timespec64 ts) in timespec_to_pps_ktime() argument
95 kt->sec = ts.tv_sec; in timespec_to_pps_ktime()
96 kt->nsec = ts.tv_nsec; in timespec_to_pps_ktime()
99 static inline void pps_get_ts(struct pps_event_time *ts) in pps_get_ts() argument
104 ts->ts_real = ktime_to_timespec64(snap.real); in pps_get_ts()
106 ts->ts_raw = ktime_to_timespec64(snap.raw); in pps_get_ts()
111 static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec64 delta) in pps_sub_ts() argument
113 ts->ts_real = timespec64_sub(ts->ts_real, delta); in pps_sub_ts()
115 ts->ts_raw = timespec64_sub(ts->ts_raw, delta); in pps_sub_ts()
Dtime64.h66 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
92 static inline bool timespec64_valid(const struct timespec64 *ts) in timespec64_valid() argument
95 if (ts->tv_sec < 0) in timespec64_valid()
98 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
103 static inline bool timespec64_valid_strict(const struct timespec64 *ts) in timespec64_valid_strict() argument
105 if (!timespec64_valid(ts)) in timespec64_valid_strict()
108 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
113 static inline bool timespec64_valid_settod(const struct timespec64 *ts) in timespec64_valid_settod() argument
115 if (!timespec64_valid(ts)) in timespec64_valid_settod()
118 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod()
[all …]
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);
46 extern void ktime_get_coarse_real_ts64(struct timespec64 *ts);
48 void getboottime64(struct timespec64 *ts);
125 struct timespec64 ts; in ktime_get_coarse() local
127 ktime_get_coarse_ts64(&ts); in ktime_get_coarse()
128 return timespec64_to_ktime(ts); in ktime_get_coarse()
223 static inline void ktime_get_boottime_ts64(struct timespec64 *ts) in ktime_get_boottime_ts64() argument
[all …]
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()
Dtime_namespace.h68 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() argument
72 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
75 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() argument
79 *ts = timespec64_add(*ts, ns_offsets->boottime); in timens_add_boottime()
89 static inline void timens_sub_boottime(struct timespec64 *ts) in timens_sub_boottime() argument
93 *ts = timespec64_sub(*ts, ns_offsets->boottime); in timens_sub_boottime()
152 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() argument
153 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime() argument
160 static inline void timens_sub_boottime(struct timespec64 *ts) { } in timens_sub_boottime() argument
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);
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()
Dptp_clock_kernel.h182 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
183 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
187 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
188 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
189 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
Dtime.h11 int get_timespec64(struct timespec64 *ts,
13 int put_timespec64(const struct timespec64 *ts,
Dptp_kvm.h18 int kvm_arch_ptp_get_clock(struct timespec64 *ts);
Dring_buffer.h194 ring_buffer_peek(struct trace_buffer *buffer, int cpu, u64 *ts,
197 ring_buffer_consume(struct trace_buffer *buffer, int cpu, u64 *ts,
205 ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts);
254 int cpu, u64 *ts);
Dinit_syscalls.h18 int __init init_utimes(char *filename, struct timespec64 *ts);
/include/vdso/
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/
Derrqueue.h58 struct __kernel_old_timespec ts[3]; member
60 struct timespec ts[3];
65 struct __kernel_timespec ts[3]; member
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/
Docelot_ptp.h48 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts);
50 const struct timespec64 *ts);
/include/media/
Ddmxdev.h85 struct dmx_ts_feed *ts; member
131 struct list_head ts; member
Dcec.h386 u8 error_cnt, ktime_t ts);
401 u8 status, ktime_t ts);
410 struct cec_msg *msg, ktime_t ts);
428 bool dropped_events, ktime_t ts);
438 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
448 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
Ddvb_demux.h132 struct dmx_ts_feed ts; member
137 dmx_ts_cb ts; member
Dv4l2-event.h35 u64 ts; member
/include/linux/spi/
Dmax7301.h35 extern int __max730x_probe(struct max7301 *ts);
/include/linux/ceph/
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/
Dptp_qoriq.h192 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
194 const struct timespec64 *ts);
/include/linux/mfd/
Dipaq-micro.h121 void (*ts) (void *data, int len, unsigned char *rxdata); member

12