Home
last modified time | relevance | path

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

12

/drivers/net/wireless/ath/ath9k/
Dlink.c482 struct survey_info *survey = &sc->survey[channel]; in ath_update_survey_nf() local
485 survey->filled |= SURVEY_INFO_NOISE_DBM; in ath_update_survey_nf()
486 survey->noise = ath9k_hw_getchan_noise(ah, chan, in ath_update_survey_nf()
501 struct survey_info *survey = &sc->survey[pos]; in ath_update_survey_stats() local
513 survey->filled |= SURVEY_INFO_CHANNEL_TIME | in ath_update_survey_stats()
517 survey->channel_time += cc->cycles / div; in ath_update_survey_stats()
518 survey->channel_time_busy += cc->rx_busy / div; in ath_update_survey_stats()
519 survey->channel_time_rx += cc->rx_frame / div; in ath_update_survey_stats()
520 survey->channel_time_tx += cc->tx_frame / div; in ath_update_survey_stats()
Dchannel.c56 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { in ath_set_channel()
60 sc->cur_survey = &sc->survey[pos]; in ath_set_channel()
64 } else if (!(sc->survey[pos].filled & SURVEY_INFO_IN_USE)) { in ath_set_channel()
65 memset(&sc->survey[pos], 0, sizeof(struct survey_info)); in ath_set_channel()
Dmain.c1890 struct survey_info *survey) in ath9k_get_survey() argument
1921 memcpy(survey, &sc->survey[pos], sizeof(*survey)); in ath9k_get_survey()
1922 survey->channel = chan; in ath9k_get_survey()
Dath9k.h955 struct survey_info survey[ATH9K_NUM_CHANNELS]; member
/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c659 ath5k_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) in ath5k_get_survey() argument
673 ah->survey.channel_time += cc->cycles / div; in ath5k_get_survey()
674 ah->survey.channel_time_busy += cc->rx_busy / div; in ath5k_get_survey()
675 ah->survey.channel_time_rx += cc->rx_frame / div; in ath5k_get_survey()
676 ah->survey.channel_time_tx += cc->tx_frame / div; in ath5k_get_survey()
681 memcpy(survey, &ah->survey, sizeof(*survey)); in ath5k_get_survey()
683 survey->channel = conf->chandef.chan; in ath5k_get_survey()
684 survey->noise = ah->ah_noise_floor; in ath5k_get_survey()
685 survey->filled = SURVEY_INFO_NOISE_DBM | in ath5k_get_survey()
Dath5k.h1346 struct survey_info survey; /* collected survey info */ member
/drivers/net/wireless/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->channel_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->channel_time = priv->survey_raw.active; in p54_rx_stats()
591 survey->channel_time_tx = priv->survey_raw.tx; in p54_rx_stats()
592 survey->channel_time_busy = priv->survey_raw.tx + in p54_rx_stats()
594 do_div(survey->channel_time, 1024); in p54_rx_stats()
595 do_div(survey->channel_time_tx, 1024); in p54_rx_stats()
596 do_div(survey->channel_time_busy, 1024); in p54_rx_stats()
Deeprom.c197 priv->survey[*chan_num].channel = &tmp->channels[j]; in p54_generate_band()
198 priv->survey[*chan_num].filled = SURVEY_INFO_NOISE_DBM | in p54_generate_band()
347 priv->survey = kzalloc(sizeof(struct survey_info) * max_channel_num, in p54_generate_channel_lists()
349 if (!priv->survey) { in p54_generate_channel_lists()
414 kfree(priv->survey); in p54_generate_channel_lists()
415 priv->survey = NULL; in p54_generate_channel_lists()
937 kfree(priv->survey); in p54_parse_eeprom()
942 priv->survey = NULL; in p54_parse_eeprom()
Dp54.h204 struct survey_info *survey; member
/drivers/net/wireless/ath/carl9170/
Dmain.c1649 struct survey_info *survey) in carl9170_op_get_survey() argument
1684 memcpy(survey, &ar->survey[idx], sizeof(*survey)); in carl9170_op_get_survey()
1686 survey->channel = chan; in carl9170_op_get_survey()
1687 survey->filled = SURVEY_INFO_NOISE_DBM; in carl9170_op_get_survey()
1690 survey->filled |= SURVEY_INFO_IN_USE; in carl9170_op_get_survey()
1693 survey->filled |= SURVEY_INFO_CHANNEL_TIME | in carl9170_op_get_survey()
1958 ar->survey = kzalloc(sizeof(struct survey_info) * chans, GFP_KERNEL); in carl9170_parse_eeprom()
1959 if (!ar->survey) in carl9170_parse_eeprom()
2107 kfree(ar->survey); in carl9170_free()
2108 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
Dphy.c1550 ar->survey[ar->channel->hw_value].noise = ar->noise[0]; in carl9170_get_noisefloor()
/drivers/net/wireless/libertas_tf/
Dmain.c532 struct survey_info *survey) in lbtf_op_get_survey() argument
540 survey->channel = conf->chandef.chan; in lbtf_op_get_survey()
541 survey->filled = SURVEY_INFO_NOISE_DBM; in lbtf_op_get_survey()
542 survey->noise = priv->noise; in lbtf_op_get_survey()
/drivers/net/wireless/
Dmwl8k.c302 struct survey_info survey[MWL8K_NUM_CHANS]; member
3089 struct survey_info *survey; in mwl8k_update_survey() local
3097 survey = &priv->survey[idx]; in mwl8k_update_survey()
3101 survey->channel_time_busy = (u64) cca_cnt; in mwl8k_update_survey()
3105 survey->channel_time_rx = (u64) rx_rdy; in mwl8k_update_survey()
3108 survey->channel_time = jiffies_to_msecs(priv->channel_time); in mwl8k_update_survey()
3110 survey->channel = channel; in mwl8k_update_survey()
3115 survey->noise = nf * -1; in mwl8k_update_survey()
3117 survey->filled = SURVEY_INFO_NOISE_DBM | in mwl8k_update_survey()
5383 struct survey_info *survey) in mwl8k_get_survey() argument
[all …]
Dmac80211_hwsim.c1580 struct survey_info *survey) in mac80211_hwsim_get_survey() argument
1590 survey->channel = conf->chandef.chan; in mac80211_hwsim_get_survey()
1598 survey->filled = SURVEY_INFO_NOISE_DBM; in mac80211_hwsim_get_survey()
1599 survey->noise = -92; in mac80211_hwsim_get_survey()
/drivers/net/wireless/ti/wl1251/
Dmain.c1350 struct survey_info *survey) in wl1251_op_get_survey() argument
1358 survey->channel = conf->chandef.chan; in wl1251_op_get_survey()
1359 survey->filled = SURVEY_INFO_NOISE_DBM; in wl1251_op_get_survey()
1360 survey->noise = wl->noise; in wl1251_op_get_survey()
/drivers/net/wireless/rt2x00/
Drt2800lib.h224 struct survey_info *survey);
Drt2800lib.c8000 struct survey_info *survey) in rt2800_get_survey() argument
8009 survey->channel = conf->chandef.chan; in rt2800_get_survey()
8016 survey->filled = SURVEY_INFO_CHANNEL_TIME | in rt2800_get_survey()
8020 survey->channel_time = (idle + busy) / 1000; in rt2800_get_survey()
8021 survey->channel_time_busy = busy / 1000; in rt2800_get_survey()
8022 survey->channel_time_ext_busy = busy_ext / 1000; in rt2800_get_survey()
8026 survey->filled |= SURVEY_INFO_IN_USE; in rt2800_get_survey()
/drivers/net/wireless/ath/ath10k/
Dcore.h540 struct survey_info survey[ATH10K_NUM_CHANS]; member
Dwmi.c1222 struct survey_info *survey; in ath10k_wmi_event_chan_info() local
1253 if (idx >= ARRAY_SIZE(ar->survey)) { in ath10k_wmi_event_chan_info()
1267 survey = &ar->survey[idx]; in ath10k_wmi_event_chan_info()
1268 survey->channel_time = WMI_CHAN_INFO_MSEC(cycle_count); in ath10k_wmi_event_chan_info()
1269 survey->channel_time_rx = WMI_CHAN_INFO_MSEC(rx_clear_count); in ath10k_wmi_event_chan_info()
1270 survey->noise = noise_floor; in ath10k_wmi_event_chan_info()
1271 survey->filled = SURVEY_INFO_CHANNEL_TIME | in ath10k_wmi_event_chan_info()
Dmac.c3949 struct survey_info *survey) in ath10k_get_survey() argument
3953 struct survey_info *ar_survey = &ar->survey[idx]; in ath10k_get_survey()
3973 memcpy(survey, ar_survey, sizeof(*survey)); in ath10k_get_survey()
3976 survey->channel = &sband->channels[idx]; in ath10k_get_survey()
/drivers/staging/rtl8723au/core/
Drtw_mlme.c591 struct survey_event *survey = (struct survey_event *)pbuf; in rtw_survey_event_cb23a() local
593 pnetwork = survey->bss; in rtw_survey_event_cb23a()
651 kfree(survey->bss); in rtw_survey_event_cb23a()
652 survey->bss = NULL; in rtw_survey_event_cb23a()
/drivers/net/wireless/b43legacy/
Dmain.c3553 struct survey_info *survey) in b43legacy_op_get_survey() argument
3562 survey->channel = conf->chandef.chan; in b43legacy_op_get_survey()
3563 survey->filled = SURVEY_INFO_NOISE_DBM; in b43legacy_op_get_survey()
3564 survey->noise = dev->stats.link_noise; in b43legacy_op_get_survey()

12