Home
last modified time | relevance | path

Searched refs:ptp_saved_state (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/freescale/
H A Dfec_ptp.c775 fep->ptp_saved_state.pps_enable = fep->pps_enable; in fec_ptp_save_state()
777 fep->ptp_saved_state.ns_phc = timecounter_read(&fep->tc); in fec_ptp_save_state()
778 fep->ptp_saved_state.ns_sys = ktime_get_ns(); in fec_ptp_save_state()
780 fep->ptp_saved_state.at_corr = readl(fep->hwp + FEC_ATIME_CORR); in fec_ptp_save_state()
782 fep->ptp_saved_state.at_inc_corr = (u8)(atime_inc_corr >> FEC_T_INC_CORR_OFFSET); in fec_ptp_save_state()
800 writel(fep->ptp_saved_state.at_corr, fep->hwp + FEC_ATIME_CORR); in fec_ptp_restore_state()
801 atime_inc |= ((u32)fep->ptp_saved_state.at_inc_corr) << FEC_T_INC_CORR_OFFSET; in fec_ptp_restore_state()
804 ns = ktime_get_ns() - fep->ptp_saved_state.ns_sys + fep->ptp_saved_state.ns_phc; in fec_ptp_restore_state()
812 if (fep->ptp_saved_state.pps_enable) { in fec_ptp_restore_state()
H A Dfec.h699 } ptp_saved_state; member