Lines Matching defs:common
152 static void ath9k_op_ps_wakeup(struct ath_common *common)
154 ath9k_ps_wakeup((struct ath_softc *) common->priv);
157 static void ath9k_op_ps_restore(struct ath_common *common)
159 ath9k_ps_restore((struct ath_softc *) common->priv);
176 struct ath_common *common = ath9k_hw_common(ah);
177 struct ath_softc *sc = (struct ath_softc *) common->priv;
191 struct ath_common *common = ath9k_hw_common(ah);
192 struct ath_softc *sc = (struct ath_softc *) common->priv;
231 struct ath_common *common = ath9k_hw_common(ah);
232 struct ath_softc *sc = (struct ath_softc *) common->priv;
287 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
291 ath_dbg(common, CONFIG, "%s DMA: %u buffers %u desc/buf\n",
303 ath_err(common, "ath_desc not DWORD aligned\n");
335 ath_dbg(common, CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n",
425 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
428 timer_setup(&common->ani.timer, ath_ani_calibrate, 0);
430 common->last_rssi = ATH_RSSI_DUMMY_MARKER;
431 eth_broadcast_addr(common->bssidmask);
453 struct ath_common *common = ath9k_hw_common(ah);
458 if (common->bus_ops->ath_bus_type != ATH_PCI)
470 ath_info(common, "Set parameters for %s\n",
476 ath_info(common, "CUS217 card detected\n");
479 ath_info(common, "CUS252 card detected\n");
482 ath_info(common, "WB335 1-ANT card detected\n");
485 ath_info(common, "WB335 2-ANT card detected\n");
488 ath_info(common, "Killer Wireless card detected\n");
503 ath_info(common, "Set BT/WLAN RX diversity capability\n");
508 ath_info(common, "Enable WAR for ASPM D3/L1\n");
520 ath_info(common, "Disable PLL PowerSave\n");
627 struct ath_common *common = ath9k_hw_common(ah);
661 ether_addr_copy(common->macaddr, pdata->macaddr);
670 struct ath_common *common = ath9k_hw_common(ah);
671 enum ath_bus_type bus_type = common->bus_ops->ath_bus_type;
678 ath_dbg(common, CONFIG, "parsing configuration from OF node\n");
694 of_get_mac_address(np, common->macaddr);
704 struct ath_common *common;
723 common = ath9k_hw_common(ah);
726 set_bit(ATH_OP_INVALID, &common->op_flags);
729 sc->dfs_detector = dfs_pattern_detector_init(common, NL80211_DFS_UNSET);
736 common->ops = &ah->reg_ops;
737 common->bus_ops = bus_ops;
738 common->ps_ops = &ath9k_ps_ops;
739 common->ah = ah;
740 common->hw = sc->hw;
741 common->priv = sc;
742 common->debug_mask = ath9k_debug;
743 common->btcoex_enabled = ath9k_btcoex_enable == 1;
744 common->disable_ani = false;
773 if (!common->btcoex_enabled && ath9k_bt_ant_diversity &&
775 common->bt_ant_diversity = 1;
777 spin_lock_init(&common->cc_lock);
798 ath_read_cachesize(common, &csz);
799 common->cachelsz = csz << 2; /* convert to bytes */
814 ret = ath9k_cmn_init_channels_rates(common);
827 if (common->bus_ops->aspm_init)
828 common->bus_ops->aspm_init(common);
849 struct ath_common *common = ath9k_hw_common(ah);
853 sband = &common->sbands[band];
929 struct ath_common *common = ath9k_hw_common(ah);
946 ath_dbg(common, CHAN_CTX, "Use channel contexts\n");
953 struct ath_common *common = ath9k_hw_common(ah);
1032 &common->sbands[NL80211_BAND_2GHZ];
1035 &common->sbands[NL80211_BAND_5GHZ];
1043 SET_IEEE80211_PERM_ADDR(hw, common->macaddr);
1056 struct ath_common *common;
1067 common = ath9k_hw_common(ah);
1071 error = ath_regd_init(&common->regulatory, sc->hw->wiphy,
1076 reg = &common->regulatory;
1106 ath_err(common, "Unable to create debugfs files\n");