Lines Matching refs:survey
2707 struct survey_info *survey; in ath10k_wmi_event_chan_info_unpaired() local
2716 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_chan_info_unpaired()
2722 survey = &ar->survey[idx]; in ath10k_wmi_event_chan_info_unpaired()
2727 memset(survey, 0, sizeof(*survey)); in ath10k_wmi_event_chan_info_unpaired()
2729 survey->noise = params->noise_floor; in ath10k_wmi_event_chan_info_unpaired()
2730 survey->time = (params->cycle_count / params->mac_clk_mhz) / 1000; in ath10k_wmi_event_chan_info_unpaired()
2731 survey->time_busy = (params->rx_clear_count / params->mac_clk_mhz) / 1000; in ath10k_wmi_event_chan_info_unpaired()
2732 survey->filled |= SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME | in ath10k_wmi_event_chan_info_unpaired()
2743 struct survey_info *survey; in ath10k_wmi_event_chan_info_paired() local
2747 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_chan_info_paired()
2755 survey = &ar->survey[idx]; in ath10k_wmi_event_chan_info_paired()
2756 survey->noise = params->noise_floor; in ath10k_wmi_event_chan_info_paired()
2757 survey->filled = SURVEY_INFO_NOISE_DBM; in ath10k_wmi_event_chan_info_paired()
2760 survey, in ath10k_wmi_event_chan_info_paired()
5852 struct survey_info *survey; in ath10k_wmi_event_pdev_bss_chan_info() local
5881 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_pdev_bss_chan_info()
5887 survey = &ar->survey[idx]; in ath10k_wmi_event_pdev_bss_chan_info()
5889 survey->noise = noise_floor; in ath10k_wmi_event_pdev_bss_chan_info()
5890 survey->time = div_u64(total, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5891 survey->time_busy = div_u64(busy, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5892 survey->time_rx = div_u64(rx_bss, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5893 survey->time_tx = div_u64(tx, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5894 survey->filled |= (SURVEY_INFO_NOISE_DBM | in ath10k_wmi_event_pdev_bss_chan_info()