Lines Matching refs:period
179 et_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in et_start() argument
184 KASSERT(period >= 0, ("et_start: negative period")); in et_start()
185 KASSERT((et->et_flags & ET_FLAGS_PERIODIC) || period == 0, in et_start()
187 KASSERT((et->et_flags & ET_FLAGS_ONESHOT) || period != 0, in et_start()
189 if (period != 0) { in et_start()
190 if (period < et->et_min_period) in et_start()
191 period = et->et_min_period; in et_start()
192 else if (period > et->et_max_period) in et_start()
193 period = et->et_max_period; in et_start()
195 if (period == 0 || first != 0) { in et_start()
201 return (et->et_start(et, first, period)); in et_start()