Home
last modified time | relevance | path

Searched refs:srev (Results 1 – 3 of 3) sorted by relevance

/drivers/net/wireless/ath/ath5k/
Dattach.c111 u32 srev; in ath5k_hw_init() local
130 srev = ah->ah_mac_srev; in ath5k_hw_init()
131 if (srev < AR5K_SREV_AR5311) in ath5k_hw_init()
133 else if (srev < AR5K_SREV_AR5212) in ath5k_hw_init()
139 ah->ah_mac_version = AR5K_REG_MS(srev, AR5K_SREV_VER); in ath5k_hw_init()
214 } else if (srev == AR5K_SREV_AR5213A && in ath5k_hw_init()
243 if ((srev >= AR5K_SREV_AR5416) && (srev < AR5K_SREV_AR2425)) { in ath5k_hw_init()
257 if (srev >= AR5K_SREV_AR5213A) in ath5k_hw_init()
315 if (srev >= AR5K_SREV_AR5212_V4 && in ath5k_hw_init()
320 if (srev >= AR5K_SREV_AR2414) { in ath5k_hw_init()
Dphy.c87 u32 srev; in ath5k_hw_radio_revision() local
113 srev = (ath5k_hw_reg_read(ah, AR5K_PHY(256)) >> 28) & 0xf; in ath5k_hw_radio_revision()
114 ret = (u16)ath5k_hw_bitswap(srev, 4) + 1; in ath5k_hw_radio_revision()
116 srev = (ath5k_hw_reg_read(ah, AR5K_PHY(0x100)) >> 24) & 0xff; in ath5k_hw_radio_revision()
117 ret = (u16)ath5k_hw_bitswap(((srev & 0xf0) >> 4) | in ath5k_hw_radio_revision()
118 ((srev & 0x0f) << 4), 8); in ath5k_hw_radio_revision()
/drivers/net/wireless/ath/ath9k/
Dhw.c257 u32 srev; in ath9k_hw_read_revisions() local
288 srev = REG_READ(ah, AR_SREV); in ath9k_hw_read_revisions()
290 if (srev == -1) { in ath9k_hw_read_revisions()
296 val = srev & AR_SREV_ID; in ath9k_hw_read_revisions()
299 val = srev; in ath9k_hw_read_revisions()