Lines Matching refs:cc
177 val &= fep->cc.mask; in fec_ptp_enable_pps()
181 fep->next_counter = (val + fep->reload_period) & fep->cc.mask; in fec_ptp_enable_pps()
200 fep->next_counter = (fep->next_counter + fep->reload_period) & fep->cc.mask; in fec_ptp_enable_pps()
219 static u64 fec_ptp_read(const struct cyclecounter *cc) in fec_ptp_read() argument
222 container_of(cc, struct fec_enet_private, cc); in fec_ptp_read()
265 memset(&fep->cc, 0, sizeof(fep->cc)); in fec_ptp_start_cyclecounter()
266 fep->cc.read = fec_ptp_read; in fec_ptp_start_cyclecounter()
267 fep->cc.mask = CLOCKSOURCE_MASK(31); in fec_ptp_start_cyclecounter()
268 fep->cc.shift = 31; in fec_ptp_start_cyclecounter()
269 fep->cc.mult = FEC_CC_MULT; in fec_ptp_start_cyclecounter()
272 timecounter_init(&fep->tc, &fep->cc, ktime_to_ns(ktime_get_real())); in fec_ptp_start_cyclecounter()
423 counter = ns & fep->cc.mask; in fec_ptp_settime()
427 timecounter_init(&fep->tc, &fep->cc, ns); in fec_ptp_settime()
553 fep->cc.mask; in fec_pps_interrupt()