| /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/ath/ath12k/ |
| H A D | dp_tx.c | 708 struct rate_info txrate = {}; in ath12k_dp_tx_update_txcompl() local 729 txrate.nss = arsta->last_txrate.nss; in ath12k_dp_tx_update_txcompl() 731 txrate.nss = arsta->peer_nss; in ath12k_dp_tx_update_txcompl() 746 txrate.legacy = rate; in ath12k_dp_tx_update_txcompl() 754 if (txrate.nss != 0) in ath12k_dp_tx_update_txcompl() 755 txrate.mcs = ts->mcs + 8 * (txrate.nss - 1); in ath12k_dp_tx_update_txcompl() 757 txrate.flags = RATE_INFO_FLAGS_MCS; in ath12k_dp_tx_update_txcompl() 760 txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_dp_tx_update_txcompl() 768 txrate.mcs = ts->mcs; in ath12k_dp_tx_update_txcompl() 769 txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath12k_dp_tx_update_txcompl() [all …]
|
| H A D | mac.c | 13184 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath12k_mac_op_sta_statistics() 13185 if (arsta->txrate.legacy) { in ath12k_mac_op_sta_statistics() 13186 sinfo->txrate.legacy = arsta->txrate.legacy; in ath12k_mac_op_sta_statistics() 13188 sinfo->txrate.mcs = arsta->txrate.mcs; in ath12k_mac_op_sta_statistics() 13189 sinfo->txrate.nss = arsta->txrate.nss; in ath12k_mac_op_sta_statistics() 13190 sinfo->txrate.bw = arsta->txrate.bw; in ath12k_mac_op_sta_statistics() 13191 sinfo->txrate.he_gi = arsta->txrate.he_gi; in ath12k_mac_op_sta_statistics() 13192 sinfo->txrate.he_dcm = arsta->txrate.he_dcm; in ath12k_mac_op_sta_statistics() 13193 sinfo->txrate.he_ru_alloc = arsta->txrate.he_ru_alloc; in ath12k_mac_op_sta_statistics() 13194 sinfo->txrate.eht_gi = arsta->txrate.eht_gi; in ath12k_mac_op_sta_statistics() [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | dp_tx.c | 477 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_dp_tx_update_txcompl() 492 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl() 494 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl() 504 arsta->txrate.legacy = rate; in ath11k_dp_tx_update_txcompl() 511 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl() 512 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl() 513 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_dp_tx_update_txcompl() 515 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_dp_tx_update_txcompl() 522 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl() 523 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_dp_tx_update_txcompl() [all …]
|
| H A D | debugfs_sta.c | 21 struct rate_info *txrate = &arsta->txrate; in ath11k_debugfs_sta_add_tx_stats() local 29 gi = FIELD_GET(RATE_INFO_FLAGS_SHORT_GI, arsta->txrate.flags); in ath11k_debugfs_sta_add_tx_stats() 30 mcs = txrate->mcs; in ath11k_debugfs_sta_add_tx_stats() 31 bw = ath11k_mac_mac80211_bw_to_ath11k_bw(txrate->bw); in ath11k_debugfs_sta_add_tx_stats() 32 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats() 36 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats() 43 } else if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath11k_debugfs_sta_add_tx_stats() 50 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats() 71 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats() 76 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
|
| H A D | mac.c | 9409 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics() 9410 if (arsta->txrate.legacy) { in ath11k_mac_op_sta_statistics() 9411 sinfo->txrate.legacy = arsta->txrate.legacy; in ath11k_mac_op_sta_statistics() 9413 sinfo->txrate.mcs = arsta->txrate.mcs; in ath11k_mac_op_sta_statistics() 9414 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics() 9415 sinfo->txrate.bw = arsta->txrate.bw; in ath11k_mac_op_sta_statistics() 9416 sinfo->txrate.he_gi = arsta->txrate.he_gi; in ath11k_mac_op_sta_statistics() 9417 sinfo->txrate.he_dcm = arsta->txrate.he_dcm; in ath11k_mac_op_sta_statistics() 9418 sinfo->txrate.he_ru_alloc = arsta->txrate.he_ru_alloc; in ath11k_mac_op_sta_statistics() 9420 sinfo->txrate.flags = arsta->txrate.flags; in ath11k_mac_op_sta_statistics()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | htt_rx.c | 3670 struct rate_info *txrate = &arsta->txrate; in ath10k_accumulate_per_peer_tx_stats() local 3679 flags = txrate->flags; in ath10k_accumulate_per_peer_tx_stats() 3682 bw = txrate->bw; in ath10k_accumulate_per_peer_tx_stats() 3683 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() 3690 if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3697 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3718 if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3774 if (txrate->flags >= RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3796 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local 3800 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/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 …]
|
| H A D | mac80211.c | 730 sinfo->txrate = si->ra_report.txrate; in rtw_ops_sta_statistics()
|
| /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/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()
|
| H A D | at76c50x-usb.h | 408 int txrate; /* 0,1,2,3 = 1,2,5.5,11 Mbps, 4 is auto */ member
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | cfg80211.c | 1836 sinfo->txrate.legacy = rate / 100; in ath6kl_get_station() 1839 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath6kl_get_station() 1840 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station() 1842 sinfo->txrate.mcs = mcs; in ath6kl_get_station() 1845 sinfo->txrate.flags |= RATE_INFO_FLAGS_MCS; in ath6kl_get_station() 1846 sinfo->txrate.bw = RATE_INFO_BW_20; in ath6kl_get_station() 1849 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath6kl_get_station() 1850 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station() 1852 sinfo->txrate.mcs = mcs; in ath6kl_get_station() 1855 sinfo->txrate.bw = RATE_INFO_BW_40; in ath6kl_get_station() [all …]
|
| /linux/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_mac.c | 860 struct ieee80211_rate *txrate; in fill_ctrlset() local 874 txrate = ieee80211_get_tx_rate(mac->hw, info); in fill_ctrlset() 876 cs->modulation = txrate->hw_value; in fill_ctrlset() 878 cs->modulation = txrate->hw_value_short; in fill_ctrlset()
|
| /linux/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim.c | 1267 struct ieee80211_rate *txrate = ieee80211_get_tx_rate(hw, info); in mac80211_hwsim_monitor_rx() local 1269 if (!txrate) in mac80211_hwsim_monitor_rx() 1272 bitrate = txrate->bitrate; in mac80211_hwsim_monitor_rx() 1294 if (txrate && txrate->flags & IEEE80211_RATE_ERP_G) in mac80211_hwsim_monitor_rx() 2107 struct ieee80211_rate *txrate; in mac80211_hwsim_tx() local 2113 txrate = ieee80211_get_tx_rate(hw, txi); in mac80211_hwsim_tx() 2114 if (txrate) in mac80211_hwsim_tx() 2115 bitrate = txrate->bitrate; in mac80211_hwsim_tx() 2276 struct ieee80211_rate *txrate; in __mac80211_hwsim_beacon_tx() local 2293 txrate = ieee80211_get_tx_rate(hw, info); in __mac80211_hwsim_beacon_tx() [all …]
|
| H A D | virt_wifi.c | 341 sinfo->txrate = (struct rate_info) { in virt_wifi_get_station()
|
| /linux/net/batman-adv/ |
| H A D | bat_v_elp.c | 146 *pthroughput = cfg80211_calculate_bitrate(&sinfo.txrate) / 3; in batadv_v_elp_get_throughput()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| H A D | trx.h | 422 u32 txrate:6; member
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
| H A D | trx.h | 424 u32 txrate:6; member
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | host.h | 926 __le16 txrate; member
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
| H A D | trx.h | 535 u32 txrate:6; member
|