Lines Matching full:phc

310 	/* Read the system timestamp pre PHC read */  in ice_ptp_read_src_clk_reg()
315 /* Read the system timestamp post PHC read */ in ice_ptp_read_src_clk_reg()
336 * @cached_phc_time: recently cached copy of PHC time
347 * 1) have a recently cached copy of the PHC time
349 * seconds) before or after the PHC time was captured.
352 * captured after the PHC time. In this case, the full timestamp is just
353 * the cached PHC time plus the delta.
355 * timestamp was captured *before* the PHC time, i.e. because the PHC
359 * This algorithm works even if the PHC time was updated after a Tx timestamp
363 * This calculation primarily relies on keeping the cached PHC time up to
365 * PHC time, it is possible that the lower 32bits of PHC time have
368 * This is prevented by (a) periodically updating the cached PHC time once
377 /* Extract the lower 32 bits of the PHC time */ in ice_ptp_extend_32b_ts()
380 /* Calculate the delta between the lower 32bits of the cached PHC in ice_ptp_extend_32b_ts()
386 * cached PHC time. If the delta is large, it indicates that the in ice_ptp_extend_32b_ts()
415 * and the remaining 32 bits are the lower 32 bits of the PHC timer.
420 * Extract the 32bit nominal nanoseconds and extend them. Use the cached PHC
432 /* Discard the hardware timestamp if the cached PHC time is too old */ in ice_ptp_extend_40b_ts()
584 /* Extend the timestamp using cached PHC time */ in ice_ptp_complete_tx_single_tstamp()
637 * to correctly extend the timestamp using the cached PHC time. It is
742 /* Extend the timestamp using cached PHC time */ in ice_ptp_process_tx_tstamp()
1042 * ice_ptp_update_cached_phctime - Update the cached PHC time values
1070 dev_warn(dev, "%u msecs passed between update to cached PHC time\n", in ice_ptp_update_cached_phctime()
1075 /* Read the current PHC time */ in ice_ptp_update_cached_phctime()
1078 /* Update the cached PHC time stored in the PF structure */ in ice_ptp_update_cached_phctime()
1107 * ice_ptp_reset_cached_phctime - Reset cached PHC time after an update
1110 * This function must be called when the cached PHC time is no longer valid,
1112 * timestamps as stale and updates the cached PHC time for both the PF and Rx
1115 * If updating the PHC time cannot be done immediately, a warning message is
1124 /* Update the cached PHC time immediately if possible, otherwise in ice_ptp_reset_cached_phctime()
1133 dev_warn(dev, "%s: ICE_CFG_BUSY, unable to immediately update cached PHC time\n", in ice_ptp_reset_cached_phctime()
1150 * ice_ptp_write_init - Set PHC time to provided value
1154 * Set the PHC time to the specified time provided in the timespec.
1165 * ice_ptp_write_adj - Adjust PHC clock time atomically
1169 * Perform an atomic adjustment of the PHC time by the specified number of
1997 * ice_ptp_gpio_enable - Enable/disable ancillary features of PHC
2412 /* Do not report a timestamp if we don't have a cached PHC time */ in ice_ptp_get_rx_hwts()
2417 * PHC value, rather than accessing the PF. This also allows us to in ice_ptp_get_rx_hwts()
2823 /* Run twice a second or reschedule if phc update failed */ in ice_ptp_periodic_work()
2861 /* Acquire PHC and system timer to restore after reset */ in ice_ptp_prepare_for_reset()
2895 /* Write the initial Time value to PHY and LAN using the cached PHC in ice_ptp_rebuild_owner()
3054 dev_err(ice_pf_to_dev(pf), "Failed to initialize PHC, err %d\n", in ice_ptp_init_owner()