Lines Matching defs:counter
120 * TCSR register to be cleared before the first compare counter
130 /* Dummy read counter to update the counter */
140 /* Convert the ptp local counter to 1588 timestamp */
154 * counter is calculated and written into TCCR register. To avoid
163 * ptp counter, which maybe cause 32-bit wrap. Since the
203 * fec_ptp_read - read raw cycle counter (to be used by time counter)
207 * cyclecounter structure used to construct a ns counter from the
227 * fec_ptp_start_cyclecounter - create the cycle counter from hw
231 * structures for use in generated a ns counter from the arbitrary
245 /* 1ns counter */
248 /* use 31-bit timer counter */
260 /* reset the ns time counter */
271 * Adjust the frequency of the ptp cycle counter by the
342 * @delta: offset to adjust the cycle counter by
393 * @ts: the timespec containing the new time for the cycle counter
406 u32 counter;
417 * Update the counter with the masked value.
419 counter = ns & fep->cc.mask;
422 writel(counter, fep->hwp + FEC_ATIME);
518 * because ENET just support 32bit counter, will timeout in 4s
537 /* This function checks the pps event and reloads the timer compare counter. */
556 /* Update the counter; */