Home
last modified time | relevance | path

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

12345

/linux-4.19.296/drivers/gpio/
Dgpio-max730x.c53 struct max7301 *ts = gpiochip_get_data(chip); in max7301_direction_input() local
62 config = &ts->port_config[offset >> 2]; in max7301_direction_input()
64 if (ts->input_pullup_active & BIT(offset)) in max7301_direction_input()
69 mutex_lock(&ts->lock); in max7301_direction_input()
74 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); in max7301_direction_input()
76 mutex_unlock(&ts->lock); in max7301_direction_input()
81 static int __max7301_set(struct max7301 *ts, unsigned offset, int value) in __max7301_set() argument
84 ts->out_level |= 1 << offset; in __max7301_set()
85 return ts->write(ts->dev, 0x20 + offset, 0x01); in __max7301_set()
87 ts->out_level &= ~(1 << offset); in __max7301_set()
[all …]
Dgpio-max7300.c37 struct max7301 *ts; in max7300_probe() local
43 ts = devm_kzalloc(&client->dev, sizeof(struct max7301), GFP_KERNEL); in max7300_probe()
44 if (!ts) in max7300_probe()
47 ts->read = max7300_i2c_read; in max7300_probe()
48 ts->write = max7300_i2c_write; in max7300_probe()
49 ts->dev = &client->dev; in max7300_probe()
51 return __max730x_probe(ts); in max7300_probe()
Dgpio-max7301.c49 struct max7301 *ts; in max7301_probe() local
58 ts = devm_kzalloc(&spi->dev, sizeof(struct max7301), GFP_KERNEL); in max7301_probe()
59 if (!ts) in max7301_probe()
62 ts->read = max7301_spi_read; in max7301_probe()
63 ts->write = max7301_spi_write; in max7301_probe()
64 ts->dev = &spi->dev; in max7301_probe()
66 ret = __max730x_probe(ts); in max7301_probe()
/linux-4.19.296/include/linux/
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);
159 static inline void ktime_get_boottime_ts64(struct timespec64 *ts) in ktime_get_boottime_ts64() argument
161 *ts = ktime_to_timespec64(ktime_get_boottime()); in ktime_get_boottime_ts64()
164 static inline void ktime_get_coarse_boottime_ts64(struct timespec64 *ts) in ktime_get_coarse_boottime_ts64() argument
166 *ts = ktime_to_timespec64(ktime_get_coarse_boottime()); in ktime_get_coarse_boottime_ts64()
[all …]
Dtimekeeping32.h35 static inline int do_settimeofday(const struct timespec *ts) in do_settimeofday() argument
39 ts64 = timespec_to_timespec64(*ts); in do_settimeofday()
43 static inline void getnstimeofday(struct timespec *ts) in getnstimeofday() argument
48 *ts = timespec64_to_timespec(ts64); in getnstimeofday()
51 static inline void ktime_get_ts(struct timespec *ts) in ktime_get_ts() argument
56 *ts = timespec64_to_timespec(ts64); in ktime_get_ts()
59 static inline void ktime_get_real_ts(struct timespec *ts) in ktime_get_real_ts() argument
64 *ts = timespec64_to_timespec(ts64); in ktime_get_real_ts()
67 static inline void getrawmonotonic(struct timespec *ts) in getrawmonotonic() argument
72 *ts = timespec64_to_timespec(ts64); in getrawmonotonic()
[all …]
Dtime64.h75 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
101 static inline bool timespec64_valid(const struct timespec64 *ts) in timespec64_valid() argument
104 if (ts->tv_sec < 0) in timespec64_valid()
107 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
112 static inline bool timespec64_valid_strict(const struct timespec64 *ts) in timespec64_valid_strict() argument
114 if (!timespec64_valid(ts)) in timespec64_valid_strict()
117 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
122 static inline bool timespec64_valid_settod(const struct timespec64 *ts) in timespec64_valid_settod() argument
124 if (!timespec64_valid(ts)) in timespec64_valid_settod()
127 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod()
[all …]
Dpps_kernel.h102 struct pps_event_time *ts, int event, void *data);
107 struct timespec64 ts) in timespec_to_pps_ktime() argument
109 kt->sec = ts.tv_sec; in timespec_to_pps_ktime()
110 kt->nsec = ts.tv_nsec; in timespec_to_pps_ktime()
113 static inline void pps_get_ts(struct pps_event_time *ts) in pps_get_ts() argument
118 ts->ts_real = ktime_to_timespec64(snap.real); in pps_get_ts()
120 ts->ts_raw = ktime_to_timespec64(snap.raw); in pps_get_ts()
125 static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec64 delta) in pps_sub_ts() argument
127 ts->ts_real = timespec64_sub(ts->ts_real, delta); in pps_sub_ts()
129 ts->ts_raw = timespec64_sub(ts->ts_raw, delta); in pps_sub_ts()
Dtime32.h24 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
26 return *(const struct timespec64 *)&ts; in timespec_to_timespec64()
39 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
43 ret.tv_sec = ts.tv_sec; in timespec_to_timespec64()
44 ret.tv_nsec = ts.tv_nsec; in timespec_to_timespec64()
69 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec);
97 static inline bool timespec_valid(const struct timespec *ts) in timespec_valid() argument
100 if (ts->tv_sec < 0) in timespec_valid()
103 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec_valid()
108 static inline bool timespec_valid_strict(const struct timespec *ts) in timespec_valid_strict() argument
[all …]
Dpstore.h206 u64 ts; member
244 return rec->ts; in pstore_ftrace_read_timestamp()
250 rec->ts = val; in pstore_ftrace_write_timestamp()
256 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
257 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
263 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
269 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
275 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()
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.h56 int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts);
58 int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts);
61 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);
/linux-4.19.296/drivers/misc/
Dkgdbts.c190 static struct test_state ts; variable
371 ts.idx -= 2; in check_single_step()
376 ts.idx -= 4; in check_single_step()
405 ts.idx++; in skip_back_repeat_test()
410 ts.idx -= go_back; in skip_back_repeat_test()
412 fill_get_buf(ts.tst[ts.idx].get); in skip_back_repeat_test()
436 ts.idx--; in put_cont_catch()
446 ts.idx = -1; in emul_reset()
534 ts.idx--; in emul_sstep_put()
720 v2printk("get%i: %s\n", ts.idx, get_buf); in fill_get_buf()
[all …]
/linux-4.19.296/fs/ntfs/
Dtime.h48 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs() argument
54 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
66 struct timespec64 ts; in get_current_ntfs_time() local
68 ktime_get_coarse_real_ts64(&ts); in get_current_ntfs_time()
69 return utc2ntfs(ts); in get_current_ntfs_time()
90 struct timespec64 ts; in ntfs2utc() local
98 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
99 ts.tv_sec = t; in ntfs2utc()
100 return ts; in ntfs2utc()
/linux-4.19.296/drivers/ptp/
Dptp_chardev.c132 struct timespec64 ts; in ptp_ioctl() local
200 ts = ktime_to_timespec64(xtstamp.device); in ptp_ioctl()
201 precise_offset.device.sec = ts.tv_sec; in ptp_ioctl()
202 precise_offset.device.nsec = ts.tv_nsec; in ptp_ioctl()
203 ts = ktime_to_timespec64(xtstamp.sys_realtime); in ptp_ioctl()
204 precise_offset.sys_realtime.sec = ts.tv_sec; in ptp_ioctl()
205 precise_offset.sys_realtime.nsec = ts.tv_nsec; in ptp_ioctl()
206 ts = ktime_to_timespec64(xtstamp.sys_monoraw); in ptp_ioctl()
207 precise_offset.sys_monoraw.sec = ts.tv_sec; in ptp_ioctl()
208 precise_offset.sys_monoraw.nsec = ts.tv_nsec; in ptp_ioctl()
[all …]
/linux-4.19.296/fs/udf/
Dudftime.c73 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts) in udf_time_to_disk_stamp() argument
83 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp()
91 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
92 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
94 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
/linux-4.19.296/fs/fat/
Dmisc.c189 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_fat2unix() argument
219 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
220 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
222 ts->tv_sec = second; in fat_time_fat2unix()
223 ts->tv_nsec = 0; in fat_time_fat2unix()
228 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_unix2fat() argument
232 time64_to_tm(ts->tv_sec, in fat_time_unix2fat()
262 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
Dnamei_msdos.c228 struct timespec64 *ts, struct fat_slot_info *sinfo) in msdos_add_entry() argument
240 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry()
253 dir->i_ctime = dir->i_mtime = *ts; in msdos_add_entry()
269 struct timespec64 ts; in msdos_create() local
287 ts = current_time(dir); in msdos_create()
288 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create()
297 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in msdos_create()
347 struct timespec64 ts; in msdos_mkdir() local
364 ts = current_time(dir); in msdos_mkdir()
365 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
[all …]
Dnamei_vfat.c580 struct timespec64 *ts, in vfat_build_slots() argument
644 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots()
656 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument
671 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
681 dir->i_ctime = dir->i_mtime = dir->i_atime = *ts; in vfat_add_entry()
764 struct timespec64 ts; in vfat_create() local
769 ts = current_time(dir); in vfat_create()
770 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create()
782 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in vfat_create()
853 struct timespec64 ts; in vfat_mkdir() local
[all …]
/linux-4.19.296/drivers/rtc/
Drtc-lib.c138 struct timespec64 ts; in rtc_ktime_to_tm() local
141 ts = ktime_to_timespec64(kt); in rtc_ktime_to_tm()
143 if (ts.tv_nsec) in rtc_ktime_to_tm()
144 ts.tv_sec++; in rtc_ktime_to_tm()
145 rtc_time64_to_tm(ts.tv_sec, &ret); in rtc_ktime_to_tm()
/linux-4.19.296/drivers/misc/sgi-gru/
Dgruprocfs.c177 struct gru_thread_state *ts; in cch_seq_show() local
185 ts = gru->gs_gts[i]; in cch_seq_show()
186 if (!ts) in cch_seq_show()
190 is_kernel_context(ts) ? 0 : ts->ts_gms->ms_asids[gid].mt_asid, in cch_seq_show()
191 is_kernel_context(ts) ? 0 : ts->ts_tgid_owner, in cch_seq_show()
192 ts->ts_cbr_au_count * GRU_CBR_AU_SIZE, in cch_seq_show()
193 ts->ts_cbr_au_count * GRU_DSR_AU_BYTES, in cch_seq_show()
194 mode[ts->ts_user_options & in cch_seq_show()
/linux-4.19.296/fs/
Dselect.c275 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() local
277 if (!timespec64_valid(&ts)) in poll_select_set_timeout()
285 *to = timespec64_add_safe(*to, ts); in poll_select_set_timeout()
711 struct timespec64 ts, end_time, *to = NULL; in do_pselect() local
715 if (get_timespec64(&ts, tsp)) in do_pselect()
719 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
1053 struct timespec64 ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local
1057 if (get_timespec64(&ts, tsp)) in SYSCALL_DEFINE5()
1061 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
1106 struct timespec64 ts; in compat_poll_select_copy_remaining() local
[all …]
/linux-4.19.296/drivers/media/dvb-core/
Ddvb_net.c322 const u8 *ts, *ts_end, *from_where; member
334 memcpy(ule_where, h->ts, TS_SZ); in dvb_net_ule_new_ts_cell()
346 if ((h->ts[0] != TS_SYNC) || (h->ts[1] & TS_TEI) || in dvb_net_ule_new_ts_cell()
347 ((h->ts[3] & TS_SC) != 0)) { in dvb_net_ule_new_ts_cell()
349 h->priv->ts_count, h->ts[0], in dvb_net_ule_new_ts_cell()
350 (h->ts[1] & TS_TEI) >> 7, in dvb_net_ule_new_ts_cell()
351 (h->ts[3] & TS_SC) >> 6); in dvb_net_ule_new_ts_cell()
364 h->ts += TS_SZ; in dvb_net_ule_new_ts_cell()
370 h->from_where = h->ts + 4; in dvb_net_ule_new_ts_cell()
377 if (h->ts[1] & TS_PUSI) { in dvb_net_ule_ts_pusi()
[all …]
/linux-4.19.296/drivers/iio/humidity/
Ddht11.c97 struct {s64 ts; int value; } edges[DHT11_EDGES_PER_READ]; member
112 dht11->edges[i].ts - dht11->edges[i - 1].ts, in dht11_edges_print()
139 t = dht11->edges[offset + 2 * i + 2].ts - in dht11_decode()
140 dht11->edges[offset + 2 * i + 1].ts; in dht11_decode()
189 dht11->edges[dht11->num_edges].ts = ktime_get_boot_ns(); in dht11_handle_irq()
/linux-4.19.296/include/media/
Dcec.h258 u8 error_cnt, ktime_t ts);
273 u8 status, ktime_t ts);
282 struct cec_msg *msg, ktime_t ts);
300 bool dropped_events, ktime_t ts);
310 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
320 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts);

12345