Home
last modified time | relevance | path

Searched refs:survey (Results 1 – 25 of 43) sorted by relevance

12

/Linux-v4.19/net/mac80211/
Dethtool.c75 struct survey_info survey; in ieee80211_get_stats() local
147 survey.filled = 0; in ieee80211_get_stats()
160 survey.filled = 0; in ieee80211_get_stats()
161 if (drv_get_survey(local, q, &survey) != 0) { in ieee80211_get_stats()
162 survey.filled = 0; in ieee80211_get_stats()
166 } while (channel != survey.channel); in ieee80211_get_stats()
169 if (survey.filled) in ieee80211_get_stats()
170 data[i++] = survey.channel->center_freq; in ieee80211_get_stats()
173 if (survey.filled & SURVEY_INFO_NOISE_DBM) in ieee80211_get_stats()
174 data[i++] = (u8)survey.noise; in ieee80211_get_stats()
[all …]
Ddriver-ops.h599 struct survey_info *survey) in drv_get_survey() argument
603 trace_drv_get_survey(local, idx, survey); in drv_get_survey()
606 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dlink.c492 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()
Dchannel.c57 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()
Dmain.c1954 struct survey_info *survey) in ath9k_get_survey() argument
1986 memcpy(survey, &sc->survey[pos], sizeof(*survey)); in ath9k_get_survey()
1987 survey->channel = chan; in ath9k_get_survey()
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c649 ath5k_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) in ath5k_get_survey() argument
663 ah->survey.time += cc->cycles / div; in ath5k_get_survey()
664 ah->survey.time_busy += cc->rx_busy / div; in ath5k_get_survey()
665 ah->survey.time_rx += cc->rx_frame / div; in ath5k_get_survey()
666 ah->survey.time_tx += cc->tx_frame / div; in ath5k_get_survey()
671 memcpy(survey, &ah->survey, sizeof(*survey)); in ath5k_get_survey()
673 survey->channel = conf->chandef.chan; in ath5k_get_survey()
674 survey->noise = ah->ah_noise_floor; in ath5k_get_survey()
675 survey->filled = SURVEY_INFO_NOISE_DBM | in ath5k_get_survey()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmac80211.c416 struct survey_info *survey) in mt76_get_survey() argument
439 memset(survey, 0, sizeof(*survey)); in mt76_get_survey()
440 survey->channel = chan; in mt76_get_survey()
441 survey->filled = SURVEY_INFO_TIME | SURVEY_INFO_TIME_BUSY; in mt76_get_survey()
443 survey->filled |= SURVEY_INFO_IN_USE; in mt76_get_survey()
446 survey->time = div_u64(state->cc_active, 1000); in mt76_get_survey()
447 survey->time_busy = div_u64(state->cc_busy, 1000); in mt76_get_survey()
/Linux-v4.19/drivers/net/wireless/intersil/p54/
Dmain.c305 struct survey_info *info = &priv->survey[chan->hw_value]; in p54_reset_stats()
610 struct survey_info *survey) in p54_get_survey() argument
633 memcpy(survey, &priv->survey[idx], sizeof(*survey)); in p54_get_survey()
637 if (survey->time != 0) { in p54_get_survey()
638 survey->filled |= SURVEY_INFO_IN_USE; in p54_get_survey()
840 kfree(priv->survey); in p54_free_common()
846 priv->survey = NULL; in p54_free_common()
Dtxrx.c588 struct survey_info *survey = &priv->survey[chan->hw_value]; in p54_rx_stats() local
589 survey->noise = clamp(priv->noise, -128, 127); in p54_rx_stats()
590 survey->time = priv->survey_raw.active; in p54_rx_stats()
591 survey->time_tx = priv->survey_raw.tx; in p54_rx_stats()
592 survey->time_busy = priv->survey_raw.tx + in p54_rx_stats()
594 do_div(survey->time, 1024); in p54_rx_stats()
595 do_div(survey->time_tx, 1024); in p54_rx_stats()
596 do_div(survey->time_busy, 1024); in p54_rx_stats()
Deeprom.c198 priv->survey[*chan_num].channel = &tmp->channels[j]; in p54_generate_band()
199 priv->survey[*chan_num].filled = SURVEY_INFO_NOISE_DBM | in p54_generate_band()
348 priv->survey = kcalloc(max_channel_num, sizeof(struct survey_info), in p54_generate_channel_lists()
350 if (!priv->survey) { in p54_generate_channel_lists()
416 kfree(priv->survey); in p54_generate_channel_lists()
417 priv->survey = NULL; in p54_generate_channel_lists()
939 kfree(priv->survey); in p54_parse_eeprom()
944 priv->survey = NULL; in p54_parse_eeprom()
Dp54.h204 struct survey_info *survey; member
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Dcfg80211.c686 int idx, struct survey_info *survey) in qtnf_dump_survey() argument
714 survey->channel = chan; in qtnf_dump_survey()
715 survey->filled = 0x0; in qtnf_dump_survey()
719 survey->filled = SURVEY_INFO_IN_USE; in qtnf_dump_survey()
732 survey->filled |= SURVEY_INFO_TIME | in qtnf_dump_survey()
739 survey->time_scan = stats.cca_try; in qtnf_dump_survey()
740 survey->time = stats.cca_try; in qtnf_dump_survey()
741 survey->time_tx = stats.cca_tx; in qtnf_dump_survey()
742 survey->time_rx = stats.cca_rx; in qtnf_dump_survey()
743 survey->time_busy = stats.cca_busy; in qtnf_dump_survey()
[all …]
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dhw.c553 void ath10k_hw_fill_survey_time(struct ath10k *ar, struct survey_info *survey, in ath10k_hw_fill_survey_time() argument
560 survey->filled |= SURVEY_INFO_TIME | in ath10k_hw_fill_survey_time()
570 survey->filled &= ~SURVEY_INFO_TIME_BUSY; in ath10k_hw_fill_survey_time()
588 survey->time = CCNT_TO_MSEC(ar, cc); in ath10k_hw_fill_survey_time()
589 survey->time_busy = CCNT_TO_MSEC(ar, rcc); in ath10k_hw_fill_survey_time()
Dwmi.c2547 struct survey_info *survey; in ath10k_wmi_event_chan_info() local
2582 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_chan_info()
2590 survey = &ar->survey[idx]; in ath10k_wmi_event_chan_info()
2591 survey->noise = noise_floor; in ath10k_wmi_event_chan_info()
2592 survey->filled = SURVEY_INFO_NOISE_DBM; in ath10k_wmi_event_chan_info()
2595 survey, in ath10k_wmi_event_chan_info()
5488 struct survey_info *survey; in ath10k_wmi_event_pdev_bss_chan_info() local
5512 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_pdev_bss_chan_info()
5518 survey = &ar->survey[idx]; in ath10k_wmi_event_pdev_bss_chan_info()
5520 survey->noise = noise_floor; in ath10k_wmi_event_pdev_bss_chan_info()
[all …]
/Linux-v4.19/drivers/net/wireless/ath/carl9170/
Dmain.c1650 struct survey_info *survey) in carl9170_op_get_survey() argument
1685 memcpy(survey, &ar->survey[idx], sizeof(*survey)); in carl9170_op_get_survey()
1687 survey->channel = chan; in carl9170_op_get_survey()
1688 survey->filled = SURVEY_INFO_NOISE_DBM; in carl9170_op_get_survey()
1691 survey->filled |= SURVEY_INFO_IN_USE; in carl9170_op_get_survey()
1694 survey->filled |= SURVEY_INFO_TIME | in carl9170_op_get_survey()
1961 ar->survey = kcalloc(chans, sizeof(struct survey_info), GFP_KERNEL); in carl9170_parse_eeprom()
1962 if (!ar->survey) in carl9170_parse_eeprom()
2111 kfree(ar->survey); in carl9170_free()
2112 ar->survey = NULL; in carl9170_free()
Dcmd.c190 info = &ar->survey[ar->channel->hw_value]; in carl9170_collect_tally()
Dcarl9170.h346 struct survey_info *survey; member
/Linux-v4.19/drivers/net/wireless/marvell/libertas_tf/
Dmain.c521 struct survey_info *survey) in lbtf_op_get_survey() argument
529 survey->channel = conf->chandef.chan; in lbtf_op_get_survey()
530 survey->filled = SURVEY_INFO_NOISE_DBM; in lbtf_op_get_survey()
531 survey->noise = priv->noise; in lbtf_op_get_survey()
/Linux-v4.19/drivers/net/wireless/marvell/
Dmwl8k.c302 struct survey_info survey[MWL8K_NUM_CHANS]; member
3094 struct survey_info *survey; in mwl8k_update_survey() local
3102 survey = &priv->survey[idx]; in mwl8k_update_survey()
3106 survey->time_busy = (u64) cca_cnt; in mwl8k_update_survey()
3110 survey->time_rx = (u64) rx_rdy; in mwl8k_update_survey()
3113 survey->time = jiffies_to_msecs(priv->channel_time); in mwl8k_update_survey()
3115 survey->channel = channel; in mwl8k_update_survey()
3120 survey->noise = nf * -1; in mwl8k_update_survey()
3122 survey->filled = SURVEY_INFO_NOISE_DBM | in mwl8k_update_survey()
5389 struct survey_info *survey) in mwl8k_get_survey() argument
[all …]
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Dmac80211.c4353 struct survey_info *survey) in iwl_mvm_mac_get_survey() argument
4358 memset(survey, 0, sizeof(*survey)); in iwl_mvm_mac_get_survey()
4376 survey->filled = SURVEY_INFO_TIME | in iwl_mvm_mac_get_survey()
4380 survey->time = mvm->accu_radio_stats.on_time_rf + in iwl_mvm_mac_get_survey()
4382 do_div(survey->time, USEC_PER_MSEC); in iwl_mvm_mac_get_survey()
4384 survey->time_rx = mvm->accu_radio_stats.rx_time + in iwl_mvm_mac_get_survey()
4386 do_div(survey->time_rx, USEC_PER_MSEC); in iwl_mvm_mac_get_survey()
4388 survey->time_tx = mvm->accu_radio_stats.tx_time + in iwl_mvm_mac_get_survey()
4390 do_div(survey->time_tx, USEC_PER_MSEC); in iwl_mvm_mac_get_survey()
4392 survey->time_scan = mvm->accu_radio_stats.on_time_scan + in iwl_mvm_mac_get_survey()
[all …]
/Linux-v4.19/drivers/net/wireless/ti/wl1251/
Dmain.c1343 struct survey_info *survey) in wl1251_op_get_survey() argument
1351 survey->channel = conf->chandef.chan; in wl1251_op_get_survey()
1352 survey->filled = SURVEY_INFO_NOISE_DBM; in wl1251_op_get_survey()
1353 survey->noise = wl->noise; in wl1251_op_get_survey()
/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2800lib.h251 struct survey_info *survey);
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c1489 int idx, struct survey_info *survey) in mwifiex_cfg80211_dump_survey() argument
1497 memset(survey, 0, sizeof(struct survey_info)); in mwifiex_cfg80211_dump_survey()
1505 survey->channel = ieee80211_get_channel(wiphy, in mwifiex_cfg80211_dump_survey()
1509 survey->filled = SURVEY_INFO_NOISE_DBM; in mwifiex_cfg80211_dump_survey()
1510 survey->noise = priv->bcn_nf_last; in mwifiex_cfg80211_dump_survey()
1522 survey->channel = ieee80211_get_channel(wiphy, in mwifiex_cfg80211_dump_survey()
1524 survey->filled = SURVEY_INFO_NOISE_DBM | in mwifiex_cfg80211_dump_survey()
1527 survey->noise = pchan_stats[idx].noise; in mwifiex_cfg80211_dump_survey()
1528 survey->time = pchan_stats[idx].cca_scan_dur; in mwifiex_cfg80211_dump_survey()
1529 survey->time_busy = pchan_stats[idx].cca_busy_dur; in mwifiex_cfg80211_dump_survey()
/Linux-v4.19/drivers/net/wireless/
Dmac80211_hwsim.c1887 struct survey_info *survey) in mac80211_hwsim_get_survey() argument
1895 survey->channel = hwsim->survey_data[idx].channel; in mac80211_hwsim_get_survey()
1896 if (!survey->channel) { in mac80211_hwsim_get_survey()
1907 survey->filled = SURVEY_INFO_NOISE_DBM | in mac80211_hwsim_get_survey()
1910 survey->noise = -92; in mac80211_hwsim_get_survey()
1911 survey->time = in mac80211_hwsim_get_survey()
1915 survey->time_busy = survey->time/8; in mac80211_hwsim_get_survey()
/Linux-v4.19/net/wireless/
Dnl80211.c8233 struct survey_info *survey) in nl80211_send_survey() argument
8239 if (!survey->channel && !allow_radio_stats) in nl80211_send_survey()
8254 if (survey->channel && in nl80211_send_survey()
8256 survey->channel->center_freq)) in nl80211_send_survey()
8259 if ((survey->filled & SURVEY_INFO_NOISE_DBM) && in nl80211_send_survey()
8260 nla_put_u8(msg, NL80211_SURVEY_INFO_NOISE, survey->noise)) in nl80211_send_survey()
8262 if ((survey->filled & SURVEY_INFO_IN_USE) && in nl80211_send_survey()
8265 if ((survey->filled & SURVEY_INFO_TIME) && in nl80211_send_survey()
8267 survey->time, NL80211_SURVEY_INFO_PAD)) in nl80211_send_survey()
8269 if ((survey->filled & SURVEY_INFO_TIME_BUSY) && in nl80211_send_survey()
[all …]

12