Lines Matching refs:hwp
117 writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
123 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
126 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
127 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
169 writel(val, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
175 val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
177 writel(val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
180 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
185 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
190 writel(fep->next_counter, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
193 writel(0, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
216 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
218 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
223 return readl(fep->hwp + FEC_ATIME); in fec_ptp_read()
246 writel(inc << FEC_T_INC_OFFSET, fep->hwp + FEC_ATIME_INC); in fec_ptp_start_cyclecounter()
249 writel(FEC_COUNTER_PERIOD, fep->hwp + FEC_ATIME_EVT_PERIOD); in fec_ptp_start_cyclecounter()
252 fep->hwp + FEC_ATIME_CTRL); in fec_ptp_start_cyclecounter()
326 tmp = readl(fep->hwp + FEC_ATIME_INC) & FEC_T_INC_MASK; in fec_ptp_adjfreq()
328 writel(tmp, fep->hwp + FEC_ATIME_INC); in fec_ptp_adjfreq()
330 writel(corr_period, fep->hwp + FEC_ATIME_CORR); in fec_ptp_adjfreq()
422 writel(counter, fep->hwp + FEC_ATIME); in fec_ptp_settime()
546 val = readl(fep->hwp + FEC_TCSR(channel)); in fec_pps_interrupt()
551 writel(fep->next_counter, fep->hwp + FEC_TCCR(channel)); in fec_pps_interrupt()
553 writel(val, fep->hwp + FEC_TCSR(channel)); in fec_pps_interrupt()
554 } while (readl(fep->hwp + FEC_TCSR(channel)) & FEC_T_TF_MASK); in fec_pps_interrupt()