Lines Matching refs:tempval
113 u32 val, tempval; in fec_ptp_enable_pps() local
158 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
159 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_enable_pps()
160 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
162 tempval = readl(fep->hwp + FEC_ATIME); in fec_ptp_enable_pps()
164 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps()
170 val = NSEC_PER_SEC - (u32)ts.tv_nsec + tempval; in fec_ptp_enable_pps()
239 u32 tempval; in fec_ptp_read() local
241 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
242 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_read()
243 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()