Lines Matching refs:fft_sample
579 struct fft_sample_ath11k *fft_sample, in ath11k_spectral_process_fft() argument
644 fft_sample->chan_width_mhz = chan_width_mhz; in ath11k_spectral_process_fft()
651 fft_sample->chan_width_mhz = chan_width_mhz; in ath11k_spectral_process_fft()
658 length = sizeof(*fft_sample) - sizeof(struct fft_sample_tlv) + num_bins; in ath11k_spectral_process_fft()
659 fft_sample->tlv.type = ATH_FFT_SAMPLE_ATH11K; in ath11k_spectral_process_fft()
660 fft_sample->tlv.length = __cpu_to_be16(length); in ath11k_spectral_process_fft()
662 fft_sample->tsf = __cpu_to_be32(search.timestamp); in ath11k_spectral_process_fft()
663 fft_sample->max_magnitude = __cpu_to_be16(search.peak_mag); in ath11k_spectral_process_fft()
664 fft_sample->max_index = FIELD_GET(SPECTRAL_FFT_REPORT_INFO0_PEAK_SIGNED_IDX, in ath11k_spectral_process_fft()
668 fft_sample->rssi = __cpu_to_be16(summary->inb_pwr_db); in ath11k_spectral_process_fft()
669 fft_sample->noise = __cpu_to_be32(summary->meta.noise_floor[search.chain_idx]); in ath11k_spectral_process_fft()
672 fft_sample->freq1 = __cpu_to_be16(freq); in ath11k_spectral_process_fft()
675 fft_sample->freq2 = __cpu_to_be16(freq); in ath11k_spectral_process_fft()
682 fft_sample->freq1 = cpu_to_be16(freq); in ath11k_spectral_process_fft()
688 ath11k_spectral_parse_fft(fft_sample->data, fft_report->bins, num_bins, in ath11k_spectral_process_fft()
691 fft_sample->max_exp = ath11k_spectral_get_max_exp(fft_sample->max_index, in ath11k_spectral_process_fft()
694 fft_sample->data); in ath11k_spectral_process_fft()
697 relay_write(ar->spectral.rfs_scan, fft_sample, in ath11k_spectral_process_fft()
710 struct fft_sample_ath11k *fft_sample = NULL; in ath11k_spectral_process_data() local
725 sample_sz = sizeof(*fft_sample) + ATH11K_SPECTRAL_MAX_IB_BINS(ab); in ath11k_spectral_process_data()
726 fft_sample = kmalloc(sample_sz, GFP_ATOMIC); in ath11k_spectral_process_data()
727 if (!fft_sample) { in ath11k_spectral_process_data()
802 memset(fft_sample, 0, sample_sz); in ath11k_spectral_process_data()
804 fft_sample, in ath11k_spectral_process_data()
821 kfree(fft_sample); in ath11k_spectral_process_data()