/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt792x_core.c | 532 struct rate_info *txrate = &msta->deflink.wcid.rate; in mt792x_sta_statistics() local 534 if (!txrate->legacy && !txrate->flags) in mt792x_sta_statistics() 537 if (txrate->legacy) { in mt792x_sta_statistics() 538 sinfo->txrate.legacy = txrate->legacy; in mt792x_sta_statistics() 540 sinfo->txrate.mcs = txrate->mcs; in mt792x_sta_statistics() 541 sinfo->txrate.nss = txrate->nss; in mt792x_sta_statistics() 542 sinfo->txrate.bw = txrate->bw; in mt792x_sta_statistics() 543 sinfo->txrate.he_gi = txrate->he_gi; in mt792x_sta_statistics() 544 sinfo->txrate.he_dcm = txrate->he_dcm; in mt792x_sta_statistics() 545 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt792x_sta_statistics() [all …]
|
H A D | mt76x02_mac.c | 279 mt76x02_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate, in mt76x02_mac_process_tx_rate() argument 284 txrate->idx = 0; in mt76x02_mac_process_tx_rate() 285 txrate->flags = 0; in mt76x02_mac_process_tx_rate() 286 txrate->count = 1; in mt76x02_mac_process_tx_rate() 293 txrate->idx = idx; in mt76x02_mac_process_tx_rate() 299 txrate->idx = idx; in mt76x02_mac_process_tx_rate() 302 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; in mt76x02_mac_process_tx_rate() 305 txrate->flags |= IEEE80211_TX_RC_MCS; in mt76x02_mac_process_tx_rate() 306 txrate->idx = idx; in mt76x02_mac_process_tx_rate() 309 txrate->flags |= IEEE80211_TX_RC_VHT_MCS; in mt76x02_mac_process_tx_rate() [all …]
|
H A D | mt76_connac_mac.c | 604 u32 txrate, txs, mode, stbc; in mt76_connac2_mac_fill_txs() local 631 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt76_connac2_mac_fill_txs() 633 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt76_connac2_mac_fill_txs() 634 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs() 635 stbc = FIELD_GET(MT_TX_RATE_STBC, txrate); in mt76_connac2_mac_fill_txs() 645 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt76_connac2_mac_fill_txs() 688 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt76_connac2_mac_fill_txs()
|
/linux/drivers/net/wireless/ath/carl9170/ |
H A D | tx.c | 708 struct ieee80211_tx_info *info, struct ieee80211_tx_rate *txrate, in carl9170_tx_rate_tpc_chains() argument 715 idx = txrate->idx; in carl9170_tx_rate_tpc_chains() 719 if (txrate->flags & IEEE80211_TX_RC_MCS) { in carl9170_tx_rate_tpc_chains() 720 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) { in carl9170_tx_rate_tpc_chains() 735 *phyrate = txrate->idx; in carl9170_tx_rate_tpc_chains() 756 if (!(txrate->flags & IEEE80211_TX_RC_MCS) && in carl9170_tx_rate_tpc_chains() 767 struct ieee80211_tx_info *info, struct ieee80211_tx_rate *txrate) in carl9170_tx_physet() argument 774 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in carl9170_tx_physet() 778 if (txrate->flags & IEEE80211_TX_RC_DUP_DATA) in carl9170_tx_physet() 782 if (txrate->flags & IEEE80211_TX_RC_SHORT_GI) in carl9170_tx_physet() [all …]
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | mac.c | 28 mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate) in mt76_mac_process_tx_rate() argument 32 txrate->idx = 0; in mt76_mac_process_tx_rate() 33 txrate->flags = 0; in mt76_mac_process_tx_rate() 34 txrate->count = 1; in mt76_mac_process_tx_rate() 38 txrate->idx = idx + 4; in mt76_mac_process_tx_rate() 44 txrate->idx = idx; in mt76_mac_process_tx_rate() 47 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; in mt76_mac_process_tx_rate() 50 txrate->flags |= IEEE80211_TX_RC_MCS; in mt76_mac_process_tx_rate() 51 txrate->idx = idx; in mt76_mac_process_tx_rate() 59 txrate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH; in mt76_mac_process_tx_rate() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | main.c | 1001 struct rate_info *txrate = &msta->wcid.rate; in mt7996_sta_statistics() local 1003 if (txrate->legacy || txrate->flags) { in mt7996_sta_statistics() 1004 if (txrate->legacy) { in mt7996_sta_statistics() 1005 sinfo->txrate.legacy = txrate->legacy; in mt7996_sta_statistics() 1007 sinfo->txrate.mcs = txrate->mcs; in mt7996_sta_statistics() 1008 sinfo->txrate.nss = txrate->nss; in mt7996_sta_statistics() 1009 sinfo->txrate.bw = txrate->bw; in mt7996_sta_statistics() 1010 sinfo->txrate.he_gi = txrate->he_gi; in mt7996_sta_statistics() 1011 sinfo->txrate.he_dcm = txrate->he_dcm; in mt7996_sta_statistics() 1012 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt7996_sta_statistics() [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | dp_tx.c | 476 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_dp_tx_update_txcompl() 491 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl() 493 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl() 503 arsta->txrate.legacy = rate; in ath11k_dp_tx_update_txcompl() 510 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl() 511 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl() 512 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_dp_tx_update_txcompl() 514 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_dp_tx_update_txcompl() 521 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl() 522 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_dp_tx_update_txcompl() [all …]
|
H A D | debugfs_sta.c | 20 struct rate_info *txrate = &arsta->txrate; in ath11k_debugfs_sta_add_tx_stats() local 28 gi = FIELD_GET(RATE_INFO_FLAGS_SHORT_GI, arsta->txrate.flags); in ath11k_debugfs_sta_add_tx_stats() 29 mcs = txrate->mcs; in ath11k_debugfs_sta_add_tx_stats() 30 bw = ath11k_mac_mac80211_bw_to_ath11k_bw(txrate->bw); in ath11k_debugfs_sta_add_tx_stats() 31 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats() 35 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats() 42 } else if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath11k_debugfs_sta_add_tx_stats() 49 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats() 70 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats() 75 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
|
H A D | dp_rx.c | 1462 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_update_per_peer_tx_stats() 1466 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats() 1469 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats() 1472 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats() 1473 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_update_per_peer_tx_stats() 1475 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats() 1478 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats() 1479 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_update_per_peer_tx_stats() 1481 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats() 1484 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats() [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | htt_rx.c | 3666 struct rate_info *txrate = &arsta->txrate; in ath10k_accumulate_per_peer_tx_stats() local 3675 flags = txrate->flags; in ath10k_accumulate_per_peer_tx_stats() 3678 bw = txrate->bw; in ath10k_accumulate_per_peer_tx_stats() 3679 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() 3686 if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3693 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3714 if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3770 if (txrate->flags >= RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3792 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local 3796 txrate.flags = ATH10K_HW_PREAMBLE(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats() [all …]
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00queue.c | 233 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor_plcp() local 286 if (txrate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in rt2x00queue_create_tx_descriptor_plcp() 298 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor_ht() local 313 if (txrate->flags & IEEE80211_TX_RC_MCS) { in rt2x00queue_create_tx_descriptor_ht() 314 txdesc->u.ht.mcs = txrate->idx; in rt2x00queue_create_tx_descriptor_ht() 325 if (txrate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in rt2x00queue_create_tx_descriptor_ht() 360 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH || in rt2x00queue_create_tx_descriptor_ht() 361 txrate->flags & IEEE80211_TX_RC_DUP_DATA) in rt2x00queue_create_tx_descriptor_ht() 363 if (txrate->flags & IEEE80211_TX_RC_SHORT_GI) in rt2x00queue_create_tx_descriptor_ht() 391 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor() local [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | main.c | 1094 struct rate_info *txrate = &msta->wcid.rate; in mt7915_sta_statistics() local 1102 if (txrate->legacy || txrate->flags) { in mt7915_sta_statistics() 1103 if (txrate->legacy) { in mt7915_sta_statistics() 1104 sinfo->txrate.legacy = txrate->legacy; in mt7915_sta_statistics() 1106 sinfo->txrate.mcs = txrate->mcs; in mt7915_sta_statistics() 1107 sinfo->txrate.nss = txrate->nss; in mt7915_sta_statistics() 1108 sinfo->txrate.bw = txrate->bw; in mt7915_sta_statistics() 1109 sinfo->txrate.he_gi = txrate->he_gi; in mt7915_sta_statistics() 1110 sinfo->txrate.he_dcm = txrate->he_dcm; in mt7915_sta_statistics() 1111 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt7915_sta_statistics() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | ampdu.c | 493 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_add_frame() local 541 if (txrate[0].count <= ampdu->rr_retry_limit_tid[tid]) { in brcms_c_ampdu_add_frame() 542 txrate[0].count++; in brcms_c_ampdu_add_frame() 545 txrate[1].count++; in brcms_c_ampdu_add_frame() 601 struct ieee80211_tx_rate *txrate; in brcms_c_ampdu_finalize() local 652 txrate = tx_info->status.rates; in brcms_c_ampdu_finalize() 674 fbr = txrate[1].count > 0; in brcms_c_ampdu_finalize() 791 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_rate_status() local 796 txrate[i].idx = -1; in brcms_c_ampdu_rate_status() 797 txrate[i].count = 0; in brcms_c_ampdu_rate_status()
|
H A D | main.c | 839 struct ieee80211_tx_rate *txrate; in brcms_c_dotxstatus() local 940 txrate = tx_info->status.rates; in brcms_c_dotxstatus() 941 if (txrate[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in brcms_c_dotxstatus() 948 if ((tx_frame_count > fbl) && (txrate[1].idx >= 0)) { in brcms_c_dotxstatus() 953 txrate[0].count = fbl; in brcms_c_dotxstatus() 954 txrate[1].count = tx_frame_count - fbl; in brcms_c_dotxstatus() 960 txrate[0].count = tx_frame_count; in brcms_c_dotxstatus() 965 txrate[1].idx = -1; in brcms_c_dotxstatus() 966 txrate[1].count = 0; in brcms_c_dotxstatus() 971 txrate[i].idx = -1; in brcms_c_dotxstatus() [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | xmit.c | 259 struct ieee80211_rate *txrate; in b43_generate_txhdr() local 264 txrate = ieee80211_get_tx_rate(dev->wl->hw, info); in b43_generate_txhdr() 265 rate = txrate ? txrate->hw_value : B43_CCK_RATE_1MB; in b43_generate_txhdr() 267 fbrate = ieee80211_get_alt_retry_rate(dev->wl->hw, info, 0) ? : txrate; in b43_generate_txhdr()
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | fw.c | 158 si->ra_report.txrate.flags = 0; in rtw_fw_ra_report_iter() 168 si->ra_report.txrate.legacy = rtw_desc_to_bitrate(rate); in rtw_fw_ra_report_iter() 174 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in rtw_fw_ra_report_iter() 176 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_MCS; in rtw_fw_ra_report_iter() 179 si->ra_report.txrate.mcs = mcs; in rtw_fw_ra_report_iter() 180 si->ra_report.txrate.nss = nss; in rtw_fw_ra_report_iter() 184 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in rtw_fw_ra_report_iter() 187 si->ra_report.txrate.bw = RATE_INFO_BW_80; in rtw_fw_ra_report_iter() 189 si->ra_report.txrate.bw = RATE_INFO_BW_40; in rtw_fw_ra_report_iter() 191 si->ra_report.txrate.bw = RATE_INFO_BW_20; in rtw_fw_ra_report_iter() [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | dp_rx.c | 1403 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath12k_update_per_peer_tx_stats() 1407 arsta->txrate.legacy = rate; in ath12k_update_per_peer_tx_stats() 1410 arsta->txrate.legacy = rate; in ath12k_update_per_peer_tx_stats() 1413 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath12k_update_per_peer_tx_stats() 1414 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath12k_update_per_peer_tx_stats() 1416 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_update_per_peer_tx_stats() 1419 arsta->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats() 1420 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath12k_update_per_peer_tx_stats() 1422 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_update_per_peer_tx_stats() 1425 arsta->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats() [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | phy.c | 2669 memset(&ra_report->txrate, 0, sizeof(ra_report->txrate)); in __rtw89_phy_c2h_ra_rpt_iter() 2673 ra_report->txrate.legacy = legacy_bitrate; in __rtw89_phy_c2h_ra_rpt_iter() 2676 ra_report->txrate.flags |= RATE_INFO_FLAGS_MCS; in __rtw89_phy_c2h_ra_rpt_iter() 2682 ra_report->txrate.mcs = rate; in __rtw89_phy_c2h_ra_rpt_iter() 2684 ra_report->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in __rtw89_phy_c2h_ra_rpt_iter() 2685 mcs = ra_report->txrate.mcs & 0x07; in __rtw89_phy_c2h_ra_rpt_iter() 2688 ra_report->txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in __rtw89_phy_c2h_ra_rpt_iter() 2689 ra_report->txrate.mcs = format_v1 ? in __rtw89_phy_c2h_ra_rpt_iter() 2692 ra_report->txrate.nss = format_v1 ? in __rtw89_phy_c2h_ra_rpt_iter() 2696 ra_report->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in __rtw89_phy_c2h_ra_rpt_iter() [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_spdif.c | 106 * @txrate: the best rates for playback 132 u32 txrate[SPDIF_TXRATE_MAX]; member 598 spdif_priv->txrate[rate], sample_rate); in spdif_set_sample_rate() 1456 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv() 1467 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv() 1477 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv() 1527 rate[index], spdif_priv->txrate[index]); in fsl_spdif_probe_txclk()
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
H A D | trx.h | 92 u32 txrate:6; member
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | wmi.h | 21 __be32 txrate; member
|
/linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
H A D | mac.c | 904 u32 txrate, txs, mode, stbc; in mt7925_mac_add_txs_skb() local 923 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7925_mac_add_txs_skb() 925 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7925_mac_add_txs_skb() 926 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb() 937 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7925_mac_add_txs_skb() 978 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7925_mac_add_txs_skb()
|
/linux/drivers/net/wireless/atmel/ |
H A D | at76c50x-usb.c | 1359 priv->txrate == TX_RATE_1MBIT ? "1MBit" : priv->txrate == in at76_startup_device() 1360 TX_RATE_2MBIT ? "2MBit" : priv->txrate == in at76_startup_device() 1361 TX_RATE_5_5MBIT ? "5.5MBit" : priv->txrate == in at76_startup_device() 1362 TX_RATE_11MBIT ? "11MBit" : priv->txrate == in at76_startup_device() 1394 ccfg->auto_rate_fallback = (priv->txrate == TX_RATE_AUTO ? 1 : 0); in at76_startup_device() 1438 priv->txrate == TX_RATE_AUTO ? 1 : 0); in at76_startup_device() 2344 priv->txrate = TX_RATE_AUTO; in at76_init_new_device()
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | cfg80211.c | 1832 sinfo->txrate.legacy = rate / 100; in ath6kl_get_station() 1835 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath6kl_get_station() 1836 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station() 1838 sinfo->txrate.mcs = mcs; in ath6kl_get_station() 1841 sinfo->txrate.flags |= RATE_INFO_FLAGS_MCS; in ath6kl_get_station() 1842 sinfo->txrate.bw = RATE_INFO_BW_20; in ath6kl_get_station() 1845 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath6kl_get_station() 1846 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station() 1848 sinfo->txrate.mcs = mcs; in ath6kl_get_station() 1851 sinfo->txrate.bw = RATE_INFO_BW_40; in ath6kl_get_station() [all …]
|
/linux/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_mac.c | 856 struct ieee80211_rate *txrate; in fill_ctrlset() local 870 txrate = ieee80211_get_tx_rate(mac->hw, info); in fill_ctrlset() 872 cs->modulation = txrate->hw_value; in fill_ctrlset() 874 cs->modulation = txrate->hw_value_short; in fill_ctrlset()
|