Lines Matching refs:ticker
20 ticker_init(ticker_t *ticker, int32_t nticks) { in ticker_init() argument
21 ticker->tick = nticks; in ticker_init()
22 ticker->nticks = nticks; in ticker_init()
26 ticker_copy(ticker_t *ticker, const ticker_t *other) { in ticker_copy() argument
27 *ticker = *other; in ticker_copy()
31 ticker_read(const ticker_t *ticker) { in ticker_read() argument
32 return ticker->tick; in ticker_read()
59 ticker_fixup(ticker_t *ticker) { in ticker_fixup() argument
60 ticker->tick = ticker->nticks; in ticker_fixup()
65 ticker_ticks(ticker_t *ticker, int32_t nticks) { in ticker_ticks() argument
66 ticker->tick -= nticks; in ticker_ticks()
67 if (unlikely(ticker->tick < 0)) { in ticker_ticks()
68 return ticker_fixup(ticker); in ticker_ticks()
74 ticker_tick(ticker_t *ticker) { in ticker_tick() argument
75 return ticker_ticks(ticker, 1); in ticker_tick()