Home
last modified time | relevance | path

Searched refs:tai (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_tai.c152 static u64 mvpp22_calc_frac_ppm(struct mvpp2_tai *tai, long abs_scaled_ppm) in mvpp22_calc_frac_ppm() argument
154 u64 val = tai->period * abs_scaled_ppm >> 4; in mvpp22_calc_frac_ppm()
159 static s32 mvpp22_calc_max_adj(struct mvpp2_tai *tai) in mvpp22_calc_max_adj() argument
166 struct mvpp2_tai *tai = ptp_to_tai(ptp); in mvpp22_tai_adjfine() local
177 val = mvpp22_calc_frac_ppm(tai, scaled_ppm); in mvpp22_tai_adjfine()
195 base = tai->base; in mvpp22_tai_adjfine()
196 spin_lock_irqsave(&tai->lock, flags); in mvpp22_tai_adjfine()
200 spin_unlock_irqrestore(&tai->lock, flags); in mvpp22_tai_adjfine()
207 struct mvpp2_tai *tai = ptp_to_tai(ptp); in mvpp22_tai_adjtime() local
226 base = tai->base; in mvpp22_tai_adjtime()
[all …]
Dmvpp2.h1060 struct mvpp2_tai *tai; member
1539 void mvpp22_tai_tstamp(struct mvpp2_tai *tai, u32 tstamp,
1541 void mvpp22_tai_start(struct mvpp2_tai *tai);
1542 void mvpp22_tai_stop(struct mvpp2_tai *tai);
1543 int mvpp22_tai_ptp_clock_index(struct mvpp2_tai *tai);
1549 static inline void mvpp22_tai_tstamp(struct mvpp2_tai *tai, u32 tstamp, in mvpp22_tai_tstamp() argument
1553 static inline void mvpp22_tai_start(struct mvpp2_tai *tai) in mvpp22_tai_start() argument
1556 static inline void mvpp22_tai_stop(struct mvpp2_tai *tai) in mvpp22_tai_stop() argument
1559 static inline int mvpp22_tai_ptp_clock_index(struct mvpp2_tai *tai) in mvpp22_tai_ptp_clock_index() argument
Dmvpp2_main.c3405 mvpp22_tai_tstamp(port->priv->tai, ts, &shhwtstamps); in mvpp2_isr_handle_ptp_queue()
4015 mvpp22_tai_tstamp(port->priv->tai, timestamp, in mvpp2_rx()
5197 mvpp22_tai_start(port->priv->tai); in mvpp2_set_ts_config()
5219 mvpp22_tai_stop(port->priv->tai); in mvpp2_set_ts_config()
5253 info->phc_index = mvpp22_tai_ptp_clock_index(port->priv->tai); in mvpp2_ethtool_get_ts_info()
6840 if (priv->tai) in mvpp2_port_probe()
/linux-6.6.21/tools/testing/selftests/net/
Dso_txtime.sh80 ! do_test 4 tai a,-1 a,-1
81 ! do_test 6 tai a,0 a,0
82 do_test 6 tai a,10 a,10
83 do_test 4 tai a,10,b,20 a,10,b,20
84 do_test 6 tai a,20,b,10 b,10,a,20
/linux-6.6.21/tools/testing/selftests/timers/
Dleap-a-day.c144 tx.tai, in sigalarm()
153 tx.tai, in sigalarm()
331 struct timespec tai; in main() local
338 clock_gettime(CLOCK_TAI, &tai); in main()
340 tai.tv_sec, in main()
341 tai.tv_nsec, in main()
350 tx.tai, in main()
D.gitignore15 set-tai
Dset-tai.c47 return tx.tai; in get_tai()
DMakefile12 leapcrash set-tai set-2038 set-tz
/linux-6.6.21/include/uapi/linux/
Dtimex.h89 int tai; /* TAI offset (ro) */ member
129 int tai; /* TAI offset (ro) */ member
/linux-6.6.21/tools/testing/selftests/net/forwarding/
Dtsn_lib.sh159 --utc-tai-offset ${UTC_TAI_OFFSET} \
236 --utc-tai-offset ${UTC_TAI_OFFSET} \
/linux-6.6.21/include/linux/
Dtime32.h47 s32 tai; member
/linux-6.6.21/kernel/time/
Dntp.c817 txc->tai = *time_tai; in __do_adjtimex()
831 txc->tai++; in __do_adjtimex()
836 txc->tai--; in __do_adjtimex()
Dtime.c343 tx32.tai = txc->tai; in put_old_timex32()
Dtimekeeping.c2429 s32 orig_tai, tai; in do_adjtimex() local
2459 orig_tai = tai = tk->tai_offset; in do_adjtimex()
2460 ret = __do_adjtimex(txc, &ts, &tai, &ad); in do_adjtimex()
2462 if (tai != orig_tai) { in do_adjtimex()
2463 __timekeeping_set_tai_offset(tk, tai); in do_adjtimex()
/linux-6.6.21/Documentation/core-api/
Dtimekeeping.rst119 in user space, along with the equivalent boottime/tai/raw
/linux-6.6.21/Documentation/trace/
Dftrace.rst551 tai:
552 This is the tai clock (CLOCK_TAI) and is derived from the wall-