/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rx.c | 203 u32 rate_n_flags) in iwl_mvm_rx_handle_tcm() argument 237 if (!(rate_n_flags & (RATE_MCS_HT_MSK_V1 | RATE_MCS_VHT_MSK_V1))) in iwl_mvm_rx_handle_tcm() 251 if (rate_n_flags & RATE_MCS_HT_MSK_V1) { in iwl_mvm_rx_handle_tcm() 252 thr = thresh_tpt[rate_n_flags & RATE_HT_MCS_RATE_CODE_MSK_V1]; in iwl_mvm_rx_handle_tcm() 253 thr *= 1 + ((rate_n_flags & RATE_HT_MCS_NSS_MSK_V1) >> in iwl_mvm_rx_handle_tcm() 256 if (WARN_ON((rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK) >= in iwl_mvm_rx_handle_tcm() 259 thr = thresh_tpt[rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK]; in iwl_mvm_rx_handle_tcm() 260 thr *= 1 + FIELD_GET(RATE_MCS_NSS_MSK, rate_n_flags); in iwl_mvm_rx_handle_tcm() 263 thr <<= ((rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK_V1) >> in iwl_mvm_rx_handle_tcm() 299 u32 rate_n_flags; in iwl_mvm_rx_rx_mpdu() local [all …]
|
D | rxmq.c | 259 u32 rate_n_flags, int energy_a, in iwl_mvm_get_signal_strength() argument 263 u32 rate_flags = rate_n_flags; in iwl_mvm_get_signal_strength() 1205 u32 rate_n_flags; member 1219 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_mu_ext() local 1242 (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK_V1) != RATE_MCS_CHAN_WIDTH_20) { in iwl_mvm_decode_he_mu_ext() 1278 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_phy_ru_alloc() local 1279 u32 he_type = rate_n_flags & RATE_MCS_HE_TYPE_MSK_V1; in iwl_mvm_decode_he_phy_ru_alloc() 1335 rate_n_flags), in iwl_mvm_decode_he_phy_ru_alloc() 1341 rate_n_flags), in iwl_mvm_decode_he_phy_ru_alloc() 1538 u32 phy_bw = phy_data->rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK; in iwl_mvm_decode_eht_ext_mu() [all …]
|
D | tx.c | 425 tx_cmd->rate_n_flags = in iwl_mvm_set_tx_cmd_rate() 523 u32 rate_n_flags = 0; in iwl_mvm_set_tx_params() local 546 rate_n_flags = in iwl_mvm_set_tx_params() 570 cmd->rate_n_flags = cpu_to_le32(rate_n_flags); in iwl_mvm_set_tx_params() 585 cmd->rate_n_flags = cpu_to_le32(rate_n_flags); in iwl_mvm_set_tx_params() 1438 void iwl_mvm_hwrate_to_tx_rate(u32 rate_n_flags, in iwl_mvm_hwrate_to_tx_rate() argument 1442 u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_hwrate_to_tx_rate() 1444 RATE_HT_MCS_INDEX(rate_n_flags) : in iwl_mvm_hwrate_to_tx_rate() 1445 rate_n_flags & RATE_MCS_CODE_MSK; in iwl_mvm_hwrate_to_tx_rate() 1448 iwl_mvm_get_hwrate_chan_width(rate_n_flags & in iwl_mvm_hwrate_to_tx_rate() [all …]
|
D | utils.c | 138 int iwl_mvm_legacy_hw_idx_to_mac80211_idx(u32 rate_n_flags, in iwl_mvm_legacy_hw_idx_to_mac80211_idx() argument 141 int format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_legacy_hw_idx_to_mac80211_idx() 142 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK; in iwl_mvm_legacy_hw_idx_to_mac80211_idx() 153 int iwl_mvm_legacy_rate_to_mac80211_idx(u32 rate_n_flags, in iwl_mvm_legacy_rate_to_mac80211_idx() argument 156 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK_V1; in iwl_mvm_legacy_rate_to_mac80211_idx()
|
D | rs.c | 330 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument 333 return (u8)(rate_n_flags & RATE_LEGACY_RATE_MSK_V1); in rs_extract_rate() 336 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument 340 if (rate_n_flags & RATE_MCS_HT_MSK_V1) { in iwl_hwrate_to_plcp_idx() 341 idx = rate_n_flags & RATE_HT_MCS_RATE_CODE_MSK_V1; in iwl_hwrate_to_plcp_idx() 349 } else if (rate_n_flags & RATE_MCS_VHT_MSK_V1 || in iwl_hwrate_to_plcp_idx() 350 rate_n_flags & RATE_MCS_HE_MSK_V1) { in iwl_hwrate_to_plcp_idx() 351 idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_hwrate_to_plcp_idx() 359 if ((rate_n_flags & RATE_MCS_HE_MSK_V1) && in iwl_hwrate_to_plcp_idx() 365 u8 legacy_rate = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx() [all …]
|
D | mac80211.c | 5678 static void iwl_mvm_set_sta_rate(u32 rate_n_flags, struct rate_info *rinfo) in iwl_mvm_set_sta_rate() argument 5680 u32 format = rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_set_sta_rate() 5683 switch (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK) { in iwl_mvm_set_sta_rate() 5703 int rate = u32_get_bits(rate_n_flags, RATE_LEGACY_RATE_MSK); in iwl_mvm_set_sta_rate() 5749 rinfo->nss = u32_get_bits(rate_n_flags, in iwl_mvm_set_sta_rate() 5752 RATE_HT_MCS_INDEX(rate_n_flags) : in iwl_mvm_set_sta_rate() 5753 u32_get_bits(rate_n_flags, RATE_MCS_CODE_MSK); in iwl_mvm_set_sta_rate() 5755 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwl_mvm_set_sta_rate() 5764 gi_ltf = u32_get_bits(rate_n_flags, RATE_MCS_HE_GI_LTF_MSK); in iwl_mvm_set_sta_rate() 5768 if (rate_n_flags & RATE_MCS_HE_106T_MSK) { in iwl_mvm_set_sta_rate() [all …]
|
D | sta.h | 265 u32 rate_n_flags; member
|
D | mac-ctxt.c | 1005 tx->rate_n_flags = in iwl_mvm_mac_ctxt_set_tx() 1011 tx->rate_n_flags |= in iwl_mvm_mac_ctxt_set_tx() 1014 tx->rate_n_flags |= cpu_to_le32(RATE_MCS_CCK_MSK_V1); in iwl_mvm_mac_ctxt_set_tx()
|
D | mvm.h | 1605 int iwl_mvm_legacy_hw_idx_to_mac80211_idx(u32 rate_n_flags, 1607 int iwl_mvm_legacy_rate_to_mac80211_idx(u32 rate_n_flags, 1609 void iwl_mvm_hwrate_to_tx_rate(u32 rate_n_flags, 1612 void iwl_mvm_hwrate_to_tx_rate_v1(u32 rate_n_flags,
|
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-rs.c | 98 il4965_hwrate_to_plcp_idx(u32 rate_n_flags) in il4965_hwrate_to_plcp_idx() argument 103 if (rate_n_flags & RATE_MCS_HT_MSK) { in il4965_hwrate_to_plcp_idx() 104 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_plcp_idx() 119 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) in il4965_hwrate_to_plcp_idx() 131 struct il_lq_sta *lq_sta, u32 rate_n_flags); 137 u32 *rate_n_flags, int idx); 140 il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) in il4965_rs_dbgfs_set_mcs() argument 208 il4965_rs_extract_rate(u32 rate_n_flags) in il4965_rs_extract_rate() argument 210 return (u8) (rate_n_flags & 0xFF); in il4965_rs_extract_rate() 377 il4965_get_il4965_num_of_ant_from_rate(u32 rate_n_flags) in il4965_get_il4965_num_of_ant_from_rate() argument [all …]
|
D | 4965.h | 53 int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum nl80211_band band); 61 void il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags, 138 il4965_hw_get_rate(__le32 rate_n_flags) in il4965_hw_get_rate() argument 140 return le32_to_cpu(rate_n_flags) & 0xFF; in il4965_hw_get_rate()
|
D | 4965-mac.c | 446 il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum nl80211_band band) in il4965_hwrate_to_mac80211_idx() argument 452 if (rate_n_flags & RATE_MCS_HT_MSK) { in il4965_hwrate_to_mac80211_idx() 453 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_mac80211_idx() 460 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) in il4965_hwrate_to_mac80211_idx() 622 u32 rate_n_flags; in il4965_hdl_rx() local 671 rate_n_flags = le32_to_cpu(phy_res->rate_n_flags); in il4965_hdl_rx() 683 il4965_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in il4965_hdl_rx() 720 if (rate_n_flags & RATE_MCS_HT_MSK) in il4965_hdl_rx() 722 if (rate_n_flags & RATE_MCS_HT40_MSK) in il4965_hdl_rx() 726 if (rate_n_flags & RATE_MCS_SGI_MSK) in il4965_hdl_rx() [all …]
|
D | commands.h | 969 __le16 rate_n_flags; member 1035 __le16 rate_n_flags; /* 3945 only */ member 1231 __le32 rate_n_flags; /* RATE_MCS_* */ member 1467 __le32 rate_n_flags; /* RATE_MCS_* */ member 1688 __le32 rate_n_flags; /* RATE_MCS_* */ member 1772 __le16 rate_n_flags; member 2074 __le32 rate_n_flags; /* RATE_MCS_*, RATE_* */ member
|
D | 3945.c | 742 station->sta.rate_n_flags = cpu_to_le16(tx_rate); in il3945_sync_sta() 2247 addsta->rate_n_flags = cmd->rate_n_flags; in il3945_build_addsta_hcmd() 2323 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp); in il3945_init_hw_rate_table()
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/ |
D | rs.c | 94 static u32 iwl_legacy_rate_to_fw_idx(u32 rate_n_flags) in iwl_legacy_rate_to_fw_idx() argument 96 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK_V1; in iwl_legacy_rate_to_fw_idx() 98 bool ofdm = !(rate_n_flags & RATE_MCS_CCK_MSK_V1); in iwl_legacy_rate_to_fw_idx() 246 bool iwl_he_is_sgi(u32 rate_n_flags) in iwl_he_is_sgi() argument 248 u32 type = rate_n_flags & RATE_MCS_HE_TYPE_MSK; in iwl_he_is_sgi() 249 u32 ltf_gi = rate_n_flags & RATE_MCS_HE_GI_LTF_MSK; in iwl_he_is_sgi()
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 95 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument 97 return (u8)(rate_n_flags & RATE_MCS_RATE_MSK); in rs_extract_rate() 100 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument 105 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_hwrate_to_plcp_idx() 106 idx = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx() 124 rs_extract_rate(rate_n_flags)) in iwl_hwrate_to_plcp_idx() 136 struct iwl_lq_sta *lq_sta, u32 rate_n_flags); 142 u32 *rate_n_flags, int index); 145 u32 *rate_n_flags, int index) in rs_dbgfs_set_mcs() argument 403 static inline int get_num_of_ant_from_rate(u32 rate_n_flags) in get_num_of_ant_from_rate() argument [all …]
|
D | tx.c | 184 tx_cmd->rate_n_flags = iwl_hw_set_rate_n_flags(rate_plcp, rate_flags); in iwlagn_tx_cmd_build_rate() 805 static void iwlagn_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, in iwlagn_hwrate_to_tx_control() argument 811 ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); in iwlagn_hwrate_to_tx_control() 812 if (rate_n_flags & RATE_MCS_HT_MSK) in iwlagn_hwrate_to_tx_control() 814 if (rate_n_flags & RATE_MCS_GF_MSK) in iwlagn_hwrate_to_tx_control() 816 if (rate_n_flags & RATE_MCS_HT40_MSK) in iwlagn_hwrate_to_tx_control() 818 if (rate_n_flags & RATE_MCS_DUP_MSK) in iwlagn_hwrate_to_tx_control() 820 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwlagn_hwrate_to_tx_control() 822 r->idx = iwlagn_hwrate_to_mac80211_idx(rate_n_flags, info->band); in iwlagn_hwrate_to_tx_control() 936 agg->rate_n_flags = le32_to_cpu(tx_resp->rate_n_flags); in iwl_rx_reply_tx_agg() [all …]
|
D | rx.c | 116 u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); in iwlagn_rx_beacon_notif() 786 u32 rate_n_flags; in iwlagn_rx_reply_rx() local 826 rate_n_flags = le32_to_cpu(phy_res->rate_n_flags); in iwlagn_rx_reply_rx() 836 iwlagn_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in iwlagn_rx_reply_rx() 883 if (rate_n_flags & RATE_MCS_HT_MSK) in iwlagn_rx_reply_rx() 885 if (rate_n_flags & RATE_MCS_HT40_MSK) in iwlagn_rx_reply_rx() 889 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwlagn_rx_reply_rx() 891 if (rate_n_flags & RATE_MCS_GF_MSK) in iwlagn_rx_reply_rx()
|
D | agn.h | 143 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum nl80211_band band); 325 static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) in iwl_hw_get_rate() argument 327 return le32_to_cpu(rate_n_flags) & RATE_MCS_RATE_MSK; in iwl_hw_get_rate()
|
D | sta.c | 554 __le32 rate_n_flags; in iwl_sta_fill_lq() local 574 rate_n_flags = iwl_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags); in iwl_sta_fill_lq() 576 link_cmd->rs_table[i].rate_n_flags = rate_n_flags; in iwl_sta_fill_lq() 762 i, lq->rs_table[i].rate_n_flags); in iwl_dump_lq_cmd() 794 if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & in is_lq_table_valid()
|
D | lib.c | 74 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum nl80211_band band) in iwlagn_hwrate_to_mac80211_idx() argument 80 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwlagn_hwrate_to_mac80211_idx() 81 idx = (rate_n_flags & 0xff); in iwlagn_hwrate_to_mac80211_idx() 88 if (iwl_rates[idx].plcp == (rate_n_flags & 0xFF)) in iwlagn_hwrate_to_mac80211_idx()
|
D | commands.h | 1056 __le32 rate_n_flags; /* RATE_MCS_* */ member 1206 __le32 rate_n_flags; /* RATE_MCS_* */ member 1392 __le32 rate_n_flags; /* RATE_MCS_* */ member 1744 __le32 rate_n_flags; /* RATE_MCS_*, IWL_RATE_* */ member
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | rx.h | 60 __le32 rate_n_flags; member 489 __le32 rate_n_flags; member 586 __le32 rate_n_flags; member
|
D | tx.h | 231 __le32 rate_n_flags; member 274 __le32 rate_n_flags; member 296 __le32 rate_n_flags; member
|
D | rs.h | 766 bool iwl_he_is_sgi(u32 rate_n_flags);
|