Lines Matching defs:ah

73 ath5k_eeprom_init_header(struct ath5k_hw *ah)
75 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
89 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_0)
109 ATH5K_ERR(ah, "Invalid max custom EEPROM size: "
123 ATH5K_ERR(ah, "Invalid EEPROM "
131 AR5K_EEPROM_READ_HDR(AR5K_EEPROM_ANT_GAIN(ah->ah_ee_version),
134 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_0) {
151 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_3) {
163 if ((ah->ah_mac_version == (AR5K_SREV_AR2425 >> 4)) && val)
189 static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset,
192 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
224 ah->ah_ant_ctl[mode][AR5K_ANT_CTL] =
226 ah->ah_ant_ctl[mode][AR5K_ANT_SWTABLE_A] =
232 ah->ah_ant_ctl[mode][AR5K_ANT_SWTABLE_B] =
249 static int ath5k_eeprom_read_modes(struct ath5k_hw *ah, u32 *offset,
252 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
284 if (ah->ah_ee_version <= AR5K_EEPROM_VERSION_3_2)
299 if (ah->ah_ee_version <= AR5K_EEPROM_VERSION_3_2)
308 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_0 &&
312 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_3_3) {
325 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_4) {
336 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_6)
341 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_0 &&
347 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_4_0)
355 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_4_1)
380 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_1)
406 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_1)
413 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_2) {
467 ath5k_eeprom_init_modes(struct ath5k_hw *ah)
469 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
478 mode_offset[AR5K_EEPROM_MODE_11A] = AR5K_EEPROM_MODES_11A(ah->ah_ee_version);
479 mode_offset[AR5K_EEPROM_MODE_11B] = AR5K_EEPROM_MODES_11B(ah->ah_ee_version);
480 mode_offset[AR5K_EEPROM_MODE_11G] = AR5K_EEPROM_MODES_11G(ah->ah_ee_version);
488 ret = ath5k_eeprom_read_ants(ah, &offset, mode);
492 ret = ath5k_eeprom_read_modes(ah, &offset, mode);
498 if (ah->ah_ee_version <= AR5K_EEPROM_VERSION_3_2) {
510 ath5k_eeprom_read_freq_list(struct ath5k_hw *ah, int *offset, int max,
513 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
548 ath5k_eeprom_init_11a_pcal_freq(struct ath5k_hw *ah, int offset)
550 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
557 ath5k_eeprom_read_freq_list(ah, &offset,
561 mask = AR5K_EEPROM_FREQ_M(ah->ah_ee_version);
601 ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset)
603 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
617 ath5k_eeprom_read_freq_list(ah, &offset,
646 ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp)
657 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_3_2)
667 ath5k_eeprom_free_pcal_info(struct ath5k_hw *ah, int mode)
669 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
714 ath5k_eeprom_convert_pcal_info_5111(struct ath5k_hw *ah, int mode,
717 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
790 ath5k_eeprom_free_pcal_info(ah, mode);
796 ath5k_eeprom_read_pcal_info_5111(struct ath5k_hw *ah, int mode)
798 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
810 ret = ath5k_eeprom_init_11a_pcal_freq(ah,
879 ath5k_get_pcdac_intercepts(ah, cdata->pcdac_min,
883 return ath5k_eeprom_convert_pcal_info_5111(ah, mode, pcal);
905 ath5k_eeprom_convert_pcal_info_5112(struct ath5k_hw *ah, int mode,
908 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1013 ath5k_eeprom_free_pcal_info(ah, mode);
1019 ath5k_eeprom_read_pcal_info_5112(struct ath5k_hw *ah, int mode)
1021 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1051 ath5k_eeprom_init_11a_pcal_freq(ah, offset);
1127 return ath5k_eeprom_convert_pcal_info_5112(ah, mode, gen_chan_info);
1197 ath5k_eeprom_convert_pcal_info_2413(struct ath5k_hw *ah, int mode,
1200 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1276 ath5k_eeprom_free_pcal_info(ah, mode);
1282 ath5k_eeprom_read_pcal_info_2413(struct ath5k_hw *ah, int mode)
1284 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1315 ath5k_eeprom_init_11a_pcal_freq(ah, offset);
1323 ath5k_eeprom_init_11bg_2413(ah, mode, offset);
1331 ath5k_eeprom_init_11bg_2413(ah, mode, offset);
1461 return ath5k_eeprom_convert_pcal_info_2413(ah, mode, chinfo);
1473 ath5k_eeprom_read_target_rate_pwr_info(struct ath5k_hw *ah, unsigned int mode)
1475 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1568 ath5k_eeprom_read_pcal_info(struct ath5k_hw *ah)
1570 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1575 if ((ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_0) &&
1578 else if ((ah->ah_ee_version >= AR5K_EEPROM_VERSION_5_0) &&
1587 err = read_pcal(ah, mode);
1591 err = ath5k_eeprom_read_target_rate_pwr_info(ah, mode);
1601 ath5k_eeprom_read_ctl_info(struct ath5k_hw *ah)
1603 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1708 ath5k_eeprom_read_spur_chans(struct ath5k_hw *ah)
1710 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
1748 ath5k_eeprom_init(struct ath5k_hw *ah)
1752 err = ath5k_eeprom_init_header(ah);
1756 err = ath5k_eeprom_init_modes(ah);
1760 err = ath5k_eeprom_read_pcal_info(ah);
1764 err = ath5k_eeprom_read_ctl_info(ah);
1768 err = ath5k_eeprom_read_spur_chans(ah);
1776 ath5k_eeprom_detach(struct ath5k_hw *ah)
1781 ath5k_eeprom_free_pcal_info(ah, mode);
1785 ath5k_eeprom_mode_from_channel(struct ath5k_hw *ah,
1796 ATH5K_WARN(ah, "channel is not A/B/G!");