Lines Matching refs:power_state
300 _ath_power_setpower(struct ath_softc *sc, int power_state, int selfgen,
309 power_state,
314 sc->sc_target_powerstate = power_state;
323 if ((sc->sc_powersave_refcnt == 0 || power_state == HAL_PM_AWAKE) &&
324 power_state != sc->sc_cur_powerstate) {
325 sc->sc_cur_powerstate = power_state;
326 ath_hal_setpower(sc->sc_ah, power_state);
354 _ath_power_set_selfgen(struct ath_softc *sc, int power_state, const char *file, int line)
363 power_state,
366 sc->sc_target_selfgen_state = power_state;
376 ath_hal_setselfgenpower(sc->sc_ah, power_state);
390 _ath_power_set_power_state(struct ath_softc *sc, int power_state, const char *file, int line)
398 power_state,
407 if (power_state != sc->sc_cur_powerstate) {
408 ath_hal_setpower(sc->sc_ah, power_state);
409 sc->sc_cur_powerstate = power_state;