Lines Matching refs:ah
38 struct ath5k_hw *ah = common->priv; in ath5k_ahb_eeprom_read() local
39 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read()
54 int ath5k_hw_read_srev(struct ath5k_hw *ah) in ath5k_hw_read_srev() argument
56 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_hw_read_srev()
58 ah->ah_mac_srev = bcfg->devid; in ath5k_hw_read_srev()
62 static int ath5k_ahb_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac) in ath5k_ahb_eeprom_read_mac() argument
64 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read_mac()
68 if (to_platform_device(ah->dev)->id == 0) in ath5k_ahb_eeprom_read_mac()
88 struct ath5k_hw *ah; in ath_ahb_probe() local
132 ah = hw->priv; in ath_ahb_probe()
133 ah->hw = hw; in ath_ahb_probe()
134 ah->dev = &pdev->dev; in ath_ahb_probe()
135 ah->iobase = mem; in ath_ahb_probe()
136 ah->irq = irq; in ath_ahb_probe()
137 ah->devid = bcfg->devid; in ath_ahb_probe()
153 if (to_platform_device(ah->dev)->id == 0) in ath_ahb_probe()
164 if (to_platform_device(ah->dev)->id == 0 && in ath_ahb_probe()
167 ah->ah_capabilities.cap_needs_2GHz_ovr = true; in ath_ahb_probe()
169 ah->ah_capabilities.cap_needs_2GHz_ovr = false; in ath_ahb_probe()
172 ret = ath5k_init_ah(ah, &ath_ahb_bus_ops); in ath_ahb_probe()
195 struct ath5k_hw *ah; in ath_ahb_remove() local
201 ah = hw->priv; in ath_ahb_remove()
211 if (to_platform_device(ah->dev)->id == 0) in ath_ahb_remove()
218 ath5k_deinit_ah(ah); in ath_ahb_remove()
219 iounmap(ah->iobase); in ath_ahb_remove()