Home
last modified time | relevance | path

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

12

/include/linux/
Dtimekeeping32.h14 static inline void getnstimeofday(struct timespec *ts) in getnstimeofday() argument
19 *ts = timespec64_to_timespec(ts64); in getnstimeofday()
22 static inline void ktime_get_ts(struct timespec *ts) in ktime_get_ts() argument
27 *ts = timespec64_to_timespec(ts64); in ktime_get_ts()
30 static inline void getrawmonotonic(struct timespec *ts) in getrawmonotonic() argument
35 *ts = timespec64_to_timespec(ts64); in getrawmonotonic()
38 static inline void getboottime(struct timespec *ts) in getboottime() argument
43 *ts = timespec64_to_timespec(ts64); in getboottime()
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()
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()
187 static inline void ktime_get_boottime_ts64(struct timespec64 *ts) in ktime_get_boottime_ts64() argument
[all …]
Dtime64.h69 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
95 static inline bool timespec64_valid(const struct timespec64 *ts) in timespec64_valid() argument
98 if (ts->tv_sec < 0) in timespec64_valid()
101 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
106 static inline bool timespec64_valid_strict(const struct timespec64 *ts) in timespec64_valid_strict() argument
108 if (!timespec64_valid(ts)) in timespec64_valid_strict()
111 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
116 static inline bool timespec64_valid_settod(const struct timespec64 *ts) in timespec64_valid_settod() argument
118 if (!timespec64_valid(ts)) in timespec64_valid_settod()
121 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod()
[all …]
Dpstore.h205 u64 ts; member
243 return rec->ts; in pstore_ftrace_read_timestamp()
249 rec->ts = val; in pstore_ftrace_write_timestamp()
255 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
256 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
262 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
268 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
274 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()
Dtime32.h84 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
86 return *(const struct timespec64 *)&ts; in timespec_to_timespec64()
99 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
103 ret.tv_sec = ts.tv_sec; in timespec_to_timespec64()
104 ret.tv_nsec = ts.tv_nsec; in timespec_to_timespec64()
132 static inline bool timespec_valid(const struct timespec *ts) in timespec_valid() argument
135 if (ts->tv_sec < 0) in timespec_valid()
138 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec_valid()
150 static inline s64 timespec_to_ns(const struct timespec *ts) in timespec_to_ns() argument
152 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
Dktime.h70 static inline ktime_t timespec_to_ktime(struct timespec ts) in timespec_to_ktime() argument
72 return ktime_set(ts.tv_sec, ts.tv_nsec); in timespec_to_ktime()
76 static inline ktime_t timespec64_to_ktime(struct timespec64 ts) in timespec64_to_ktime() argument
78 return ktime_set(ts.tv_sec, ts.tv_nsec); in timespec64_to_ktime()
227 struct timespec *ts) in ktime_to_timespec_cond() argument
230 *ts = ktime_to_timespec(kt); in ktime_to_timespec_cond()
246 struct timespec64 *ts) in ktime_to_timespec64_cond() argument
249 *ts = ktime_to_timespec64(kt); in ktime_to_timespec64_cond()
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);
Dring_buffer.h124 ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts,
127 ring_buffer_consume(struct ring_buffer *buffer, int cpu, u64 *ts,
137 ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts);
139 ring_buffer_read(struct ring_buffer_iter *iter, u64 *ts);
184 int cpu, u64 *ts);
Dptp_clock_kernel.h132 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
133 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
137 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
Dtime.h12 int get_timespec64(struct timespec64 *ts,
14 int put_timespec64(const struct timespec64 *ts,
Djiffies.h427 struct timespec64 ts = timespec_to_timespec64(*value); in timespec_to_jiffies() local
429 return timespec64_to_jiffies(&ts); in timespec_to_jiffies()
435 struct timespec64 ts; in jiffies_to_timespec() local
437 jiffies_to_timespec64(jiffies, &ts); in jiffies_to_timespec()
438 *value = timespec64_to_timespec(ts); in jiffies_to_timespec()
/include/uapi/linux/
Derrqueue.h42 struct timespec ts[3]; member
46 struct __kernel_timespec ts[3]; member
Dptp_clock.h119 struct ptp_clock_time ts[2 * PTP_MAX_SAMPLES + 1]; member
129 struct ptp_clock_time ts[PTP_MAX_SAMPLES][3]; member
Domap3isp.h174 } ts; member
176 struct timeval ts;
190 } ts; member
/include/media/
Ddmxdev.h86 struct dmx_ts_feed *ts; member
132 struct list_head ts; member
Dcec.h291 u8 error_cnt, ktime_t ts);
306 u8 status, ktime_t ts);
315 struct cec_msg *msg, ktime_t ts);
333 bool dropped_events, ktime_t ts);
343 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
353 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
Dvideobuf-core.h80 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.h190 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
192 const struct timespec64 *ts);
/include/linux/mfd/
Dipaq-micro.h121 void (*ts) (void *data, int len, unsigned char *rxdata); member
/include/net/
Dlwtunnel.h39 struct lwtunnel_state **ts,

12