Home | History | Annotate | Download | only in dev

Lines Matching defs:sc_current

66 	int		sc_thresh, sc_hyst, sc_level, sc_target, sc_current;
221 sc->sc_current = 0;
330 if (sc->sc_target != sc->sc_current) {
331 offset = ((sc->sc_target - sc->sc_current) > 0) ? 2 : -2;
332 sc->sc_current += offset;
333 if (sc->sc_current > sc->sc_level) sc->sc_current = sc->sc_level;
334 if (sc->sc_current < 0) sc->sc_current = 0;
336 DPRINTF("[%d]", sc->sc_current);
337 lmu_set_brightness(sc, sc->sc_current);
339 if (sc->sc_target != sc->sc_current) ticks = LMU_FADE;