iPXE
|
Go to the source code of this file.
Macros | |
#define | ATH9K_NF_TOO_HIGH -60 |
Functions | |
static int16_t | ath9k_hw_get_nf_hist_mid (int16_t *nfCalBuffer) |
static struct ath_nf_limits * | ath9k_hw_get_nf_limits (struct ath_hw *ah, struct ath9k_channel *chan) |
static s16 | ath9k_hw_get_default_nf (struct ath_hw *ah, struct ath9k_channel *chan) |
static void | ath9k_hw_update_nfcal_hist_buffer (struct ath_hw *ah, struct ath9k_hw_cal_data *cal, int16_t *nfarray) |
static int | ath9k_hw_get_nf_thresh (struct ath_hw *ah, int band, int16_t *nft) |
void | ath9k_hw_reset_calibration (struct ath_hw *ah, struct ath9k_cal_list *currCal) |
int | ath9k_hw_reset_calvalid (struct ath_hw *ah) |
void | ath9k_hw_start_nfcal (struct ath_hw *ah, int update) |
void | ath9k_hw_loadnf (struct ath_hw *ah, struct ath9k_channel *chan) |
static void | ath9k_hw_nf_sanitize (struct ath_hw *ah, s16 *nf) |
int | ath9k_hw_getnf (struct ath_hw *ah, struct ath9k_channel *chan) |
void | ath9k_init_nfcal_hist_buffer (struct ath_hw *ah, struct ath9k_channel *chan) |
#define ATH9K_NF_TOO_HIGH -60 |
Definition at line 25 of file ath9k_calib.c.
Definition at line 27 of file ath9k_calib.c.
References ATH9K_NF_CAL_HIST_MAX.
Referenced by ath9k_hw_update_nfcal_hist_buffer().
|
static |
Definition at line 50 of file ath9k_calib.c.
References ah, IS_CHAN_2GHZ, and limit.
Referenced by ath9k_hw_get_default_nf(), and ath9k_hw_update_nfcal_hist_buffer().
|
static |
Definition at line 63 of file ath9k_calib.c.
References ah, ath9k_hw_get_nf_limits(), and ath_nf_limits::nominal.
Referenced by ath9k_hw_loadnf(), and ath9k_init_nfcal_hist_buffer().
|
static |
Definition at line 70 of file ath9k_calib.c.
References ah, AR5416_MAX_CHAINS, ath9k_hw_get_nf_hist_mid(), ath9k_hw_get_nf_limits(), ATH9K_NF_CAL_HIST_MAX, ath9k_nfcal_hist::currIndex, DBG2, h, ath9k_nfcal_hist::invalidNFcount, limit, ath9k_hw_cal_data::nfcal_interference, ath9k_nfcal_hist::nfCalBuffer, ath9k_hw_cal_data::nfCalHist, NUM_NF_READINGS, and ath9k_nfcal_hist::privNF.
Referenced by ath9k_hw_getnf().
Definition at line 135 of file ath9k_calib.c.
References ah, EEP_NFTHRESH_2, EEP_NFTHRESH_5, NET80211_BAND_2GHZ, and NET80211_BAND_5GHZ.
Referenced by ath9k_hw_getnf().
void ath9k_hw_reset_calibration | ( | struct ath_hw * | ah, |
struct ath9k_cal_list * | currCal | ||
) |
Definition at line 153 of file ath9k_calib.c.
References ah, AR5416_MAX_CHAINS, ath9k_hw_setup_calibration(), CAL_RUNNING, and ath9k_cal_list::calState.
Referenced by ar9002_hw_calibrate(), ar9002_hw_init_cal(), ar9002_hw_per_calibration(), ar9003_hw_calibrate(), ar9003_hw_init_cal(), and ar9003_hw_per_calibration().
int ath9k_hw_reset_calvalid | ( | struct ath_hw * | ah | ) |
Definition at line 173 of file ath9k_calib.c.
References ah, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, CAL_DONE, CAL_WAITING, ath9k_cal_list::calData, ath9k_cal_list::calState, ath9k_percal_data::calType, DBG, and NULL.
Referenced by ath_ani_calibrate().
void ath9k_hw_start_nfcal | ( | struct ath_hw * | ah, |
int | update | ||
) |
Definition at line 206 of file ath9k_calib.c.
References ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_ENABLE_NF, AR_PHY_AGC_CONTROL_NF, AR_PHY_AGC_CONTROL_NO_UPDATE_NF, REG_CLR_BIT, and REG_SET_BIT.
Referenced by ar9002_hw_calibrate(), ar9002_hw_init_cal(), ar9003_hw_calibrate(), ar9003_hw_init_cal(), and ath9k_hw_reset().
void ath9k_hw_loadnf | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 224 of file ath9k_calib.c.
References ah, AR5416_MAX_CHAINS, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_ENABLE_NF, AR_PHY_AGC_CONTROL_NF, AR_PHY_AGC_CONTROL_NO_UPDATE_NF, ath9k_hw_get_default_nf(), DBG, ENABLE_REGWRITE_BUFFER, h, NULL, NUM_NF_READINGS, REG_CLR_BIT, REG_READ, REG_SET_BIT, REG_WRITE, REGWRITE_BUFFER_FLUSH, u32, udelay(), and val.
Referenced by ar9002_hw_calibrate(), ar9003_hw_calibrate(), and ath9k_hw_reset().
Definition at line 314 of file ath9k_calib.c.
References ah, ATH9K_NF_TOO_HIGH, DBG, DBG2, IS_CHAN_2GHZ, limit, and NUM_NF_READINGS.
Referenced by ath9k_hw_getnf().
int ath9k_hw_getnf | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 346 of file ath9k_calib.c.
References ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF, ath9k_hw_do_getnf(), ath9k_hw_get_nf_thresh(), ath9k_hw_nf_sanitize(), ath9k_hw_update_nfcal_hist_buffer(), c, ath9k_channel::chan, CHANNEL_CW_INT, ath9k_channel::channelFlags, DBG, DBG2, h, ath9k_hw_cal_data::nfcal_pending, ath9k_hw_cal_data::nfCalHist, ath9k_channel::noisefloor, NUM_NF_READINGS, and REG_READ.
Referenced by ar9002_hw_calibrate(), ar9003_hw_calibrate(), and ath9k_hw_reset().
void ath9k_init_nfcal_hist_buffer | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 384 of file ath9k_calib.c.
References ah, AR_PHY_CCA_FILTERWINDOW_LENGTH, ath9k_hw_get_default_nf(), ATH9K_NF_CAL_HIST_MAX, ath9k_channel::channel, CHANNEL_CW_INT, ath9k_channel::channelFlags, h, and NUM_NF_READINGS.
Referenced by ath9k_hw_reset().