Lines Matching refs:common
26 struct ath_common *common = ath9k_hw_common(ah); in ath_set_channel() local
35 if (test_bit(ATH_OP_INVALID, &common->op_flags)) in ath_set_channel()
41 ath_dbg(common, CONFIG, "Set channel: %d MHz width: %d\n", in ath_set_channel()
45 spin_lock_bh(&common->cc_lock); in ath_set_channel()
47 spin_unlock_bh(&common->cc_lock); in ath_set_channel()
90 ath_dbg(common, DFS, "DFS enabled at freq %d\n", in ath_set_channel()
94 if (test_bit(ATH_OP_SCANNING, &common->op_flags) && in ath_set_channel()
96 ath9k_cmn_spectral_scan_trigger(common, &sc->spec_priv); in ath_set_channel()
105 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_init() local
110 sband = &common->sbands[IEEE80211_BAND_2GHZ]; in ath_chanctx_init()
112 sband = &common->sbands[IEEE80211_BAND_5GHZ]; in ath_chanctx_init()
129 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_set_channel() local
139 ath_dbg(common, CHAN_CTX, in ath_chanctx_set_channel()
231 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_check_active() local
288 clear_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags); in ath_chanctx_check_active()
295 if (test_and_set_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) { in ath_chanctx_check_active()
357 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_setup_timer() local
365 ath_dbg(common, CHAN_CTX, in ath_chanctx_setup_timer()
399 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_offchannel_noa() local
405 ath_dbg(common, CHAN_CTX, in ath_chanctx_offchannel_noa()
426 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_set_periodic_noa() local
439 if (test_bit(ATH_OP_SCANNING, &common->op_flags) || in ath_chanctx_set_periodic_noa()
445 ath_dbg(common, CHAN_CTX, in ath_chanctx_set_periodic_noa()
458 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_set_oneshot_noa() local
466 ath_dbg(common, CHAN_CTX, in ath_chanctx_set_oneshot_noa()
478 struct ath_common *common = ath9k_hw_common(ah); in ath_chanctx_event() local
490 ath_dbg(common, CHAN_CTX, "cur_chan: %d MHz, event: %s, state: %s\n", in ath_chanctx_event()
504 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
509 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
518 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
526 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
533 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
551 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
558 ath_dbg(common, CHAN_CTX, "Preparing beacon for vif: %pM\n", vif->addr); in ath_chanctx_event()
615 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
625 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
633 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
647 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
654 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags) || in ath_chanctx_event()
684 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
690 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags) || in ath_chanctx_event()
702 ath_dbg(common, CHAN_CTX, in ath_chanctx_event()
783 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_switch() local
787 if (test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags) && in ath_chanctx_switch()
799 ath_dbg(common, CHAN_CTX, in ath_chanctx_switch()
807 ath_dbg(common, CHAN_CTX, in ath_chanctx_switch()
817 ath_dbg(common, CHAN_CTX, in ath_chanctx_switch()
830 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_offchan_switch() local
834 ath_dbg(common, CHAN_CTX, in ath_chanctx_offchan_switch()
861 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_scan_next_channel() local
866 ath_dbg(common, CHAN_CTX, in ath_scan_next_channel()
878 ath_dbg(common, CHAN_CTX, in ath_scan_next_channel()
920 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_roc_complete() local
923 ath_dbg(common, CHAN_CTX, "RoC aborted\n"); in ath_roc_complete()
925 ath_dbg(common, CHAN_CTX, "RoC expired\n"); in ath_roc_complete()
936 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_scan_complete() local
939 ath_dbg(common, CHAN_CTX, "HW scan aborted\n"); in ath_scan_complete()
941 ath_dbg(common, CHAN_CTX, "HW scan complete\n"); in ath_scan_complete()
947 clear_bit(ATH_OP_SCANNING, &common->op_flags); in ath_scan_complete()
949 if (test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath_scan_complete()
996 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_scan_channel_start() local
1007 ath_dbg(common, CHAN_CTX, in ath_scan_channel_start()
1017 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_timer() local
1019 ath_dbg(common, CHAN_CTX, in ath_chanctx_timer()
1029 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_offchannel_timer() local
1031 ath_dbg(common, CHAN_CTX, "%s: offchannel state: %s\n", in ath_offchannel_timer()
1042 ath_dbg(common, CHAN_CTX, in ath_offchannel_timer()
1133 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_defer_switch() local
1145 ath_dbg(common, CHAN_CTX, in ath_chanctx_defer_switch()
1159 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_offchannel_channel_change() local
1161 ath_dbg(common, CHAN_CTX, "%s: offchannel state: %s\n", in ath_offchannel_channel_change()
1199 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_chanctx_set_next() local
1217 ath_dbg(common, CHAN_CTX, in ath_chanctx_set_next()
1224 ath_dbg(common, CHAN_CTX, in ath_chanctx_set_next()
1268 ath_dbg(common, CHAN_CTX, in ath_chanctx_set_next()
1304 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_offchannel_init() local
1309 sband = &common->sbands[IEEE80211_BAND_2GHZ]; in ath9k_offchannel_init()
1311 sband = &common->sbands[IEEE80211_BAND_5GHZ]; in ath9k_offchannel_init()