Lines Matching defs:common

102 	struct ath_common *common = ath9k_hw_common(sc->sc_ah);
106 spin_lock_irqsave(&common->cc_lock, flags);
107 ath_hw_cycle_counters_update(common);
108 spin_unlock_irqrestore(&common->cc_lock, flags);
118 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
136 spin_lock(&common->cc_lock);
137 ath_hw_cycle_counters_update(common);
138 memset(&common->cc_survey, 0, sizeof(common->cc_survey));
139 memset(&common->cc_ani, 0, sizeof(common->cc_ani));
140 spin_unlock(&common->cc_lock);
149 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
175 spin_lock(&common->cc_lock);
176 ath_hw_cycle_counters_update(common);
177 spin_unlock(&common->cc_lock);
238 struct ath_common *common = ath9k_hw_common(ah);
246 clear_bit(ATH_OP_HW_RESET, &common->op_flags);
259 if (!test_bit(ATH_OP_BEACONS, &common->op_flags))
263 test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) {
288 struct ath_common *common = ath9k_hw_common(ah);
325 ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n",
330 ath_err(common,
383 struct ath_common *common = ath9k_hw_common(ah);
400 ath_dbg(common, RESET, "FATAL: Skipping interrupts\n");
406 spin_lock_irqsave(&common->cc_lock, flags);
407 ath_hw_cycle_counters_update(common);
409 spin_unlock_irqrestore(&common->cc_lock, flags);
415 ath_dbg(common, RESET,
427 ath_dbg(common, RESET,
439 ath_dbg(common, PS, "TSFOOR - Sync with next Beacon\n");
509 struct ath_common *common = ath9k_hw_common(ah);
519 if (!ah || test_bit(ATH_OP_INVALID, &common->op_flags))
536 if (test_bit(ATH_OP_HW_RESET, &common->op_flags)) {
612 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
616 set_bit(ATH_OP_HW_RESET, &common->op_flags);
632 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
637 set_bit(ATH_OP_HW_RESET, &common->op_flags);
658 struct ath_common *common = ath9k_hw_common(ah);
664 ath_dbg(common, CONFIG,
690 ath_err(common,
722 clear_bit(ATH_OP_INVALID, &common->op_flags);
759 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
772 ath_dbg(common, PS,
789 ath_dbg(common, PS,
793 ath_dbg(common, PS, "Wake up to complete TX\n");
810 ath_err(common, "TX while HW is in FULL_SLEEP mode\n");
818 ath_dbg(common, XMIT, "transmitting packet, skb: %p\n", skb);
821 ath_dbg(common, XMIT, "TX failed\n");
888 struct ath_common *common = ath9k_hw_common(ah);
896 ath_key_delete(common, keyix);
903 struct ath_common *common = ath9k_hw_common(ah);
915 if (test_bit(ATH_OP_INVALID, &common->op_flags)) {
916 ath_dbg(common, ANY, "Device not present\n");
965 set_bit(ATH_OP_INVALID, &common->op_flags);
987 ath_dbg(common, CONFIG, "Driver halt\n");
1072 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1086 ether_addr_copy(common->curbssid, avp->bssid);
1120 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1124 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags);
1126 ether_addr_copy(common->curbssid, avp->bssid);
1127 common->curaid = avp->aid;
1131 common->last_rssi = ATH_RSSI_DUMMY_MARKER;
1142 ath_dbg(common, CONFIG,
1144 vif->addr, common->curbssid);
1151 struct ath_common *common = ath9k_hw_common(ah);
1164 eth_zero_addr(common->curbssid);
1165 eth_broadcast_addr(common->bssidmask);
1166 memcpy(common->macaddr, vif->addr, ETH_ALEN);
1167 common->curaid = 0;
1173 ath_hw_setbssidmask(common);
1189 struct ath_common *common = ath9k_hw_common(ah);
1206 memcpy(common->macaddr, iter_data.hw_macaddr, ETH_ALEN);
1208 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN);
1209 ath_hw_setbssidmask(common);
1253 eth_zero_addr(common->curbssid);
1254 common->curaid = 0;
1271 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags);
1273 clear_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags);
1275 ath_dbg(common, CONFIG,
1277 common->macaddr, common->curbssid, common->bssidmask);
1340 struct ath_common *common = ath9k_hw_common(ah);
1353 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type);
1390 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1400 ath_dbg(common, CONFIG, "Change Interface\n");
1424 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1427 ath_dbg(common, CONFIG, "Detach Interface\n");
1453 struct ath_common *common = ath9k_hw_common(ah);
1466 ath_dbg(common, PS, "PowerSave enabled\n");
1472 struct ath_common *common = ath9k_hw_common(ah);
1490 ath_dbg(common, PS, "PowerSave disabled\n");
1497 struct ath_common *common = ath9k_hw_common(ah);
1537 ath_dbg(common, CONFIG, "Monitor mode is enabled\n");
1540 ath_dbg(common, CONFIG, "Monitor mode is disabled\n");
1604 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1615 key = ath_key_config(common, vif, sta, &ps_key);
1628 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1634 ath_key_delete(common, an->ps_key);
1658 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1664 ath_dbg(common, CONFIG,
1669 ath_dbg(common, CONFIG,
1725 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1745 ath_dbg(common, CONFIG,
1753 ath_err(common, "TXQ Update failed\n");
1768 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1801 ath_dbg(common, CONFIG, "Set HW Key %d\n", cmd);
1817 ret = ath_key_config(common, vif, sta, key);
1845 ath_hw_keysetmac(common, key->hw_key_idx, NULL);
1847 ath_key_delete(common, key->hw_key_idx);
1881 struct ath_common *common = ath9k_hw_common(ah);
1889 ath_dbg(common, CONFIG, "BSSID %pM Changed ASSOC %d\n",
1901 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN);
1902 common->curaid = bss_conf->aid;
1940 ath_dbg(common, CONFIG, "vif %pM power %d dbm power_type %d\n",
2013 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2032 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) {
2072 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2081 spin_lock_irqsave(&common->cc_lock, flags);
2095 spin_unlock_irqrestore(&common->cc_lock, flags);
2103 spin_unlock_irqrestore(&common->cc_lock, flags);
2174 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2177 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags))
2204 struct ath_common *common = ath9k_hw_common(ah);
2211 ath_dbg(common, ANY, "Device has been unplugged!\n");
2215 if (test_bit(ATH_OP_INVALID, &common->op_flags)) {
2216 ath_dbg(common, ANY, "Device not present\n");
2227 ath_dbg(common, CHAN_CTX,
2390 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2391 set_bit(ATH_OP_SCANNING, &common->op_flags);
2398 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2399 clear_bit(ATH_OP_SCANNING, &common->op_flags);
2406 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2409 ath_dbg(common, CHAN_CTX,
2417 if (test_bit(ATH_OP_SCANNING, &common->op_flags)) {
2418 ath_dbg(common, CHAN_CTX,
2431 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2442 set_bit(ATH_OP_SCANNING, &common->op_flags);
2447 ath_dbg(common, CHAN_CTX, "HW scan request received on vif: %pM\n",
2451 ath_dbg(common, CHAN_CTX, "Starting HW scan\n");
2465 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2467 ath_dbg(common, CHAN_CTX, "Cancel HW scan on vif: %pM\n", vif->addr);
2481 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2496 ath_dbg(common, CHAN_CTX,
2501 ath_dbg(common, CHAN_CTX, "Starting RoC period\n");
2515 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2519 ath_dbg(common, CHAN_CTX, "Cancel RoC\n");
2536 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2552 ath_dbg(common, CHAN_CTX,
2571 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2576 ath_dbg(common, CHAN_CTX,
2592 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2596 ath_dbg(common, CHAN_CTX,
2608 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2617 ath_dbg(common, CHAN_CTX,
2639 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2648 ath_dbg(common, CHAN_CTX,
2668 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
2676 if (!test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags))
2714 ath_dbg(common, CHAN_CTX,
2725 ath_dbg(common, CHAN_CTX,