Lines Matching refs:hwp

116 		writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel));  in fec_ptp_enable_pps()
122 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
125 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
126 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
168 writel(val, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
174 val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
176 writel(val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
179 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
184 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
189 writel(fep->next_counter, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
192 writel(0, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
215 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
217 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
222 return readl(fep->hwp + FEC_ATIME); in fec_ptp_read()
245 writel(inc << FEC_T_INC_OFFSET, fep->hwp + FEC_ATIME_INC); in fec_ptp_start_cyclecounter()
248 writel(FEC_COUNTER_PERIOD, fep->hwp + FEC_ATIME_EVT_PERIOD); in fec_ptp_start_cyclecounter()
251 fep->hwp + FEC_ATIME_CTRL); in fec_ptp_start_cyclecounter()
325 tmp = readl(fep->hwp + FEC_ATIME_INC) & FEC_T_INC_MASK; in fec_ptp_adjfreq()
327 writel(tmp, fep->hwp + FEC_ATIME_INC); in fec_ptp_adjfreq()
329 writel(corr_period, fep->hwp + FEC_ATIME_CORR); in fec_ptp_adjfreq()
421 writel(counter, fep->hwp + FEC_ATIME); in fec_ptp_settime()
541 val = readl(fep->hwp + FEC_TCSR(channel)); in fec_pps_interrupt()
546 writel(fep->next_counter, fep->hwp + FEC_TCCR(channel)); in fec_pps_interrupt()
548 writel(val, fep->hwp + FEC_TCSR(channel)); in fec_pps_interrupt()
549 } while (readl(fep->hwp + FEC_TCSR(channel)) & FEC_T_TF_MASK); in fec_pps_interrupt()