Lines Matching refs:spec_priv
28 static void ath_debug_send_fft_sample(struct ath_spec_scan_priv *spec_priv, in ath_debug_send_fft_sample() argument
32 if (!spec_priv->rfs_chan_spec_scan) in ath_debug_send_fft_sample()
37 relay_write(spec_priv->rfs_chan_spec_scan, fft_sample_tlv, length); in ath_debug_send_fft_sample()
139 struct ath_spec_scan_priv *spec_priv,
144 struct ath_spec_scan_priv *spec_priv, in ath_cmn_process_ht20_fft() argument
149 struct ath_common *common = ath9k_hw_common(spec_priv->ah); in ath_cmn_process_ht20_fft()
150 struct ath_hw *ah = spec_priv->ah; in ath_cmn_process_ht20_fft()
241 ath_debug_send_fft_sample(spec_priv, tlv); in ath_cmn_process_ht20_fft()
248 struct ath_spec_scan_priv *spec_priv, in ath_cmn_process_ht20_40_fft() argument
253 struct ath_common *common = ath9k_hw_common(spec_priv->ah); in ath_cmn_process_ht20_40_fft()
254 struct ath_hw *ah = spec_priv->ah; in ath_cmn_process_ht20_40_fft()
436 ath_debug_send_fft_sample(spec_priv, tlv); in ath_cmn_process_ht20_40_fft()
478 ath_cmn_is_fft_buf_full(struct ath_spec_scan_priv *spec_priv) in ath_cmn_is_fft_buf_full() argument
482 struct rchan *rc = spec_priv->rfs_chan_spec_scan; in ath_cmn_is_fft_buf_full()
496 int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_hdr *hdr, in ath_cmn_process_fft() argument
500 struct ath_hw *ah = spec_priv->ah; in ath_cmn_process_fft()
501 struct ath_common *common = ath9k_hw_common(spec_priv->ah); in ath_cmn_process_fft()
534 ret = ath_cmn_is_fft_buf_full(spec_priv); in ath_cmn_process_fft()
647 fft_handler(rs, spec_priv, sample_buf, in ath_cmn_process_fft()
660 ret = fft_handler(rs, spec_priv, sample_start, in ath_cmn_process_fft()
706 struct ath_spec_scan_priv *spec_priv = file->private_data; in read_file_spec_scan_ctl() local
710 switch (spec_priv->spectral_mode) { in read_file_spec_scan_ctl()
729 struct ath_spec_scan_priv *spec_priv) in ath9k_cmn_spectral_scan_trigger() argument
731 struct ath_hw *ah = spec_priv->ah; in ath9k_cmn_spectral_scan_trigger()
753 ath9k_cmn_spectral_scan_config(common, spec_priv, spec_priv->spectral_mode); in ath9k_cmn_spectral_scan_trigger()
760 struct ath_spec_scan_priv *spec_priv, in ath9k_cmn_spectral_scan_config() argument
763 struct ath_hw *ah = spec_priv->ah; in ath9k_cmn_spectral_scan_config()
772 spec_priv->spec_config.enabled = 0; in ath9k_cmn_spectral_scan_config()
778 spec_priv->spec_config.endless = 1; in ath9k_cmn_spectral_scan_config()
779 spec_priv->spec_config.enabled = 1; in ath9k_cmn_spectral_scan_config()
783 spec_priv->spec_config.endless = 0; in ath9k_cmn_spectral_scan_config()
784 spec_priv->spec_config.enabled = 1; in ath9k_cmn_spectral_scan_config()
791 ath9k_hw_ops(ah)->spectral_scan_config(ah, &spec_priv->spec_config); in ath9k_cmn_spectral_scan_config()
794 spec_priv->spectral_mode = spectral_mode; in ath9k_cmn_spectral_scan_config()
804 struct ath_spec_scan_priv *spec_priv = file->private_data; in write_file_spec_scan_ctl() local
805 struct ath_common *common = ath9k_hw_common(spec_priv->ah); in write_file_spec_scan_ctl()
819 ath9k_cmn_spectral_scan_trigger(common, spec_priv); in write_file_spec_scan_ctl()
821 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_BACKGROUND); in write_file_spec_scan_ctl()
824 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_CHANSCAN); in write_file_spec_scan_ctl()
827 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_MANUAL); in write_file_spec_scan_ctl()
830 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_DISABLED); in write_file_spec_scan_ctl()
855 struct ath_spec_scan_priv *spec_priv = file->private_data; in read_file_spectral_short_repeat() local
859 len = sprintf(buf, "%d\n", spec_priv->spec_config.short_repeat); in read_file_spectral_short_repeat()
867 struct ath_spec_scan_priv *spec_priv = file->private_data; in write_file_spectral_short_repeat() local
883 spec_priv->spec_config.short_repeat = val; in write_file_spectral_short_repeat()
903 struct ath_spec_scan_priv *spec_priv = file->private_data; in read_file_spectral_count() local
907 len = sprintf(buf, "%d\n", spec_priv->spec_config.count); in read_file_spectral_count()
915 struct ath_spec_scan_priv *spec_priv = file->private_data; in write_file_spectral_count() local
931 spec_priv->spec_config.count = val; in write_file_spectral_count()
951 struct ath_spec_scan_priv *spec_priv = file->private_data; in read_file_spectral_period() local
955 len = sprintf(buf, "%d\n", spec_priv->spec_config.period); in read_file_spectral_period()
963 struct ath_spec_scan_priv *spec_priv = file->private_data; in write_file_spectral_period() local
979 spec_priv->spec_config.period = val; in write_file_spectral_period()
999 struct ath_spec_scan_priv *spec_priv = file->private_data; in read_file_spectral_fft_period() local
1003 len = sprintf(buf, "%d\n", spec_priv->spec_config.fft_period); in read_file_spectral_fft_period()
1011 struct ath_spec_scan_priv *spec_priv = file->private_data; in write_file_spectral_fft_period() local
1027 spec_priv->spec_config.fft_period = val; in write_file_spectral_fft_period()
1073 void ath9k_cmn_spectral_deinit_debug(struct ath_spec_scan_priv *spec_priv) in ath9k_cmn_spectral_deinit_debug() argument
1076 relay_close(spec_priv->rfs_chan_spec_scan); in ath9k_cmn_spectral_deinit_debug()
1077 spec_priv->rfs_chan_spec_scan = NULL; in ath9k_cmn_spectral_deinit_debug()
1082 void ath9k_cmn_spectral_init_debug(struct ath_spec_scan_priv *spec_priv, in ath9k_cmn_spectral_init_debug() argument
1085 spec_priv->rfs_chan_spec_scan = relay_open("spectral_scan", in ath9k_cmn_spectral_init_debug()
1091 debugfs_phy, spec_priv, in ath9k_cmn_spectral_init_debug()
1095 debugfs_phy, spec_priv, in ath9k_cmn_spectral_init_debug()
1099 debugfs_phy, spec_priv, in ath9k_cmn_spectral_init_debug()
1103 debugfs_phy, spec_priv, in ath9k_cmn_spectral_init_debug()
1107 debugfs_phy, spec_priv, in ath9k_cmn_spectral_init_debug()