Searched refs:timespec64 (Results 1 - 49 of 49) sorted by relevance

/linux-4.1.27/include/linux/
H A Dtime64.h13 # define timespec64 timespec macro
15 struct timespec64 { struct
36 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) timespec64_to_timespec()
41 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) timespec_to_timespec64()
60 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) timespec64_to_timespec()
69 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) timespec_to_timespec64()
71 struct timespec64 ret; timespec_to_timespec64()
78 static inline int timespec64_equal(const struct timespec64 *a, timespec64_equal()
79 const struct timespec64 *b) timespec64_equal()
89 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) timespec64_compare()
98 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
105 extern struct timespec64 timespec64_add_safe(const struct timespec64 lhs,
106 const struct timespec64 rhs);
109 static inline struct timespec64 timespec64_add(struct timespec64 lhs, timespec64_add()
110 struct timespec64 rhs) timespec64_add()
112 struct timespec64 ts_delta; timespec64_add()
121 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, timespec64_sub()
122 struct timespec64 rhs) timespec64_sub()
124 struct timespec64 ts_delta; timespec64_sub()
131 * Returns true if the timespec64 is norm, false if denorm:
133 static inline bool timespec64_valid(const struct timespec64 *ts) timespec64_valid()
144 static inline bool timespec64_valid_strict(const struct timespec64 *ts) timespec64_valid_strict()
155 * timespec64_to_ns - Convert timespec64 to nanoseconds
156 * @ts: pointer to the timespec64 variable to be converted
158 * Returns the scalar nanosecond representation of the timespec64
161 static inline s64 timespec64_to_ns(const struct timespec64 *ts) timespec64_to_ns()
167 * ns_to_timespec64 - Convert nanoseconds to timespec64
170 * Returns the timespec64 representation of the nsec parameter.
172 extern struct timespec64 ns_to_timespec64(const s64 nsec);
175 * timespec64_add_ns - Adds nanoseconds to a timespec64
176 * @a: pointer to timespec64 to be incremented
182 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) timespec64_add_ns()
H A Dtimekeeping.h13 extern int do_settimeofday64(const struct timespec64 *ts);
28 struct timespec64 get_monotonic_coarse64(void);
29 extern void getrawmonotonic64(struct timespec64 *ts);
30 extern void ktime_get_ts64(struct timespec64 *ts);
34 extern int __getnstimeofday64(struct timespec64 *tv);
35 extern void getnstimeofday64(struct timespec64 *tv);
36 extern void getboottime64(struct timespec64 *ts);
87 struct timespec64 ts64; do_settimeofday()
95 struct timespec64 ts64; __getnstimeofday()
104 struct timespec64 ts64; getnstimeofday()
112 struct timespec64 ts64; ktime_get_ts()
120 struct timespec64 ts64; ktime_get_real_ts()
128 struct timespec64 ts64; getrawmonotonic()
141 struct timespec64 ts64; getboottime()
238 static inline void get_monotonic_boottime64(struct timespec64 *ts) get_monotonic_boottime64()
254 extern void timekeeping_inject_sleeptime64(struct timespec64 *delta);
268 extern void read_persistent_clock64(struct timespec64 *ts);
270 extern void read_boot_clock64(struct timespec64 *ts);
272 extern int update_persistent_clock64(struct timespec64 now);
H A Dtimekeeper_internal.h52 * @raw_time: Monotonic raw base time in timespec64 format
83 struct timespec64 wall_to_monotonic;
88 struct timespec64 raw_time;
H A Dktime.h86 /* convert a timespec64 to ktime_t format: */ timespec64_to_ktime()
87 static inline ktime_t timespec64_to_ktime(struct timespec64 ts) timespec64_to_ktime()
256 * ktime_to_timespec64_cond - convert a ktime_t variable to timespec64
264 struct timespec64 *ts)
H A Dptp_clock_kernel.h107 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
108 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
H A Drtc.h165 extern int rtc_set_ntp_time(struct timespec64 now);
/linux-4.1.27/arch/arm/include/asm/mach/
H A Dtime.h15 typedef void (*clock_access_fn)(struct timespec64 *);
/linux-4.1.27/kernel/time/
H A Dntp_internal.h10 extern int __do_adjtimex(struct timex *, struct timespec64 *, s32 *);
H A Dtimekeeping_internal.h10 extern void tk_debug_account_sleep_time(struct timespec64 *t);
H A Dtimekeeping.c75 static inline struct timespec64 tk_xtime(struct timekeeper *tk) tk_xtime()
77 struct timespec64 ts; tk_xtime()
84 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) tk_set_xtime()
90 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) tk_xtime_add()
97 static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm) tk_set_wall_to_mono()
99 struct timespec64 tmp; tk_set_wall_to_mono()
636 * __getnstimeofday64 - Returns the time of day in a timespec64.
642 int __getnstimeofday64(struct timespec64 *ts) __getnstimeofday64()
670 * getnstimeofday64 - Returns the time of day in a timespec64.
671 * @ts: pointer to the timespec64 to be set
673 * Returns the time of day in a timespec64 (WARN if suspended).
675 void getnstimeofday64(struct timespec64 *ts) getnstimeofday64()
770 * ktime_get_ts64 - get the monotonic clock in timespec64 format
775 * in normalized timespec64 format in the variable pointed to by @ts.
777 void ktime_get_ts64(struct timespec64 *ts) ktime_get_ts64()
780 struct timespec64 tomono; ktime_get_ts64()
894 struct timespec64 now; do_gettimeofday()
904 * @ts: pointer to the timespec64 variable containing the new time
908 int do_settimeofday64(const struct timespec64 *ts) do_settimeofday64()
911 struct timespec64 ts_delta, xt; do_settimeofday64()
952 struct timespec64 ts64, tmp; timekeeping_inject_offset()
1095 * @ts: pointer to the timespec64 to be set
1099 void getrawmonotonic64(struct timespec64 *ts) getrawmonotonic64()
1102 struct timespec64 ts64; getrawmonotonic64()
1172 void __weak read_persistent_clock64(struct timespec64 *ts64) read_persistent_clock64()
1195 void __weak read_boot_clock64(struct timespec64 *ts64) read_boot_clock64()
1217 struct timespec64 now, boot, tmp; timekeeping_init()
1261 static struct timespec64 timekeeping_suspend_time;
1271 struct timespec64 *delta) __timekeeping_inject_sleeptime()
1323 * @delta: pointer to a timespec64 delta value
1332 void timekeeping_inject_sleeptime64(struct timespec64 *delta) timekeeping_inject_sleeptime64()
1362 struct timespec64 ts_new, ts_delta; timekeeping_resume()
1440 struct timespec64 delta, delta_delta; timekeeping_suspend()
1441 static struct timespec64 old_delta; timekeeping_suspend()
1696 struct timespec64 ts; accumulate_nsecs_to_secs()
1850 * @ts: pointer to the timespec64 to be set
1852 * Returns the wall-time of boot in a timespec64.
1859 void getboottime64(struct timespec64 *ts) getboottime64()
1886 struct timespec64 now; current_kernel_time()
1899 struct timespec64 get_monotonic_coarse64(void) get_monotonic_coarse64()
1902 struct timespec64 now, mono; get_monotonic_coarse64()
1997 struct timespec64 ts; do_adjtimex()
H A Dtimekeeping_debug.c70 void tk_debug_account_sleep_time(struct timespec64 *t) tk_debug_account_sleep_time()
H A Dntp.c462 int __weak update_persistent_clock64(struct timespec64 now64) update_persistent_clock64()
478 struct timespec64 now; sync_cmos_clock()
500 struct timespec64 adjust = now; sync_cmos_clock()
545 static inline void process_adj_status(struct timex *txc, struct timespec64 *ts) process_adj_status()
568 struct timespec64 *ts, process_adjtimex_modes()
665 int __do_adjtimex(struct timex *txc, struct timespec64 *ts, s32 *time_tai) __do_adjtimex()
H A Dtime.c439 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) set_normalized_timespec64()
462 * ns_to_timespec64 - Convert nanoseconds to timespec64
465 * Returns the timespec64 representation of the nsec parameter.
467 struct timespec64 ns_to_timespec64(const s64 nsec) ns_to_timespec64()
469 struct timespec64 ts; ns_to_timespec64()
473 return (struct timespec64) {0, 0}; ns_to_timespec64()
/linux-4.1.27/arch/arm/kernel/
H A Dtime.c79 static void dummy_clock_access(struct timespec64 *ts) dummy_clock_access()
88 void read_persistent_clock64(struct timespec64 *ts) read_persistent_clock64()
93 void read_boot_clock64(struct timespec64 *ts) read_boot_clock64()
H A Dvdso.c300 struct timespec64 *wtm = &tk->wall_to_monotonic; update_vsyscall()
/linux-4.1.27/arch/arm/plat-omap/
H A Dcounter_32k.c51 * nsecs and adds to a monotonically increasing timespec64.
53 static struct timespec64 persistent_ts;
57 static void omap_read_persistent_clock64(struct timespec64 *ts) omap_read_persistent_clock64()
/linux-4.1.27/drivers/rtc/
H A Dsystohc.c23 int rtc_set_ntp_time(struct timespec64 now) rtc_set_ntp_time()
H A Dhctosys.c31 struct timespec64 tv64 = { rtc_hctosys()
H A Dclass.c48 static struct timespec64 old_rtc, old_system, old_delta;
55 struct timespec64 delta, delta_delta; rtc_suspend()
101 struct timespec64 new_system, new_rtc; rtc_resume()
102 struct timespec64 sleep_time; rtc_resume()
H A Drtc-lib.c140 struct timespec64 ts; rtc_ktime_to_tm()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c108 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) stmmac_get_time()
136 const struct timespec64 *ts) stmmac_set_time()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
H A Dptp.c109 static int e1000e_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) e1000e_phc_gettime()
134 const struct timespec64 *ts) e1000e_phc_settime()
172 struct timespec64 ts; e1000e_systim_overflow_work()
/linux-4.1.27/drivers/clocksource/
H A Dtegra20_timer.c54 static struct timespec64 persistent_ts;
127 * nsecs and adds to a monotonically increasing timespec64.
132 static void tegra_read_persistent_clock64(struct timespec64 *ts) tegra_read_persistent_clock64()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c120 struct timespec64 *ts) igb_ptp_read_i210()
138 const struct timespec64 *ts) igb_ptp_write_i210()
273 struct timespec64 now, then = ns_to_timespec64(delta); igb_ptp_adjtime_i210()
279 igb_ptp_write_i210(igb, (const struct timespec64 *)&now); igb_ptp_adjtime_i210()
287 struct timespec64 *ts) igb_ptp_gettime_82576()
306 struct timespec64 *ts) igb_ptp_gettime_i210()
322 const struct timespec64 *ts) igb_ptp_settime_82576()
341 const struct timespec64 *ts) igb_ptp_settime_i210()
628 struct timespec64 ts; igb_ptp_overflow_check()
1059 struct timespec64 ts = ktime_to_timespec64(ktime_get_real()); igb_ptp_init()
1173 struct timespec64 ts = ktime_to_timespec64(ktime_get_real()); igb_ptp_reset()
/linux-4.1.27/drivers/net/ethernet/ti/
H A Dcpts.c170 static int cpts_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) cpts_ptp_gettime()
186 const struct timespec64 *ts) cpts_ptp_settime()
223 struct timespec64 ts; cpts_overflow_check()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c168 struct timespec64 *ts) mlx4_en_phc_gettime()
193 const struct timespec64 *ts) mlx4_en_phc_settime()
/linux-4.1.27/drivers/ptp/
H A Dptp_clock.c110 struct timespec64 ts = timespec_to_timespec64(*tp); ptp_clock_settime()
118 struct timespec64 ts; ptp_clock_gettime()
H A Dptp_ixp46x.c178 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ptp_ixp_gettime()
198 const struct timespec64 *ts) ptp_ixp_settime()
H A Dptp_pch.c452 static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ptp_pch_gettime()
470 const struct timespec64 *ts) ptp_pch_settime()
H A Dptp_chardev.c127 struct timespec64 ts; ptp_ioctl()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_ptp.c60 static void i40e_ptp_read(struct i40e_pf *pf, struct timespec64 *ts) i40e_ptp_read()
84 static void i40e_ptp_write(struct i40e_pf *pf, const struct timespec64 *ts) i40e_ptp_write()
162 struct timespec64 now, then = ns_to_timespec64(delta); i40e_ptp_adjtime()
169 i40e_ptp_write(pf, (const struct timespec64 *)&now); i40e_ptp_adjtime()
184 static int i40e_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) i40e_ptp_gettime()
205 const struct timespec64 *ts) i40e_ptp_settime()
676 struct timespec64 ts; i40e_ptp_init()
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Dgianfar_ptp.c326 struct timespec64 *ts) ptp_gianfar_gettime()
344 const struct timespec64 *ts) ptp_gianfar_settime()
442 struct timespec64 now; gianfar_ptp_probe()
H A Dfec_ptp.c393 static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) fec_ptp_gettime()
418 const struct timespec64 *ts) fec_ptp_settime()
/linux-4.1.27/drivers/staging/android/
H A Dsync_debug.c99 struct timespec64 ts64 = sync_print_pt()
/linux-4.1.27/arch/mips/lasat/
H A Dsysctl.c63 struct timespec64 ts; proc_dolasatrtc()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ptp.c182 static int xgbe_gettime(struct ptp_clock_info *info, struct timespec64 *ts) xgbe_gettime()
202 const struct timespec64 *ts) xgbe_settime()
/linux-4.1.27/drivers/net/phy/
H A Ddp83640.c260 const struct timespec64 *ts, u16 cmd) tdr_write()
414 struct timespec64 ts; ptp_dp83640_adjtime()
431 struct timespec64 *ts) ptp_dp83640_gettime()
456 const struct timespec64 *ts) ptp_dp83640_settime()
617 struct timespec64 ts; recalibrate()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ptp.c288 static int fm10k_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) fm10k_ptp_gettime()
306 const struct timespec64 *ts) fm10k_ptp_settime()
/linux-4.1.27/arch/tile/gxio/
H A Dmpipe.c459 const struct timespec64 *ts) gxio_mpipe_set_timestamp()
469 struct timespec64 *ts) gxio_mpipe_get_timestamp()
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dptp.c326 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
328 const struct timespec64 *e_ts);
1840 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) efx_phc_gettime()
1867 const struct timespec64 *e_ts) efx_phc_settime()
1874 struct timespec64 time_now; efx_phc_settime()
1875 struct timespec64 delta; efx_phc_settime()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c282 static int ixgbe_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ixgbe_ptp_gettime()
307 const struct timespec64 *ts) ixgbe_ptp_settime()
407 struct timespec64 ts; ixgbe_ptp_overflow_check()
/linux-4.1.27/drivers/char/ipmi/
H A Dipmi_si_intf.c332 struct timespec64 t; debug_timestamp()
1011 static inline void ipmi_si_set_not_busy(struct timespec64 *ts) ipmi_si_set_not_busy()
1015 static inline int ipmi_si_is_busy(struct timespec64 *ts) ipmi_si_is_busy()
1022 struct timespec64 *busy_until) ipmi_thread_busy_wait()
1034 struct timespec64 now; ipmi_thread_busy_wait()
1060 struct timespec64 busy_until; ipmi_thread()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c438 struct timespec64 time; kfd_ioctl_get_clock_counters()
/linux-4.1.27/drivers/net/ethernet/adi/
H A Dbfin_mac.c986 static int bfin_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) bfin_ptp_gettime()
1005 const struct timespec64 *ts) bfin_ptp_settime()
/linux-4.1.27/drivers/net/ethernet/tile/
H A Dtilegx.c842 struct timespec64 *ts) ptp_mpipe_gettime()
854 const struct timespec64 *ts) ptp_mpipe_settime()
/linux-4.1.27/arch/tile/include/gxio/
H A Dmpipe.h1833 struct timespec64 *ts);
1843 const struct timespec64 *ts);
/linux-4.1.27/drivers/power/
H A Dab8500_fg.c387 struct timespec64 ts64; ab8500_fg_add_cap_sample()
447 struct timespec64 ts64; ab8500_fg_fill_cap_sample()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c13296 static int bnx2x_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) bnx2x_ptp_gettime()
13311 const struct timespec64 *ts) bnx2x_ptp_settime()
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dtg3.c6220 static int tg3_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) tg3_ptp_gettime()
6236 const struct timespec64 *ts) tg3_ptp_settime()

Completed in 2056 milliseconds