Lines Matching refs:hwp
118 writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
124 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
127 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
128 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
170 writel(val, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
176 val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
178 writel(val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps()
181 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
186 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
191 writel(fep->next_counter, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_enable_pps()
194 writel(0, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
215 temp_val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_pps_perout()
217 writel(temp_val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_pps_perout()
221 ptp_hc = readl(fep->hwp + FEC_ATIME); in fec_ptp_pps_perout()
239 writel(compare_val, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_pps_perout()
243 temp_val = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_pps_perout()
245 writel(temp_val, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_pps_perout()
248 temp_val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_pps_perout()
253 writel(temp_val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_pps_perout()
258 writel(fep->next_counter, fep->hwp + FEC_TCCR(fep->pps_channel)); in fec_ptp_pps_perout()
289 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
291 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
296 return readl(fep->hwp + FEC_ATIME); in fec_ptp_read()
319 writel(inc << FEC_T_INC_OFFSET, fep->hwp + FEC_ATIME_INC); in fec_ptp_start_cyclecounter()
322 writel(FEC_COUNTER_PERIOD, fep->hwp + FEC_ATIME_EVT_PERIOD); in fec_ptp_start_cyclecounter()
325 fep->hwp + FEC_ATIME_CTRL); in fec_ptp_start_cyclecounter()
402 tmp = readl(fep->hwp + FEC_ATIME_INC) & FEC_T_INC_MASK; in fec_ptp_adjfine()
404 writel(tmp, fep->hwp + FEC_ATIME_INC); in fec_ptp_adjfine()
406 writel(corr_period, fep->hwp + FEC_ATIME_CORR); in fec_ptp_adjfine()
498 writel(counter, fep->hwp + FEC_ATIME); in fec_ptp_settime()
510 writel(0, fep->hwp + FEC_TCSR(channel)); in fec_ptp_pps_disable()
678 val = readl(fep->hwp + FEC_TCSR(channel)); in fec_pps_interrupt()
683 writel(fep->next_counter, fep->hwp + FEC_TCCR(channel)); in fec_pps_interrupt()
685 writel(val, fep->hwp + FEC_TCSR(channel)); in fec_pps_interrupt()
686 } while (readl(fep->hwp + FEC_TCSR(channel)) & FEC_T_TF_MASK); in fec_pps_interrupt()