Lines Matching refs:it
69 clock_highres_timer_create(itimer_t *it, void (*fire)(itimer_t *)) in clock_highres_timer_create() argument
78 it->it_arg = NULL; in clock_highres_timer_create()
82 it->it_arg = kmem_zalloc(sizeof (cyclic_id_t), KM_SLEEP); in clock_highres_timer_create()
83 it->it_fire = fire; in clock_highres_timer_create()
91 itimer_t *it = (itimer_t *)arg; in clock_highres_fire() local
92 hrtime_t *addr = &it->it_hrtime; in clock_highres_fire()
99 it->it_fire(it); in clock_highres_fire()
103 clock_highres_timer_settime(itimer_t *it, int flags, in clock_highres_timer_settime() argument
106 cyclic_id_t cyc, *cycp = it->it_arg; in clock_highres_timer_settime()
119 it->it_itime.it_interval.tv_sec == 0 && in clock_highres_timer_settime()
120 it->it_itime.it_interval.tv_nsec == 0 && in clock_highres_timer_settime()
127 it->it_itime = *when; in clock_highres_timer_settime()
132 hrt2ts(cyctime.cyt_when, &it->it_itime.it_value); in clock_highres_timer_settime()
197 it->it_itime = *when; in clock_highres_timer_settime()
199 hrt2ts(cyctime.cyt_when, &it->it_itime.it_value); in clock_highres_timer_settime()
202 hdlr.cyh_arg = it; in clock_highres_timer_settime()
227 clock_highres_timer_gettime(itimer_t *it, struct itimerspec *when) in clock_highres_timer_gettime() argument
232 hrtime_t start = ts2hrt(&it->it_itime.it_value); in clock_highres_timer_gettime()
233 hrtime_t interval = ts2hrt(&it->it_itime.it_interval); in clock_highres_timer_gettime()
235 hrtime_t *addr = &it->it_hrtime; in clock_highres_timer_gettime()
244 *when = it->it_itime; in clock_highres_timer_gettime()
294 clock_highres_timer_delete(itimer_t *it) in clock_highres_timer_delete() argument
298 if (it->it_arg == NULL) { in clock_highres_timer_delete()
308 if ((cyc = *((cyclic_id_t *)it->it_arg)) != CYCLIC_NONE) in clock_highres_timer_delete()
313 kmem_free(it->it_arg, sizeof (cyclic_id_t)); in clock_highres_timer_delete()
319 clock_highres_timer_lwpbind(itimer_t *it) in clock_highres_timer_lwpbind() argument
323 cyclic_id_t cyc = *((cyclic_id_t *)it->it_arg); in clock_highres_timer_lwpbind()