Lines Matching refs:survey
2700 struct survey_info *survey; in ath10k_wmi_event_chan_info_unpaired() local
2709 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_chan_info_unpaired()
2715 survey = &ar->survey[idx]; in ath10k_wmi_event_chan_info_unpaired()
2720 memset(survey, 0, sizeof(*survey)); in ath10k_wmi_event_chan_info_unpaired()
2722 survey->noise = params->noise_floor; in ath10k_wmi_event_chan_info_unpaired()
2723 survey->time = (params->cycle_count / params->mac_clk_mhz) / 1000; in ath10k_wmi_event_chan_info_unpaired()
2724 survey->time_busy = (params->rx_clear_count / params->mac_clk_mhz) / 1000; in ath10k_wmi_event_chan_info_unpaired()
2725 survey->filled |= SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME | in ath10k_wmi_event_chan_info_unpaired()
2736 struct survey_info *survey; in ath10k_wmi_event_chan_info_paired() local
2740 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_chan_info_paired()
2748 survey = &ar->survey[idx]; in ath10k_wmi_event_chan_info_paired()
2749 survey->noise = params->noise_floor; in ath10k_wmi_event_chan_info_paired()
2750 survey->filled = SURVEY_INFO_NOISE_DBM; in ath10k_wmi_event_chan_info_paired()
2753 survey, in ath10k_wmi_event_chan_info_paired()
5783 struct survey_info *survey; in ath10k_wmi_event_pdev_bss_chan_info() local
5807 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_pdev_bss_chan_info()
5813 survey = &ar->survey[idx]; in ath10k_wmi_event_pdev_bss_chan_info()
5815 survey->noise = noise_floor; in ath10k_wmi_event_pdev_bss_chan_info()
5816 survey->time = div_u64(total, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5817 survey->time_busy = div_u64(busy, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5818 survey->time_rx = div_u64(rx_bss, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5819 survey->time_tx = div_u64(tx, cc_freq_hz); in ath10k_wmi_event_pdev_bss_chan_info()
5820 survey->filled |= (SURVEY_INFO_NOISE_DBM | in ath10k_wmi_event_pdev_bss_chan_info()