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
320 ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n", in ath_reset_internal()
325 ath_err(common, in ath_reset_internal()
378 struct ath_common *common = ath9k_hw_common(ah); in ath9k_tasklet() local
395 ath_dbg(common, RESET, "FATAL: Skipping interrupts\n"); in ath9k_tasklet()
401 spin_lock(&common->cc_lock); in ath9k_tasklet()
402 ath_hw_cycle_counters_update(common); in ath9k_tasklet()
404 spin_unlock(&common->cc_lock); in ath9k_tasklet()
410 ath_dbg(common, RESET, in ath9k_tasklet()
422 ath_dbg(common, RESET, in ath9k_tasklet()
434 ath_dbg(common, PS, "TSFOOR - Sync with next Beacon\n"); in ath9k_tasklet()
504 struct ath_common *common = ath9k_hw_common(ah); in ath_isr() local
514 if (!ah || test_bit(ATH_OP_INVALID, &common->op_flags)) in ath_isr()
531 if (test_bit(ATH_OP_HW_RESET, &common->op_flags)) { in ath_isr()
607 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_reset() local
611 set_bit(ATH_OP_HW_RESET, &common->op_flags); in ath_reset()
627 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_queue_reset() local
632 set_bit(ATH_OP_HW_RESET, &common->op_flags); in ath9k_queue_reset()
653 struct ath_common *common = ath9k_hw_common(ah); in ath9k_start() local
659 ath_dbg(common, CONFIG, in ath9k_start()
685 ath_err(common, in ath9k_start()
717 clear_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_start()
752 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_tx() local
765 ath_dbg(common, PS, in ath9k_tx()
782 ath_dbg(common, PS, in ath9k_tx()
786 ath_dbg(common, PS, "Wake up to complete TX\n"); in ath9k_tx()
803 ath_err(common, "TX while HW is in FULL_SLEEP mode\n"); in ath9k_tx()
811 ath_dbg(common, XMIT, "transmitting packet, skb: %p\n", skb); in ath9k_tx()
814 ath_dbg(common, XMIT, "TX failed\n"); in ath9k_tx()
880 struct ath_common *common = ath9k_hw_common(ah); in ath9k_pending_key_del() local
888 ath_key_delete(common, keyix); in ath9k_pending_key_del()
895 struct ath_common *common = ath9k_hw_common(ah); in ath9k_stop() local
905 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in ath9k_stop()
906 ath_dbg(common, ANY, "Device not present\n"); in ath9k_stop()
955 set_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_stop()
977 ath_dbg(common, CONFIG, "Driver halt\n"); in ath9k_stop()
1044 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_update_bssid_mask() local
1058 ether_addr_copy(common->curbssid, avp->bssid); in ath9k_update_bssid_mask()
1092 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_assoc_state() local
1096 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_set_assoc_state()
1098 ether_addr_copy(common->curbssid, avp->bssid); in ath9k_set_assoc_state()
1099 common->curaid = avp->aid; in ath9k_set_assoc_state()
1103 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_set_assoc_state()
1114 ath_dbg(common, CONFIG, in ath9k_set_assoc_state()
1116 vif->addr, common->curbssid); in ath9k_set_assoc_state()
1123 struct ath_common *common = ath9k_hw_common(ah); in ath9k_set_offchannel_state() local
1136 eth_zero_addr(common->curbssid); in ath9k_set_offchannel_state()
1137 eth_broadcast_addr(common->bssidmask); in ath9k_set_offchannel_state()
1138 memcpy(common->macaddr, vif->addr, ETH_ALEN); in ath9k_set_offchannel_state()
1139 common->curaid = 0; in ath9k_set_offchannel_state()
1145 ath_hw_setbssidmask(common); in ath9k_set_offchannel_state()
1161 struct ath_common *common = ath9k_hw_common(ah); in ath9k_calculate_summary_state() local
1179 memcpy(common->macaddr, iter_data.hw_macaddr, ETH_ALEN); in ath9k_calculate_summary_state()
1181 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN); in ath9k_calculate_summary_state()
1182 ath_hw_setbssidmask(common); in ath9k_calculate_summary_state()
1227 eth_zero_addr(common->curbssid); in ath9k_calculate_summary_state()
1228 common->curaid = 0; in ath9k_calculate_summary_state()
1239 set_bit(ATH_OP_BEACONS, &common->op_flags); in ath9k_calculate_summary_state()
1241 clear_bit(ATH_OP_BEACONS, &common->op_flags); in ath9k_calculate_summary_state()
1249 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_calculate_summary_state()
1251 clear_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_calculate_summary_state()
1253 ath_dbg(common, CONFIG, in ath9k_calculate_summary_state()
1255 common->macaddr, common->curbssid, common->bssidmask); in ath9k_calculate_summary_state()
1315 struct ath_common *common = ath9k_hw_common(ah); in ath9k_add_interface() local
1329 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); in ath9k_add_interface()
1363 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_interface() local
1373 ath_dbg(common, CONFIG, "Change Interface\n"); in ath9k_change_interface()
1397 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_interface() local
1400 ath_dbg(common, CONFIG, "Detach Interface\n"); in ath9k_remove_interface()
1426 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_ps() local
1439 ath_dbg(common, PS, "PowerSave enabled\n"); in ath9k_enable_ps()
1445 struct ath_common *common = ath9k_hw_common(ah); in ath9k_disable_ps() local
1463 ath_dbg(common, PS, "PowerSave disabled\n"); in ath9k_disable_ps()
1470 struct ath_common *common = ath9k_hw_common(ah); in ath9k_config() local
1510 ath_dbg(common, CONFIG, "Monitor mode is enabled\n"); in ath9k_config()
1513 ath_dbg(common, CONFIG, "Monitor mode is disabled\n"); in ath9k_config()
1576 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_add() local
1587 key = ath_key_config(common, vif, sta, &ps_key); in ath9k_sta_add()
1600 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_del_ps_key() local
1606 ath_key_delete(common, an->ps_key); in ath9k_del_ps_key()
1630 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_state() local
1636 ath_dbg(common, CONFIG, in ath9k_sta_state()
1641 ath_dbg(common, CONFIG, in ath9k_sta_state()
1697 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_conf_tx() local
1717 ath_dbg(common, CONFIG, in ath9k_conf_tx()
1725 ath_err(common, "TXQ Update failed\n"); in ath9k_conf_tx()
1740 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_key() local
1764 ath_dbg(common, CONFIG, "Set HW Key %d\n", cmd); in ath9k_set_key()
1780 ret = ath_key_config(common, vif, sta, key); in ath9k_set_key()
1808 ath_hw_keysetmac(common, key->hw_key_idx, NULL); in ath9k_set_key()
1810 ath_key_delete(common, key->hw_key_idx); in ath9k_set_key()
1844 struct ath_common *common = ath9k_hw_common(ah); in ath9k_bss_info_changed() local
1852 ath_dbg(common, CONFIG, "BSSID %pM Changed ASSOC %d\n", in ath9k_bss_info_changed()
1864 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_bss_info_changed()
1865 common->curaid = bss_conf->aid; in ath9k_bss_info_changed()
1904 ath_dbg(common, CONFIG, "vif %pM power %d dbm power_type %d\n", in ath9k_bss_info_changed()
1960 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ampdu_action() local
1977 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) { in ath9k_ampdu_action()
2016 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_get_survey() local
2024 spin_lock_bh(&common->cc_lock); in ath9k_get_survey()
2038 spin_unlock_bh(&common->cc_lock); in ath9k_get_survey()
2046 spin_unlock_bh(&common->cc_lock); in ath9k_get_survey()
2117 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_flush() local
2120 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath9k_flush()
2147 struct ath_common *common = ath9k_hw_common(ah); in __ath9k_flush() local
2154 ath_dbg(common, ANY, "Device has been unplugged!\n"); in __ath9k_flush()
2158 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in __ath9k_flush()
2159 ath_dbg(common, ANY, "Device not present\n"); in __ath9k_flush()
2170 ath_dbg(common, CHAN_CTX, in __ath9k_flush()
2332 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sw_scan_start() local
2333 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_sw_scan_start()
2340 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sw_scan_complete() local
2341 clear_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_sw_scan_complete()
2348 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_pending_offchannel() local
2351 ath_dbg(common, CHAN_CTX, in ath9k_cancel_pending_offchannel()
2359 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) { in ath9k_cancel_pending_offchannel()
2360 ath_dbg(common, CHAN_CTX, in ath9k_cancel_pending_offchannel()
2373 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_hw_scan() local
2384 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_hw_scan()
2389 ath_dbg(common, CHAN_CTX, "HW scan request received on vif: %pM\n", in ath9k_hw_scan()
2393 ath_dbg(common, CHAN_CTX, "Starting HW scan\n"); in ath9k_hw_scan()
2407 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_hw_scan() local
2409 ath_dbg(common, CHAN_CTX, "Cancel HW scan on vif: %pM\n", vif->addr); in ath9k_cancel_hw_scan()
2423 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remain_on_channel() local
2438 ath_dbg(common, CHAN_CTX, in ath9k_remain_on_channel()
2443 ath_dbg(common, CHAN_CTX, "Starting RoC period\n"); in ath9k_remain_on_channel()
2456 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_cancel_remain_on_channel() local
2460 ath_dbg(common, CHAN_CTX, "Cancel RoC\n"); in ath9k_cancel_remain_on_channel()
2477 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_add_chanctx() local
2493 ath_dbg(common, CHAN_CTX, in ath9k_add_chanctx()
2512 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_chanctx() local
2517 ath_dbg(common, CHAN_CTX, in ath9k_remove_chanctx()
2533 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_chanctx() local
2537 ath_dbg(common, CHAN_CTX, in ath9k_change_chanctx()
2549 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_assign_vif_chanctx() local
2558 ath_dbg(common, CHAN_CTX, in ath9k_assign_vif_chanctx()
2580 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_unassign_vif_chanctx() local
2589 ath_dbg(common, CHAN_CTX, in ath9k_unassign_vif_chanctx()
2608 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_mgd_prepare_tx() local
2616 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) in ath9k_mgd_prepare_tx()
2654 ath_dbg(common, CHAN_CTX, in ath9k_mgd_prepare_tx()
2665 ath_dbg(common, CHAN_CTX, in ath9k_mgd_prepare_tx()