| /linux/net/mac80211/ |
| A D | ethtool.c | 74 struct survey_info survey; in ieee80211_get_stats() local 146 survey.filled = 0; in ieee80211_get_stats() 159 survey.filled = 0; in ieee80211_get_stats() 161 survey.filled = 0; in ieee80211_get_stats() 168 if (survey.filled) in ieee80211_get_stats() 173 data[i++] = (u8)survey.noise; in ieee80211_get_stats() 177 data[i++] = survey.time; in ieee80211_get_stats() 181 data[i++] = survey.time_busy; in ieee80211_get_stats() 185 data[i++] = survey.time_ext_busy; in ieee80211_get_stats() 189 data[i++] = survey.time_rx; in ieee80211_get_stats() [all …]
|
| A D | driver-ops.h | 603 struct survey_info *survey) in drv_get_survey() argument 607 trace_drv_get_survey(local, idx, survey); in drv_get_survey() 610 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| A D | link.c | 492 struct survey_info *survey = &sc->survey[channel]; in ath_update_survey_nf() local 495 survey->filled |= SURVEY_INFO_NOISE_DBM; in ath_update_survey_nf() 496 survey->noise = ath9k_hw_getchan_noise(ah, chan, in ath_update_survey_nf() 511 struct survey_info *survey = &sc->survey[pos]; in ath_update_survey_stats() local 523 survey->filled |= SURVEY_INFO_TIME | in ath_update_survey_stats() 527 survey->time += cc->cycles / div; in ath_update_survey_stats() 528 survey->time_busy += cc->rx_busy / div; in ath_update_survey_stats() 529 survey->time_rx += cc->rx_frame / div; in ath_update_survey_stats() 530 survey->time_tx += cc->tx_frame / div; in ath_update_survey_stats()
|
| A D | channel.c | 57 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { in ath_set_channel() 61 sc->cur_survey = &sc->survey[pos]; in ath_set_channel() 65 } else if (!(sc->survey[pos].filled & SURVEY_INFO_IN_USE)) { in ath_set_channel() 66 memset(&sc->survey[pos], 0, sizeof(struct survey_info)); in ath_set_channel()
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| A D | mac80211-ops.c | 648 ath5k_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) in ath5k_get_survey() argument 662 ah->survey.time += cc->cycles / div; in ath5k_get_survey() 663 ah->survey.time_busy += cc->rx_busy / div; in ath5k_get_survey() 664 ah->survey.time_rx += cc->rx_frame / div; in ath5k_get_survey() 665 ah->survey.time_tx += cc->tx_frame / div; in ath5k_get_survey() 670 memcpy(survey, &ah->survey, sizeof(*survey)); in ath5k_get_survey() 672 survey->channel = conf->chandef.chan; in ath5k_get_survey() 673 survey->noise = ah->ah_noise_floor; in ath5k_get_survey() 674 survey->filled = SURVEY_INFO_NOISE_DBM | in ath5k_get_survey()
|
| /linux/drivers/net/wireless/intersil/p54/ |
| A D | main.c | 302 struct survey_info *info = &priv->survey[chan->hw_value]; in p54_reset_stats() 604 struct survey_info *survey) in p54_get_survey() argument 627 memcpy(survey, &priv->survey[idx], sizeof(*survey)); in p54_get_survey() 631 if (survey->time != 0) { in p54_get_survey() 632 survey->filled |= SURVEY_INFO_IN_USE; in p54_get_survey() 834 kfree(priv->survey); in p54_free_common() 840 priv->survey = NULL; in p54_free_common()
|
| A D | txrx.c | 594 struct survey_info *survey = &priv->survey[chan->hw_value]; in p54_rx_stats() local 595 survey->noise = clamp(priv->noise, -128, 127); in p54_rx_stats() 596 survey->time = priv->survey_raw.active; in p54_rx_stats() 597 survey->time_tx = priv->survey_raw.tx; in p54_rx_stats() 598 survey->time_busy = priv->survey_raw.tx + in p54_rx_stats() 600 do_div(survey->time, 1024); in p54_rx_stats() 601 do_div(survey->time_tx, 1024); in p54_rx_stats() 602 do_div(survey->time_busy, 1024); in p54_rx_stats()
|
| A D | eeprom.c | 195 priv->survey[*chan_num].channel = &tmp->channels[j]; in p54_generate_band() 196 priv->survey[*chan_num].filled = SURVEY_INFO_NOISE_DBM | in p54_generate_band() 345 priv->survey = kcalloc(max_channel_num, sizeof(struct survey_info), in p54_generate_channel_lists() 347 if (!priv->survey) { in p54_generate_channel_lists() 413 kfree(priv->survey); in p54_generate_channel_lists() 414 priv->survey = NULL; in p54_generate_channel_lists() 936 kfree(priv->survey); in p54_parse_eeprom() 941 priv->survey = NULL; in p54_parse_eeprom()
|
| A D | p54.h | 201 struct survey_info *survey; member
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| A D | mac80211.c | 826 struct survey_info *survey) in mt76_get_survey() argument 859 memset(survey, 0, sizeof(*survey)); in mt76_get_survey() 860 survey->channel = chan; in mt76_get_survey() 862 survey->filled |= dev->drv->survey_flags; in mt76_get_survey() 864 survey->filled |= SURVEY_INFO_NOISE_DBM; in mt76_get_survey() 867 survey->filled |= SURVEY_INFO_IN_USE; in mt76_get_survey() 870 survey->filled |= SURVEY_INFO_TIME_BSS_RX; in mt76_get_survey() 874 survey->time_rx = div_u64(state->cc_rx, 1000); in mt76_get_survey() 875 survey->time = div_u64(state->cc_active, 1000); in mt76_get_survey() 876 survey->noise = state->noise; in mt76_get_survey() [all …]
|
| /linux/drivers/net/wireless/ath/carl9170/ |
| A D | main.c | 1630 struct survey_info *survey) in carl9170_op_get_survey() argument 1665 memcpy(survey, &ar->survey[idx], sizeof(*survey)); in carl9170_op_get_survey() 1667 survey->channel = chan; in carl9170_op_get_survey() 1668 survey->filled = SURVEY_INFO_NOISE_DBM; in carl9170_op_get_survey() 1671 survey->filled |= SURVEY_INFO_IN_USE; in carl9170_op_get_survey() 1674 survey->filled |= SURVEY_INFO_TIME | in carl9170_op_get_survey() 1941 ar->survey = kcalloc(chans, sizeof(struct survey_info), GFP_KERNEL); in carl9170_parse_eeprom() 1942 if (!ar->survey) in carl9170_parse_eeprom() 2091 kfree(ar->survey); in carl9170_free() 2092 ar->survey = NULL; in carl9170_free()
|
| A D | cmd.c | 190 info = &ar->survey[ar->channel->hw_value]; in carl9170_collect_tally()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| A D | hw.c | 548 void ath10k_hw_fill_survey_time(struct ath10k *ar, struct survey_info *survey, in ath10k_hw_fill_survey_time() argument 555 survey->filled |= SURVEY_INFO_TIME | in ath10k_hw_fill_survey_time() 565 survey->filled &= ~SURVEY_INFO_TIME_BUSY; in ath10k_hw_fill_survey_time() 583 survey->time = CCNT_TO_MSEC(ar, cc); in ath10k_hw_fill_survey_time() 584 survey->time_busy = CCNT_TO_MSEC(ar, rcc); in ath10k_hw_fill_survey_time()
|
| A D | wmi.c | 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() 2736 struct survey_info *survey; in ath10k_wmi_event_chan_info_paired() local 2748 survey = &ar->survey[idx]; 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 5813 survey = &ar->survey[idx]; in ath10k_wmi_event_pdev_bss_chan_info() [all …]
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| A D | commands.c | 2367 survey->filled |= SURVEY_INFO_TIME; in qtnf_cmd_resp_proc_chan_stat_info() 2368 survey->time = le64_to_cpu(stats->time_on); in qtnf_cmd_resp_proc_chan_stat_info() 2372 survey->filled |= SURVEY_INFO_TIME_TX; in qtnf_cmd_resp_proc_chan_stat_info() 2373 survey->time_tx = le64_to_cpu(stats->time_tx); in qtnf_cmd_resp_proc_chan_stat_info() 2377 survey->filled |= SURVEY_INFO_TIME_RX; in qtnf_cmd_resp_proc_chan_stat_info() 2382 survey->filled |= SURVEY_INFO_TIME_BUSY; in qtnf_cmd_resp_proc_chan_stat_info() 2387 survey->filled |= SURVEY_INFO_TIME_EXT_BUSY; in qtnf_cmd_resp_proc_chan_stat_info() 2392 survey->filled |= SURVEY_INFO_TIME_SCAN; in qtnf_cmd_resp_proc_chan_stat_info() 2397 survey->filled |= SURVEY_INFO_NOISE_DBM; in qtnf_cmd_resp_proc_chan_stat_info() 2398 survey->noise = stats->chan_noise; in qtnf_cmd_resp_proc_chan_stat_info() [all …]
|
| A D | cfg80211.c | 743 int idx, struct survey_info *survey) in qtnf_dump_survey() argument 765 survey->channel = chan; in qtnf_dump_survey() 766 survey->filled = 0x0; in qtnf_dump_survey() 769 survey->filled = SURVEY_INFO_IN_USE; in qtnf_dump_survey() 771 ret = qtnf_cmd_get_chan_stats(mac, chan->center_freq, survey); in qtnf_dump_survey()
|
| A D | commands.h | 63 struct survey_info *survey);
|
| /linux/drivers/net/wireless/marvell/libertas_tf/ |
| A D | main.c | 459 struct survey_info *survey) in lbtf_op_get_survey() argument 467 survey->channel = conf->chandef.chan; in lbtf_op_get_survey() 468 survey->filled = SURVEY_INFO_NOISE_DBM; in lbtf_op_get_survey() 469 survey->noise = priv->noise; in lbtf_op_get_survey()
|
| /linux/drivers/net/wireless/marvell/ |
| A D | mwl8k.c | 302 struct survey_info survey[MWL8K_NUM_CHANS]; member 3107 struct survey_info *survey; in mwl8k_update_survey() local 3115 survey = &priv->survey[idx]; in mwl8k_update_survey() 3119 survey->time_busy = (u64) cca_cnt; in mwl8k_update_survey() 3123 survey->time_rx = (u64) rx_rdy; in mwl8k_update_survey() 3128 survey->channel = channel; in mwl8k_update_survey() 3133 survey->noise = nf * -1; in mwl8k_update_survey() 5402 struct survey_info *survey) in mwl8k_get_survey() argument 5422 memcpy(survey, &priv->survey[idx], sizeof(*survey)); in mwl8k_get_survey() 5431 survey->channel = conf->chandef.chan; in mwl8k_get_survey() [all …]
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| A D | main.c | 1329 struct survey_info *survey) in wl1251_op_get_survey() argument 1337 survey->channel = conf->chandef.chan; in wl1251_op_get_survey() 1338 survey->filled = SURVEY_INFO_NOISE_DBM; in wl1251_op_get_survey() 1339 survey->noise = wl->noise; in wl1251_op_get_survey()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| A D | wmi.c | 6491 struct survey_info *survey; in ath11k_chan_info_event() local 6534 if (idx >= ARRAY_SIZE(ar->survey)) { in ath11k_chan_info_event() 6547 survey = &ar->survey[idx]; in ath11k_chan_info_event() 6548 memset(survey, 0, sizeof(*survey)); in ath11k_chan_info_event() 6549 survey->noise = ch_info_ev.noise_floor; in ath11k_chan_info_event() 6564 struct survey_info *survey; in ath11k_pdev_bss_chan_info_event() local 6608 if (idx >= ARRAY_SIZE(ar->survey)) { in ath11k_pdev_bss_chan_info_event() 6614 survey = &ar->survey[idx]; in ath11k_pdev_bss_chan_info_event() 6618 survey->time_busy = div_u64(busy, cc_freq_hz); in ath11k_pdev_bss_chan_info_event() 6620 survey->time_tx = div_u64(tx, cc_freq_hz); in ath11k_pdev_bss_chan_info_event() [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| A D | cfg80211.c | 1583 int idx, struct survey_info *survey) in mwifiex_cfg80211_dump_survey() argument 1591 memset(survey, 0, sizeof(struct survey_info)); in mwifiex_cfg80211_dump_survey() 1599 survey->channel = ieee80211_get_channel(wiphy, in mwifiex_cfg80211_dump_survey() 1603 survey->filled = SURVEY_INFO_NOISE_DBM; in mwifiex_cfg80211_dump_survey() 1604 survey->noise = priv->bcn_nf_last; in mwifiex_cfg80211_dump_survey() 1616 survey->channel = ieee80211_get_channel(wiphy, in mwifiex_cfg80211_dump_survey() 1618 survey->filled = SURVEY_INFO_NOISE_DBM | in mwifiex_cfg80211_dump_survey() 1621 survey->noise = pchan_stats[idx].noise; in mwifiex_cfg80211_dump_survey() 1622 survey->time = pchan_stats[idx].cca_scan_dur; in mwifiex_cfg80211_dump_survey() 1623 survey->time_busy = pchan_stats[idx].cca_busy_dur; in mwifiex_cfg80211_dump_survey()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | mac80211.c | 4901 struct survey_info *survey) in iwl_mvm_mac_get_survey() argument 4906 memset(survey, 0, sizeof(*survey)); in iwl_mvm_mac_get_survey() 4924 survey->filled = SURVEY_INFO_TIME | in iwl_mvm_mac_get_survey() 4928 survey->time = mvm->accu_radio_stats.on_time_rf + in iwl_mvm_mac_get_survey() 4930 do_div(survey->time, USEC_PER_MSEC); in iwl_mvm_mac_get_survey() 4932 survey->time_rx = mvm->accu_radio_stats.rx_time + in iwl_mvm_mac_get_survey() 4934 do_div(survey->time_rx, USEC_PER_MSEC); in iwl_mvm_mac_get_survey() 4936 survey->time_tx = mvm->accu_radio_stats.tx_time + in iwl_mvm_mac_get_survey() 4938 do_div(survey->time_tx, USEC_PER_MSEC); in iwl_mvm_mac_get_survey() 4940 survey->time_scan = mvm->accu_radio_stats.on_time_scan + in iwl_mvm_mac_get_survey() [all …]
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| A D | rt2800lib.h | 254 struct survey_info *survey);
|
| /linux/drivers/net/wireless/ |
| A D | mac80211_hwsim.c | 2140 struct survey_info *survey) in mac80211_hwsim_get_survey() argument 2148 survey->channel = hwsim->survey_data[idx].channel; in mac80211_hwsim_get_survey() 2149 if (!survey->channel) { in mac80211_hwsim_get_survey() 2160 survey->filled = SURVEY_INFO_NOISE_DBM | in mac80211_hwsim_get_survey() 2163 survey->noise = -92; in mac80211_hwsim_get_survey() 2164 survey->time = in mac80211_hwsim_get_survey() 2168 survey->time_busy = survey->time/8; in mac80211_hwsim_get_survey()
|