Lines Matching refs:hwp
137 writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
143 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
146 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
147 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
159 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
161 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
163 tempval = readl(fep->hwp + FEC_ATIME); in fec_ptp_enable_pps()
194 writel(val, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
200 val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
202 writel(val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
205 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
210 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
215 writel(fep->next_counter, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
218 writel(0, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
243 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
245 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
250 return readl(fep->hwp + FEC_ATIME); in fec_ptp_read()
273 writel(inc << FEC_T_INC_OFFSET, fep->hwp + FEC_ATIME_INC); in fec_ptp_start_cyclecounter()
276 writel(FEC_COUNTER_PERIOD, fep->hwp + FEC_ATIME_EVT_PERIOD); in fec_ptp_start_cyclecounter()
279 fep->hwp + FEC_ATIME_CTRL); in fec_ptp_start_cyclecounter()
353 tmp = readl(fep->hwp + FEC_ATIME_INC) & FEC_T_INC_MASK; in fec_ptp_adjfreq()
355 writel(tmp, fep->hwp + FEC_ATIME_INC); in fec_ptp_adjfreq()
356 writel(corr_period, fep->hwp + FEC_ATIME_CORR); in fec_ptp_adjfreq()
441 writel(counter, fep->hwp + FEC_ATIME); in fec_ptp_settime()
618 val = readl(fep->hwp + FEC_TCSR(channel)); in fec_ptp_check_pps_event()
623 writel(fep->next_counter, fep->hwp + FEC_TCCR(channel)); in fec_ptp_check_pps_event()
625 writel(val, fep->hwp + FEC_TCSR(channel)); in fec_ptp_check_pps_event()
626 } while (readl(fep->hwp + FEC_TCSR(channel)) & FEC_T_TF_MASK); in fec_ptp_check_pps_event()