Lines Matching refs:sc
771 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_pci_read_cachesize() local
774 pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp); in ath_pci_read_cachesize()
789 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_pci_eeprom_read() local
790 struct ath9k_platform_data *pdata = sc->dev->platform_data; in ath_pci_eeprom_read()
824 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_pci_aspm_init() local
825 struct ath_hw *ah = sc->sc_ah; in ath_pci_aspm_init()
826 struct pci_dev *pdev = to_pci_dev(sc->dev); in ath_pci_aspm_init()
888 struct ath_softc *sc; in ath_pci_probe() local
959 sc = hw->priv; in ath_pci_probe()
960 sc->hw = hw; in ath_pci_probe()
961 sc->dev = &pdev->dev; in ath_pci_probe()
962 sc->mem = pcim_iomap_table(pdev)[0]; in ath_pci_probe()
963 sc->driver_data = id->driver_data; in ath_pci_probe()
965 ret = request_irq(pdev->irq, ath_isr, IRQF_SHARED, "ath9k", sc); in ath_pci_probe()
971 sc->irq = pdev->irq; in ath_pci_probe()
973 ret = ath9k_init_device(id->device, sc, &ath_pci_bus_ops); in ath_pci_probe()
979 ath9k_hw_name(sc->sc_ah, hw_name, sizeof(hw_name)); in ath_pci_probe()
981 hw_name, (unsigned long)sc->mem, pdev->irq); in ath_pci_probe()
986 free_irq(sc->irq, sc); in ath_pci_probe()
995 struct ath_softc *sc = hw->priv; in ath_pci_remove() local
998 sc->sc_ah->ah_flags |= AH_UNPLUGGED; in ath_pci_remove()
999 ath9k_deinit_device(sc); in ath_pci_remove()
1000 free_irq(sc->irq, sc); in ath_pci_remove()
1001 ieee80211_free_hw(sc->hw); in ath_pci_remove()
1010 struct ath_softc *sc = hw->priv; in ath_pci_suspend() local
1011 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_pci_suspend()
1022 ath9k_stop_btcoex(sc); in ath_pci_suspend()
1023 ath9k_hw_disable(sc->sc_ah); in ath_pci_suspend()
1024 del_timer_sync(&sc->sleep_timer); in ath_pci_suspend()
1025 ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP); in ath_pci_suspend()
1034 struct ath_softc *sc = hw->priv; in ath_pci_resume() local
1035 struct ath_hw *ah = sc->sc_ah; in ath_pci_resume()