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.c774 fep->ptp_saved_state.pps_enable = fep->pps_enable; in fec_ptp_save_state()
776 fep->ptp_saved_state.ns_phc = timecounter_read(&fep->tc); in fec_ptp_save_state()
777 fep->ptp_saved_state.ns_sys = ktime_get_ns(); in fec_ptp_save_state()
779 fep->ptp_saved_state.at_corr = readl(fep->hwp + FEC_ATIME_CORR); in fec_ptp_save_state()
781 fep->ptp_saved_state.at_inc_corr = (u8)(atime_inc_corr >> FEC_T_INC_CORR_OFFSET); in fec_ptp_save_state()
799 writel(fep->ptp_saved_state.at_corr, fep->hwp + FEC_ATIME_CORR); in fec_ptp_restore_state()
800 atime_inc |= ((u32)fep->ptp_saved_state.at_inc_corr) << FEC_T_INC_CORR_OFFSET; in fec_ptp_restore_state()
803 ns = ktime_get_ns() - fep->ptp_saved_state.ns_sys + fep->ptp_saved_state.ns_phc; in fec_ptp_restore_state()
811 if (fep->ptp_saved_state.pps_enable) { in fec_ptp_restore_state()
H A Dfec.h699 } ptp_saved_state; member