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()
963 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_update_bssid_mask() local
977 ether_addr_copy(common->curbssid, avp->bssid); in ath9k_update_bssid_mask()
1011 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_assoc_state() local
1015 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_set_assoc_state()
1017 ether_addr_copy(common->curbssid, avp->bssid); in ath9k_set_assoc_state()
1018 common->curaid = avp->aid; in ath9k_set_assoc_state()
1022 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_set_assoc_state()
1033 ath_dbg(common, CONFIG, in ath9k_set_assoc_state()
1035 vif->addr, common->curbssid); in ath9k_set_assoc_state()
1042 struct ath_common *common = ath9k_hw_common(ah); in ath9k_set_offchannel_state() local
1055 eth_zero_addr(common->curbssid); in ath9k_set_offchannel_state()
1056 eth_broadcast_addr(common->bssidmask); in ath9k_set_offchannel_state()
1057 memcpy(common->macaddr, vif->addr, ETH_ALEN); in ath9k_set_offchannel_state()
1058 common->curaid = 0; in ath9k_set_offchannel_state()
1064 ath_hw_setbssidmask(common); in ath9k_set_offchannel_state()
1080 struct ath_common *common = ath9k_hw_common(ah); in ath9k_calculate_summary_state() local
1098 memcpy(common->macaddr, iter_data.hw_macaddr, ETH_ALEN); in ath9k_calculate_summary_state()
1100 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN); in ath9k_calculate_summary_state()
1101 ath_hw_setbssidmask(common); in ath9k_calculate_summary_state()
1144 eth_zero_addr(common->curbssid); in ath9k_calculate_summary_state()
1145 common->curaid = 0; in ath9k_calculate_summary_state()
1156 set_bit(ATH_OP_BEACONS, &common->op_flags); in ath9k_calculate_summary_state()
1158 clear_bit(ATH_OP_BEACONS, &common->op_flags); in ath9k_calculate_summary_state()
1166 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_calculate_summary_state()
1168 clear_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_calculate_summary_state()
1170 ath_dbg(common, CONFIG, in ath9k_calculate_summary_state()
1172 common->macaddr, common->curbssid, common->bssidmask); in ath9k_calculate_summary_state()
1232 struct ath_common *common = ath9k_hw_common(ah); in ath9k_add_interface() local
1246 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); in ath9k_add_interface()
1280 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_interface() local
1290 ath_dbg(common, CONFIG, "Change Interface\n"); in ath9k_change_interface()
1314 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_interface() local
1317 ath_dbg(common, CONFIG, "Detach Interface\n"); in ath9k_remove_interface()
1343 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_ps() local
1356 ath_dbg(common, PS, "PowerSave enabled\n"); in ath9k_enable_ps()
1362 struct ath_common *common = ath9k_hw_common(ah); in ath9k_disable_ps() local
1380 ath_dbg(common, PS, "PowerSave disabled\n"); in ath9k_disable_ps()
1387 struct ath_common *common = ath9k_hw_common(ah); in ath9k_config() local
1427 ath_dbg(common, CONFIG, "Monitor mode is enabled\n"); in ath9k_config()
1430 ath_dbg(common, CONFIG, "Monitor mode is disabled\n"); in ath9k_config()
1486 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_add() local
1497 key = ath_key_config(common, vif, sta, &ps_key); in ath9k_sta_add()
1510 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_del_ps_key() local
1517 ath_key_delete(common, &ps_key); in ath9k_del_ps_key()
1541 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_state() local
1547 ath_dbg(common, CONFIG, in ath9k_sta_state()
1552 ath_dbg(common, CONFIG, in ath9k_sta_state()
1608 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_conf_tx() local
1628 ath_dbg(common, CONFIG, in ath9k_conf_tx()
1636 ath_err(common, "TXQ Update failed\n"); in ath9k_conf_tx()
1651 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_key() local
1675 ath_dbg(common, CONFIG, "Set HW Key %d\n", cmd); in ath9k_set_key()
1685 ret = ath_key_config(common, vif, sta, key); in ath9k_set_key()
1708 ath_key_delete(common, key); in ath9k_set_key()
1741 struct ath_common *common = ath9k_hw_common(ah); in ath9k_bss_info_changed() local
1749 ath_dbg(common, CONFIG, "BSSID %pM Changed ASSOC %d\n", in ath9k_bss_info_changed()
1760 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_bss_info_changed()
1761 common->curaid = bss_conf->aid; in ath9k_bss_info_changed()
1800 ath_dbg(common, CONFIG, "vif %pM power %d dbm power_type %d\n", in ath9k_bss_info_changed()
1858 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ampdu_action() local
1871 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) { in ath9k_ampdu_action()
1910 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_get_survey() local
1918 spin_lock_bh(&common->cc_lock); in ath9k_get_survey()
1932 spin_unlock_bh(&common->cc_lock); in ath9k_get_survey()
1940 spin_unlock_bh(&common->cc_lock); in ath9k_get_survey()
2011 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_flush() local
2014 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath9k_flush()
2041 struct ath_common *common = ath9k_hw_common(ah); in __ath9k_flush() local
2048 ath_dbg(common, ANY, "Device has been unplugged!\n"); in __ath9k_flush()
2052 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in __ath9k_flush()
2053 ath_dbg(common, ANY, "Device not present\n"); in __ath9k_flush()
2064 ath_dbg(common, CHAN_CTX, in __ath9k_flush()
2226 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sw_scan_start() local
2227 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_sw_scan_start()
2234 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sw_scan_complete() local
2235 clear_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_sw_scan_complete()
2242 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_pending_offchannel() local
2245 ath_dbg(common, CHAN_CTX, in ath9k_cancel_pending_offchannel()
2253 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) { in ath9k_cancel_pending_offchannel()
2254 ath_dbg(common, CHAN_CTX, in ath9k_cancel_pending_offchannel()
2267 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_hw_scan() local
2278 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_hw_scan()
2283 ath_dbg(common, CHAN_CTX, "HW scan request received on vif: %pM\n", in ath9k_hw_scan()
2287 ath_dbg(common, CHAN_CTX, "Starting HW scan\n"); in ath9k_hw_scan()
2301 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_hw_scan() local
2303 ath_dbg(common, CHAN_CTX, "Cancel HW scan on vif: %pM\n", vif->addr); in ath9k_cancel_hw_scan()
2317 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remain_on_channel() local
2332 ath_dbg(common, CHAN_CTX, in ath9k_remain_on_channel()
2337 ath_dbg(common, CHAN_CTX, "Starting RoC period\n"); in ath9k_remain_on_channel()
2350 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_remain_on_channel() local
2354 ath_dbg(common, CHAN_CTX, "Cancel RoC\n"); in ath9k_cancel_remain_on_channel()
2371 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_add_chanctx() local
2387 ath_dbg(common, CHAN_CTX, in ath9k_add_chanctx()
2406 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_chanctx() local
2411 ath_dbg(common, CHAN_CTX, in ath9k_remove_chanctx()
2427 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_chanctx() local
2431 ath_dbg(common, CHAN_CTX, in ath9k_change_chanctx()
2443 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_assign_vif_chanctx() local
2452 ath_dbg(common, CHAN_CTX, in ath9k_assign_vif_chanctx()
2474 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_unassign_vif_chanctx() local
2483 ath_dbg(common, CHAN_CTX, in ath9k_unassign_vif_chanctx()
2502 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_mgd_prepare_tx() local
2510 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath9k_mgd_prepare_tx()
2548 ath_dbg(common, CHAN_CTX, in ath9k_mgd_prepare_tx()
2559 ath_dbg(common, CHAN_CTX, in ath9k_mgd_prepare_tx()