Lines Matching refs:spectral

177 QDF_STATUS target_if_spectral_fw_hang(struct target_if_spectral *spectral)  in target_if_spectral_fw_hang()  argument
184 if (!spectral) { in target_if_spectral_fw_hang()
189 pdev = spectral->pdev_obj; in target_if_spectral_fw_hang()
211 GET_WMI_HDL_FROM_PDEV(spectral->pdev_obj), &param); in target_if_spectral_fw_hang()
859 target_if_spectral_unify_cfreq_format(struct target_if_spectral *spectral, in target_if_spectral_unify_cfreq_format() argument
869 if (!spectral) { in target_if_spectral_unify_cfreq_format()
873 if (!spectral->pdev_obj) { in target_if_spectral_unify_cfreq_format()
878 psoc = wlan_pdev_get_psoc(spectral->pdev_obj); in target_if_spectral_unify_cfreq_format()
888 spectral->rparams.fragmentation_160[smode]) { in target_if_spectral_unify_cfreq_format()
899 if (spectral->spectral_gen == SPECTRAL_GEN3) in target_if_spectral_unify_cfreq_format()
914 (spectral->pdev_obj, pri20_freq, CH_WIDTH_80MHZ, in target_if_spectral_unify_cfreq_format()
962 target_if_populate_det_start_end_freqs(struct target_if_spectral *spectral, in target_if_populate_det_start_end_freqs() argument
975 if (!spectral) { in target_if_populate_det_start_end_freqs()
984 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_populate_det_start_end_freqs()
986 ch_width = spectral->report_info[smode].sscan_bw; in target_if_populate_det_start_end_freqs()
987 is_fragmentation_160 = spectral->rparams.fragmentation_160[smode]; in target_if_populate_det_start_end_freqs()
989 rpt_info = &spectral->report_info[smode]; in target_if_populate_det_start_end_freqs()
991 qdf_spin_lock_bh(&spectral->detector_list_lock); in target_if_populate_det_start_end_freqs()
992 detector_list = &spectral->detector_list[smode][ch_width]; in target_if_populate_det_start_end_freqs()
995 qdf_spin_lock_bh(&spectral->session_det_map_lock); in target_if_populate_det_start_end_freqs()
996 det_map = &spectral->det_map in target_if_populate_det_start_end_freqs()
1030 qdf_spin_unlock_bh(&spectral->session_det_map_lock); in target_if_populate_det_start_end_freqs()
1031 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_populate_det_start_end_freqs()
1033 &spectral->session_report_info_lock); in target_if_populate_det_start_end_freqs()
1046 qdf_spin_unlock_bh(&spectral->session_det_map_lock); in target_if_populate_det_start_end_freqs()
1049 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_populate_det_start_end_freqs()
1050 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_populate_det_start_end_freqs()
1056 target_if_populate_fft_bins_info(struct target_if_spectral *spectral, in target_if_populate_fft_bins_info() argument
1070 if (!spectral) { in target_if_populate_fft_bins_info()
1079 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_populate_fft_bins_info()
1081 ch_width = spectral->report_info[smode].sscan_bw; in target_if_populate_fft_bins_info()
1082 is_fragmentation_160 = spectral->rparams.fragmentation_160[smode]; in target_if_populate_fft_bins_info()
1083 spectral_fft_size = spectral->params[smode].ss_fft_size; in target_if_populate_fft_bins_info()
1084 rpt_mode = spectral->params[smode].ss_rpt_mode; in target_if_populate_fft_bins_info()
1089 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_populate_fft_bins_info()
1095 qdf_spin_lock_bh(&spectral->detector_list_lock); in target_if_populate_fft_bins_info()
1096 detector_list = &spectral->detector_list[smode][ch_width]; in target_if_populate_fft_bins_info()
1101 qdf_spin_lock_bh(&spectral->session_det_map_lock); in target_if_populate_fft_bins_info()
1102 det_map = &spectral->det_map in target_if_populate_fft_bins_info()
1105 dest_det_info->lb_extrabins_num = spectral->lb_edge_extrabins; in target_if_populate_fft_bins_info()
1106 dest_det_info->rb_extrabins_num = spectral->rb_edge_extrabins; in target_if_populate_fft_bins_info()
1111 spectral->report_info[smode].pri20_freq > in target_if_populate_fft_bins_info()
1112 spectral->report_info[smode].sscan_cfreq1) { in target_if_populate_fft_bins_info()
1124 spectral->report_info[smode].pri20_freq > in target_if_populate_fft_bins_info()
1125 spectral->report_info[smode].sscan_cfreq1) in target_if_populate_fft_bins_info()
1135 qdf_spin_unlock_bh(&spectral->session_det_map_lock); in target_if_populate_fft_bins_info()
1136 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_populate_fft_bins_info()
1138 &spectral->session_report_info_lock); in target_if_populate_fft_bins_info()
1163 qdf_spin_unlock_bh(&spectral->session_det_map_lock); in target_if_populate_fft_bins_info()
1165 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_populate_fft_bins_info()
1166 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_populate_fft_bins_info()
1187 struct target_if_spectral *spectral, in target_if_update_session_info_from_report_ctx() argument
1203 if (!spectral) { in target_if_update_session_info_from_report_ctx()
1209 spectral->pdev_obj, in target_if_update_session_info_from_report_ctx()
1224 if (!spectral->pdev_obj) { in target_if_update_session_info_from_report_ctx()
1229 psoc = wlan_pdev_get_psoc(spectral->pdev_obj); in target_if_update_session_info_from_report_ctx()
1235 p_sops = GET_TARGET_IF_SPECTRAL_OPS(spectral); in target_if_update_session_info_from_report_ctx()
1237 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_update_session_info_from_report_ctx()
1239 rpt_info = &spectral->report_info[smode]; in target_if_update_session_info_from_report_ctx()
1241 is_fragmentation_160 = spectral->rparams.fragmentation_160[smode]; in target_if_update_session_info_from_report_ctx()
1243 rpt_info->pri20_freq = p_sops->get_current_channel(spectral, smode); in target_if_update_session_info_from_report_ctx()
1252 spectral, &rpt_info->cfreq1, &rpt_info->cfreq2, in target_if_update_session_info_from_report_ctx()
1256 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_update_session_info_from_report_ctx()
1272 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_update_session_info_from_report_ctx()
1280 marker = &spectral->rparams.marker[smode]; in target_if_update_session_info_from_report_ctx()
1289 qdf_spin_lock_bh(&spectral->detector_list_lock); in target_if_update_session_info_from_report_ctx()
1290 detector_list = &spectral->detector_list[smode][ch_width]; in target_if_update_session_info_from_report_ctx()
1292 qdf_spin_lock_bh(&spectral->session_det_map_lock); in target_if_update_session_info_from_report_ctx()
1293 det_map = &spectral->det_map[detector_list->detectors[0]]; in target_if_update_session_info_from_report_ctx()
1303 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_update_session_info_from_report_ctx()
1342 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_update_session_info_from_report_ctx()
1343 qdf_spin_unlock_bh(&spectral->session_det_map_lock); in target_if_update_session_info_from_report_ctx()
1344 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_update_session_info_from_report_ctx()
1346 ret = target_if_populate_fft_bins_info(spectral, smode); in target_if_update_session_info_from_report_ctx()
1352 ret = target_if_populate_det_start_end_freqs(spectral, smode); in target_if_update_session_info_from_report_ctx()
1377 struct target_if_spectral *spectral, in target_if_spectral_populate_samp_params_gen2() argument
1392 if (!spectral) { in target_if_spectral_populate_samp_params_gen2()
1405 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_spectral_populate_samp_params_gen2()
1406 ch_width = spectral->report_info[smode].sscan_bw; in target_if_spectral_populate_samp_params_gen2()
1407 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_spectral_populate_samp_params_gen2()
1416 if (spectral->is_sec80_rssi_war_required && phyerr_info->seg_id == 1) in target_if_spectral_populate_samp_params_gen2()
1417 params->rssi = target_if_get_combrssi_sec80_seg_gen2(spectral, in target_if_spectral_populate_samp_params_gen2()
1421 ((spectral->params[smode].ss_chn_mask & 0x8) ? 3 : in target_if_spectral_populate_samp_params_gen2()
1422 (spectral->params[smode].ss_chn_mask & 0x4) ? 2 : in target_if_spectral_populate_samp_params_gen2()
1423 (spectral->params[smode].ss_chn_mask & 0x2) ? 1 : 0); in target_if_spectral_populate_samp_params_gen2()
1425 ((spectral->params[smode].ss_chn_mask & 0x1) ? 0 : in target_if_spectral_populate_samp_params_gen2()
1426 (spectral->params[smode].ss_chn_mask & 0x2) ? 1 : in target_if_spectral_populate_samp_params_gen2()
1427 (spectral->params[smode].ss_chn_mask & 0x4) ? 2 : 3); in target_if_spectral_populate_samp_params_gen2()
1433 if (spectral->upper_is_control) in target_if_spectral_populate_samp_params_gen2()
1438 if (spectral->lower_is_control) in target_if_spectral_populate_samp_params_gen2()
1443 if (spectral->sc_spectral_noise_pwr_cal) { in target_if_spectral_populate_samp_params_gen2()
1483 target_if_process_phyerr_gen2(struct target_if_spectral *spectral, in target_if_process_phyerr_gen2() argument
1533 if (!spectral) { in target_if_process_phyerr_gen2()
1538 p_sops = GET_TARGET_IF_SPECTRAL_OPS(spectral); in target_if_process_phyerr_gen2()
1540 if (!p_sops->is_spectral_active(spectral, in target_if_process_phyerr_gen2()
1563 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_process_phyerr_gen2()
1564 ch_width = spectral->report_info[SPECTRAL_SCAN_MODE_NORMAL].sscan_bw; in target_if_process_phyerr_gen2()
1565 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_process_phyerr_gen2()
1569 if (spectral->is_160_format) in target_if_process_phyerr_gen2()
1586 spectral->is_160_format); in target_if_process_phyerr_gen2()
1593 spectral->diag_stats.spectral_mismatch++; in target_if_process_phyerr_gen2()
1600 if (spectral->is_160_format) { in target_if_process_phyerr_gen2()
1608 &spectral->diag_stats; in target_if_process_phyerr_gen2()
1618 spectral, FFT_BIN_SIZE_1BYTE, in target_if_process_phyerr_gen2()
1634 ret = target_if_spectral_populate_samp_params_gen2(spectral, in target_if_process_phyerr_gen2()
1642 ret = target_if_spectral_fill_samp_msg(spectral, &params); in target_if_process_phyerr_gen2()
1648 if (spectral->is_160_format && in target_if_process_phyerr_gen2()
1658 &spectral->diag_stats; in target_if_process_phyerr_gen2()
1670 spectral->diag_stats.spectral_mismatch++; in target_if_process_phyerr_gen2()
1675 spectral->diag_stats.spectral_no_sec80_sfft++; in target_if_process_phyerr_gen2()
1686 &spectral->diag_stats; in target_if_process_phyerr_gen2()
1711 spectral, phyerr_info, in target_if_process_phyerr_gen2()
1717 ret = target_if_spectral_fill_samp_msg(spectral, in target_if_process_phyerr_gen2()
1738 free_samp_msg_skb(spectral, SPECTRAL_SCAN_MODE_NORMAL); in target_if_process_phyerr_gen2()
1744 target_if_process_phyerr_gen2(struct target_if_spectral *spectral, in target_if_process_phyerr_gen2() argument
1799 GET_TARGET_IF_SPECTRAL_OPS(spectral); in target_if_process_phyerr_gen2()
1810 spectral->ch_width[SPECTRAL_SCAN_MODE_NORMAL]; in target_if_process_phyerr_gen2()
1812 if (spectral->is_160_format) in target_if_process_phyerr_gen2()
1829 spectral->is_160_format); in target_if_process_phyerr_gen2()
1834 spectral->is_160_format); in target_if_process_phyerr_gen2()
1843 spectral->diag_stats.spectral_mismatch++; in target_if_process_phyerr_gen2()
1852 if (spectral->is_160_format) { in target_if_process_phyerr_gen2()
1860 &spectral->diag_stats; in target_if_process_phyerr_gen2()
1869 tstamp = p_sops->get_tsf64(spectral) & SPECTRAL_TSMASK; in target_if_process_phyerr_gen2()
1873 if (spectral->upper_is_control) in target_if_process_phyerr_gen2()
1878 if (spectral->lower_is_control) in target_if_process_phyerr_gen2()
1887 if (spectral->sc_spectral_noise_pwr_cal) { in target_if_process_phyerr_gen2()
1923 ((spectral->params[params.smode].ss_chn_mask & 0x8) ? 3 : in target_if_process_phyerr_gen2()
1924 (spectral->params[params.smode].ss_chn_mask & 0x4) ? 2 : in target_if_process_phyerr_gen2()
1925 (spectral->params[params.smode].ss_chn_mask & 0x2) ? 1 : 0); in target_if_process_phyerr_gen2()
1927 ((spectral->params[params.smode].ss_chn_mask & 0x1) ? 0 : in target_if_process_phyerr_gen2()
1928 (spectral->params[params.smode].ss_chn_mask & 0x2) ? 1 : in target_if_process_phyerr_gen2()
1929 (spectral->params[params.smode].ss_chn_mask & 0x4) ? 2 : 3); in target_if_process_phyerr_gen2()
1943 params.freq = p_sops->get_current_channel(spectral, in target_if_process_phyerr_gen2()
1969 if (spectral->is_160_format && in target_if_process_phyerr_gen2()
1980 &spectral->diag_stats; in target_if_process_phyerr_gen2()
1992 spectral->diag_stats.spectral_mismatch++; in target_if_process_phyerr_gen2()
1997 spectral->diag_stats.spectral_no_sec80_sfft++; in target_if_process_phyerr_gen2()
2008 &spectral->diag_stats; in target_if_process_phyerr_gen2()
2029 if (spectral->is_sec80_rssi_war_required) in target_if_process_phyerr_gen2()
2032 (spectral, &search_fft_info_sec80); in target_if_process_phyerr_gen2()
2057 &spectral->classifier_params, in target_if_process_phyerr_gen2()
2061 target_if_spectral_create_samp_msg(spectral, &params); in target_if_process_phyerr_gen2()
2086 struct target_if_spectral *spectral, in target_if_get_combrssi_sec80_seg_gen2() argument
2100 spectral->ch_width[SPECTRAL_SCAN_MODE_NORMAL]); in target_if_get_combrssi_sec80_seg_gen2()
2199 target_if_spectral_copy_fft_bins(struct target_if_spectral *spectral, in target_if_spectral_copy_fft_bins() argument
2217 if (!spectral) { in target_if_spectral_copy_fft_bins()
2232 rparams = &spectral->rparams; in target_if_spectral_copy_fft_bins()
2449 target_if_dump_fft_report_gen3(struct target_if_spectral *spectral, in target_if_dump_fft_report_gen3() argument
2462 if (!spectral) { in target_if_dump_fft_report_gen3()
2468 if (!spectral->params[smode].ss_rpt_mode) in target_if_dump_fft_report_gen3()
2485 fft_bin_len = fft_hdr_length - spectral->rparams.fft_report_hdr_len; in target_if_dump_fft_report_gen3()
2488 spectral->params[smode].ss_rpt_mode, in target_if_dump_fft_report_gen3()
2489 &spectral->len_adj_swar, &fft_bin_size); in target_if_dump_fft_report_gen3()
2491 if ((spectral->params[smode].ss_rpt_mode == 2) && in target_if_dump_fft_report_gen3()
2492 spectral->len_adj_swar.inband_fftbin_size_adj) in target_if_dump_fft_report_gen3()
2509 if ((spectral->params[smode].ss_rpt_mode == 1) && in target_if_dump_fft_report_gen3()
2510 spectral->len_adj_swar.null_fftbin_adj) in target_if_dump_fft_report_gen3()
2512 else if ((spectral->params[smode].ss_rpt_mode == 2) && in target_if_dump_fft_report_gen3()
2513 spectral->len_adj_swar.inband_fftbin_size_adj) { in target_if_dump_fft_report_gen3()
2546 spectral, &p_fft_report->buf, in target_if_dump_fft_report_gen3()
2548 spectral->params[smode].ss_pwr_format); in target_if_dump_fft_report_gen3()
2565 target_if_160mhz_delivery_state_change(struct target_if_spectral *spectral, in target_if_160mhz_delivery_state_change() argument
2575 if (!is_ch_width_160_or_80p80(spectral->report_info[smode].sscan_bw)) { in target_if_160mhz_delivery_state_change()
2577 spectral->report_info[smode].sscan_bw, smode); in target_if_160mhz_delivery_state_change()
2581 switch (spectral->state_160mhz_delivery[smode]) { in target_if_160mhz_delivery_state_change()
2584 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2588 spectral->diag_stats.spectral_vhtseg1id_mismatch++; in target_if_160mhz_delivery_state_change()
2594 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2597 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2600 spectral->diag_stats.spectral_vhtseg2id_mismatch++; in target_if_160mhz_delivery_state_change()
2612 target_if_160mhz_delivery_state_change(struct target_if_spectral *spectral, in target_if_160mhz_delivery_state_change() argument
2622 if (!is_ch_width_160_or_80p80(spectral->ch_width[smode])) { in target_if_160mhz_delivery_state_change()
2624 spectral->ch_width[smode], smode); in target_if_160mhz_delivery_state_change()
2628 switch (spectral->state_160mhz_delivery[smode]) { in target_if_160mhz_delivery_state_change()
2631 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2635 spectral->diag_stats.spectral_vhtseg1id_mismatch++; in target_if_160mhz_delivery_state_change()
2641 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2644 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2647 spectral->diag_stats.spectral_vhtseg2id_mismatch++; in target_if_160mhz_delivery_state_change()
2653 reset_160mhz_delivery_state_machine(spectral, smode); in target_if_160mhz_delivery_state_change()
2658 spectral->state_160mhz_delivery[smode] = in target_if_160mhz_delivery_state_change()
2775 target_if_verify_sig_and_tag_gen3(struct target_if_spectral *spectral, in target_if_verify_sig_and_tag_gen3() argument
2797 spectral->diag_stats.spectral_mismatch++; in target_if_verify_sig_and_tag_gen3()
2802 spectral->diag_stats.spectral_mismatch++; in target_if_verify_sig_and_tag_gen3()
2824 struct target_if_spectral *spectral, in target_if_spectral_check_buffer_poisoning() argument
2834 if (!spectral) { in target_if_spectral_check_buffer_poisoning()
2839 if (!spectral->dbr_buff_debug) in target_if_spectral_check_buffer_poisoning()
2848 if (spectral->params[smode].ss_rpt_mode > 0) in target_if_spectral_check_buffer_poisoning()
2853 if (spectral->params[smode].ss_rpt_mode > 1) { in target_if_spectral_check_buffer_poisoning()
2855 if (spectral->len_adj_swar.fftbin_size_war == in target_if_spectral_check_buffer_poisoning()
2858 else if (spectral->len_adj_swar.fftbin_size_war == in target_if_spectral_check_buffer_poisoning()
2882 target_if_spectral_fw_hang(spectral); in target_if_spectral_check_buffer_poisoning()
2887 static void target_if_spectral_verify_ts(struct target_if_spectral *spectral, in target_if_spectral_verify_ts() argument
2891 if (!spectral) { in target_if_spectral_verify_ts()
2901 if (!spectral->dbr_buff_debug) in target_if_spectral_verify_ts()
2904 if (spectral->prev_tstamp[detector_id]) { in target_if_spectral_verify_ts()
2905 if (current_ts == spectral->prev_tstamp[detector_id]) { in target_if_spectral_verify_ts()
2908 target_if_spectral_fw_hang(spectral); in target_if_spectral_verify_ts()
2911 spectral->prev_tstamp[detector_id] = current_ts; in target_if_spectral_verify_ts()
2914 static void target_if_spectral_verify_ts(struct target_if_spectral *spectral, in target_if_spectral_verify_ts() argument
2917 if (!spectral) { in target_if_spectral_verify_ts()
2922 if (!spectral->dbr_buff_debug) in target_if_spectral_verify_ts()
2925 if (spectral->prev_tstamp) { in target_if_spectral_verify_ts()
2926 if (current_ts == spectral->prev_tstamp) { in target_if_spectral_verify_ts()
2929 target_if_spectral_fw_hang(spectral); in target_if_spectral_verify_ts()
2932 spectral->prev_tstamp = current_ts; in target_if_spectral_verify_ts()
2937 struct target_if_spectral *spectral, in target_if_spectral_check_buffer_poisoning() argument
2944 static void target_if_spectral_verify_ts(struct target_if_spectral *spectral, in target_if_spectral_verify_ts() argument
2950 static void target_if_spectral_verify_ts(struct target_if_spectral *spectral, in target_if_spectral_verify_ts() argument
3005 struct target_if_spectral *spectral, in target_if_byte_swap_spectral_headers_gen3() argument
3012 if (!data || !spectral) { in target_if_byte_swap_spectral_headers_gen3()
3014 data, spectral); in target_if_byte_swap_spectral_headers_gen3()
3028 ptr32 += (spectral->rparams.ssummary_padding_bytes >> 2); in target_if_byte_swap_spectral_headers_gen3()
3084 struct target_if_spectral *spectral) in target_if_consume_sscan_summary_report_gen3() argument
3102 if (!spectral) { in target_if_consume_sscan_summary_report_gen3()
3109 spectral, *data, in target_if_consume_sscan_summary_report_gen3()
3122 spectral->rparams.num_spectral_detectors) { in target_if_consume_sscan_summary_report_gen3()
3123 spectral->diag_stats.spectral_invalid_detector_id++; in target_if_consume_sscan_summary_report_gen3()
3126 spectral->rparams.num_spectral_detectors); in target_if_consume_sscan_summary_report_gen3()
3146 switch (spectral->rparams.version) { in target_if_consume_sscan_summary_report_gen3()
3161 spectral->rparams.version); in target_if_consume_sscan_summary_report_gen3()
3168 if (!spectral->rparams.ssummary_padding_bytes) in target_if_consume_sscan_summary_report_gen3()
3172 wlan_pdev_nif_feat_ext_cap_get(spectral->pdev_obj, in target_if_consume_sscan_summary_report_gen3()
3217 struct target_if_spectral *spectral, in target_if_process_sfft_report_gen3() argument
3240 if (!spectral) { in target_if_process_sfft_report_gen3()
3250 p_sops = GET_TARGET_IF_SPECTRAL_OPS(spectral); in target_if_process_sfft_report_gen3()
3254 spectral, data, TLV_TAG_SEARCH_FFT_REPORT_GEN3) != 0) { in target_if_process_sfft_report_gen3()
3287 spectral->rparams.num_spectral_detectors) { in target_if_process_sfft_report_gen3()
3288 spectral->diag_stats.spectral_invalid_detector_id++; in target_if_process_sfft_report_gen3()
3291 spectral->rparams.num_spectral_detectors); in target_if_process_sfft_report_gen3()
3296 &spectral->rparams); in target_if_process_sfft_report_gen3()
3305 p_sfft->last_raw_timestamp = spectral->timestamp_war. in target_if_process_sfft_report_gen3()
3308 &spectral->timestamp_war, in target_if_process_sfft_report_gen3()
3319 target_if_spectral_verify_ts(spectral, data, in target_if_process_sfft_report_gen3()
3328 switch (spectral->rparams.version) { in target_if_process_sfft_report_gen3()
3367 spectral->rparams.version); in target_if_process_sfft_report_gen3()
3391 fft_hdr_length - spectral->rparams.fft_report_hdr_len, in target_if_process_sfft_report_gen3()
3392 spectral->params[spectral_mode].ss_rpt_mode, in target_if_process_sfft_report_gen3()
3393 &spectral->len_adj_swar, in target_if_process_sfft_report_gen3()
3405 ret = p_sops->byte_swap_fft_bins(&spectral->rparams, in target_if_process_sfft_report_gen3()
3432 struct target_if_spectral *spectral, in target_if_spectral_populate_samp_params_gen3() argument
3447 if (!spectral) { in target_if_spectral_populate_samp_params_gen3()
3476 &spectral->rparams); in target_if_spectral_populate_samp_params_gen3()
3477 vdev = target_if_spectral_get_vdev(spectral, spectral_mode); in target_if_spectral_populate_samp_params_gen3()
3509 struct target_if_spectral *spectral, in target_if_consume_spectral_report_gen3() argument
3548 if (!spectral) { in target_if_consume_spectral_report_gen3()
3554 qdf_spin_lock_bh(&spectral->spectral_lock); in target_if_consume_spectral_report_gen3()
3555 spectral_dp_stats = &spectral->data_stats; in target_if_consume_spectral_report_gen3()
3564 p_sops = GET_TARGET_IF_SPECTRAL_OPS(spectral); in target_if_consume_spectral_report_gen3()
3569 ret = p_sops->byte_swap_headers(spectral, data); in target_if_consume_spectral_report_gen3()
3579 spectral); in target_if_consume_spectral_report_gen3()
3587 &spectral->rparams); in target_if_consume_spectral_report_gen3()
3595 if (!p_sops->is_spectral_active(spectral, spectral_mode)) { in target_if_consume_spectral_report_gen3()
3604 spectral, in target_if_consume_spectral_report_gen3()
3612 qdf_spin_lock_bh(&spectral->detector_list_lock); in target_if_consume_spectral_report_gen3()
3613 det_list = &spectral->detector_list[spectral_mode] in target_if_consume_spectral_report_gen3()
3614 [spectral->report_info[spectral_mode].sscan_bw]; in target_if_consume_spectral_report_gen3()
3619 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_consume_spectral_report_gen3()
3626 qdf_spin_unlock_bh(&spectral->detector_list_lock); in target_if_consume_spectral_report_gen3()
3629 spectral, in target_if_consume_spectral_report_gen3()
3638 qdf_spin_lock_bh(&spectral->session_report_info_lock); in target_if_consume_spectral_report_gen3()
3641 spectral->report_info[spectral_mode].sscan_bw) && in target_if_consume_spectral_report_gen3()
3642 spectral->rparams.fragmentation_160[spectral_mode]) { in target_if_consume_spectral_report_gen3()
3644 spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
3648 &spectral->session_report_info_lock); in target_if_consume_spectral_report_gen3()
3652 qdf_spin_unlock_bh(&spectral->session_report_info_lock); in target_if_consume_spectral_report_gen3()
3656 target_if_dump_fft_report_gen3(spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
3659 target_if_spectral_check_buffer_poisoning(spectral, report, in target_if_consume_spectral_report_gen3()
3665 spectral, p_sfft, in target_if_consume_spectral_report_gen3()
3674 ret = target_if_spectral_fill_samp_msg(spectral, &params); in target_if_consume_spectral_report_gen3()
3680 qdf_spin_unlock_bh(&spectral->spectral_lock); in target_if_consume_spectral_report_gen3()
3681 ret = target_if_spectral_is_finite_scan(spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
3689 ret = target_if_spectral_finite_scan_update(spectral, in target_if_consume_spectral_report_gen3()
3699 qdf_spin_unlock_bh(&spectral->spectral_lock); in target_if_consume_spectral_report_gen3()
3705 reset_160mhz_delivery_state_machine(spectral, spectral_mode); in target_if_consume_spectral_report_gen3()
3712 struct target_if_spectral *spectral, in target_if_consume_spectral_report_gen3() argument
3749 GET_TARGET_IF_SPECTRAL_OPS(spectral); in target_if_consume_spectral_report_gen3()
3766 ret = p_sops->byte_swap_headers(spectral, data); in target_if_consume_spectral_report_gen3()
3775 spectral, data, in target_if_consume_spectral_report_gen3()
3787 if (detector_id >= spectral->rparams.num_spectral_detectors) { in target_if_consume_spectral_report_gen3()
3788 spectral->diag_stats.spectral_invalid_detector_id++; in target_if_consume_spectral_report_gen3()
3795 &spectral->rparams); in target_if_consume_spectral_report_gen3()
3803 if (!p_sops->is_spectral_active(spectral, spectral_mode)) { in target_if_consume_spectral_report_gen3()
3808 ret = target_if_spectral_is_finite_scan(spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
3816 ret = target_if_spectral_finite_scan_update(spectral, in target_if_consume_spectral_report_gen3()
3825 &spectral->rparams); in target_if_consume_spectral_report_gen3()
3828 data += spectral->rparams.ssummary_padding_bytes; in target_if_consume_spectral_report_gen3()
3832 if (is_primaryseg_expected(spectral, spectral_mode)) { in target_if_consume_spectral_report_gen3()
3842 spectral, data, in target_if_consume_spectral_report_gen3()
3862 &spectral->rparams); in target_if_consume_spectral_report_gen3()
3873 if (detector_id > spectral->rparams.num_spectral_detectors) { in target_if_consume_spectral_report_gen3()
3874 spectral->diag_stats.spectral_invalid_detector_id++; in target_if_consume_spectral_report_gen3()
3882 fft_hdr_length - spectral->rparams.fft_report_hdr_len, in target_if_consume_spectral_report_gen3()
3883 spectral->params[spectral_mode].ss_rpt_mode, in target_if_consume_spectral_report_gen3()
3884 &spectral->len_adj_swar, &fft_bin_size); in target_if_consume_spectral_report_gen3()
3886 params.last_raw_timestamp = spectral->timestamp_war. in target_if_consume_spectral_report_gen3()
3891 &spectral->timestamp_war, in target_if_consume_spectral_report_gen3()
3898 params.timestamp_war_offset = spectral->timestamp_war. in target_if_consume_spectral_report_gen3()
3900 params.target_reset_count = spectral->timestamp_war. in target_if_consume_spectral_report_gen3()
3904 if (is_ch_width_160_or_80p80(spectral->ch_width in target_if_consume_spectral_report_gen3()
3905 [spectral_mode]) && spectral->rparams. in target_if_consume_spectral_report_gen3()
3908 spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
3916 vdev = target_if_spectral_get_vdev(spectral, spectral_mode); in target_if_consume_spectral_report_gen3()
3920 spectral, spectral_mode); in target_if_consume_spectral_report_gen3()
3940 params.freq = p_sops->get_current_channel(spectral, in target_if_consume_spectral_report_gen3()
3942 params.agile_freq1 = spectral->params[SPECTRAL_SCAN_MODE_AGILE]. in target_if_consume_spectral_report_gen3()
3944 params.agile_freq2 = spectral->params[SPECTRAL_SCAN_MODE_AGILE]. in target_if_consume_spectral_report_gen3()
3949 if (is_ch_width_160_or_80p80(spectral->ch_width in target_if_consume_spectral_report_gen3()
3950 [spectral_mode]) && !spectral->rparams. in target_if_consume_spectral_report_gen3()
3955 if (!spectral->pdev_obj) { in target_if_consume_spectral_report_gen3()
3959 psoc = wlan_pdev_get_psoc(spectral->pdev_obj); in target_if_consume_spectral_report_gen3()
3976 marker = &spectral->rparams.marker[spectral_mode]; in target_if_consume_spectral_report_gen3()
3987 if (spectral->ch_width[spectral_mode] == in target_if_consume_spectral_report_gen3()
4008 &spectral->rparams, in target_if_consume_spectral_report_gen3()
4017 target_if_dump_fft_report_gen3(spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
4020 target_if_spectral_verify_ts(spectral, report->data, in target_if_consume_spectral_report_gen3()
4022 } else if (is_secondaryseg_expected(spectral, spectral_mode)) { in target_if_consume_spectral_report_gen3()
4032 spectral, data, in target_if_consume_spectral_report_gen3()
4052 &spectral->rparams); in target_if_consume_spectral_report_gen3()
4063 if (detector_id > spectral->rparams.num_spectral_detectors) { in target_if_consume_spectral_report_gen3()
4064 spectral->diag_stats.spectral_invalid_detector_id++; in target_if_consume_spectral_report_gen3()
4072 fft_hdr_length - spectral->rparams.fft_report_hdr_len, in target_if_consume_spectral_report_gen3()
4073 spectral->params[spectral_mode].ss_rpt_mode, in target_if_consume_spectral_report_gen3()
4074 &spectral->len_adj_swar, &fft_bin_size); in target_if_consume_spectral_report_gen3()
4078 if (is_ch_width_160_or_80p80(spectral->ch_width in target_if_consume_spectral_report_gen3()
4079 [spectral_mode]) && spectral->rparams. in target_if_consume_spectral_report_gen3()
4082 spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
4090 vdev = target_if_spectral_get_vdev(spectral, spectral_mode); in target_if_consume_spectral_report_gen3()
4094 (spectral, spectral_mode); in target_if_consume_spectral_report_gen3()
4132 &spectral->rparams, in target_if_consume_spectral_report_gen3()
4142 target_if_dump_fft_report_gen3(spectral, spectral_mode, in target_if_consume_spectral_report_gen3()
4150 target_if_spectral_check_buffer_poisoning(spectral, report, in target_if_consume_spectral_report_gen3()
4153 &spectral->classifier_params, in target_if_consume_spectral_report_gen3()
4157 target_if_spectral_create_samp_msg(spectral, &params); in target_if_consume_spectral_report_gen3()
4164 reset_160mhz_delivery_state_machine(spectral, spectral_mode); in target_if_consume_spectral_report_gen3()
4175 struct target_if_spectral *spectral; in target_if_spectral_process_report_gen3() local
4180 spectral = get_target_if_spectral_handle_from_pdev(pdev); in target_if_spectral_process_report_gen3()
4181 if (!spectral) { in target_if_spectral_process_report_gen3()
4186 spectral_dp_stats = &spectral->data_stats; in target_if_spectral_process_report_gen3()
4210 samp_msg_index = spectral->spectral_sent_msg; in target_if_spectral_process_report_gen3()
4212 ret = target_if_consume_spectral_report_gen3(spectral, &report); in target_if_spectral_process_report_gen3()
4216 (ret != 0 || spectral->spectral_sent_msg == samp_msg_index + 1)) in target_if_spectral_process_report_gen3()