Lines Matching defs:phase
766 int phase;
769 phase = ie->ie_phase;
772 * Switch phase to direct future interrupts to the other active counter.
775 KASSERT(ie->ie_active[!phase] == 0, ("idle phase has activity"));
776 atomic_store_rel_int(&ie->ie_phase, !phase);
781 * Make sure that the removal and the phase update are not reordered
789 * Now wait on the inactive phase.
793 while (ie->ie_active[phase] > 0)
1350 int phase;
1375 phase = ie->ie_phase;
1376 atomic_add_int(&ie->ie_active[phase], 1);
1433 atomic_add_rel_int(&ie->ie_active[phase], -1);