Lines Matching refs:spectral
185 if (ar->spectral.mode == ATH11K_SPECTRAL_DISABLED) in ath11k_spectral_scan_trigger()
218 spin_lock_bh(&ar->spectral.lock); in ath11k_spectral_scan_config()
219 ar->spectral.mode = mode; in ath11k_spectral_scan_config()
220 spin_unlock_bh(&ar->spectral.lock); in ath11k_spectral_scan_config()
236 count = max_t(u16, 1, ar->spectral.count); in ath11k_spectral_scan_config()
240 param.scan_fft_size = ar->spectral.fft_size; in ath11k_spectral_scan_config()
277 spectral_mode = ar->spectral.mode; in ath11k_read_file_spec_scan_ctl()
314 if (ar->spectral.mode == ATH11K_SPECTRAL_MANUAL || in ath11k_write_file_spec_scan_ctl()
315 ar->spectral.mode == ATH11K_SPECTRAL_BACKGROUND) { in ath11k_write_file_spec_scan_ctl()
319 ret = ath11k_spectral_scan_config(ar, ar->spectral.mode); in ath11k_write_file_spec_scan_ctl()
371 spectral_count = ar->spectral.count; in ath11k_read_file_spectral_count()
399 ar->spectral.count = val; in ath11k_write_file_spectral_count()
424 fft_size = ar->spectral.fft_size; in ath11k_read_file_spectral_bins()
458 ar->spectral.fft_size = ilog2(val); in ath11k_write_file_spectral_bins()
590 lockdep_assert_held(&ar->spectral.lock); in ath11k_spectral_process_fft()
667 if (ar->spectral.rfs_scan) in ath11k_spectral_process_fft()
668 relay_write(ar->spectral.rfs_scan, fft_sample, in ath11k_spectral_process_fft()
689 spin_lock_bh(&ar->spectral.lock); in ath11k_spectral_process_data()
691 if (!ar->spectral.enabled) { in ath11k_spectral_process_data()
787 spin_unlock_bh(&ar->spectral.lock); in ath11k_spectral_process_data()
794 struct ath11k_spectral *sp = &ar->spectral; in ath11k_spectral_ring_alloc()
833 struct ath11k_spectral *sp = &ar->spectral; in ath11k_spectral_ring_free()
841 debugfs_remove(ar->spectral.scan_bins); in ath11k_spectral_debug_unregister()
842 ar->spectral.scan_bins = NULL; in ath11k_spectral_debug_unregister()
844 debugfs_remove(ar->spectral.scan_count); in ath11k_spectral_debug_unregister()
845 ar->spectral.scan_count = NULL; in ath11k_spectral_debug_unregister()
847 debugfs_remove(ar->spectral.scan_ctl); in ath11k_spectral_debug_unregister()
848 ar->spectral.scan_ctl = NULL; in ath11k_spectral_debug_unregister()
850 if (ar->spectral.rfs_scan) { in ath11k_spectral_debug_unregister()
851 relay_close(ar->spectral.rfs_scan); in ath11k_spectral_debug_unregister()
852 ar->spectral.rfs_scan = NULL; in ath11k_spectral_debug_unregister()
866 if (!ar->spectral.enabled) in ath11k_spectral_reset_buffer()
869 if (ar->spectral.rfs_scan) in ath11k_spectral_reset_buffer()
870 relay_reset(ar->spectral.rfs_scan); in ath11k_spectral_reset_buffer()
881 sp = &ar->spectral; in ath11k_spectral_deinit()
903 ar->spectral.rfs_scan = relay_open("spectral_scan", in ath11k_spectral_debug_register()
908 if (!ar->spectral.rfs_scan) { in ath11k_spectral_debug_register()
914 ar->spectral.scan_ctl = debugfs_create_file("spectral_scan_ctl", in ath11k_spectral_debug_register()
918 if (!ar->spectral.scan_ctl) { in ath11k_spectral_debug_register()
925 ar->spectral.scan_count = debugfs_create_file("spectral_count", in ath11k_spectral_debug_register()
929 if (!ar->spectral.scan_count) { in ath11k_spectral_debug_register()
936 ar->spectral.scan_bins = debugfs_create_file("spectral_bins", in ath11k_spectral_debug_register()
940 if (!ar->spectral.scan_bins) { in ath11k_spectral_debug_register()
971 sp = &ar->spectral; in ath11k_spectral_init()
1016 if (ar->spectral.enabled) in ath11k_spectral_get_mode()
1017 return ar->spectral.mode; in ath11k_spectral_get_mode()
1024 if (ar->spectral.enabled) in ath11k_spectral_get_dbring()
1025 return &ar->spectral.rx_ring; in ath11k_spectral_get_dbring()