Lines Matching refs:timer
75 if (timer->et_flags & ET_FLAGS_PERCPU) \
83 if (timer->et_flags & ET_FLAGS_PERCPU) \
89 static struct eventtimer *timer = NULL; variable
221 (timer->et_flags & ET_FLAGS_PERCPU)); in handleevents()
279 if ((timer->et_flags & ET_FLAGS_PERCPU) == 0) { in getnextevent()
384 if (timer->et_flags & ET_FLAGS_PERCPU)
402 et_start(timer, new, timerperiod);
411 et_start(timer, new - now, 0);
424 if (periodic && (timer->et_flags & ET_FLAGS_PERIODIC) == 0)
426 else if (!periodic && (timer->et_flags & ET_FLAGS_ONESHOT) == 0)
432 freq = round_freq(timer, freq);
457 et_stop(timer);
525 et_stop(timer);
531 if ((timer->et_flags & ET_FLAGS_PERCPU) == 0) {
534 if ((timer->et_flags & ET_FLAGS_PERCPU) == 0 || !smp_started) {
604 timer = et_find(timername, 0, 0);
605 if (timer == NULL && periodic) {
606 timer = et_find(NULL,
609 if (timer == NULL) {
610 timer = et_find(NULL,
613 if (timer == NULL && !periodic) {
614 timer = et_find(NULL,
617 if (timer == NULL)
619 et_init(timer, timercb, NULL, NULL);
622 if (periodic && (timer->et_flags & ET_FLAGS_PERIODIC) == 0)
624 else if (!periodic && (timer->et_flags & ET_FLAGS_ONESHOT) == 0)
626 if (timer->et_flags & ET_FLAGS_C3STOP)
643 base = round_freq(timer, hz * singlemul);
657 profhz = round_freq(timer, profhz);
659 hz = round_freq(timer, hz);
660 stathz = round_freq(timer, 127);
661 profhz = round_freq(timer, stathz * 64);
761 (periodic && (timer->et_flags & ET_FLAGS_PERCPU))
821 if (et == timer) {
866 if ((timer->et_flags & ET_FLAGS_PERCPU) == 0 || cpu == curcpu) {
891 et = timer;
896 et = timer;
908 et_free(timer);
911 if (timer->et_flags & ET_FLAGS_C3STOP)
914 timer = et;
915 et_init(timer, timercb, NULL, NULL);
920 SYSCTL_PROC(_kern_eventtimer, OID_AUTO, timer,