Lines Matching refs:hwp
136 writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
142 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
145 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
146 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
158 tempval = readl(fep->hwp + FEC_ATIME_CTRL); 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()
192 writel(val, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
198 val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
200 writel(val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
203 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
208 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
213 writel(fep->next_counter, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
216 writel(0, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
241 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
243 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
248 return readl(fep->hwp + FEC_ATIME); in fec_ptp_read()
271 writel(inc << FEC_T_INC_OFFSET, fep->hwp + FEC_ATIME_INC); in fec_ptp_start_cyclecounter()
274 writel(FEC_COUNTER_PERIOD, fep->hwp + FEC_ATIME_EVT_PERIOD); in fec_ptp_start_cyclecounter()
277 fep->hwp + FEC_ATIME_CTRL); in fec_ptp_start_cyclecounter()
351 tmp = readl(fep->hwp + FEC_ATIME_INC) & FEC_T_INC_MASK; in fec_ptp_adjfreq()
353 writel(tmp, fep->hwp + FEC_ATIME_INC); in fec_ptp_adjfreq()
355 writel(corr_period, fep->hwp + FEC_ATIME_CORR); in fec_ptp_adjfreq()
447 writel(counter, fep->hwp + FEC_ATIME); in fec_ptp_settime()
632 val = readl(fep->hwp + FEC_TCSR(channel)); in fec_ptp_check_pps_event()
637 writel(fep->next_counter, fep->hwp + FEC_TCCR(channel)); in fec_ptp_check_pps_event()
639 writel(val, fep->hwp + FEC_TCSR(channel)); in fec_ptp_check_pps_event()
640 } while (readl(fep->hwp + FEC_TCSR(channel)) & FEC_T_TF_MASK); in fec_ptp_check_pps_event()