Lines Matching refs:survey
6287 struct survey_info *survey; in ath12k_chan_info_event() local
6330 if (idx >= ARRAY_SIZE(ar->survey)) { in ath12k_chan_info_event()
6343 survey = &ar->survey[idx]; in ath12k_chan_info_event()
6344 memset(survey, 0, sizeof(*survey)); in ath12k_chan_info_event()
6345 survey->noise = le32_to_cpu(ch_info_ev.noise_floor); in ath12k_chan_info_event()
6346 survey->filled = SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME | in ath12k_chan_info_event()
6348 survey->time = div_u64(le32_to_cpu(ch_info_ev.cycle_count), cc_freq_hz); in ath12k_chan_info_event()
6349 survey->time_busy = div_u64(le32_to_cpu(ch_info_ev.rx_clear_count), in ath12k_chan_info_event()
6361 struct survey_info *survey; in ath12k_pdev_bss_chan_info_event() local
6412 if (idx >= ARRAY_SIZE(ar->survey)) { in ath12k_pdev_bss_chan_info_event()
6418 survey = &ar->survey[idx]; in ath12k_pdev_bss_chan_info_event()
6420 survey->noise = le32_to_cpu(bss_ch_info_ev.noise_floor); in ath12k_pdev_bss_chan_info_event()
6421 survey->time = div_u64(total, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
6422 survey->time_busy = div_u64(busy, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
6423 survey->time_rx = div_u64(rx_bss, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
6424 survey->time_tx = div_u64(tx, cc_freq_hz); in ath12k_pdev_bss_chan_info_event()
6425 survey->filled |= (SURVEY_INFO_NOISE_DBM | in ath12k_pdev_bss_chan_info_event()