Home
last modified time | relevance | path

Searched refs:txrate (Results 1 – 25 of 42) sorted by relevance

12

/linux/drivers/net/wireless/ath/ath12k/
H A Ddp_peer.c664 info->txrate.legacy = link_peer->txrate.legacy; in ath12k_dp_link_peer_get_sta_rate_info_stats()
665 info->txrate.mcs = link_peer->txrate.mcs; in ath12k_dp_link_peer_get_sta_rate_info_stats()
666 info->txrate.nss = link_peer->txrate.nss; in ath12k_dp_link_peer_get_sta_rate_info_stats()
667 info->txrate.bw = link_peer->txrate.bw; in ath12k_dp_link_peer_get_sta_rate_info_stats()
668 info->txrate.he_gi = link_peer->txrate.he_gi; in ath12k_dp_link_peer_get_sta_rate_info_stats()
669 info->txrate.he_dcm = link_peer->txrate.he_dcm; in ath12k_dp_link_peer_get_sta_rate_info_stats()
670 info->txrate.he_ru_alloc = link_peer->txrate.he_ru_alloc; in ath12k_dp_link_peer_get_sta_rate_info_stats()
671 info->txrate.flags = link_peer->txrate.flags; in ath12k_dp_link_peer_get_sta_rate_info_stats()
H A Dmac.c13460 if (rate_info.txrate.legacy || rate_info.txrate.nss) { in ath12k_mac_op_sta_statistics()
13461 if (rate_info.txrate.legacy) { in ath12k_mac_op_sta_statistics()
13462 sinfo->txrate.legacy = rate_info.txrate.legacy; in ath12k_mac_op_sta_statistics()
13464 sinfo->txrate.mcs = rate_info.txrate.mcs; in ath12k_mac_op_sta_statistics()
13465 sinfo->txrate.nss = rate_info.txrate.nss; in ath12k_mac_op_sta_statistics()
13466 sinfo->txrate.bw = rate_info.txrate.bw; in ath12k_mac_op_sta_statistics()
13467 sinfo->txrate.he_gi = rate_info.txrate.he_gi; in ath12k_mac_op_sta_statistics()
13468 sinfo->txrate.he_dcm = rate_info.txrate.he_dcm; in ath12k_mac_op_sta_statistics()
13469 sinfo->txrate.he_ru_alloc = rate_info.txrate.he_ru_alloc; in ath12k_mac_op_sta_statistics()
13470 sinfo->txrate.eht_gi = rate_info.txrate.eht_gi; in ath12k_mac_op_sta_statistics()
[all …]
/linux/drivers/net/wireless/ath/carl9170/
H A Dtx.c707 struct ieee80211_tx_info *info, struct ieee80211_tx_rate *txrate, in carl9170_tx_rate_tpc_chains() argument
714 idx = txrate->idx; in carl9170_tx_rate_tpc_chains()
718 if (txrate->flags & IEEE80211_TX_RC_MCS) { in carl9170_tx_rate_tpc_chains()
719 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) { in carl9170_tx_rate_tpc_chains()
734 *phyrate = txrate->idx; in carl9170_tx_rate_tpc_chains()
755 if (!(txrate->flags & IEEE80211_TX_RC_MCS) && in carl9170_tx_rate_tpc_chains()
766 struct ieee80211_tx_info *info, struct ieee80211_tx_rate *txrate) in carl9170_tx_physet() argument
773 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in carl9170_tx_physet()
777 if (txrate->flags & IEEE80211_TX_RC_DUP_DATA) in carl9170_tx_physet()
781 if (txrate->flags & IEEE80211_TX_RC_SHORT_GI) in carl9170_tx_physet()
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dmac.c28 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/ath11k/
H A Ddp_tx.c478 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_dp_tx_update_txcompl()
493 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl()
495 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl()
505 arsta->txrate.legacy = rate; in ath11k_dp_tx_update_txcompl()
512 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl()
513 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl()
514 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_dp_tx_update_txcompl()
516 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_dp_tx_update_txcompl()
523 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl()
524 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_dp_tx_update_txcompl()
[all …]
H A Ddp_rx.c1452 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_update_per_peer_tx_stats()
1456 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats()
1459 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats()
1462 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats()
1463 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_update_per_peer_tx_stats()
1465 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats()
1468 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats()
1469 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_update_per_peer_tx_stats()
1471 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats()
1474 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats()
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dhtt_rx.c3669 struct rate_info *txrate = &arsta->txrate; in ath10k_accumulate_per_peer_tx_stats() local
3678 flags = txrate->flags; in ath10k_accumulate_per_peer_tx_stats()
3681 bw = txrate->bw; in ath10k_accumulate_per_peer_tx_stats()
3682 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats()
3689 if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3696 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3717 if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3773 if (txrate->flags >= RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3795 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local
3799 txrate.flags = ATH10K_HW_PREAMBLE(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats()
[all …]
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00queue.c233 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/brcm80211/brcmsmac/
H A Dampdu.c493 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 Dmain.c838 struct ieee80211_tx_rate *txrate; in brcms_c_dotxstatus() local
939 txrate = tx_info->status.rates; in brcms_c_dotxstatus()
940 if (txrate[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in brcms_c_dotxstatus()
947 if ((tx_frame_count > fbl) && (txrate[1].idx >= 0)) { in brcms_c_dotxstatus()
952 txrate[0].count = fbl; in brcms_c_dotxstatus()
953 txrate[1].count = tx_frame_count - fbl; in brcms_c_dotxstatus()
959 txrate[0].count = tx_frame_count; in brcms_c_dotxstatus()
964 txrate[1].idx = -1; in brcms_c_dotxstatus()
965 txrate[1].count = 0; in brcms_c_dotxstatus()
970 txrate[i].idx = -1; in brcms_c_dotxstatus()
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Dxmit.c259 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/mediatek/mt76/
H A Dmt76_connac_mac.c623 u32 txrate, txs, mode, stbc; in mt76_connac2_mac_fill_txs() local
650 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt76_connac2_mac_fill_txs()
652 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt76_connac2_mac_fill_txs()
653 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs()
654 stbc = FIELD_GET(MT_TX_RATE_STBC, txrate); in mt76_connac2_mac_fill_txs()
664 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt76_connac2_mac_fill_txs()
707 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt76_connac2_mac_fill_txs()
/linux/drivers/net/wireless/realtek/rtw88/
H A Dfw.c158 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 Dmac80211.c730 sinfo->txrate = si->ra_report.txrate; in rtw_ops_sta_statistics()
/linux/sound/soc/fsl/
H A Dfsl_spdif.c106 * @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 Dtrx.h92 u32 txrate:6; member
/linux/drivers/net/wireless/ath/ath9k/
H A Dwmi.h21 __be32 txrate; member
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmac.c907 u32 txrate, txs, mode, stbc; in mt7925_mac_add_txs_skb() local
926 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7925_mac_add_txs_skb()
928 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7925_mac_add_txs_skb()
929 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb()
940 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7925_mac_add_txs_skb()
981 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7925_mac_add_txs_skb()
/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_mac.c859 struct ieee80211_rate *txrate; in fill_ctrlset() local
873 txrate = ieee80211_get_tx_rate(mac->hw, info); in fill_ctrlset()
875 cs->modulation = txrate->hw_value; in fill_ctrlset()
877 cs->modulation = txrate->hw_value_short; in fill_ctrlset()
/linux/drivers/net/wireless/atmel/
H A Dat76c50x-usb.h408 int txrate; /* 0,1,2,3 = 1,2,5.5,11 Mbps, 4 is auto */ member
/linux/drivers/net/wireless/virtual/
H A Dmac80211_hwsim.c1367 struct ieee80211_rate *txrate = ieee80211_get_tx_rate(hw, info); in mac80211_hwsim_monitor_rx() local
1369 if (!txrate) in mac80211_hwsim_monitor_rx()
1372 bitrate = txrate->bitrate; in mac80211_hwsim_monitor_rx()
1394 if (txrate && txrate->flags & IEEE80211_RATE_ERP_G) in mac80211_hwsim_monitor_rx()
2243 struct ieee80211_rate *txrate; in mac80211_hwsim_tx() local
2249 txrate = ieee80211_get_tx_rate(hw, txi); in mac80211_hwsim_tx()
2250 if (txrate) in mac80211_hwsim_tx()
2251 bitrate = txrate->bitrate; in mac80211_hwsim_tx()
2412 struct ieee80211_rate *txrate; in __mac80211_hwsim_beacon_tx() local
2429 txrate = ieee80211_get_tx_rate(hw, info); in __mac80211_hwsim_beacon_tx()
[all …]
/linux/net/batman-adv/
H A Dbat_v_elp.c154 *pthroughput = cfg80211_calculate_bitrate(&sinfo.txrate) / 3; in batadv_v_elp_get_throughput()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmac.c1419 u32 txrate, txs, mode, stbc; in mt7996_mac_add_txs_skb() local
1450 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7996_mac_add_txs_skb()
1452 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7996_mac_add_txs_skb()
1453 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7996_mac_add_txs_skb()
1464 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7996_mac_add_txs_skb()
1507 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7996_mac_add_txs_skb()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dtrx.h422 u32 txrate:6; member
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dtrx.h424 u32 txrate:6; member

12