Lines Matching defs:it
69 clock_highres_timer_create(itimer_t *it, void (*fire)(itimer_t *))
78 it->it_arg = NULL;
82 it->it_arg = kmem_zalloc(sizeof (cyclic_id_t), KM_SLEEP);
83 it->it_fire = fire;
91 itimer_t *it = (itimer_t *)arg;
92 hrtime_t *addr = &it->it_hrtime;
99 it->it_fire(it);
103 clock_highres_timer_settime(itimer_t *it, int flags,
106 cyclic_id_t cyc, *cycp = it->it_arg;
119 it->it_itime.it_interval.tv_sec == 0 &&
120 it->it_itime.it_interval.tv_nsec == 0 &&
127 it->it_itime = *when;
132 hrt2ts(cyctime.cyt_when, &it->it_itime.it_value);
172 * side of (a) is minimized when i is small, it is sufficient to show
191 * removed (so it's not possible to run the machine out
197 it->it_itime = *when;
199 hrt2ts(cyctime.cyt_when, &it->it_itime.it_value);
202 hdlr.cyh_arg = it;
209 * Now that we have the cyclic created, we need to bind it to our
227 clock_highres_timer_gettime(itimer_t *it, struct itimerspec *when)
232 hrtime_t start = ts2hrt(&it->it_itime.it_value);
233 hrtime_t interval = ts2hrt(&it->it_itime.it_interval);
235 hrtime_t *addr = &it->it_hrtime;
244 *when = it->it_itime;
294 clock_highres_timer_delete(itimer_t *it)
298 if (it->it_arg == NULL) {
308 if ((cyc = *((cyclic_id_t *)it->it_arg)) != CYCLIC_NONE)
313 kmem_free(it->it_arg, sizeof (cyclic_id_t));
319 clock_highres_timer_lwpbind(itimer_t *it)
323 cyclic_id_t cyc = *((cyclic_id_t *)it->it_arg);