Lines Matching full:counter
203 uint64_t counter; in ptimer_get_count() local
212 /* Figure out the current counter value. */ in ptimer_get_count()
216 counter = 0; in ptimer_get_count()
260 counter = rem / div; in ptimer_get_count()
263 /* Before wrapping around, timer should stay with counter = 0 in ptimer_get_count()
267 /* Counter == delta here, check whether it was in ptimer_get_count()
270 if (counter == s->limit + DELTA_ADJUST) { in ptimer_get_count()
273 } else if (counter == s->limit) { in ptimer_get_count()
274 /* Since the counter is rounded down and now != last, in ptimer_get_count()
275 the counter == limit means that delta was adjusted in ptimer_get_count()
284 /* If now == last then delta == limit, i.e. the counter already in ptimer_get_count()
288 counter += 1; in ptimer_get_count()
292 counter = s->delta; in ptimer_get_count()
294 return counter; in ptimer_get_count()
339 /* Set counter increment interval in nanoseconds. */
351 /* Set counter increment interval from a Clock */
384 /* Set counter frequency in Hz. */