Lines Matching refs:common

95 static void ath9k_op_ps_wakeup(struct ath_common *common)  in ath9k_op_ps_wakeup()  argument
97 ath9k_ps_wakeup((struct ath_softc *) common->priv); in ath9k_op_ps_wakeup()
100 static void ath9k_op_ps_restore(struct ath_common *common) in ath9k_op_ps_restore() argument
102 ath9k_ps_restore((struct ath_softc *) common->priv); in ath9k_op_ps_restore()
119 struct ath_common *common = ath9k_hw_common(ah); in ath9k_iowrite32() local
120 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_iowrite32()
134 struct ath_common *common = ath9k_hw_common(ah); in ath9k_ioread32() local
135 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_ioread32()
174 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw() local
175 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_reg_rmw()
229 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_descdma_setup() local
233 ath_dbg(common, CONFIG, "%s DMA: %u buffers %u desc/buf\n", in ath_descdma_setup()
245 ath_err(common, "ath_desc not DWORD aligned\n"); in ath_descdma_setup()
277 ath_dbg(common, CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n", in ath_descdma_setup()
368 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_init_misc() local
371 setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); in ath9k_init_misc()
373 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_init_misc()
374 memcpy(common->bssidmask, ath_bcast_mac, ETH_ALEN); in ath9k_init_misc()
396 struct ath_common *common = ath9k_hw_common(ah); in ath9k_init_pcoem_platform() local
401 if (common->bus_ops->ath_bus_type != ATH_PCI) in ath9k_init_pcoem_platform()
413 ath_info(common, "Set parameters for %s\n", in ath9k_init_pcoem_platform()
419 ath_info(common, "CUS217 card detected\n"); in ath9k_init_pcoem_platform()
422 ath_info(common, "CUS252 card detected\n"); in ath9k_init_pcoem_platform()
425 ath_info(common, "WB335 1-ANT card detected\n"); in ath9k_init_pcoem_platform()
428 ath_info(common, "WB335 2-ANT card detected\n"); in ath9k_init_pcoem_platform()
431 ath_info(common, "Killer Wireless card detected\n"); in ath9k_init_pcoem_platform()
446 ath_info(common, "Set BT/WLAN RX diversity capability\n"); in ath9k_init_pcoem_platform()
451 ath_info(common, "Enable WAR for ASPM D3/L1\n"); in ath9k_init_pcoem_platform()
463 ath_info(common, "Disable PLL PowerSave\n"); in ath9k_init_pcoem_platform()
542 struct ath_common *common; in ath9k_init_softc() local
559 common = ath9k_hw_common(ah); in ath9k_init_softc()
562 set_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_init_softc()
565 sc->dfs_detector = dfs_pattern_detector_init(common, NL80211_DFS_UNSET); in ath9k_init_softc()
588 common->ops = &ah->reg_ops; in ath9k_init_softc()
589 common->bus_ops = bus_ops; in ath9k_init_softc()
590 common->ps_ops = &ath9k_ps_ops; in ath9k_init_softc()
591 common->ah = ah; in ath9k_init_softc()
592 common->hw = sc->hw; in ath9k_init_softc()
593 common->priv = sc; in ath9k_init_softc()
594 common->debug_mask = ath9k_debug; in ath9k_init_softc()
595 common->btcoex_enabled = ath9k_btcoex_enable == 1; in ath9k_init_softc()
596 common->disable_ani = false; in ath9k_init_softc()
617 if (!common->btcoex_enabled && ath9k_bt_ant_diversity && in ath9k_init_softc()
619 common->bt_ant_diversity = 1; in ath9k_init_softc()
621 spin_lock_init(&common->cc_lock); in ath9k_init_softc()
641 ath_read_cachesize(common, &csz); in ath9k_init_softc()
642 common->cachelsz = csz << 2; /* convert to bytes */ in ath9k_init_softc()
650 memcpy(common->macaddr, pdata->macaddr, ETH_ALEN); in ath9k_init_softc()
660 ret = ath9k_cmn_init_channels_rates(common); in ath9k_init_softc()
674 if (common->bus_ops->aspm_init) in ath9k_init_softc()
675 common->bus_ops->aspm_init(common); in ath9k_init_softc()
696 struct ath_common *common = ath9k_hw_common(ah); in ath9k_init_band_txpower() local
700 sband = &common->sbands[band]; in ath9k_init_band_txpower()
801 struct ath_common *common = ath9k_hw_common(ah); in ath9k_set_mcc_capab() local
819 ath_dbg(common, CHAN_CTX, "Use channel contexts\n"); in ath9k_set_mcc_capab()
826 struct ath_common *common = ath9k_hw_common(ah); in ath9k_set_hw_capab() local
898 &common->sbands[IEEE80211_BAND_2GHZ]; in ath9k_set_hw_capab()
901 &common->sbands[IEEE80211_BAND_5GHZ]; in ath9k_set_hw_capab()
909 SET_IEEE80211_PERM_ADDR(hw, common->macaddr); in ath9k_set_hw_capab()
916 struct ath_common *common; in ath9k_init_device() local
927 common = ath9k_hw_common(ah); in ath9k_init_device()
931 error = ath_regd_init(&common->regulatory, sc->hw->wiphy, in ath9k_init_device()
936 reg = &common->regulatory; in ath9k_init_device()
964 ath_err(common, "Unable to create debugfs files\n"); in ath9k_init_device()