Searched refs:ATH5K_NF_CAL_HIST_MAX (Results 1 – 2 of 2) sorted by relevance
1541 for (i = 0; i < ATH5K_NF_CAL_HIST_MAX; i++) in ath5k_hw_init_nfcal_hist()1553 hist->index = (hist->index + 1) & (ATH5K_NF_CAL_HIST_MAX - 1); in ath5k_hw_update_nfcal_hist()1564 s16 sort[ATH5K_NF_CAL_HIST_MAX]; in ath5k_hw_get_median_noise_floor()1569 for (i = 0; i < ATH5K_NF_CAL_HIST_MAX - 1; i++) { in ath5k_hw_get_median_noise_floor()1570 for (j = 1; j < ATH5K_NF_CAL_HIST_MAX - i; j++) { in ath5k_hw_get_median_noise_floor()1578 for (i = 0; i < ATH5K_NF_CAL_HIST_MAX; i++) { in ath5k_hw_get_median_noise_floor()1582 return sort[(ATH5K_NF_CAL_HIST_MAX - 1) / 2]; in ath5k_hw_get_median_noise_floor()
1169 #define ATH5K_NF_CAL_HIST_MAX 8 macro1172 s16 nfval[ATH5K_NF_CAL_HIST_MAX]; /* last few noise floors */