Lines Matching +full:pre +full:- +full:timeout

2  * Copyright (c) 2008-2009 Atheros Communications Inc.
33 { PCI_VDEVICE(ATHEROS, 0x0011) }, /* 5311 - this is on AHB bus !*/
45 { PCI_VDEVICE(ATHEROS, 0x001a) }, /* 2413 Griffin-lite */
47 { PCI_VDEVICE(ATHEROS, 0x001c) }, /* PCI-E cards */
59 struct ath5k_hw *ah = (struct ath5k_hw *) common->priv; in ath5k_pci_read_cachesize()
62 pci_read_config_byte(ah->pdev, PCI_CACHE_LINE_SIZE, &u8tmp); in ath5k_pci_read_cachesize()
81 struct ath5k_hw *ah = (struct ath5k_hw *) common->ah; in ath5k_pci_eeprom_read()
82 u32 status, timeout; in ath5k_pci_eeprom_read() local
87 if (ah->ah_version == AR5K_AR5210) { in ath5k_pci_eeprom_read()
96 for (timeout = AR5K_TUNE_REGISTER_TIMEOUT; timeout > 0; timeout--) { in ath5k_pci_eeprom_read()
113 ah->ah_mac_srev = ath5k_hw_reg_read(ah, AR5K_SREV); in ath5k_hw_read_srev()
129 for (offset = 0x1f, octet = 0, total = 0; offset >= 0x1d; offset--) { in ath5k_pci_eeprom_read_mac()
139 return -EINVAL; in ath5k_pci_eeprom_read_mac()
174 * L0s will be disabled when a pre 1.1 PCIe device is detected. We do in ath5k_pci_probe()
175 * know L1 works correctly even for all ath5k pre 1.1 PCIe devices in ath5k_pci_probe()
181 * drivers to override blacklists for pre 1.1 PCIe but for now it is in ath5k_pci_probe()
191 dev_err(&pdev->dev, "can't enable device\n"); in ath5k_pci_probe()
195 /* XXX 32-bit addressing only */ in ath5k_pci_probe()
196 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in ath5k_pci_probe()
198 dev_err(&pdev->dev, "32-bit DMA not available\n"); in ath5k_pci_probe()
210 * register as a 16-bit wide register which is wrong. in ath5k_pci_probe()
236 dev_err(&pdev->dev, "cannot reserve PCI memory region\n"); in ath5k_pci_probe()
242 dev_err(&pdev->dev, "cannot remap PCI memory region\n"); in ath5k_pci_probe()
243 ret = -EIO; in ath5k_pci_probe()
249 * and hw->priv (driver private data) in ath5k_pci_probe()
253 dev_err(&pdev->dev, "cannot allocate ieee80211_hw\n"); in ath5k_pci_probe()
254 ret = -ENOMEM; in ath5k_pci_probe()
258 dev_info(&pdev->dev, "registered as '%s'\n", wiphy_name(hw->wiphy)); in ath5k_pci_probe()
260 ah = hw->priv; in ath5k_pci_probe()
261 ah->hw = hw; in ath5k_pci_probe()
262 ah->pdev = pdev; in ath5k_pci_probe()
263 ah->dev = &pdev->dev; in ath5k_pci_probe()
264 ah->irq = pdev->irq; in ath5k_pci_probe()
265 ah->devid = id->device; in ath5k_pci_probe()
266 ah->iobase = mem; /* So we can unmap it on detach */ in ath5k_pci_probe()
293 struct ath5k_hw *ah = hw->priv; in ath5k_pci_remove()
296 pci_iounmap(pdev, ah->iobase); in ath5k_pci_remove()
306 struct ath5k_hw *ah = hw->priv; in ath5k_pci_suspend()
316 struct ath5k_hw *ah = hw->priv; in ath5k_pci_resume()
320 * re-disable the RETRY_TIMEOUT register (0x41) to keep in ath5k_pci_resume()