Lines Matching refs:common

99 	struct ath_common *common = ath9k_hw_common(sc->sc_ah);  in ath_ps_full_sleep()  local
102 spin_lock(&common->cc_lock); in ath_ps_full_sleep()
103 ath_hw_cycle_counters_update(common); in ath_ps_full_sleep()
104 spin_unlock(&common->cc_lock); in ath_ps_full_sleep()
114 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ps_wakeup() local
132 spin_lock(&common->cc_lock); in ath9k_ps_wakeup()
133 ath_hw_cycle_counters_update(common); in ath9k_ps_wakeup()
134 memset(&common->cc_survey, 0, sizeof(common->cc_survey)); in ath9k_ps_wakeup()
135 memset(&common->cc_ani, 0, sizeof(common->cc_ani)); in ath9k_ps_wakeup()
136 spin_unlock(&common->cc_lock); in ath9k_ps_wakeup()
145 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ps_restore() local
171 spin_lock(&common->cc_lock); in ath9k_ps_restore()
172 ath_hw_cycle_counters_update(common); in ath9k_ps_restore()
173 spin_unlock(&common->cc_lock); in ath9k_ps_restore()
233 struct ath_common *common = ath9k_hw_common(ah); in ath_complete_reset() local
241 clear_bit(ATH_OP_HW_RESET, &common->op_flags); in ath_complete_reset()
254 if (!test_bit(ATH_OP_BEACONS, &common->op_flags)) in ath_complete_reset()
258 test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) { in ath_complete_reset()
283 struct ath_common *common = ath9k_hw_common(ah); in ath_reset_internal() local
315 ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n", in ath_reset_internal()
320 ath_err(common, in ath_reset_internal()
373 struct ath_common *common = ath9k_hw_common(ah); in ath9k_tasklet() local
391 ath_dbg(common, RESET, "FATAL: Skipping interrupts\n"); in ath9k_tasklet()
397 spin_lock(&common->cc_lock); in ath9k_tasklet()
398 ath_hw_cycle_counters_update(common); in ath9k_tasklet()
400 spin_unlock(&common->cc_lock); in ath9k_tasklet()
411 ath_dbg(common, RESET, in ath9k_tasklet()
424 ath_dbg(common, RESET, in ath9k_tasklet()
436 ath_dbg(common, PS, "TSFOOR - Sync with next Beacon\n"); in ath9k_tasklet()
506 struct ath_common *common = ath9k_hw_common(ah); in ath_isr() local
516 if (!ah || test_bit(ATH_OP_INVALID, &common->op_flags)) in ath_isr()
533 if (test_bit(ATH_OP_HW_RESET, &common->op_flags)) in ath_isr()
605 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_reset() local
609 set_bit(ATH_OP_HW_RESET, &common->op_flags); in ath_reset()
625 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_queue_reset() local
630 set_bit(ATH_OP_HW_RESET, &common->op_flags); in ath9k_queue_reset()
651 struct ath_common *common = ath9k_hw_common(ah); in ath9k_start() local
657 ath_dbg(common, CONFIG, in ath9k_start()
683 ath_err(common, in ath9k_start()
715 clear_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_start()
750 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_tx() local
763 ath_dbg(common, PS, in ath9k_tx()
780 ath_dbg(common, PS, in ath9k_tx()
784 ath_dbg(common, PS, "Wake up to complete TX\n"); in ath9k_tx()
801 ath_err(common, "TX while HW is in FULL_SLEEP mode\n"); in ath9k_tx()
809 ath_dbg(common, XMIT, "transmitting packet, skb: %p\n", skb); in ath9k_tx()
812 ath_dbg(common, XMIT, "TX failed\n"); in ath9k_tx()
826 struct ath_common *common = ath9k_hw_common(ah); in ath9k_stop() local
835 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in ath9k_stop()
836 ath_dbg(common, ANY, "Device not present\n"); in ath9k_stop()
885 set_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_stop()
899 ath_dbg(common, CONFIG, "Driver halt\n"); in ath9k_stop()
966 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_update_bssid_mask() local
980 ether_addr_copy(common->curbssid, avp->bssid); in ath9k_update_bssid_mask()
1014 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_assoc_state() local
1018 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_set_assoc_state()
1020 ether_addr_copy(common->curbssid, avp->bssid); in ath9k_set_assoc_state()
1021 common->curaid = avp->aid; in ath9k_set_assoc_state()
1025 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_set_assoc_state()
1036 ath_dbg(common, CONFIG, in ath9k_set_assoc_state()
1038 vif->addr, common->curbssid); in ath9k_set_assoc_state()
1045 struct ath_common *common = ath9k_hw_common(ah); in ath9k_set_offchannel_state() local
1058 eth_zero_addr(common->curbssid); in ath9k_set_offchannel_state()
1059 eth_broadcast_addr(common->bssidmask); in ath9k_set_offchannel_state()
1060 memcpy(common->macaddr, vif->addr, ETH_ALEN); in ath9k_set_offchannel_state()
1061 common->curaid = 0; in ath9k_set_offchannel_state()
1067 ath_hw_setbssidmask(common); in ath9k_set_offchannel_state()
1083 struct ath_common *common = ath9k_hw_common(ah); in ath9k_calculate_summary_state() local
1101 memcpy(common->macaddr, iter_data.hw_macaddr, ETH_ALEN); in ath9k_calculate_summary_state()
1103 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN); in ath9k_calculate_summary_state()
1104 ath_hw_setbssidmask(common); in ath9k_calculate_summary_state()
1149 eth_zero_addr(common->curbssid); in ath9k_calculate_summary_state()
1150 common->curaid = 0; in ath9k_calculate_summary_state()
1161 set_bit(ATH_OP_BEACONS, &common->op_flags); in ath9k_calculate_summary_state()
1163 clear_bit(ATH_OP_BEACONS, &common->op_flags); in ath9k_calculate_summary_state()
1171 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_calculate_summary_state()
1173 clear_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_calculate_summary_state()
1175 ath_dbg(common, CONFIG, in ath9k_calculate_summary_state()
1177 common->macaddr, common->curbssid, common->bssidmask); in ath9k_calculate_summary_state()
1237 struct ath_common *common = ath9k_hw_common(ah); in ath9k_add_interface() local
1251 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); in ath9k_add_interface()
1285 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_interface() local
1295 ath_dbg(common, CONFIG, "Change Interface\n"); in ath9k_change_interface()
1319 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_interface() local
1322 ath_dbg(common, CONFIG, "Detach Interface\n"); in ath9k_remove_interface()
1348 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_ps() local
1361 ath_dbg(common, PS, "PowerSave enabled\n"); in ath9k_enable_ps()
1367 struct ath_common *common = ath9k_hw_common(ah); in ath9k_disable_ps() local
1385 ath_dbg(common, PS, "PowerSave disabled\n"); in ath9k_disable_ps()
1392 struct ath_common *common = ath9k_hw_common(ah); in ath9k_config() local
1432 ath_dbg(common, CONFIG, "Monitor mode is enabled\n"); in ath9k_config()
1435 ath_dbg(common, CONFIG, "Monitor mode is disabled\n"); in ath9k_config()
1495 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_add() local
1506 key = ath_key_config(common, vif, sta, &ps_key); in ath9k_sta_add()
1519 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_del_ps_key() local
1526 ath_key_delete(common, &ps_key); in ath9k_del_ps_key()
1550 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_state() local
1556 ath_dbg(common, CONFIG, in ath9k_sta_state()
1561 ath_dbg(common, CONFIG, in ath9k_sta_state()
1617 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_conf_tx() local
1637 ath_dbg(common, CONFIG, in ath9k_conf_tx()
1645 ath_err(common, "TXQ Update failed\n"); in ath9k_conf_tx()
1660 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_key() local
1684 ath_dbg(common, CONFIG, "Set HW Key %d\n", cmd); in ath9k_set_key()
1694 ret = ath_key_config(common, vif, sta, key); in ath9k_set_key()
1717 ath_key_delete(common, key); in ath9k_set_key()
1750 struct ath_common *common = ath9k_hw_common(ah); in ath9k_bss_info_changed() local
1758 ath_dbg(common, CONFIG, "BSSID %pM Changed ASSOC %d\n", in ath9k_bss_info_changed()
1770 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_bss_info_changed()
1771 common->curaid = bss_conf->aid; in ath9k_bss_info_changed()
1810 ath_dbg(common, CONFIG, "vif %pM power %d dbm power_type %d\n", in ath9k_bss_info_changed()
1868 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ampdu_action() local
1881 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) { in ath9k_ampdu_action()
1920 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_get_survey() local
1928 spin_lock_bh(&common->cc_lock); in ath9k_get_survey()
1942 spin_unlock_bh(&common->cc_lock); in ath9k_get_survey()
1950 spin_unlock_bh(&common->cc_lock); in ath9k_get_survey()
2021 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_flush() local
2024 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath9k_flush()
2051 struct ath_common *common = ath9k_hw_common(ah); in __ath9k_flush() local
2058 ath_dbg(common, ANY, "Device has been unplugged!\n"); in __ath9k_flush()
2062 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in __ath9k_flush()
2063 ath_dbg(common, ANY, "Device not present\n"); in __ath9k_flush()
2074 ath_dbg(common, CHAN_CTX, in __ath9k_flush()
2236 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sw_scan_start() local
2237 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_sw_scan_start()
2244 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sw_scan_complete() local
2245 clear_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_sw_scan_complete()
2252 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_pending_offchannel() local
2255 ath_dbg(common, CHAN_CTX, in ath9k_cancel_pending_offchannel()
2263 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) { in ath9k_cancel_pending_offchannel()
2264 ath_dbg(common, CHAN_CTX, in ath9k_cancel_pending_offchannel()
2277 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_hw_scan() local
2288 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_hw_scan()
2293 ath_dbg(common, CHAN_CTX, "HW scan request received on vif: %pM\n", in ath9k_hw_scan()
2297 ath_dbg(common, CHAN_CTX, "Starting HW scan\n"); in ath9k_hw_scan()
2311 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_hw_scan() local
2313 ath_dbg(common, CHAN_CTX, "Cancel HW scan on vif: %pM\n", vif->addr); in ath9k_cancel_hw_scan()
2327 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remain_on_channel() local
2342 ath_dbg(common, CHAN_CTX, in ath9k_remain_on_channel()
2347 ath_dbg(common, CHAN_CTX, "Starting RoC period\n"); in ath9k_remain_on_channel()
2360 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_remain_on_channel() local
2364 ath_dbg(common, CHAN_CTX, "Cancel RoC\n"); in ath9k_cancel_remain_on_channel()
2381 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_add_chanctx() local
2397 ath_dbg(common, CHAN_CTX, in ath9k_add_chanctx()
2416 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_chanctx() local
2421 ath_dbg(common, CHAN_CTX, in ath9k_remove_chanctx()
2437 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_chanctx() local
2441 ath_dbg(common, CHAN_CTX, in ath9k_change_chanctx()
2453 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_assign_vif_chanctx() local
2462 ath_dbg(common, CHAN_CTX, in ath9k_assign_vif_chanctx()
2484 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_unassign_vif_chanctx() local
2493 ath_dbg(common, CHAN_CTX, in ath9k_unassign_vif_chanctx()
2512 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_mgd_prepare_tx() local
2520 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath9k_mgd_prepare_tx()
2558 ath_dbg(common, CHAN_CTX, in ath9k_mgd_prepare_tx()
2569 ath_dbg(common, CHAN_CTX, in ath9k_mgd_prepare_tx()