/linux-master/include/linux/ |
H A D | ptp_clock_kernel.h | 95 * parameter ts: Holds the result. 99 * parameter ts: Holds the PHC timestamp. 111 * parameter ts: Time value to set. 118 * parameter ts: Holds the result. 125 * parameter ts: Holds the PHC timestamp. 180 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, [all...] |
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz_ptp.c | 95 struct timespec64 const *ts) 100 if ((ts->tv_sec & 0xffffffff) != ts->tv_sec) 103 ret = ksz_write32(dev, REG_TRIG_TARGET_NANOSEC, ts->tv_nsec); 107 ret = ksz_write32(dev, REG_TRIG_TARGET_SEC, ts->tv_sec); 296 int ksz_get_ts_info(struct dsa_switch *ds, int port, struct ethtool_ts_info *ts) argument 306 ts->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE | 310 ts->tx_types = BIT(HWTSTAMP_TX_OFF) | BIT(HWTSTAMP_TX_ONESTEP_P2P); 313 ts->tx_types |= BIT(HWTSTAMP_TX_ON); 315 ts 94 ksz_ptp_tou_target_time_set(struct ksz_device *dev, struct timespec64 const *ts) argument 439 struct timespec64 ts; local 595 _ksz_ptp_gettime(struct ksz_device *dev, struct timespec64 *ts) argument 625 ksz_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 683 ksz_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 873 struct timespec64 ts; local [all...] |
/linux-master/drivers/misc/sgi-gru/ |
H A D | gruprocfs.c | 164 struct gru_thread_state *ts; local 171 ts = gru->gs_gts[i]; 172 if (!ts) 176 is_kernel_context(ts) ? 0 : ts->ts_gms->ms_asids[gid].mt_asid, 177 is_kernel_context(ts) ? 0 : ts->ts_tgid_owner, 178 ts->ts_cbr_au_count * GRU_CBR_AU_SIZE, 179 ts->ts_cbr_au_count * GRU_DSR_AU_BYTES, 180 mode[ts [all...] |
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 116 struct timespec64 *ts) 129 ts->tv_sec = sec; 130 ts->tv_nsec = nsec; 134 const struct timespec64 *ts) 141 wr32(E1000_SYSTIML, ts->tv_nsec); 142 wr32(E1000_SYSTIMH, (u32)ts->tv_sec); 260 struct timespec64 *ts, 281 *ts = ns_to_timespec64(ns); 287 struct timespec64 *ts, 309 *ts 115 igb_ptp_read_i210(struct igb_adapter *adapter, struct timespec64 *ts) argument 133 igb_ptp_write_i210(struct igb_adapter *adapter, const struct timespec64 *ts) argument 259 igb_ptp_gettimex_82576(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) argument 286 igb_ptp_gettimex_82580(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) argument 314 igb_ptp_gettimex_i210(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) argument 336 igb_ptp_settime_82576(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 355 igb_ptp_settime_i210(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 497 struct timespec64 ts, start; local 649 struct timespec64 ts; local 850 struct timespec64 ts; local 1007 struct skb_shared_hwtstamps ts; local 1511 struct timespec64 ts = ktime_to_timespec64(ktime_get_real()); local [all...] |
/linux-master/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_mac.c | 356 struct ath_tx_status *ts) 377 ts->ts_rateindex = MS(status, AR_FinalTxIdx); 378 ts->ts_seqnum = MS(status, AR_SeqNum); 379 ts->tid = MS(status, AR_TxTid); 381 ts->qid = MS(ads->ds_info, AR_TxQcuNum); 382 ts->desc_id = MS(ads->status1, AR_TxDescId); 383 ts->ts_tstamp = ads->status4; 384 ts->ts_status = 0; 385 ts->ts_flags = 0; 388 ts 355 ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_status *ts) argument [all...] |
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-event.c | 30 struct timespec64 ts; local 48 ts = ns_to_timespec64(kev->ts); 49 event->timestamp.tv_sec = ts.tv_sec; 50 event->timestamp.tv_nsec = ts.tv_nsec; 103 const struct v4l2_event *ev, u64 ts) 143 kev->ts = ts; 157 u64 ts; local 162 ts 102 __v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev, u64 ts) argument 176 u64 ts = ktime_get_ns(); local [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | so_txtime.c | 65 struct timespec ts; local 67 if (clock_gettime(clock, &ts)) 70 return ts.tv_sec * (1000ULL * 1000 * 1000) + ts.tv_nsec; 73 static void do_send_one(int fdt, struct timed_send *ts) argument 82 iov.iov_base = &ts->data; 90 if (ts->delay_us >= 0) { 95 tdeliver = glob_tstart + ts->delay_us * 1000; 114 static void do_recv_one(int fdr, struct timed_send *ts) argument 129 texpect = ts [all...] |
H A D | cmsg_sender.c | 68 } ts; member in struct:options 162 opt.ts.ena = true; 286 if (opt.ts.ena) { 340 struct scm_timestamping *ts; local 344 if (!opt.ts.ena) 350 ts = NULL; 365 if (cmsg->cmsg_len < sizeof(*ts)) 368 ts = (void *)CMSG_DATA(cmsg); 381 if (!ts) 389 if (!ts [all...] |
/linux-master/tools/testing/selftests/timers/ |
H A D | freq-step.c | 205 struct timespec ts; local 208 if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts)) { 213 mono_raw_base = ts.tv_sec; 215 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { 220 mono_base = ts.tv_sec; 233 srand(ts.tv_sec ^ ts.tv_nsec);
|
/linux-master/tools/perf/util/ |
H A D | s390-cpumsf.c | 316 unsigned long long ts; local 318 memcpy(&ts, &te->timestamp[idx], sizeof(ts)); 319 return be64toh(ts); 600 static int s390_cpumsf_samples(struct s390_cpumsf_queue *sfq, u64 *ts) argument 613 *ts = ~0ULL; 629 if (aux_ts > *ts) { 630 *ts = aux_ts; 658 if (aux_ts > *ts) { 659 *ts 693 s390_cpumsf_run_decoder(struct s390_cpumsf_queue *sfq, u64 *ts) argument 799 s390_cpumsf_setup_queue(struct s390_cpumsf *sf, struct auxtrace_queue *queue, unsigned int queue_nr, u64 ts) argument 820 s390_cpumsf_setup_queues(struct s390_cpumsf *sf, u64 ts) argument 834 s390_cpumsf_update_queues(struct s390_cpumsf *sf, u64 ts) argument 846 u64 ts; local [all...] |
/linux-master/sound/soc/meson/ |
H A D | axg-tdmin.c | 113 struct axg_tdm_stream *ts) 118 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { 130 ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); 137 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { 146 if (axg_tdm_lrclk_invert(ts->iface->fmt)) 150 val |= TDMIN_CTRL_BITNUM(ts->iface->slot_width - 1); 164 return axg_tdm_formatter_set_channel_masks(map, ts, TDMIN_MASK0); 111 axg_tdmin_prepare(struct regmap *map, const struct axg_tdm_formatter_hw *quirks, struct axg_tdm_stream *ts) argument
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_devcoredump.c | 81 struct timespec64 ts; local 102 ts = ktime_to_timespec64(ss->snapshot_time); 103 drm_printf(&p, "Snapshot time: %lld.%09ld\n", ts.tv_sec, ts.tv_nsec); 104 ts = ktime_to_timespec64(ss->boot_time); 105 drm_printf(&p, "Uptime: %lld.%09ld\n", ts.tv_sec, ts.tv_nsec);
|
/linux-master/drivers/input/touchscreen/ |
H A D | cyttsp4_core.h | 427 static inline int cyttsp4_adap_read(struct cyttsp4 *ts, u16 addr, int size, argument 430 return ts->bus_ops->read(ts->dev, ts->xfer_buf, addr, size, buf); 433 static inline int cyttsp4_adap_write(struct cyttsp4 *ts, u16 addr, int size, argument 436 return ts->bus_ops->write(ts->dev, ts->xfer_buf, addr, size, buf); 441 extern int cyttsp4_remove(struct cyttsp4 *ts);
|
/linux-master/tools/testing/selftests/futex/functional/ |
H A D | futex_requeue_pi.c | 286 struct timespec ts, *tsp = NULL; local 295 ret = clock_gettime(CLOCK_MONOTONIC, &ts); 296 secs = (ts.tv_nsec + timeout_ns) / 1000000000; 297 ts.tv_nsec = ((int64_t)ts.tv_nsec + timeout_ns) % 1000000000; 298 ts.tv_sec += secs; 299 info("ts.tv_sec = %ld\n", ts.tv_sec); 300 info("ts.tv_nsec = %ld\n", ts [all...] |
/linux-master/arch/mips/dec/ |
H A D | time.c | 22 void read_persistent_clock64(struct timespec64 *ts) argument 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); 58 ts->tv_nsec = 0;
|
/linux-master/drivers/scsi/snic/ |
H A D | snic_trc.c | 39 td->ts = 0; /* Marker for checking the record, for complete data*/ 56 jiffies_to_timespec64(td->ts, &tmspec); 89 if (td->ts == 0) {
|
/linux-master/drivers/pps/clients/ |
H A D | pps-ldisc.c | 19 struct pps_event_time ts; local 21 pps_get_ts(&ts); 32 pps_event(pps, &ts, active ? PPS_CAPTUREASSERT :
|
/linux-master/kernel/futex/ |
H A D | syscalls.c | 147 futex_init_timeout(u32 cmd, u32 op, struct timespec64 *ts, ktime_t *t) argument 149 if (!timespec64_valid(ts)) 152 *t = timespec64_to_ktime(*ts); 166 struct timespec64 ts; local 171 if (get_timespec64(&ts, utime)) 173 ret = futex_init_timeout(cmd, op, &ts, &t); 231 struct timespec64 ts; local 246 if (get_timespec64(&ts, timeout)) 253 ret = futex_init_timeout(FUTEX_WAIT_BITSET, flag_init, &ts, &time); 498 struct timespec64 ts; local [all...] |
/linux-master/arch/mips/sibyte/swarm/ |
H A D | setup.c | 77 void read_persistent_clock64(struct timespec64 *ts) argument 95 ts->tv_sec = sec; 96 ts->tv_nsec = 0;
|
/linux-master/drivers/ptp/ |
H A D | ptp_kvm_common.c | 80 const struct timespec64 *ts) 85 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 100 memcpy(ts, &tspec, sizeof(struct timespec64)); 79 ptp_kvm_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument
|
H A D | ptp_idt82p33.c | 55 static void idt82p33_byte_array_to_timespec(struct timespec64 *ts, argument 74 ts->tv_sec = sec; 75 ts->tv_nsec = nsec; 78 static void idt82p33_timespec_to_byte_array(struct timespec64 const *ts, argument 85 nsec = ts->tv_nsec; 86 sec = ts->tv_sec; 156 struct timespec64 *ts) 173 idt82p33_byte_array_to_timespec(ts, buf); 315 struct timespec64 ts; local 318 err = idt82p33_get_extts(&idt82p33->channel[todn], &ts); 155 idt82p33_get_extts(struct idt82p33_channel *channel, struct timespec64 *ts) argument 372 _idt82p33_gettime(struct idt82p33_channel *channel, struct timespec64 *ts) argument 415 _idt82p33_settime(struct idt82p33_channel *channel, struct timespec64 const *ts) argument 460 struct timespec64 ts; local 486 struct timespec64 ts; local 909 struct timespec64 ts = {0, 0}; local 1079 idt82p33_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 1096 idt82p33_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument [all...] |
/linux-master/arch/powerpc/include/asm/vdso/ |
H A D | gettimeofday.h | 141 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts, 146 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts, 148 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
|
/linux-master/fs/fat/ |
H A D | namei_msdos.c | 229 struct timespec64 *ts, struct fat_slot_info *sinfo) 241 fat_time_unix2fat(sbi, ts, &time, &date, NULL); 254 fat_truncate_time(dir, ts, S_CTIME|S_MTIME); 270 struct timespec64 ts; local 288 ts = current_time(dir); 289 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); 298 fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); 349 struct timespec64 ts; local 366 ts = current_time(dir); 367 cluster = fat_alloc_new_dir(dir, &ts); 227 msdos_add_entry(struct inode *dir, const unsigned char *name, int is_dir, int is_hid, int cluster, struct timespec64 *ts, struct fat_slot_info *sinfo) argument 437 struct timespec64 ts; local [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ptp.c | 423 struct timespec64 *ts, 440 ts->tv_sec = lan_rd(lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); 443 ts->tv_nsec = nsec; 445 /* Sec has incremented since the ts was registered */ 447 ts->tv_sec--; 461 struct timespec64 ts; local 477 /* Retrieve the ts Tx port */ 514 /* Next ts */ 527 lan966x_get_hwtimestamp(lan966x, &ts, delay); 530 shhwtstamps.hwtstamp = ktime_set(ts 422 lan966x_get_hwtimestamp(struct lan966x *lan966x, struct timespec64 *ts, u32 nsec) argument 643 lan966x_ptp_settime64(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 682 lan966x_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 753 struct timespec64 ts; local 1088 struct timespec64 ts; local [all...] |
/linux-master/drivers/net/wireless/ath/ |
H A D | dfs_pri_detector.h | 63 void (*reset) (struct pri_detector *de, u64 ts);
|