Lines Matching refs:fft
76 static int ath9k_get_max_index_ht40(struct ath9k_dfs_fft_40 *fft, in ath9k_get_max_index_ht40() argument
83 is_ctl = fft_bitmap_weight(fft->lower_bins) != 0; in ath9k_get_max_index_ht40()
84 is_ext = fft_bitmap_weight(fft->upper_bins) != 0; in ath9k_get_max_index_ht40()
88 int mag_lower = fft_max_magnitude(fft->lower_bins); in ath9k_get_max_index_ht40()
89 int mag_upper = fft_max_magnitude(fft->upper_bins); in ath9k_get_max_index_ht40()
97 return fft_max_index(fft->lower_bins); in ath9k_get_max_index_ht40()
98 return fft_max_index(fft->upper_bins) + DFS_UPPER_BIN_OFFSET; in ath9k_get_max_index_ht40()
110 struct ath9k_dfs_fft_40 *fft = (struct ath9k_dfs_fft_40 *) data; in ath9k_check_chirping() local
111 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping()
122 if ((datalen % sizeof(*fft)) == 2) { in ath9k_check_chirping()
123 fft = (struct ath9k_dfs_fft_40 *) (data + 2); in ath9k_check_chirping()
130 max_bin[i] = ath9k_get_max_index_ht40(fft + i, is_ctl, in ath9k_check_chirping()
133 struct ath9k_dfs_fft_20 *fft = (struct ath9k_dfs_fft_20 *) data; in ath9k_check_chirping() local
134 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping()
145 max_bin[i] = fft_max_index(fft[i].lower_bins) ^ 0x20; in ath9k_check_chirping()