Lines Matching refs:eep

2976 	struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep;  in ath9k_hw_ar9300_get_eeprom()  local
2977 struct ar9300_base_eep_hdr *pBase = &eep->baseEepHeader; in ath9k_hw_ar9300_get_eeprom()
2981 return get_unaligned_be16(eep->macAddr); in ath9k_hw_ar9300_get_eeprom()
2983 return get_unaligned_be16(eep->macAddr + 2); in ath9k_hw_ar9300_get_eeprom()
2985 return get_unaligned_be16(eep->macAddr + 4); in ath9k_hw_ar9300_get_eeprom()
3006 return eep->base_ext1.ant_div_control; in ath9k_hw_ar9300_get_eeprom()
3008 return eep->modalHeader5G.antennaGain; in ath9k_hw_ar9300_get_eeprom()
3010 return eep->modalHeader2G.antennaGain; in ath9k_hw_ar9300_get_eeprom()
3188 const struct ar9300_eeprom *eep = NULL; in ar9300_compress_decision() local
3205 eep = ar9003_eeprom_struct_find_by_id(reference); in ar9300_compress_decision()
3206 if (eep == NULL) { in ar9300_compress_decision()
3212 memcpy(mptr, eep, mdata_size); in ar9300_compress_decision()
3279 struct ar9300_eeprom *eep; in ar9300_eeprom_restore_internal() local
3289 eep = (struct ar9300_eeprom *) mptr; in ar9300_eeprom_restore_internal()
3290 txrx = eep->baseEepHeader.txrxMask; in ar9300_eeprom_restore_internal()
3443 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_dump_cal_data() local
3450 pBase = &eep->baseEepHeader; in ar9003_dump_cal_data()
3468 cal_pier = &eep->calPierData2G[i][j]; in ar9003_dump_cal_data()
3469 freq = 2300 + eep->calFreqPier2G[j]; in ar9003_dump_cal_data()
3471 cal_pier = &eep->calPierData5G[i][j]; in ar9003_dump_cal_data()
3472 freq = 4800 + eep->calFreqPier5G[j] * 5; in ar9003_dump_cal_data()
3497 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ath9k_hw_ar9003_dump_eeprom() local
3504 &eep->modalHeader2G); in ath9k_hw_ar9003_dump_eeprom()
3512 &eep->modalHeader5G); in ath9k_hw_ar9003_dump_eeprom()
3520 pBase = &eep->baseEepHeader; in ath9k_hw_ar9003_dump_eeprom()
3596 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_modal_header() local
3599 return &eep->modalHeader2G; in ar9003_modal_header()
3601 return &eep->modalHeader5G; in ar9003_modal_header()
3798 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_drive_strength_apply() local
3799 struct ar9300_base_eep_hdr *pBase = &eep->baseEepHeader; in ar9003_hw_drive_strength_apply()
3843 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_atten_chain_get() local
3847 return eep->modalHeader2G.xatten1DB[chain]; in ar9003_hw_atten_chain_get()
3848 else if (eep->base_ext2.xatten1DBLow[chain] != 0) { in ar9003_hw_atten_chain_get()
3849 t[0] = eep->base_ext2.xatten1DBLow[chain]; in ar9003_hw_atten_chain_get()
3851 t[1] = eep->modalHeader5G.xatten1DB[chain]; in ar9003_hw_atten_chain_get()
3853 t[2] = eep->base_ext2.xatten1DBHigh[chain]; in ar9003_hw_atten_chain_get()
3859 return eep->modalHeader5G.xatten1DB[chain]; in ar9003_hw_atten_chain_get()
3871 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_atten_chain_get_margin() local
3875 return eep->modalHeader2G.xatten1Margin[chain]; in ar9003_hw_atten_chain_get_margin()
3876 else if (eep->base_ext2.xatten1MarginLow[chain] != 0) { in ar9003_hw_atten_chain_get_margin()
3877 t[0] = eep->base_ext2.xatten1MarginLow[chain]; in ar9003_hw_atten_chain_get_margin()
3879 t[1] = eep->modalHeader5G.xatten1Margin[chain]; in ar9003_hw_atten_chain_get_margin()
3881 t[2] = eep->base_ext2.xatten1MarginHigh[chain]; in ar9003_hw_atten_chain_get_margin()
3887 return eep->modalHeader5G.xatten1Margin[chain]; in ar9003_hw_atten_chain_get_margin()
3955 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_internal_regulator_apply() local
3956 struct ar9300_base_eep_hdr *pBase = &eep->baseEepHeader; in ar9003_hw_internal_regulator_apply()
4050 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_apply_tuning_caps() local
4051 u8 tuning_caps_param = eep->baseEepHeader.params_for_tuning_caps[0]; in ar9003_hw_apply_tuning_caps()
4056 if (eep->baseEepHeader.featureEnable & 0x40) { in ar9003_hw_apply_tuning_caps()
4067 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_quick_drop_apply() local
4068 struct ar9300_base_eep_hdr *pBase = &eep->baseEepHeader; in ar9003_hw_quick_drop_apply()
4077 quick_drop = eep->modalHeader2G.quick_drop; in ar9003_hw_quick_drop_apply()
4079 t[0] = eep->base_ext1.quick_drop_low; in ar9003_hw_quick_drop_apply()
4080 t[1] = eep->modalHeader5G.quick_drop; in ar9003_hw_quick_drop_apply()
4081 t[2] = eep->base_ext1.quick_drop_high; in ar9003_hw_quick_drop_apply()
4102 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_xpa_timing_control_apply() local
4105 if (!(eep->baseEepHeader.featureEnable & 0x80)) in ar9003_hw_xpa_timing_control_apply()
4126 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_xlna_bias_strength_apply() local
4129 if (!(eep->baseEepHeader.miscConfiguration & 0x40)) in ar9003_hw_xlna_bias_strength_apply()
4148 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_get_thermometer() local
4149 struct ar9300_base_eep_hdr *pBase = &eep->baseEepHeader; in ar9003_hw_get_thermometer()
4207 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_apply_minccapwr_thresh() local
4217 if (!(eep->base_ext1.misc_enable & BIT(2))) in ar9003_hw_apply_minccapwr_thresh()
4220 if (!(eep->base_ext1.misc_enable & BIT(3))) in ar9003_hw_apply_minccapwr_thresh()
4329 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_eeprom_get_tgt_pwr() local
4335 pEepromTargetPwr = eep->calTargetPower2G; in ar9003_hw_eeprom_get_tgt_pwr()
4336 pFreqBin = eep->calTarget_freqbin_2G; in ar9003_hw_eeprom_get_tgt_pwr()
4339 pEepromTargetPwr = eep->calTargetPower5G; in ar9003_hw_eeprom_get_tgt_pwr()
4340 pFreqBin = eep->calTarget_freqbin_5G; in ar9003_hw_eeprom_get_tgt_pwr()
4365 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_eeprom_get_ht20_tgt_pwr() local
4371 pEepromTargetPwr = eep->calTargetPower2GHT20; in ar9003_hw_eeprom_get_ht20_tgt_pwr()
4372 pFreqBin = eep->calTarget_freqbin_2GHT20; in ar9003_hw_eeprom_get_ht20_tgt_pwr()
4375 pEepromTargetPwr = eep->calTargetPower5GHT20; in ar9003_hw_eeprom_get_ht20_tgt_pwr()
4376 pFreqBin = eep->calTarget_freqbin_5GHT20; in ar9003_hw_eeprom_get_ht20_tgt_pwr()
4401 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_eeprom_get_ht40_tgt_pwr() local
4407 pEepromTargetPwr = eep->calTargetPower2GHT40; in ar9003_hw_eeprom_get_ht40_tgt_pwr()
4408 pFreqBin = eep->calTarget_freqbin_2GHT40; in ar9003_hw_eeprom_get_ht40_tgt_pwr()
4411 pEepromTargetPwr = eep->calTargetPower5GHT40; in ar9003_hw_eeprom_get_ht40_tgt_pwr()
4412 pFreqBin = eep->calTarget_freqbin_5GHT40; in ar9003_hw_eeprom_get_ht40_tgt_pwr()
4436 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_eeprom_get_cck_tgt_pwr() local
4437 struct cal_tgt_pow_legacy *pEepromTargetPwr = eep->calTargetPowerCck; in ar9003_hw_eeprom_get_cck_tgt_pwr()
4438 u8 *pFreqBin = eep->calTarget_freqbin_Cck; in ar9003_hw_eeprom_get_cck_tgt_pwr()
4761 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_cal_pier_get() local
4778 pCalPier = &(eep->calFreqPier5G[ipier]); in ar9003_hw_cal_pier_get()
4779 pCalPierStruct = &(eep->calPierData5G[ichain][ipier]); in ar9003_hw_cal_pier_get()
4789 pCalPier = &(eep->calFreqPier2G[ipier]); in ar9003_hw_cal_pier_get()
4790 pCalPierStruct = &(eep->calPierData2G[ichain][ipier]); in ar9003_hw_cal_pier_get()
4812 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_power_control_override() local
4845 temp_slope = eep->modalHeader2G.tempSlope; in ar9003_hw_power_control_override()
4848 t[0] = eep->base_ext1.tempslopextension[2]; in ar9003_hw_power_control_override()
4849 t1[0] = eep->base_ext1.tempslopextension[3]; in ar9003_hw_power_control_override()
4850 t2[0] = eep->base_ext1.tempslopextension[4]; in ar9003_hw_power_control_override()
4853 t[1] = eep->modalHeader5G.tempSlope; in ar9003_hw_power_control_override()
4854 t1[1] = eep->base_ext1.tempslopextension[0]; in ar9003_hw_power_control_override()
4855 t2[1] = eep->base_ext1.tempslopextension[1]; in ar9003_hw_power_control_override()
4858 t[2] = eep->base_ext1.tempslopextension[5]; in ar9003_hw_power_control_override()
4859 t1[2] = eep->base_ext1.tempslopextension[6]; in ar9003_hw_power_control_override()
4860 t2[2] = eep->base_ext1.tempslopextension[7]; in ar9003_hw_power_control_override()
4873 if ((eep->baseEepHeader.miscConfiguration & 0x20) != 0) { in ar9003_hw_power_control_override()
4875 t[i] = eep->base_ext1.tempslopextension[i]; in ar9003_hw_power_control_override()
4876 f[i] = FBIN2FREQ(eep->calFreqPier5G[i], 0); in ar9003_hw_power_control_override()
4880 } else if (eep->base_ext2.tempSlopeLow != 0) { in ar9003_hw_power_control_override()
4881 t[0] = eep->base_ext2.tempSlopeLow; in ar9003_hw_power_control_override()
4883 t[1] = eep->modalHeader5G.tempSlope; in ar9003_hw_power_control_override()
4885 t[2] = eep->base_ext2.tempSlopeHigh; in ar9003_hw_power_control_override()
4890 temp_slope = eep->modalHeader5G.tempSlope; in ar9003_hw_power_control_override()
4896 u8 txmask = (eep->baseEepHeader.txrxMask & 0xf0) >> 4; in ar9003_hw_power_control_override()
4902 if (eep->baseEepHeader.featureEnable & 0x1) { in ar9003_hw_power_control_override()
4907 eep->base_ext2.tempSlopeLow); in ar9003_hw_power_control_override()
4915 eep->base_ext2.tempSlopeHigh); in ar9003_hw_power_control_override()
5141 static u16 ar9003_hw_get_direct_edge_power(struct ar9300_eeprom *eep, in ar9003_hw_get_direct_edge_power() argument
5146 struct cal_ctl_data_2g *ctl_2g = eep->ctlPowerData_2G; in ar9003_hw_get_direct_edge_power()
5147 struct cal_ctl_data_5g *ctl_5g = eep->ctlPowerData_5G; in ar9003_hw_get_direct_edge_power()
5155 static u16 ar9003_hw_get_indirect_edge_power(struct ar9300_eeprom *eep, in ar9003_hw_get_indirect_edge_power() argument
5161 struct cal_ctl_data_2g *ctl_2g = eep->ctlPowerData_2G; in ar9003_hw_get_indirect_edge_power()
5162 struct cal_ctl_data_5g *ctl_5g = eep->ctlPowerData_5G; in ar9003_hw_get_indirect_edge_power()
5165 &eep->ctl_freqbin_2G[idx][0] : in ar9003_hw_get_indirect_edge_power()
5166 &eep->ctl_freqbin_5G[idx][0]; in ar9003_hw_get_indirect_edge_power()
5184 static u16 ar9003_hw_get_max_edge_power(struct ar9300_eeprom *eep, in ar9003_hw_get_max_edge_power() argument
5189 &eep->ctl_freqbin_2G[idx][0] : in ar9003_hw_get_max_edge_power()
5190 &eep->ctl_freqbin_5G[idx][0]; in ar9003_hw_get_max_edge_power()
5205 ar9003_hw_get_direct_edge_power(eep, idx, in ar9003_hw_get_max_edge_power()
5212 ar9003_hw_get_indirect_edge_power(eep, idx, in ar9003_hw_get_max_edge_power()
5452 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ath9k_hw_ar9300_set_txpower() local
5469 modal_hdr = &eep->modalHeader2G; in ath9k_hw_ar9300_set_txpower()
5471 modal_hdr = &eep->modalHeader5G; in ath9k_hw_ar9300_set_txpower()
5578 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_get_tx_gain_idx() local
5580 return (eep->baseEepHeader.txrxgain >> 4) & 0xf; /* bits 7:4 */ in ar9003_hw_get_tx_gain_idx()
5585 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_hw_get_rx_gain_idx() local
5587 return (eep->baseEepHeader.txrxgain) & 0xf; /* bits 3:0 */ in ar9003_hw_get_rx_gain_idx()
5598 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_get_paprd_scale_factor() local
5601 return MS(le32_to_cpu(eep->modalHeader2G.papdRateMaskHt20), in ar9003_get_paprd_scale_factor()
5605 return MS(le32_to_cpu(eep->modalHeader5G.papdRateMaskHt20), in ar9003_get_paprd_scale_factor()
5608 return MS(le32_to_cpu(eep->modalHeader5G.papdRateMaskHt40), in ar9003_get_paprd_scale_factor()
5611 return MS(le32_to_cpu(eep->modalHeader5G.papdRateMaskHt40), in ar9003_get_paprd_scale_factor()