/linux-master/kernel/time/ |
H A D | ntp.c | 762 int __do_adjtimex(struct __kernel_timex *txc, const struct timespec64 *ts, argument 822 txc->time.tv_sec = ts->tv_sec; 823 txc->time.tv_usec = ts->tv_nsec; 825 txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC; 828 if (unlikely(ts->tv_sec >= ntp_next_leap_sec)) { 840 (ts->tv_sec == ntp_next_leap_sec)) { 861 static inline struct pps_normtime pps_normalize_ts(struct timespec64 ts) argument 864 .sec = ts.tv_sec, 865 .nsec = ts.tv_nsec
|
/linux-master/drivers/staging/media/meson/vdec/ |
H A D | vdec_helpers.c | 230 int amvdec_add_ts(struct amvdec_session *sess, u64 ts, argument 240 new_ts->ts = ts; 252 void amvdec_remove_ts(struct amvdec_session *sess, u64 ts) argument 259 if (tmp->ts == ts) { 266 "Couldn't remove buffer with timestamp %llu from list\n", ts); 314 dev_dbg(dev, "Buffer %u done, ts = %llu, flags = %08X\n", 345 timestamp = tmp->ts; 392 timestamp = match->ts; [all...] |
/linux-master/drivers/ptp/ |
H A D | ptp_clock.c | 132 struct timespec64 ts; local 136 ts.tv_sec = tx->time.tv_sec; 137 ts.tv_nsec = tx->time.tv_usec; 140 ts.tv_nsec *= 1000; 142 if ((unsigned long) ts.tv_nsec >= NSEC_PER_SEC) 145 kt = timespec64_to_ktime(ts); 211 static int ptp_getcycles64(struct ptp_clock_info *info, struct timespec64 *ts) argument 214 return info->getcyclesx64(info, ts, NULL); 216 return info->gettime64(info, ts);
|
/linux-master/drivers/staging/greybus/ |
H A D | loopback.c | 55 ktime_t ts; member in struct:gb_loopback_async_operation 72 ktime_t ts; member in struct:gb_loopback 364 static u64 gb_loopback_calc_latency(ktime_t ts, ktime_t te) argument 366 return __gb_loopback_calc_latency(ktime_to_ns(ts), ktime_to_ns(te)); 374 ktime_t ts, te; local 377 ts = ktime_get(); 408 gb->elapsed_nsecs = gb_loopback_calc_latency(ts, te); 440 gb->elapsed_nsecs = gb_loopback_calc_latency(op_async->ts, te); 493 op_async->ts = ktime_get(); 718 gb->ts [all...] |
/linux-master/drivers/staging/rtl8192e/ |
H A D | rtllib_tx.c | 270 struct tx_ts_record *ts = NULL; local 292 if (!rtllib_get_ts(ieee, (struct ts_common_info **)(&ts), hdr->addr1, 297 if (!ts->tx_admitted_ba_record.b_valid) { 303 } else if (!ts->disable_add_ba) { 304 TsStartAddBaProcess(ieee, ts); 307 } else if (!ts->using_ba) { 308 if (SN_LESS(ts->tx_admitted_ba_record.ba_start_seq_ctrl.field.seq_num, 309 (ts->tx_cur_seq + 1) % 4096)) 310 ts->using_ba = true; 476 struct tx_ts_record *ts local [all...] |
/linux-master/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v2_hw.c | 2020 struct task_status_struct *ts = &task->task_status; local 2059 ts->stat = SAS_OPEN_REJECT; 2060 ts->open_rej_reason = SAS_OREJ_NO_DEST; 2065 ts->stat = SAS_OPEN_REJECT; 2066 ts->open_rej_reason = SAS_OREJ_EPROTO; 2071 ts->stat = SAS_OPEN_REJECT; 2072 ts->open_rej_reason = SAS_OREJ_CONN_RATE; 2077 ts->stat = SAS_OPEN_REJECT; 2078 ts->open_rej_reason = SAS_OREJ_BAD_DEST; 2083 ts 2332 struct task_status_struct *ts; local [all...] |
H A D | hisi_sas_v1_hw.c | 1049 struct task_status_struct *ts = &task->task_status; local 1092 ts->residual = 0; 1093 ts->stat = SAS_DATA_UNDERRUN; 1103 ts->stat = SAS_DATA_OVERRUN; 1104 ts->residual = 0; 1109 ts->stat = SAS_PHY_DOWN; 1125 ts->stat = SAS_OPEN_REJECT; 1126 ts->open_rej_reason = SAS_OREJ_UNKNOWN; 1131 ts->stat = SAS_OPEN_TO; 1137 ts 1179 struct task_status_struct *ts; local [all...] |
/linux-master/include/linux/ceph/ |
H A D | decode.h | 199 static inline void ceph_decode_timespec64(struct timespec64 *ts, argument 208 ts->tv_sec = (time64_t)le32_to_cpu(tv->tv_sec); 209 ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); 212 const struct timespec64 *ts) 214 tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); 215 tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); 211 ceph_encode_timespec64(struct ceph_timespec *tv, const struct timespec64 *ts) argument
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | ptp.c | 244 struct timespec64 *ts) 253 *ts = ns_to_timespec64(ns); 259 const struct timespec64 *ts) 264 ns = timespec64_to_ns(ts); 473 struct timespec64 ts; local 475 mv88e6xxx_ptp_gettime(&chip->ptp_clock_info, &ts); 243 mv88e6xxx_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 258 mv88e6xxx_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument
|
/linux-master/io_uring/ |
H A D | io_uring.h | 83 void io_req_task_complete(struct io_kiocb *req, struct io_tw_state *ts); 85 void io_req_task_submit(struct io_kiocb *req, struct io_tw_state *ts); 96 int io_poll_issue(struct io_kiocb *req, struct io_tw_state *ts); 346 static inline void io_tw_lock(struct io_ring_ctx *ctx, struct io_tw_state *ts) argument 348 if (!ts->locked) { 350 ts->locked = true;
|
H A D | poll.c | 152 static void io_poll_tw_hash_eject(struct io_kiocb *req, struct io_tw_state *ts) argument 163 io_tw_lock(ctx, ts); 263 static int io_poll_check_events(struct io_kiocb *req, struct io_tw_state *ts) argument 325 if (!io_fill_cqe_req_aux(req, ts->locked, mask, 331 int ret = io_poll_issue(req, ts); 353 void io_poll_task_func(struct io_kiocb *req, struct io_tw_state *ts) argument 357 ret = io_poll_check_events(req, ts); 365 io_poll_tw_hash_eject(req, ts); 374 io_req_task_submit(req, ts); 382 io_req_task_complete(req, ts); [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | txtimestamp.c | 101 static int64_t timespec_to_ns64(struct timespec *ts) argument 103 return ts->tv_sec * NSEC_PER_SEC + ts->tv_nsec; 106 static int64_t timespec_to_us64(struct timespec *ts) argument 108 return ts->tv_sec * USEC_PER_SEC + ts->tv_nsec / NSEC_PER_USEC; 224 validate_timestamp(&tss->ts[0], 0); 225 add_timing_event(&usr_enq, &ts_usr, &tss->ts[0]); 229 validate_timestamp(&tss->ts[0], cfg_delay_snd); 230 add_timing_event(&usr_snd, &ts_usr, &tss->ts[ [all...] |
/linux-master/drivers/media/cec/core/ |
H A D | cec-adap.c | 71 * Queue a new event for this filehandle. If ts == 0, then set it 79 const struct cec_event *new_ev, u64 ts) 90 if (ts == 0) 91 ts = ktime_get_ns(); 106 entry->ev.ts = ts; 140 u64 ts = ktime_get_ns(); local 145 cec_queue_event_fh(fh, ev, ts); 151 bool dropped_events, ktime_t ts) 163 cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); 78 cec_queue_event_fh(struct cec_fh *fh, const struct cec_event *new_ev, u64 ts) argument 150 cec_queue_pin_cec_event(struct cec_adapter *adap, bool is_high, bool dropped_events, ktime_t ts) argument 170 cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts) argument 186 cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts) argument 585 cec_transmit_done_ts(struct cec_adapter *adap, u8 status, u8 arb_lost_cnt, u8 nack_cnt, u8 low_drive_cnt, u8 error_cnt, ktime_t ts) argument 713 cec_transmit_attempt_done_ts(struct cec_adapter *adap, u8 status, ktime_t ts) argument 1073 cec_received_msg_ts(struct cec_adapter *adap, struct cec_msg *msg, ktime_t ts) argument [all...] |
/linux-master/drivers/bus/ |
H A D | Makefile | 36 obj-$(CONFIG_TS_NBUS) += ts-nbus.o
|
/linux-master/drivers/media/pci/solo6x10/ |
H A D | solo6x10-core.c | 41 struct timespec64 ts; local 43 ktime_get_ts64(&ts); 46 solo_reg_write(solo_dev, SOLO_TIMER_SEC, (u32)ts.tv_sec); 47 solo_reg_write(solo_dev, SOLO_TIMER_USEC, (u32)ts.tv_nsec / NSEC_PER_USEC); 53 struct timespec64 ts; local 67 ktime_get_ts64(&ts); 69 diff = (s32)ts.tv_sec - (s32)sec; 71 + ((s32)(ts.tv_nsec / NSEC_PER_USEC) - (s32)usec);
|
/linux-master/include/linux/fsl/ |
H A D | ptp_qoriq.h | 192 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 194 const struct timespec64 *ts);
|
/linux-master/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-again.sh | 119 ts=`echo $2 | sed -e 's/[smhd]$//'` 120 dur=$(($ts*mult))
|
/linux-master/arch/arm/mach-omap1/ |
H A D | timer32k.c | 185 * @ts: &struct timespec64 for the returned time 191 static void omap_read_persistent_clock64(struct timespec64 *ts) argument 204 *ts = persistent_ts;
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ptp.c | 100 struct timespec64 *ts) 108 *ts = ns_to_timespec64(tstamp); 113 const struct timespec64 *ts) 125 nsec = timespec64_to_ns(ts); 244 struct timespec64 *ts) 253 *ts = ns_to_timespec64(tstamp); 259 const struct timespec64 *ts) 265 nsec = timespec64_to_ns(ts); 99 otx2_ptp_hw_gettime(struct ptp_clock_info *ptp_info, struct timespec64 *ts) argument 112 otx2_ptp_hw_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) argument 243 otx2_ptp_tc_gettime(struct ptp_clock_info *ptp_info, struct timespec64 *ts) argument 258 otx2_ptp_tc_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) argument
|
/linux-master/drivers/net/slip/ |
H A D | slhc.c | 95 struct cstate *ts; local 133 ts = comp->tstate; 135 ts[i].cs_this = i; 136 ts[i].next = &(ts[i - 1]); 138 ts[0].next = &(ts[comp->tslot_limit]); 139 ts[0].cs_this = 0;
|
/linux-master/drivers/net/can/esd/ |
H A D | esdacc.c | 97 static ktime_t acc_ts2ktime(struct acc_ov *ov, u64 ts) argument 101 ns = (ts * ACC_TS_FACTOR) + (ts >> ACC_TS_80MHZ_SHIFT); 420 acc_ts2ktime(priv->ov, msg->ts); 455 skb_hwtstamps(skb)->hwtstamp = acc_ts2ktime(priv->ov, msg->ts); 514 skb_hwtstamps(skb)->hwtstamp = acc_ts2ktime(priv->ov, msg->ts); 571 skb_hwtstamps(skb)->hwtstamp = acc_ts2ktime(priv->ov, msg->ts); 624 skb_hwtstamps(skb)->hwtstamp = acc_ts2ktime(priv->ov, msg->ts);
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_inode_buf.c | 146 static inline struct timespec64 xfs_inode_decode_bigtime(uint64_t ts) argument 151 tv.tv_sec = xfs_bigtime_to_unix(div_u64_rem(ts, NSEC_PER_SEC, &n)); 161 const xfs_timestamp_t ts) 167 return xfs_inode_decode_bigtime(be64_to_cpu(ts)); 169 lts = (struct xfs_legacy_timestamp *)&ts; 278 xfs_timestamp_t ts; local 283 lts = (struct xfs_legacy_timestamp *)&ts; 287 return ts; 159 xfs_inode_from_disk_ts( struct xfs_dinode *dip, const xfs_timestamp_t ts) argument
|
/linux-master/drivers/s390/block/ |
H A D | dasd_eer.c | 292 struct timespec64 ts; local 306 ktime_get_real_ts64(&ts); 307 header.tv_sec = ts.tv_sec; 308 header.tv_usec = ts.tv_nsec / NSEC_PER_USEC; 336 struct timespec64 ts; local 349 ktime_get_real_ts64(&ts); 350 header.tv_sec = ts.tv_sec; 351 header.tv_usec = ts.tv_nsec / NSEC_PER_USEC;
|
/linux-master/drivers/net/phy/mscc/ |
H A D | mscc_ptp.c | 644 static int __vsc85xx_gettime(struct ptp_clock_info *info, struct timespec64 *ts) argument 666 ts->tv_sec = ((time64_t)val) << 32; 670 ts->tv_sec += val; 672 ts->tv_nsec = vsc85xx_ts_read_csr(phydev, PROCESSOR, 681 static int vsc85xx_gettime(struct ptp_clock_info *info, struct timespec64 *ts) argument 688 __vsc85xx_gettime(info, ts); 695 const struct timespec64 *ts) 705 PTP_LTC_LOAD_SEC_MSB(ts->tv_sec)); 707 PTP_LTC_LOAD_SEC_LSB(ts->tv_sec)); 709 PTP_LTC_LOAD_NS(ts 694 __vsc85xx_settime(struct ptp_clock_info *info, const struct timespec64 *ts) argument 730 vsc85xx_settime(struct ptp_clock_info *info, const struct timespec64 *ts) argument 753 struct timespec64 ts; local 1187 struct timespec64 ts; local [all...] |
/linux-master/tools/testing/selftests/vDSO/ |
H A D | vdso_test_correctness.c | 150 static inline int sys_clock_gettime(clockid_t id, struct timespec *ts) argument 152 return syscall(__NR_clock_gettime, id, ts); 155 static inline int sys_clock_gettime64(clockid_t id, struct __kernel_timespec *ts) argument 157 return syscall(__NR_clock_gettime64, id, ts);
|