Lines Matching defs:counter
121 * TCSR register to be cleared before the first compare counter
131 /* Dummy read counter to update the counter */
141 /* Convert the ptp local counter to 1588 timestamp */
155 * counter is calculated and written into TCCR register. To avoid
164 * ptp counter, which maybe cause 32-bit wrap. Since the
211 /* Update time counter */
214 /* Get the current ptp hardware time counter */
223 /* Convert the ptp local counter to 1588 timestamp */
276 * fec_ptp_read - read raw cycle counter (to be used by time counter)
280 * cyclecounter structure used to construct a ns counter from the
300 * fec_ptp_start_cyclecounter - create the cycle counter from hw
304 * structures for use in generated a ns counter from the arbitrary
318 /* 1ns counter */
321 /* use 31-bit timer counter */
333 /* reset the ns time counter */
344 * Adjust the frequency of the ptp cycle counter by the
418 * @delta: offset to adjust the cycle counter by
469 * @ts: the timespec containing the new time for the cycle counter
482 u32 counter;
493 * Update the counter with the masked value.
495 counter = ns & fep->cc.mask;
498 writel(counter, fep->hwp + FEC_ATIME);
586 /* Because the timer counter of FEC only has 31-bits, correspondingly,
650 * because ENET just support 32bit counter, will timeout in 4s
669 /* This function checks the pps event and reloads the timer compare counter. */
688 /* Update the counter; */