/kernel/linux/linux-5.10/net/mac80211/ |
H A D | ethtool.c | 74 struct survey_info survey; in ieee80211_get_stats() local 145 /* Get survey stats for current channel */ in ieee80211_get_stats() 146 survey.filled = 0; in ieee80211_get_stats() 159 survey.filled = 0; in ieee80211_get_stats() 160 if (drv_get_survey(local, q, &survey) != 0) { in ieee80211_get_stats() 161 survey.filled = 0; in ieee80211_get_stats() 165 } while (channel != survey.channel); in ieee80211_get_stats() 168 if (survey.filled) in ieee80211_get_stats() 169 data[i++] = survey.channel->center_freq; in ieee80211_get_stats() 172 if (survey in ieee80211_get_stats() [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | ethtool.c | 78 struct survey_info survey; in ieee80211_get_stats() local 149 /* Get survey stats for current channel */ in ieee80211_get_stats() 150 survey.filled = 0; in ieee80211_get_stats() 163 survey.filled = 0; in ieee80211_get_stats() 164 if (drv_get_survey(local, q, &survey) != 0) { in ieee80211_get_stats() 165 survey.filled = 0; in ieee80211_get_stats() 169 } while (channel != survey.channel); in ieee80211_get_stats() 172 if (survey.filled) in ieee80211_get_stats() 173 data[i++] = survey.channel->center_freq; in ieee80211_get_stats() 176 if (survey in ieee80211_get_stats() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H 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() 502 * Updates the survey statistics and returns the busy time since last 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 in ath_update_survey_stats() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H 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() 502 * Updates the survey statistics and returns the busy time since last 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 in ath_update_survey_stats() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
H A D | mac80211-ops.c | 647 ath5k_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) in ath5k_get_survey() argument 661 ah->survey.time += cc->cycles / div; in ath5k_get_survey() 662 ah->survey.time_busy += cc->rx_busy / div; in ath5k_get_survey() 663 ah->survey.time_rx += cc->rx_frame / div; in ath5k_get_survey() 664 ah->survey.time_tx += cc->tx_frame / div; in ath5k_get_survey() 669 memcpy(survey, &ah->survey, sizeof(*survey)); in ath5k_get_survey() 671 survey->channel = conf->chandef.chan; in ath5k_get_survey() 672 survey in ath5k_get_survey() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/ |
H 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 in ath5k_get_survey() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/ |
H 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() 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() 603 p54_get_survey(struct ieee80211_hw *dev, int idx, struct survey_info *survey) p54_get_survey() argument
|
H 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()
|
H 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
H A D | mac80211.c | 631 struct survey_info *survey) in mt76_get_survey() 658 memset(survey, 0, sizeof(*survey)); in mt76_get_survey() 659 survey->channel = chan; in mt76_get_survey() 660 survey->filled = SURVEY_INFO_TIME | SURVEY_INFO_TIME_BUSY; in mt76_get_survey() 661 survey->filled |= dev->drv->survey_flags; in mt76_get_survey() 663 survey->filled |= SURVEY_INFO_NOISE_DBM; in mt76_get_survey() 666 survey->filled |= SURVEY_INFO_IN_USE; in mt76_get_survey() 669 survey->filled |= SURVEY_INFO_TIME_BSS_RX; in mt76_get_survey() 672 survey in mt76_get_survey() 630 mt76_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) mt76_get_survey() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/p54/ |
H A D | txrx.c | 590 struct survey_info *survey = &priv->survey[chan->hw_value]; in p54_rx_stats() local 591 survey->noise = clamp(priv->noise, -128, 127); in p54_rx_stats() 592 survey->time = priv->survey_raw.active; in p54_rx_stats() 593 survey->time_tx = priv->survey_raw.tx; in p54_rx_stats() 594 survey->time_busy = priv->survey_raw.tx + in p54_rx_stats() 596 do_div(survey->time, 1024); in p54_rx_stats() 597 do_div(survey->time_tx, 1024); in p54_rx_stats() 598 do_div(survey->time_busy, 1024); in p54_rx_stats()
|
H A D | main.c | 302 struct survey_info *info = &priv->survey[chan->hw_value]; in p54_reset_stats() 605 struct survey_info *survey) in p54_get_survey() 628 memcpy(survey, &priv->survey[idx], sizeof(*survey)); in p54_get_survey() 632 if (survey->time != 0) { in p54_get_survey() 633 survey->filled |= SURVEY_INFO_IN_USE; in p54_get_survey() 836 kfree(priv->survey); in p54_free_common() 842 priv->survey = NULL; in p54_free_common() 604 p54_get_survey(struct ieee80211_hw *dev, int idx, struct survey_info *survey) p54_get_survey() argument
|
H 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | mac80211.c | 933 struct survey_info *survey) in mt76_get_survey() 966 memset(survey, 0, sizeof(*survey)); in mt76_get_survey() 967 survey->channel = chan; in mt76_get_survey() 968 survey->filled = SURVEY_INFO_TIME | SURVEY_INFO_TIME_BUSY; in mt76_get_survey() 969 survey->filled |= dev->drv->survey_flags; in mt76_get_survey() 971 survey->filled |= SURVEY_INFO_NOISE_DBM; in mt76_get_survey() 974 survey->filled |= SURVEY_INFO_IN_USE; in mt76_get_survey() 977 survey->filled |= SURVEY_INFO_TIME_BSS_RX; in mt76_get_survey() 980 survey in mt76_get_survey() 932 mt76_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) mt76_get_survey() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
H A D | main.c | 1631 struct survey_info *survey) in carl9170_op_get_survey() 1666 memcpy(survey, &ar->survey[idx], sizeof(*survey)); in carl9170_op_get_survey() 1668 survey->channel = chan; in carl9170_op_get_survey() 1669 survey->filled = SURVEY_INFO_NOISE_DBM; in carl9170_op_get_survey() 1672 survey->filled |= SURVEY_INFO_IN_USE; in carl9170_op_get_survey() 1675 survey->filled |= SURVEY_INFO_TIME | in carl9170_op_get_survey() 1942 ar->survey = kcalloc(chans, sizeof(struct survey_info), GFP_KERNEL); in carl9170_parse_eeprom() 1943 if (!ar->survey) in carl9170_parse_eeprom() 1630 carl9170_op_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) carl9170_op_get_survey() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/wcn36xx/ |
H A D | main.c | 1292 struct survey_info *survey) in wcn36xx_get_survey() 1313 survey->channel = &sband->channels[band_idx]; in wcn36xx_get_survey() 1314 survey->noise = chan_survey->rssi - chan_survey->snr; in wcn36xx_get_survey() 1315 survey->filled = 0; in wcn36xx_get_survey() 1318 survey->filled |= SURVEY_INFO_NOISE_DBM; in wcn36xx_get_survey() 1320 if (survey->channel == wcn->channel) in wcn36xx_get_survey() 1321 survey->filled |= SURVEY_INFO_IN_USE; in wcn36xx_get_survey() 1327 HW_VALUE_CHANNEL(survey->channel->hw_value), in wcn36xx_get_survey() 1328 chan_survey->rssi, chan_survey->snr, survey->noise, in wcn36xx_get_survey() 1329 survey in wcn36xx_get_survey() 1291 wcn36xx_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) wcn36xx_get_survey() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas_tf/ |
H A D | main.c | 459 struct survey_info *survey) in lbtf_op_get_survey() 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() 458 lbtf_op_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) lbtf_op_get_survey() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/libertas_tf/ |
H A D | main.c | 460 struct survey_info *survey) in lbtf_op_get_survey() 468 survey->channel = conf->chandef.chan; in lbtf_op_get_survey() 469 survey->filled = SURVEY_INFO_NOISE_DBM; in lbtf_op_get_survey() 470 survey->noise = priv->noise; in lbtf_op_get_survey() 459 lbtf_op_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) lbtf_op_get_survey() argument
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath10k/ |
H A D | hw.c | 549 void ath10k_hw_fill_survey_time(struct ath10k *ar, struct survey_info *survey, in ath10k_hw_fill_survey_time() argument 556 survey->filled |= SURVEY_INFO_TIME | in ath10k_hw_fill_survey_time() 566 survey->filled &= ~SURVEY_INFO_TIME_BUSY; in ath10k_hw_fill_survey_time() 584 survey->time = CCNT_TO_MSEC(ar, cc); in ath10k_hw_fill_survey_time() 585 survey->time_busy = CCNT_TO_MSEC(ar, rcc); in ath10k_hw_fill_survey_time()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/carl9170/ |
H A D | main.c | 1609 struct survey_info *survey) in carl9170_op_get_survey() 1644 memcpy(survey, &ar->survey[idx], sizeof(*survey)); in carl9170_op_get_survey() 1646 survey->channel = chan; in carl9170_op_get_survey() 1647 survey->filled = SURVEY_INFO_NOISE_DBM; in carl9170_op_get_survey() 1650 survey->filled |= SURVEY_INFO_IN_USE; in carl9170_op_get_survey() 1653 survey->filled |= SURVEY_INFO_TIME | in carl9170_op_get_survey() 1921 ar->survey = devm_kcalloc(&ar->udev->dev, chans, in carl9170_parse_eeprom() 1923 if (!ar->survey) in carl9170_parse_eeprom() 1608 carl9170_op_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) carl9170_op_get_survey() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | commands.c | 2373 qtnf_cmd_resp_proc_chan_stat_info(struct survey_info *survey, in qtnf_cmd_resp_proc_chan_stat_info() argument 2416 survey->filled |= SURVEY_INFO_TIME; in qtnf_cmd_resp_proc_chan_stat_info() 2417 survey->time = le64_to_cpu(stats->time_on); in qtnf_cmd_resp_proc_chan_stat_info() 2421 survey->filled |= SURVEY_INFO_TIME_TX; in qtnf_cmd_resp_proc_chan_stat_info() 2422 survey->time_tx = le64_to_cpu(stats->time_tx); in qtnf_cmd_resp_proc_chan_stat_info() 2426 survey->filled |= SURVEY_INFO_TIME_RX; in qtnf_cmd_resp_proc_chan_stat_info() 2427 survey->time_rx = le64_to_cpu(stats->time_rx); in qtnf_cmd_resp_proc_chan_stat_info() 2431 survey->filled |= SURVEY_INFO_TIME_BUSY; in qtnf_cmd_resp_proc_chan_stat_info() 2432 survey->time_busy = le64_to_cpu(stats->cca_busy); in qtnf_cmd_resp_proc_chan_stat_info() 2436 survey in qtnf_cmd_resp_proc_chan_stat_info() 2455 qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq, struct survey_info *survey) qtnf_cmd_get_chan_stats() argument [all...] |
H A D | commands.h | 63 struct survey_info *survey);
|
/kernel/linux/linux-6.6/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | commands.c | 2329 qtnf_cmd_resp_proc_chan_stat_info(struct survey_info *survey, in qtnf_cmd_resp_proc_chan_stat_info() argument 2372 survey->filled |= SURVEY_INFO_TIME; in qtnf_cmd_resp_proc_chan_stat_info() 2373 survey->time = le64_to_cpu(stats->time_on); in qtnf_cmd_resp_proc_chan_stat_info() 2377 survey->filled |= SURVEY_INFO_TIME_TX; in qtnf_cmd_resp_proc_chan_stat_info() 2378 survey->time_tx = le64_to_cpu(stats->time_tx); in qtnf_cmd_resp_proc_chan_stat_info() 2382 survey->filled |= SURVEY_INFO_TIME_RX; in qtnf_cmd_resp_proc_chan_stat_info() 2383 survey->time_rx = le64_to_cpu(stats->time_rx); in qtnf_cmd_resp_proc_chan_stat_info() 2387 survey->filled |= SURVEY_INFO_TIME_BUSY; in qtnf_cmd_resp_proc_chan_stat_info() 2388 survey->time_busy = le64_to_cpu(stats->cca_busy); in qtnf_cmd_resp_proc_chan_stat_info() 2392 survey in qtnf_cmd_resp_proc_chan_stat_info() 2411 qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq, struct survey_info *survey) qtnf_cmd_get_chan_stats() argument [all...] |
H A D | commands.h | 63 struct survey_info *survey);
|