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,
77 static inline int64_t inv_sensors_timestamp_pop(struct inv_sensors_timestamp *ts) in inv_sensors_timestamp_pop() argument
79 ts->timestamp += ts->period; in inv_sensors_timestamp_pop()
80 return ts->timestamp; in inv_sensors_timestamp_pop()
83 void inv_sensors_timestamp_apply_odr(struct inv_sensors_timestamp *ts,
87 static inline void inv_sensors_timestamp_reset(struct inv_sensors_timestamp *ts) in inv_sensors_timestamp_reset() argument
91 ts->it = interval_init; in inv_sensors_timestamp_reset()
92 ts->timestamp = 0; in inv_sensors_timestamp_reset()
/include/linux/
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()
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.h19 extern int do_settimeofday64(const struct timespec64 *ts);
41 extern void ktime_get_raw_ts64(struct timespec64 *ts);
42 extern void ktime_get_ts64(struct timespec64 *ts);
44 extern void ktime_get_coarse_ts64(struct timespec64 *ts);
45 extern void ktime_get_coarse_real_ts64(struct timespec64 *ts);
47 void getboottime64(struct timespec64 *ts);
118 struct timespec64 ts; in ktime_get_coarse() local
120 ktime_get_coarse_ts64(&ts); in ktime_get_coarse()
121 return timespec64_to_ktime(ts); in ktime_get_coarse()
188 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.h65 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() argument
69 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
72 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() argument
76 *ts = timespec64_add(*ts, ns_offsets->boottime); in timens_add_boottime()
86 static inline void timens_sub_boottime(struct timespec64 *ts) in timens_sub_boottime() argument
90 *ts = timespec64_sub(*ts, ns_offsets->boottime); in timens_sub_boottime()
149 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() argument
150 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime() argument
157 static inline void timens_sub_boottime(struct timespec64 *ts) { } in timens_sub_boottime() argument
Dposix-clock.h43 int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts);
45 int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts);
48 const struct timespec64 *ts);
Dktime.h71 static inline ktime_t timespec64_to_ktime(struct timespec64 ts) in timespec64_to_ktime() argument
73 return ktime_set(ts.tv_sec, ts.tv_nsec); in timespec64_to_ktime()
210 struct timespec64 *ts) in ktime_to_timespec64_cond() argument
213 *ts = ktime_to_timespec64(kt); in ktime_to_timespec64_cond()
Dptp_clock_kernel.h180 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
181 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
185 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
186 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
187 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.h173 ring_buffer_peek(struct trace_buffer *buffer, int cpu, u64 *ts,
176 ring_buffer_consume(struct trace_buffer *buffer, int cpu, u64 *ts,
186 ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts);
234 int cpu, u64 *ts);
Dinit_syscalls.h18 int __init init_utimes(char *filename, struct timespec64 *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.h148 struct ptp_clock_time ts[2 * PTP_MAX_SAMPLES + 1]; member
158 struct ptp_clock_time ts[PTP_MAX_SAMPLES][3]; member
Domap3isp.h175 } ts; member
177 struct timeval ts;
193 } ts; 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.h335 u8 error_cnt, ktime_t ts);
350 u8 status, ktime_t ts);
359 struct cec_msg *msg, ktime_t ts);
377 bool dropped_events, ktime_t ts);
387 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
397 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