Lines Matching refs:sc_flags

495 		if (sc->sc_flags & IWP_F_RUNNING) {  in iwp_attach()
499 atomic_and_32(&sc->sc_flags, ~IWP_F_SUSPEND); in iwp_attach()
869 atomic_or_32(&sc->sc_flags, IWP_F_ATTACHED); in iwp_attach()
921 atomic_and_32(&sc->sc_flags, ~IWP_F_HW_ERR_RECOVER); in iwp_detach()
922 atomic_and_32(&sc->sc_flags, ~IWP_F_RATE_AUTO_CTL); in iwp_detach()
924 atomic_or_32(&sc->sc_flags, IWP_F_SUSPEND); in iwp_detach()
926 if (sc->sc_flags & IWP_F_RUNNING) { in iwp_detach()
939 if (!(sc->sc_flags & IWP_F_ATTACHED)) { in iwp_detach()
1648 if (!(sc->sc_flags & IWP_F_QUIESCED)) { in iwp_reset_tx_ring()
1813 atomic_or_32(&sc->sc_flags, IWP_F_SCANNING); in iwp_newstate()
1836 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
1850 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
1863 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
1876 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
1900 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
1924 atomic_or_32(&sc->sc_flags, IWP_F_RATE_AUTO_CTL); in iwp_newstate()
1936 atomic_and_32(&sc->sc_flags, ~IWP_F_RATE_AUTO_CTL); in iwp_newstate()
1947 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
1957 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_newstate()
2064 atomic_and_32(&sc->sc_flags, ~IWP_F_PUT_SEG); in iwp_load_init_firmware()
2080 while (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_init_firmware()
2086 if (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_init_firmware()
2092 atomic_and_32(&sc->sc_flags, ~IWP_F_PUT_SEG); in iwp_load_init_firmware()
2110 while (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_init_firmware()
2116 if (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_init_firmware()
2122 atomic_and_32(&sc->sc_flags, ~IWP_F_PUT_SEG); in iwp_load_init_firmware()
2133 atomic_and_32(&sc->sc_flags, ~IWP_F_PUT_SEG); in iwp_load_run_firmware()
2149 while (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_run_firmware()
2155 if (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_run_firmware()
2161 atomic_and_32(&sc->sc_flags, ~IWP_F_PUT_SEG); in iwp_load_run_firmware()
2179 while (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_run_firmware()
2185 if (!(sc->sc_flags & IWP_F_PUT_SEG)) { in iwp_load_run_firmware()
2191 atomic_and_32(&sc->sc_flags, ~IWP_F_PUT_SEG); in iwp_load_run_firmware()
2582 atomic_or_32(&sc->sc_flags, IWP_F_FW_INIT); in iwp_ucode_alive()
2672 atomic_or_32(&sc->sc_flags, in iwp_rx_softintr()
2721 atomic_or_32(&sc->sc_flags, IWP_F_FW_INIT); in iwp_rx_softintr()
2812 atomic_or_32(&sc->sc_flags, IWP_F_HW_ERR_RECOVER); in iwp_intr()
2831 atomic_or_32(&sc->sc_flags, IWP_F_PUT_SEG); in iwp_intr()
2935 if (sc->sc_flags & IWP_F_SUSPEND) { in iwp_m_tx()
2945 if ((sc->sc_flags & IWP_F_HW_ERR_RECOVER) && in iwp_m_tx()
2992 if (sc->sc_flags & IWP_F_SUSPEND) { in iwp_send()
3350 if (sc->sc_flags & IWP_F_RUNNING) { in iwp_m_ioctl()
3410 if (sc->sc_flags & IWP_F_RUNNING) { in iwp_m_setprop()
3521 atomic_or_32(&sc->sc_flags, IWP_F_HW_ERR_RECOVER); in iwp_m_start()
3527 atomic_or_32(&sc->sc_flags, IWP_F_RUNNING); in iwp_m_start()
3556 atomic_and_32(&sc->sc_flags, ~IWP_F_HW_ERR_RECOVER); in iwp_m_stop()
3557 atomic_and_32(&sc->sc_flags, ~IWP_F_RATE_AUTO_CTL); in iwp_m_stop()
3559 atomic_and_32(&sc->sc_flags, ~IWP_F_RUNNING); in iwp_m_stop()
3560 atomic_and_32(&sc->sc_flags, ~IWP_F_SCANNING); in iwp_m_stop()
3628 atomic_and_32(&sc->sc_flags, ~IWP_F_RADIO_OFF); in iwp_thread()
3630 atomic_or_32(&sc->sc_flags, IWP_F_RADIO_OFF); in iwp_thread()
3636 if (sc->sc_flags & IWP_F_RADIO_OFF) { in iwp_thread()
3645 (sc->sc_flags & IWP_F_HW_ERR_RECOVER)) { in iwp_thread()
3671 atomic_or_32(&sc->sc_flags, IWP_F_RUNNING); in iwp_thread()
3677 atomic_and_32(&sc->sc_flags, in iwp_thread()
3689 (sc->sc_flags & IWP_F_SCANNING) && sc->sc_scan_pending) { in iwp_thread()
3702 (sc->sc_flags & IWP_F_RATE_AUTO_CTL)) { in iwp_thread()
3717 atomic_or_32(&sc->sc_flags, in iwp_thread()
4249 atomic_or_32(&sc->sc_flags, IWP_F_QUIESCED); in iwp_quiesce()
4543 atomic_and_32(&sc->sc_flags, ~IWP_F_FW_INIT); in iwp_init()
4573 while (!(sc->sc_flags & IWP_F_FW_INIT)) { in iwp_init()
4580 if (!(sc->sc_flags & IWP_F_FW_INIT)) { in iwp_init()
4595 atomic_and_32(&sc->sc_flags, ~IWP_F_FW_INIT); in iwp_init()
4620 while (!(sc->sc_flags & IWP_F_FW_INIT)) { in iwp_init()
4627 if (!(sc->sc_flags & IWP_F_FW_INIT)) { in iwp_init()
4639 atomic_and_32(&sc->sc_flags, ~IWP_F_FW_INIT); in iwp_init()
4670 if (!(sc->sc_flags & IWP_F_QUIESCED)) { in iwp_stop()
4710 if (!(sc->sc_flags & IWP_F_QUIESCED)) { in iwp_stop()
5263 atomic_and_32(&sc->sc_flags, ~IWP_F_HW_ERR_RECOVER); in iwp_fast_recover()