Lines Matching refs:sc_flags

530 		if (sc->sc_flags & IWH_F_RUNNING) {  in iwh_attach()
534 atomic_and_32(&sc->sc_flags, ~IWH_F_SUSPEND); in iwh_attach()
942 atomic_or_32(&sc->sc_flags, IWH_F_ATTACHED); in iwh_attach()
1009 atomic_and_32(&sc->sc_flags, ~IWH_F_HW_ERR_RECOVER); in iwh_detach()
1010 atomic_and_32(&sc->sc_flags, ~IWH_F_RATE_AUTO_CTL); in iwh_detach()
1012 atomic_or_32(&sc->sc_flags, IWH_F_SUSPEND); in iwh_detach()
1014 if (sc->sc_flags & IWH_F_RUNNING) { in iwh_detach()
1027 if (!(sc->sc_flags & IWH_F_ATTACHED)) { in iwh_detach()
1707 if (!(sc->sc_flags & IWH_F_QUIESCED)) { in iwh_reset_tx_ring()
1873 atomic_or_32(&sc->sc_flags, IWH_F_SCANNING); in iwh_newstate()
1896 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
1912 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
1925 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
1938 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
1962 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
2001 atomic_or_32(&sc->sc_flags, in iwh_newstate()
2008 atomic_or_32(&sc->sc_flags, in iwh_newstate()
2021 atomic_and_32(&sc->sc_flags, in iwh_newstate()
2034 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
2044 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_newstate()
2153 atomic_and_32(&sc->sc_flags, ~IWH_F_PUT_SEG); in iwh_load_init_firmware()
2171 while (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_init_firmware()
2177 if (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_init_firmware()
2183 atomic_and_32(&sc->sc_flags, ~IWH_F_PUT_SEG); in iwh_load_init_firmware()
2201 while (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_init_firmware()
2207 if (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_init_firmware()
2213 atomic_and_32(&sc->sc_flags, ~IWH_F_PUT_SEG); in iwh_load_init_firmware()
2224 atomic_and_32(&sc->sc_flags, ~IWH_F_PUT_SEG); in iwh_load_run_firmware()
2242 while (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_run_firmware()
2248 if (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_run_firmware()
2254 atomic_and_32(&sc->sc_flags, ~IWH_F_PUT_SEG); in iwh_load_run_firmware()
2272 while (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_run_firmware()
2278 if (!(sc->sc_flags & IWH_F_PUT_SEG)) { in iwh_load_run_firmware()
2284 atomic_and_32(&sc->sc_flags, ~IWH_F_PUT_SEG); in iwh_load_run_firmware()
2692 atomic_or_32(&sc->sc_flags, IWH_F_FW_INIT); in iwh_ucode_alive()
2782 atomic_or_32(&sc->sc_flags, in iwh_rx_softintr()
2831 atomic_or_32(&sc->sc_flags, IWH_F_FW_INIT); in iwh_rx_softintr()
2911 atomic_or_32(&sc->sc_flags, IWH_F_HW_ERR_RECOVER); in iwh_intr()
2930 atomic_or_32(&sc->sc_flags, IWH_F_PUT_SEG); in iwh_intr()
3034 if (sc->sc_flags & IWH_F_SUSPEND) { in iwh_m_tx()
3044 if ((sc->sc_flags & IWH_F_HW_ERR_RECOVER) && in iwh_m_tx()
3094 if (sc->sc_flags & IWH_F_SUSPEND) { in iwh_send()
3513 if (sc->sc_flags & IWH_F_RUNNING) { in iwh_m_ioctl()
3572 if (sc->sc_flags & IWH_F_RUNNING) { in iwh_m_setprop()
3693 atomic_or_32(&sc->sc_flags, IWH_F_HW_ERR_RECOVER); in iwh_m_start()
3699 atomic_or_32(&sc->sc_flags, IWH_F_RUNNING); in iwh_m_start()
3728 atomic_and_32(&sc->sc_flags, ~IWH_F_HW_ERR_RECOVER); in iwh_m_stop()
3729 atomic_and_32(&sc->sc_flags, ~IWH_F_RATE_AUTO_CTL); in iwh_m_stop()
3731 atomic_and_32(&sc->sc_flags, ~IWH_F_RUNNING); in iwh_m_stop()
3732 atomic_and_32(&sc->sc_flags, ~IWH_F_SCANNING); in iwh_m_stop()
3798 atomic_and_32(&sc->sc_flags, ~IWH_F_RADIO_OFF); in iwh_thread()
3800 atomic_or_32(&sc->sc_flags, IWH_F_RADIO_OFF); in iwh_thread()
3806 if (sc->sc_flags & IWH_F_RADIO_OFF) { in iwh_thread()
3815 (sc->sc_flags & IWH_F_HW_ERR_RECOVER)) { in iwh_thread()
3843 atomic_or_32(&sc->sc_flags, IWH_F_RUNNING); in iwh_thread()
3849 atomic_and_32(&sc->sc_flags, in iwh_thread()
3861 (sc->sc_flags & IWH_F_SCANNING) && sc->sc_scan_pending) { in iwh_thread()
3874 (sc->sc_flags & IWH_F_RATE_AUTO_CTL)) { in iwh_thread()
3896 atomic_or_32(&sc->sc_flags, in iwh_thread()
4517 atomic_or_32(&sc->sc_flags, IWH_F_QUIESCED); in iwh_quiesce()
4804 atomic_and_32(&sc->sc_flags, ~IWH_F_FW_INIT); in iwh_init()
4834 while (!(sc->sc_flags & IWH_F_FW_INIT)) { in iwh_init()
4841 if (!(sc->sc_flags & IWH_F_FW_INIT)) { in iwh_init()
4856 atomic_and_32(&sc->sc_flags, ~IWH_F_FW_INIT); in iwh_init()
4881 while (!(sc->sc_flags & IWH_F_FW_INIT)) { in iwh_init()
4888 if (!(sc->sc_flags & IWH_F_FW_INIT)) { in iwh_init()
4900 atomic_and_32(&sc->sc_flags, ~IWH_F_FW_INIT); in iwh_init()
4933 if (!(sc->sc_flags & IWH_F_QUIESCED)) { in iwh_stop()
4975 if (!(sc->sc_flags & IWH_F_QUIESCED)) { in iwh_stop()
5736 atomic_and_32(&sc->sc_flags, ~IWH_F_HW_ERR_RECOVER); in iwh_fast_recover()