Searched refs:ATH5K_NF_CAL_HIST_MAX (Results 1 – 2 of 2) sorted by relevance
1542 for (i = 0; i < ATH5K_NF_CAL_HIST_MAX; i++) in ath5k_hw_init_nfcal_hist()1554 hist->index = (hist->index + 1) & (ATH5K_NF_CAL_HIST_MAX - 1); in ath5k_hw_update_nfcal_hist()1570 s16 sorted_nfval[ATH5K_NF_CAL_HIST_MAX]; in ath5k_hw_get_median_noise_floor()1574 sort(sorted_nfval, ATH5K_NF_CAL_HIST_MAX, sizeof(s16), cmps16, NULL); in ath5k_hw_get_median_noise_floor()1575 for (i = 0; i < ATH5K_NF_CAL_HIST_MAX; i++) { in ath5k_hw_get_median_noise_floor()1579 return sorted_nfval[(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 */