Searched refs:cached_phc_time (Results 1 – 12 of 12) sorted by relevance
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ptp.c | 238 *ts = ns_to_timespec64(adapter->ptp.cached_phc_time); in iavf_read_phc_indirect() 271 * cached_phc_time. in iavf_ptp_cache_phc_time() 283 * 1) updating cached_phc_time 285 * cached_phc_time is used by the Tx and Rx timestamp flows in order to 289 * the cached_phc_time is within ~1 second of the Tx or Rx timestamp 432 * @cached_phc_time: recently cached copy of PHC time 468 u64 iavf_ptp_extend_32b_timestamp(u64 cached_phc_time, u32 in_tstamp) in iavf_ptp_extend_32b_timestamp() argument 470 u32 low = lower_32_bits(cached_phc_time); in iavf_ptp_extend_32b_timestamp() 480 ns = cached_phc_time - (low - in_tstamp); in iavf_ptp_extend_32b_timestamp() 482 ns = cached_phc_time in iavf_ptp_extend_32b_timestamp() [all...] |
H A D | iavf_ptp.h | 21 u64 iavf_ptp_extend_32b_timestamp(u64 cached_phc_time, u32 in_tstamp); 40 static inline u64 iavf_ptp_extend_32b_timestamp(u64 cached_phc_time, in iavf_ptp_extend_32b_timestamp() argument
|
H A D | iavf_types.h | 26 u64 cached_phc_time; member
|
H A D | iavf_txrx.c | 1111 ns = iavf_ptp_extend_32b_timestamp(rx_ring->ptp->cached_phc_time, in iavf_flex_rx_tstamp()
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_ptp.c | 347 WRITE_ONCE(rxq->cached_phc_time, systime); in idpf_ptp_update_phctime_rxq_grp() 353 WRITE_ONCE(rxq->cached_phc_time, systime); in idpf_ptp_update_phctime_rxq_grp() 383 WRITE_ONCE(adapter->ptp->cached_phc_time, systime); in idpf_ptp_update_cached_phctime() 568 * @cached_phc_time: recently cached copy of PHC time 576 u64 idpf_ptp_tstamp_extend_32b_to_64b(u64 cached_phc_time, u32 in_timestamp) in idpf_ptp_tstamp_extend_32b_to_64b() argument 582 phc_time_lo = (u32)cached_phc_time; in idpf_ptp_tstamp_extend_32b_to_64b() 592 ns = cached_phc_time - delta; in idpf_ptp_tstamp_extend_32b_to_64b() 594 ns = cached_phc_time + delta; in idpf_ptp_tstamp_extend_32b_to_64b() 624 return idpf_ptp_tstamp_extend_32b_to_64b(ptp->cached_phc_time, in idpf_ptp_extend_ts()
|
H A D | idpf_ptp.h | 166 * @cached_phc_time: a cached copy of the PHC time for timestamp extension 167 * @cached_phc_jiffies: jiffies when cached_phc_time was last updated 187 u64 cached_phc_time; member 285 u64 idpf_ptp_tstamp_extend_32b_to_64b(u64 cached_phc_time, u32 in_timestamp); 365 static inline u64 idpf_ptp_tstamp_extend_32b_to_64b(u64 cached_phc_time, in idpf_ptp_tstamp_extend_32b_to_64b() argument
|
H A D | idpf_txrx.h | 503 * @cached_phc_time: Cached PHC time for the Rx queue 551 u64 cached_phc_time; member
|
H A D | idpf_txrx.c | 3179 cached_time = READ_ONCE(rxq->cached_phc_time); in idpf_rx_hwtstamp()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp.c | 250 * @cached_phc_time: recently cached copy of PHC time 286 static u64 ice_ptp_extend_32b_ts(u64 cached_phc_time, u32 in_tstamp) in ice_ptp_extend_32b_ts() argument 292 phc_time_lo = (u32)cached_phc_time; in ice_ptp_extend_32b_ts() 307 ns = cached_phc_time - delta; in ice_ptp_extend_32b_ts() 309 ns = cached_phc_time + delta; in ice_ptp_extend_32b_ts() 353 return ice_ptp_extend_32b_ts(pf->ptp.cached_phc_time, in ice_ptp_extend_40b_ts() 963 if (pf->ptp.cached_phc_time && in ice_ptp_update_cached_phctime() 976 WRITE_ONCE(pf->ptp.cached_phc_time, systime); in ice_ptp_update_cached_phctime() 2915 if (ptp->cached_phc_time) { in ice_ptp_rebuild_owner() 2917 ts = ns_to_timespec64(ptp->cached_phc_time in ice_ptp_rebuild_owner() [all...] |
H A D | ice_ptp.h | 228 * @cached_phc_time: a cached copy of the PHC time for timestamp extension 229 * @cached_phc_jiffies: jiffies when cached_phc_time was last updated 252 u64 cached_phc_time; member
|
H A D | ice_lib.c | 1432 ring->cached_phctime = pf->ptp.cached_phc_time; in ice_vsi_alloc_rings()
|
H A D | ice_ethtool.c | 3318 rx_rings[i].cached_phctime = pf->ptp.cached_phc_time; in ice_set_ringparam()
|