/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | common-spectral.c | 27 static void ath_debug_send_fft_sample(struct ath_spec_scan_priv *spec_priv, ath_debug_send_fft_sample() argument 31 if (!spec_priv->rfs_chan_spec_scan) ath_debug_send_fft_sample() 36 relay_write(spec_priv->rfs_chan_spec_scan, fft_sample_tlv, length); ath_debug_send_fft_sample() 40 int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_hdr *hdr, ath_cmn_process_fft() argument 43 struct ath_hw *ah = spec_priv->ah; ath_cmn_process_fft() 44 struct ath_common *common = ath9k_hw_common(spec_priv->ah); ath_cmn_process_fft() 203 ath_debug_send_fft_sample(spec_priv, tlv); ath_cmn_process_fft() 216 struct ath_spec_scan_priv *spec_priv = file->private_data; read_file_spec_scan_ctl() local 220 switch (spec_priv->spectral_mode) { read_file_spec_scan_ctl() 239 struct ath_spec_scan_priv *spec_priv) ath9k_cmn_spectral_scan_trigger() 241 struct ath_hw *ah = spec_priv->ah; ath9k_cmn_spectral_scan_trigger() 263 ath9k_cmn_spectral_scan_config(common, spec_priv, spec_priv->spectral_mode); ath9k_cmn_spectral_scan_trigger() 270 struct ath_spec_scan_priv *spec_priv, ath9k_cmn_spectral_scan_config() 273 struct ath_hw *ah = spec_priv->ah; ath9k_cmn_spectral_scan_config() 282 spec_priv->spec_config.enabled = 0; ath9k_cmn_spectral_scan_config() 288 spec_priv->spec_config.endless = 1; ath9k_cmn_spectral_scan_config() 289 spec_priv->spec_config.enabled = 1; ath9k_cmn_spectral_scan_config() 293 spec_priv->spec_config.endless = 0; ath9k_cmn_spectral_scan_config() 294 spec_priv->spec_config.enabled = 1; ath9k_cmn_spectral_scan_config() 301 ath9k_hw_ops(ah)->spectral_scan_config(ah, &spec_priv->spec_config); ath9k_cmn_spectral_scan_config() 304 spec_priv->spectral_mode = spectral_mode; ath9k_cmn_spectral_scan_config() 314 struct ath_spec_scan_priv *spec_priv = file->private_data; write_file_spec_scan_ctl() local 315 struct ath_common *common = ath9k_hw_common(spec_priv->ah); write_file_spec_scan_ctl() 329 ath9k_cmn_spectral_scan_trigger(common, spec_priv); write_file_spec_scan_ctl() 331 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_BACKGROUND); write_file_spec_scan_ctl() 334 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_CHANSCAN); write_file_spec_scan_ctl() 337 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_MANUAL); write_file_spec_scan_ctl() 340 ath9k_cmn_spectral_scan_config(common, spec_priv, SPECTRAL_DISABLED); write_file_spec_scan_ctl() 365 struct ath_spec_scan_priv *spec_priv = file->private_data; read_file_spectral_short_repeat() local 369 len = sprintf(buf, "%d\n", spec_priv->spec_config.short_repeat); read_file_spectral_short_repeat() 377 struct ath_spec_scan_priv *spec_priv = file->private_data; write_file_spectral_short_repeat() local 393 spec_priv->spec_config.short_repeat = val; write_file_spectral_short_repeat() 413 struct ath_spec_scan_priv *spec_priv = file->private_data; read_file_spectral_count() local 417 len = sprintf(buf, "%d\n", spec_priv->spec_config.count); read_file_spectral_count() 425 struct ath_spec_scan_priv *spec_priv = file->private_data; write_file_spectral_count() local 441 spec_priv->spec_config.count = val; write_file_spectral_count() 461 struct ath_spec_scan_priv *spec_priv = file->private_data; read_file_spectral_period() local 465 len = sprintf(buf, "%d\n", spec_priv->spec_config.period); read_file_spectral_period() 473 struct ath_spec_scan_priv *spec_priv = file->private_data; write_file_spectral_period() local 489 spec_priv->spec_config.period = val; write_file_spectral_period() 509 struct ath_spec_scan_priv *spec_priv = file->private_data; read_file_spectral_fft_period() local 513 len = sprintf(buf, "%d\n", spec_priv->spec_config.fft_period); read_file_spectral_fft_period() 521 struct ath_spec_scan_priv *spec_priv = file->private_data; write_file_spectral_fft_period() local 537 spec_priv->spec_config.fft_period = val; write_file_spectral_fft_period() 583 void ath9k_cmn_spectral_deinit_debug(struct ath_spec_scan_priv *spec_priv) ath9k_cmn_spectral_deinit_debug() argument 586 relay_close(spec_priv->rfs_chan_spec_scan); ath9k_cmn_spectral_deinit_debug() 587 spec_priv->rfs_chan_spec_scan = NULL; ath9k_cmn_spectral_deinit_debug() 592 void ath9k_cmn_spectral_init_debug(struct ath_spec_scan_priv *spec_priv, ath9k_cmn_spectral_init_debug() argument 595 spec_priv->rfs_chan_spec_scan = relay_open("spectral_scan", ath9k_cmn_spectral_init_debug() 601 debugfs_phy, spec_priv, ath9k_cmn_spectral_init_debug() 605 debugfs_phy, spec_priv, ath9k_cmn_spectral_init_debug() 609 debugfs_phy, spec_priv, ath9k_cmn_spectral_init_debug() 613 debugfs_phy, spec_priv, ath9k_cmn_spectral_init_debug() 617 debugfs_phy, spec_priv, ath9k_cmn_spectral_init_debug() 238 ath9k_cmn_spectral_scan_trigger(struct ath_common *common, struct ath_spec_scan_priv *spec_priv) ath9k_cmn_spectral_scan_trigger() argument 269 ath9k_cmn_spectral_scan_config(struct ath_common *common, struct ath_spec_scan_priv *spec_priv, enum spectral_mode spectral_mode) ath9k_cmn_spectral_scan_config() argument
|
H A D | common-spectral.h | 133 void ath9k_cmn_spectral_init_debug(struct ath_spec_scan_priv *spec_priv, struct dentry *debugfs_phy); 134 void ath9k_cmn_spectral_deinit_debug(struct ath_spec_scan_priv *spec_priv); 137 struct ath_spec_scan_priv *spec_priv); 139 struct ath_spec_scan_priv *spec_priv, 141 int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_hdr *hdr,
|
H A D | htc_drv_init.c | 595 priv->spec_priv.ah = priv->ah; ath9k_init_misc() 596 priv->spec_priv.spec_config.enabled = 0; ath9k_init_misc() 597 priv->spec_priv.spec_config.short_repeat = false; ath9k_init_misc() 598 priv->spec_priv.spec_config.count = 8; ath9k_init_misc() 599 priv->spec_priv.spec_config.endless = false; ath9k_init_misc() 600 priv->spec_priv.spec_config.period = 0x12; ath9k_init_misc() 601 priv->spec_priv.spec_config.fft_period = 0x02; ath9k_init_misc()
|
H A D | init.c | 383 sc->spec_priv.ah = sc->sc_ah; ath9k_init_misc() 384 sc->spec_priv.spec_config.enabled = 0; ath9k_init_misc() 385 sc->spec_priv.spec_config.short_repeat = true; ath9k_init_misc() 386 sc->spec_priv.spec_config.count = 8; ath9k_init_misc() 387 sc->spec_priv.spec_config.endless = false; ath9k_init_misc() 388 sc->spec_priv.spec_config.period = 0xFF; ath9k_init_misc() 389 sc->spec_priv.spec_config.fft_period = 0xF; ath9k_init_misc()
|
H A D | htc_drv_debug.c | 484 ath9k_cmn_spectral_deinit_debug(&priv->spec_priv); ath9k_htc_deinit_debug() 497 ath9k_cmn_spectral_init_debug(&priv->spec_priv, priv->debug.debugfs_phy); ath9k_htc_init_debug()
|
H A D | htc.h | 492 struct ath_spec_scan_priv spec_priv; member in struct:ath9k_htc_priv
|
H A D | debug.c | 1299 ath9k_cmn_spectral_deinit_debug(&sc->spec_priv); ath9k_deinit_debug() 1319 ath9k_cmn_spectral_init_debug(&sc->spec_priv, sc->debug.debugfs_phy); ath9k_init_debug()
|
H A D | channel.c | 95 sc->spec_priv.spectral_mode == SPECTRAL_CHANSCAN) ath_set_channel() 96 ath9k_cmn_spectral_scan_trigger(common, &sc->spec_priv); ath_set_channel()
|
H A D | htc_drv_main.c | 319 priv->spec_priv.spectral_mode == SPECTRAL_CHANSCAN) ath9k_htc_set_channel() 320 ath9k_cmn_spectral_scan_trigger(common, &priv->spec_priv); ath9k_htc_set_channel()
|
H A D | ath9k.h | 1033 struct ath_spec_scan_priv spec_priv; member in struct:ath_softc
|
H A D | htc_drv_txrx.c | 1022 if (ath_cmn_process_fft(&priv->spec_priv, hdr, ath9k_rx_prepare()
|
H A D | recv.c | 874 if (ath_cmn_process_fft(&sc->spec_priv, hdr, rx_stats, rx_status->mactime)) ath9k_rx_skb_preprocess()
|