Lines Matching refs:num_bins
559 static void ath11k_spectral_parse_fft(u8 *outbins, u8 *inbins, int num_bins, u8 fft_sz) in ath11k_spectral_parse_fft() argument
565 while (i < num_bins) { in ath11k_spectral_parse_fft()
583 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
610 num_bins = bin_len / bin_sz; in ath11k_spectral_process_fft()
612 num_bins >>= 1; in ath11k_spectral_process_fft()
614 if (num_bins < ATH11K_SPECTRAL_MIN_IB_BINS || in ath11k_spectral_process_fft()
615 num_bins > ATH11K_SPECTRAL_MAX_IB_BINS(ab) || in ath11k_spectral_process_fft()
616 !is_power_of_2(num_bins)) { in ath11k_spectral_process_fft()
617 ath11k_warn(ab, "Invalid num of bins %d\n", num_bins); in ath11k_spectral_process_fft()
621 check_length = sizeof(*fft_report) + (num_bins * ab->hw_params.spectral.fft_sz); in ath11k_spectral_process_fft()
647 length = sizeof(*fft_sample) - sizeof(struct fft_sample_tlv) + num_bins; in ath11k_spectral_process_fft()
666 ath11k_spectral_parse_fft(fft_sample->data, fft_report->bins, num_bins, in ath11k_spectral_process_fft()
671 num_bins, in ath11k_spectral_process_fft()