Lines Matching full:expiration
36 * - Create two windows with a certain expiration period, and
53 /* Update the expiration of a time window
57 * @period: the expiration period in nanoseconds
62 /* time elapsed since the last theoretical expiration */ in update_expiration()
63 int64_t elapsed = (now - w->expiration) % period; in update_expiration()
64 /* time remaininging until the next expiration */ in update_expiration()
66 /* compute expiration */ in update_expiration()
67 w->expiration = now + remaining; in update_expiration()
83 * expiration time).
117 ta->windows[0].expiration = now + ta->period / 2; in timed_average_init()
118 ta->windows[1].expiration = now + ta->period; in timed_average_init()
122 * expiration time if that's the case.
138 if (w->expiration <= now) { in check_expirations()
145 if (ta->windows[0].expiration < ta->windows[1].expiration) { in check_expirations()
153 int64_t remaining = ta->windows[ta->current].expiration - now; in check_expirations()