Lines Matching refs:survey
5796 struct survey_info *survey; in ath12k_chan_info_event() local
5839 if (idx >= ARRAY_SIZE(ar->survey)) { in ath12k_chan_info_event()
5852 survey = &ar->survey[idx]; in ath12k_chan_info_event()
5853 memset(survey, 0, sizeof(*survey)); in ath12k_chan_info_event()
5854 survey->noise = le32_to_cpu(ch_info_ev.noise_floor); in ath12k_chan_info_event()
5855 survey->filled = SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME | in ath12k_chan_info_event()
5857 survey->time = div_u64(le32_to_cpu(ch_info_ev.cycle_count), cc_freq_hz); in ath12k_chan_info_event()
5858 survey->time_busy = div_u64(le32_to_cpu(ch_info_ev.rx_clear_count), in ath12k_chan_info_event()
5870 struct survey_info *survey; in ath12k_pdev_bss_chan_info_event() local
5914 if (idx >= ARRAY_SIZE(ar->survey)) { in ath12k_pdev_bss_chan_info_event()
5920 survey = &ar->survey[idx]; in ath12k_pdev_bss_chan_info_event()
5922 survey->noise = le32_to_cpu(bss_ch_info_ev.noise_floor); in ath12k_pdev_bss_chan_info_event()
5923 survey->time = div_u64(total, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
5924 survey->time_busy = div_u64(busy, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
5925 survey->time_rx = div_u64(rx_bss, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
5926 survey->time_tx = div_u64(tx, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
5927 survey->filled |= (SURVEY_INFO_NOISE_DBM | in ath12k_pdev_bss_chan_info_event()