Lines Matching defs:cyclic
474 * provided in the cyclic start routine.
478 ch_init_cyclic(void *adapter, p_ch_cyclic_t cyclic,
481 cyclic->func = poll_func;
482 cyclic->arg = arg;
483 cyclic->timer = 0;
494 ch_cyclic(p_ch_cyclic_t cyclic)
496 if (cyclic->timer != 0) {
497 cyclic->func(cyclic->arg);
498 cyclic->timer = timeout((void(*)(void *))ch_cyclic,
499 (void *)cyclic, cyclic->period);
507 ch_start_cyclic(p_ch_cyclic_t cyclic, unsigned long period)
509 cyclic->period = drv_usectohz(period * 1000);
510 if (cyclic->timer == 0) {
511 cyclic->timer = timeout((void(*)(void *))ch_cyclic,
512 (void *)cyclic, cyclic->period);
520 ch_stop_cyclic(p_ch_cyclic_t cyclic)
526 timer = cyclic->timer;
527 cyclic->timer = 0;
530 drv_usecwait(drv_hztousec(2 * cyclic->period));