/linux-master/fs/fuse/ |
H A D | dir.c | 98 struct timespec64 ts = { local 103 return get_jiffies_64() + timespec64_to_jiffies(&ts);
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 4736 struct timespec64 ts = ns_to_timespec64(skb->tstamp); local 4739 stmmac_set_desc_tbs(priv, tbs_desc, ts.tv_sec, ts.tv_nsec);
|
H A D | dwxgmac2_core.c | 1214 static int dwxgmac2_get_mac_tx_timestamp(struct mac_device_info *hw, u64 *ts) argument 1223 *ts = readl(ioaddr + XGMAC_TXTIMESTAMP_NSEC) & XGMAC_TXTSSTSLO; 1224 *ts += readl(ioaddr + XGMAC_TXTIMESTAMP_SEC) * 1000000000ULL;
|
/linux-master/drivers/net/ethernet/renesas/ |
H A D | ravb_main.c | 675 struct timespec64 ts; local 684 ts.tv_nsec = (u64)ravb_read(ndev, TFA0); 685 ts.tv_sec = ((u64)(tfa2 & TFA2_TSV) << 32) | 688 shhwtstamps.hwtstamp = timespec64_to_ktime(ts); 899 struct timespec64 ts; local 951 ts.tv_sec = ((u64) le16_to_cpu(desc->ts_sh) << 953 ts.tv_nsec = le32_to_cpu(desc->ts_n); 954 shhwtstamps->hwtstamp = timespec64_to_ktime(ts);
|
/linux-master/kernel/time/ |
H A D | tick-sched.c | 184 static inline int tick_sched_flag_test(struct tick_sched *ts, argument 187 return !!(ts->flags & flag); 190 static inline void tick_sched_flag_set(struct tick_sched *ts, argument 194 ts->flags |= flag; 197 static inline void tick_sched_flag_clear(struct tick_sched *ts, argument 201 ts->flags &= ~flag; 206 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) argument 238 if (ts->last_tick_jiffies != jiffies) { 239 ts->stalled_jiffies = 0; 240 ts 253 tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) argument 286 struct tick_sched *ts = container_of(timer, struct tick_sched, sched_timer); local 314 tick_sched_timer_cancel(struct tick_sched *ts) argument 366 can_stop_full_tick(int cpu, struct tick_sched *ts) argument 510 struct tick_sched *ts; local 532 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); local 587 struct tick_sched *ts; local 689 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 696 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); local 725 tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) argument 747 tick_nohz_start_idle(struct tick_sched *ts) argument 757 get_cpu_sleep_time_us(struct tick_sched *ts, ktime_t *sleeptime, bool compute_delta, u64 *last_update_time) argument 805 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); local 831 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); local 838 tick_nohz_restart(struct tick_sched *ts, ktime_t now) argument 893 tick_nohz_next_event(struct tick_sched *ts, int cpu) argument 971 tick_nohz_stop_tick(struct tick_sched *ts, int cpu) argument 1071 tick_nohz_retain_tick(struct tick_sched *ts) argument 1077 tick_nohz_full_stop_tick(struct tick_sched *ts, int cpu) argument 1086 tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now) argument 1105 __tick_nohz_full_update_tick(struct tick_sched *ts, ktime_t now) argument 1118 tick_nohz_full_update_tick(struct tick_sched *ts) argument 1168 can_stop_idle_tick(int cpu, struct tick_sched *ts) argument 1206 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1252 struct tick_sched *ts; local 1289 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1304 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1342 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1383 struct tick_sched *ts = tick_get_tick_sched(cpu); local 1397 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1402 tick_nohz_account_idle_time(struct tick_sched *ts, ktime_t now) argument 1426 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1435 tick_nohz_idle_update_tick(struct tick_sched *ts, ktime_t now) argument 1463 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1496 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1504 tick_nohz_activate(struct tick_sched *ts) argument 1534 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1557 tick_nohz_activate(struct tick_sched *ts) argument 1586 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1622 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); local 1664 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local 1679 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); local [all...] |
/linux-master/fs/nfsd/ |
H A D | nfs4xdr.c | 476 struct timespec64 ts; local 480 status = nfsd4_decode_nfstime4(argp, &ts); 3270 struct timespec64 ts = ns_to_timespec64(ns); local 3272 return nfsd4_encode_nfstime4(xdr, &ts);
|
/linux-master/fs/bcachefs/ |
H A D | bcachefs.h | 1239 static inline s64 timespec_to_bch2_time(const struct bch_fs *c, struct timespec64 ts) argument 1241 return (ts.tv_sec * c->sb.time_units_per_sec + 1242 (int) ts.tv_nsec / c->sb.nsec_per_time_unit) - c->sb.time_base_lo;
|
/linux-master/io_uring/ |
H A D | io_uring.c | 256 struct io_tw_state ts = { .locked = true, }; local 261 req->io_task_work.func(req, &ts); 262 if (WARN_ON_ONCE(!ts.locked)) 1160 static void ctx_flush_and_put(struct io_ring_ctx *ctx, struct io_tw_state *ts) argument 1166 if (ts->locked) { 1169 ts->locked = false; 1184 struct io_tw_state ts = { }; local 1192 ctx_flush_and_put(ctx, &ts); 1195 ts.locked = mutex_trylock(&ctx->uring_lock); 1200 req, &ts); 1425 __io_run_local_work(struct io_ring_ctx *ctx, struct io_tw_state *ts, int min_events) argument 1469 struct io_tw_state ts = { .locked = true, }; local 1484 struct io_tw_state ts = {}; local 1495 io_req_task_cancel(struct io_kiocb *req, struct io_tw_state *ts) argument 1501 io_req_task_submit(struct io_kiocb *req, struct io_tw_state *ts) argument 1712 io_req_task_complete(struct io_kiocb *req, struct io_tw_state *ts) argument 1925 io_poll_issue(struct io_kiocb *req, struct io_tw_state *ts) argument 2614 struct timespec64 ts; local 3571 io_get_ext_arg(unsigned flags, const void __user *argp, size_t *argsz, struct __kernel_timespec __user **ts, const sigset_t __user **sig) argument 3707 struct __kernel_timespec __user *ts; local [all...] |
H A D | rw.c | 301 void io_req_rw_complete(struct io_kiocb *req, struct io_tw_state *ts) argument 315 unsigned issue_flags = ts->locked ? 0 : IO_URING_F_UNLOCKED; 319 io_req_task_complete(req, ts);
|
/linux-master/include/linux/ |
H A D | io_uring_types.h | 563 typedef void (*io_req_tw_func_t)(struct io_kiocb *req, struct io_tw_state *ts);
|
H A D | timekeeping.h | 20 extern int do_settimeofday64(const struct timespec64 *ts); 42 extern void ktime_get_raw_ts64(struct timespec64 *ts); 43 extern void ktime_get_ts64(struct timespec64 *ts); 45 extern void ktime_get_coarse_ts64(struct timespec64 *ts); 46 extern void ktime_get_coarse_real_ts64(struct timespec64 *ts); 48 void getboottime64(struct timespec64 *ts); 125 struct timespec64 ts; local 127 ktime_get_coarse_ts64(&ts); 128 return timespec64_to_ktime(ts); 223 static inline void ktime_get_boottime_ts64(struct timespec64 *ts) argument 228 ktime_get_coarse_boottime_ts64(struct timespec64 *ts) argument 238 ktime_get_clocktai_ts64(struct timespec64 *ts) argument 243 ktime_get_coarse_clocktai_ts64(struct timespec64 *ts) argument [all...] |
H A D | fs.h | 1564 struct timespec64 ts) 1566 inode->__i_atime = ts; 1567 return ts; 1573 struct timespec64 ts = { .tv_sec = sec, local 1575 return inode_set_atime_to_ts(inode, ts); 1594 struct timespec64 ts) 1596 inode->__i_mtime = ts; 1597 return ts; 1603 struct timespec64 ts = { .tv_sec = sec, local 1605 return inode_set_mtime_to_ts(inode, ts); 1563 inode_set_atime_to_ts(struct inode *inode, struct timespec64 ts) argument 1593 inode_set_mtime_to_ts(struct inode *inode, struct timespec64 ts) argument 1623 inode_set_ctime_to_ts(struct inode *inode, struct timespec64 ts) argument 1641 struct timespec64 ts = { .tv_sec = sec, local [all...] |
/linux-master/fs/ceph/ |
H A D | mds_client.c | 1733 struct ceph_mds_session *ts; local 1745 ts = __open_export_target_session(mdsc, mi->export_targets[i]); 1746 ceph_put_mds_session(ts); 2909 struct ceph_timespec ts; local 2912 ceph_encode_timespec64(&ts, &req->r_stamp); 2913 ceph_encode_copy(p, &ts, sizeof(ts)); 4538 struct timespec64 ts; local 4544 ts = inode_get_mtime(inode); 4545 ceph_encode_timespec64(&rec.v1.mtime, &ts); [all...] |
/linux-master/net/xdp/ |
H A D | xsk.c | 620 u32 hr, len, ts, offset, copy, copied; local 639 ts = pool->unaligned ? len : pool->chunk_size; 662 skb->truesize += ts; 664 refcount_add(ts, &xs->sk.sk_wmem_alloc);
|
/linux-master/net/bluetooth/ |
H A D | iso.c | 2101 __u16 pb, ts, len; local 2107 ts = hci_iso_flags_ts(flags); 2109 BT_DBG("conn %p len %d pb 0x%x ts 0x%x", conn, skb->len, pb, ts); 2121 if (ts) {
|
/linux-master/kernel/trace/ |
H A D | ring_buffer.c | 301 u64 ts; local 303 ts = event->array[0]; 304 ts <<= TS_SHIFT; 305 ts += event->time_delta; 307 return ts; 397 u64 ts; member in struct:rb_event_info 658 u64 ts; local 662 ts = rb_event_time_stamp(event); 663 return rb_fix_abs_ts(ts, cpu_buffer->tail_page->page->time_stamp); 679 rb_time_read(&cpu_buffer->write_stamp, &ts); 1060 u64 ts; local 1084 ring_buffer_normalize_time_stamp(struct trace_buffer *buffer, int cpu, u64 *ts) argument 3342 u64 ts, delta; local 3418 u64 ts, delta; local 3574 u64 ts; local 4710 rb_buffer_peek(struct ring_buffer_per_cpu *cpu_buffer, u64 *ts, unsigned long *lost_events) argument 4784 rb_iter_peek(struct ring_buffer_iter *iter, u64 *ts) argument 4916 ring_buffer_peek(struct trace_buffer *buffer, int cpu, u64 *ts, unsigned long *lost_events) argument 4965 ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts) argument 4994 ring_buffer_consume(struct trace_buffer *buffer, int cpu, u64 *ts, unsigned long *lost_events) argument [all...] |
/linux-master/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v3_hw.c | 2207 struct task_status_struct *ts = &task->task_status; local 2232 ts->residual = trans_tx_fail_type; 2233 ts->stat = SAS_DATA_UNDERRUN; 2235 ts->stat = SAS_QUEUE_FULL; 2238 ts->stat = SAS_OPEN_REJECT; 2239 ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; 2254 ts->stat = SAS_PROTO_RESPONSE; 2257 ts->residual = trans_tx_fail_type; 2258 ts->stat = SAS_DATA_UNDERRUN; 2261 ts 2285 struct task_status_struct *ts; local [all...] |
H A D | hisi_sas_main.c | 105 struct task_status_struct *ts = &task->task_status; local 106 struct ata_task_resp *resp = (struct ata_task_resp *)ts->buf; 115 ts->buf_valid_size = sizeof(*resp); 477 struct task_status_struct *ts = &task->task_status; local 479 ts->resp = SAS_TASK_UNDELIVERED; 480 ts->stat = SAS_PHY_DOWN; 1085 struct task_status_struct *ts; local 1087 ts = &task->task_status; 1089 ts->resp = SAS_TASK_COMPLETE; 1090 ts [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tx.c | 749 u64 ts = get_cqe_ts(cqe); local 751 hwts.hwtstamp = mlx5e_cqe_ts_to_ns(sq->ptp_cyc2time, sq->clock, ts);
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 1886 u32 ts = le32_to_cpu(rxcmp1->rx_cmp_timestamp); local 1890 if (!bp->ptp_all_rx_tstamp || !ts || !BNXT_ALL_RX_TS_VALID(flags)) 1894 *cmpl_ts = ts; 2208 u64 ns, ts; local 2210 if (!bnxt_get_rx_ts_p5(bp, &ts, cmpl_ts)) { 2214 ns = timecounter_cyc2time(&ptp->tc, ts);
|
/linux-master/fs/btrfs/ |
H A D | inode.c | 5660 struct timespec64 ts; local 5680 ts = inode_set_ctime_current(inode); 5681 inode_set_mtime_to_ts(inode, ts); 5683 BTRFS_I(inode)->i_otime_sec = ts.tv_sec; 5684 BTRFS_I(inode)->i_otime_nsec = ts.tv_nsec; 6243 struct timespec64 ts; local 6368 ts = simple_inode_init_ts(inode); 6369 BTRFS_I(inode)->i_otime_sec = ts.tv_sec; 6370 BTRFS_I(inode)->i_otime_nsec = ts.tv_nsec;
|
/linux-master/arch/x86/kvm/ |
H A D | x86.c | 2906 static int do_realtime(struct timespec64 *ts, u64 *tsc_timestamp) argument 2915 ts->tv_sec = gtod->wall_time_sec; 2921 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); 2922 ts->tv_nsec = ns; 2963 static bool kvm_get_walltime_and_clockread(struct timespec64 *ts, argument 2970 return gtod_is_based_on_tsc(do_realtime(ts, tsc_timestamp)); 3119 struct timespec64 ts; local 3121 if (kvm_get_walltime_and_clockread(&ts, &data->host_tsc)) { 3122 data->realtime = ts.tv_nsec + NSEC_PER_SEC * ts 3352 struct timespec64 ts; local 9917 struct timespec64 ts; local [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/net/9p/ |
H A D | trans_fd.c | 225 struct p9_trans_fd *ts = NULL; local 228 ts = client->trans; 230 if (!ts) { 236 ret = vfs_poll(ts->rd, pt); 237 if (ts->rd != ts->wr) 238 ret = (ret & ~EPOLLOUT) | (vfs_poll(ts->wr, pt) & ~EPOLLIN); 253 struct p9_trans_fd *ts = NULL; local 257 ts = client->trans; 259 if (!ts) 421 struct p9_trans_fd *ts = NULL; local 586 struct p9_trans_fd *ts = client->trans; local 668 struct p9_trans_fd *ts = client->trans; local 698 struct p9_trans_fd *ts = client->trans; local 719 struct p9_trans_fd *ts = client->trans; local 828 struct p9_trans_fd *ts = kzalloc(sizeof(struct p9_trans_fd), local 936 struct p9_trans_fd *ts; local [all...] |
/linux-master/include/net/bluetooth/ |
H A D | hci.h | 2976 __le32 ts; member in struct:hci_iso_ts_data_hdr 3009 #define hci_iso_flags_pack(pb, ts) ((pb & 0x03) | ((ts & 0x01) << 2))
|