Home
last modified time | relevance | path

Searched refs:rate_n_flags (Results 1 – 25 of 30) sorted by relevance

12

/drivers/net/wireless/iwlwifi/mvm/
Drx.c241 u32 rate_n_flags; in iwl_mvm_rx_rx_mpdu() local
275 rate_n_flags = le32_to_cpu(phy_info->rate_n_flags); in iwl_mvm_rx_rx_mpdu()
330 switch (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK) { in iwl_mvm_rx_rx_mpdu()
343 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwl_mvm_rx_rx_mpdu()
345 if (rate_n_flags & RATE_HT_MCS_GF_MSK) in iwl_mvm_rx_rx_mpdu()
347 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_mvm_rx_rx_mpdu()
349 rx_status.rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_rx_rx_mpdu()
350 } else if (rate_n_flags & RATE_MCS_VHT_MSK) { in iwl_mvm_rx_rx_mpdu()
352 ((rate_n_flags & RATE_VHT_MCS_NSS_MSK) >> in iwl_mvm_rx_rx_mpdu()
354 rx_status.rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_mvm_rx_rx_mpdu()
[all …]
Dtx.c218 tx_cmd->rate_n_flags = cpu_to_le32((u32)rate_plcp | rate_flags); in iwl_mvm_set_tx_cmd_rate()
517 static void iwl_mvm_hwrate_to_tx_control(u32 rate_n_flags, in iwl_mvm_hwrate_to_tx_control() argument
523 ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); in iwl_mvm_hwrate_to_tx_control()
524 if (rate_n_flags & RATE_HT_MCS_GF_MSK) in iwl_mvm_hwrate_to_tx_control()
526 switch (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK) { in iwl_mvm_hwrate_to_tx_control()
539 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwl_mvm_hwrate_to_tx_control()
541 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_mvm_hwrate_to_tx_control()
543 r->idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_hwrate_to_tx_control()
544 } else if (rate_n_flags & RATE_MCS_VHT_MSK) { in iwl_mvm_hwrate_to_tx_control()
546 r, rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK, in iwl_mvm_hwrate_to_tx_control()
[all …]
Drs.c117 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument
120 return (u8)(rate_n_flags & RATE_LEGACY_RATE_MSK); in rs_extract_rate()
123 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument
128 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_hwrate_to_plcp_idx()
129 idx = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx()
147 rs_extract_rate(rate_n_flags)) in iwl_hwrate_to_plcp_idx()
159 struct iwl_lq_sta *lq_sta, u32 rate_n_flags);
165 u32 *rate_n_flags, int index);
168 u32 *rate_n_flags, int index) in rs_dbgfs_set_mcs() argument
437 static inline int get_num_of_ant_from_rate(u32 rate_n_flags) in get_num_of_ant_from_rate() argument
[all …]
Dutils.c210 int iwl_mvm_legacy_rate_to_mac80211_idx(u32 rate_n_flags, in iwl_mvm_legacy_rate_to_mac80211_idx() argument
213 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK; in iwl_mvm_legacy_rate_to_mac80211_idx()
Dsta.h259 u32 rate_n_flags; member
Dmac-ctxt.c815 beacon_cmd.tx.rate_n_flags = in iwl_mvm_mac_ctxt_send_beacon()
825 beacon_cmd.tx.rate_n_flags |= cpu_to_le32(RATE_MCS_CCK_MSK); in iwl_mvm_mac_ctxt_send_beacon()
827 beacon_cmd.tx.rate_n_flags |= in iwl_mvm_mac_ctxt_send_beacon()
Dfw-api-tx.h234 __le32 rate_n_flags; member
Dscan.c326 cmd->tx_cmd.rate_n_flags = in iwl_mvm_scan_request()
Dfw-api.h811 __le32 rate_n_flags; member
Dmvm.h372 int iwl_mvm_legacy_rate_to_mac80211_idx(u32 rate_n_flags,
/drivers/net/wireless/iwlegacy/
D4965-rs.c114 il4965_hwrate_to_plcp_idx(u32 rate_n_flags) in il4965_hwrate_to_plcp_idx() argument
119 if (rate_n_flags & RATE_MCS_HT_MSK) { in il4965_hwrate_to_plcp_idx()
120 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_plcp_idx()
135 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) in il4965_hwrate_to_plcp_idx()
147 struct il_lq_sta *lq_sta, u32 rate_n_flags);
153 u32 *rate_n_flags, int idx);
156 il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) in il4965_rs_dbgfs_set_mcs() argument
224 il4965_rs_extract_rate(u32 rate_n_flags) in il4965_rs_extract_rate() argument
226 return (u8) (rate_n_flags & 0xFF); in il4965_rs_extract_rate()
393 il4965_get_il4965_num_of_ant_from_rate(u32 rate_n_flags) in il4965_get_il4965_num_of_ant_from_rate() argument
[all …]
D4965.h71 int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band);
79 void il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags,
156 il4965_hw_get_rate(__le32 rate_n_flags) in il4965_hw_get_rate() argument
158 return le32_to_cpu(rate_n_flags) & 0xFF; in il4965_hw_get_rate()
D4965-mac.c461 il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band) in il4965_hwrate_to_mac80211_idx() argument
467 if (rate_n_flags & RATE_MCS_HT_MSK) { in il4965_hwrate_to_mac80211_idx()
468 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_mac80211_idx()
475 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) in il4965_hwrate_to_mac80211_idx()
626 u32 rate_n_flags; in il4965_hdl_rx() local
675 rate_n_flags = le32_to_cpu(phy_res->rate_n_flags); in il4965_hdl_rx()
687 il4965_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in il4965_hdl_rx()
724 if (rate_n_flags & RATE_MCS_HT_MSK) in il4965_hdl_rx()
726 if (rate_n_flags & RATE_MCS_HT40_MSK) in il4965_hdl_rx()
728 if (rate_n_flags & RATE_MCS_SGI_MSK) in il4965_hdl_rx()
[all …]
Dcommands.h969 __le16 rate_n_flags; member
1035 __le16 rate_n_flags; /* 3945 only */ member
1231 __le32 rate_n_flags; /* RATE_MCS_* */ member
1473 __le32 rate_n_flags; /* RATE_MCS_* */ member
1694 __le32 rate_n_flags; /* RATE_MCS_* */ member
1778 __le16 rate_n_flags; member
2080 __le32 rate_n_flags; /* RATE_MCS_*, RATE_* */ member
D3945.c733 station->sta.rate_n_flags = cpu_to_le16(tx_rate); in il3945_sync_sta()
2239 addsta->rate_n_flags = cmd->rate_n_flags; in il3945_build_addsta_hcmd()
2315 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp); in il3945_init_hw_rate_table()
Dcommon.c1956 station->sta.rate_n_flags = cpu_to_le16(rate | RATE_MCS_ANT_AB_MSK); in il_prep_station()
2312 D_RATE("lq idx %d 0x%X\n", i, lq->rs_table[i].rate_n_flags); in il_dump_lq_cmd()
2342 if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & RATE_MCS_HT_MSK) { in il_is_lq_table_valid()
/drivers/net/wireless/iwlwifi/dvm/
Drs.c115 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument
117 return (u8)(rate_n_flags & RATE_MCS_RATE_MSK); in rs_extract_rate()
120 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument
125 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_hwrate_to_plcp_idx()
126 idx = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx()
144 rs_extract_rate(rate_n_flags)) in iwl_hwrate_to_plcp_idx()
156 struct iwl_lq_sta *lq_sta, u32 rate_n_flags);
162 u32 *rate_n_flags, int index);
165 u32 *rate_n_flags, int index) in rs_dbgfs_set_mcs() argument
454 static inline int get_num_of_ant_from_rate(u32 rate_n_flags) in get_num_of_ant_from_rate() argument
[all …]
Dtx.c173 memcpy(&tx_cmd->rate_n_flags, &priv->tm_fixed_rate, in iwlagn_tx_cmd_build_rate()
174 sizeof(tx_cmd->rate_n_flags)); in iwlagn_tx_cmd_build_rate()
218 tx_cmd->rate_n_flags = iwl_hw_set_rate_n_flags(rate_plcp, rate_flags); in iwlagn_tx_cmd_build_rate()
850 static void iwlagn_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, in iwlagn_hwrate_to_tx_control() argument
856 ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); in iwlagn_hwrate_to_tx_control()
857 if (rate_n_flags & RATE_MCS_HT_MSK) in iwlagn_hwrate_to_tx_control()
859 if (rate_n_flags & RATE_MCS_GF_MSK) in iwlagn_hwrate_to_tx_control()
861 if (rate_n_flags & RATE_MCS_HT40_MSK) in iwlagn_hwrate_to_tx_control()
863 if (rate_n_flags & RATE_MCS_DUP_MSK) in iwlagn_hwrate_to_tx_control()
865 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwlagn_hwrate_to_tx_control()
[all …]
Drx.c224 u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); in iwlagn_rx_beacon_notif()
909 u32 rate_n_flags; in iwlagn_rx_reply_rx() local
937 rate_n_flags = le32_to_cpu(phy_res->rate_n_flags); in iwlagn_rx_reply_rx()
947 iwlagn_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in iwlagn_rx_reply_rx()
994 if (rate_n_flags & RATE_MCS_HT_MSK) in iwlagn_rx_reply_rx()
996 if (rate_n_flags & RATE_MCS_HT40_MSK) in iwlagn_rx_reply_rx()
998 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwlagn_rx_reply_rx()
1000 if (rate_n_flags & RATE_MCS_GF_MSK) in iwlagn_rx_reply_rx()
Dagn.h200 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band);
393 static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) in iwl_hw_get_rate() argument
395 return le32_to_cpu(rate_n_flags) & RATE_MCS_RATE_MSK; in iwl_hw_get_rate()
Dsta.c607 __le32 rate_n_flags; in iwl_sta_fill_lq() local
627 rate_n_flags = iwl_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags); in iwl_sta_fill_lq()
629 link_cmd->rs_table[i].rate_n_flags = rate_n_flags; in iwl_sta_fill_lq()
816 i, lq->rs_table[i].rate_n_flags); in iwl_dump_lq_cmd()
848 if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & in is_lq_table_valid()
Dlib.c98 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band) in iwlagn_hwrate_to_mac80211_idx() argument
104 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwlagn_hwrate_to_mac80211_idx()
105 idx = (rate_n_flags & 0xff); in iwlagn_hwrate_to_mac80211_idx()
112 if (iwl_rates[idx].plcp == (rate_n_flags & 0xFF)) in iwlagn_hwrate_to_mac80211_idx()
Dcommands.h1118 __le32 rate_n_flags; /* RATE_MCS_* */ member
1277 __le32 rate_n_flags; /* RATE_MCS_* */ member
1477 __le32 rate_n_flags; /* RATE_MCS_* */ member
1829 __le32 rate_n_flags; /* RATE_MCS_*, IWL_RATE_* */ member
Ddev.h168 u32 rate_n_flags; member
Dscan.c857 scan->tx_cmd.rate_n_flags = iwl_hw_set_rate_n_flags(rate, rate_flags); in iwlagn_request_scan()

12