/drivers/net/wireless/iwlwifi/mvm/ |
D | rx.c | 252 u32 rate_n_flags; in iwl_mvm_rx_rx_mpdu() local 290 rate_n_flags = le32_to_cpu(phy_info->rate_n_flags); in iwl_mvm_rx_rx_mpdu() 350 switch (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK) { in iwl_mvm_rx_rx_mpdu() 363 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwl_mvm_rx_rx_mpdu() 365 if (rate_n_flags & RATE_HT_MCS_GF_MSK) in iwl_mvm_rx_rx_mpdu() 367 if (rate_n_flags & RATE_MCS_LDPC_MSK) in iwl_mvm_rx_rx_mpdu() 369 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_mvm_rx_rx_mpdu() 370 u8 stbc = (rate_n_flags & RATE_MCS_HT_STBC_MSK) >> in iwl_mvm_rx_rx_mpdu() 373 rx_status.rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_rx_rx_mpdu() 375 } else if (rate_n_flags & RATE_MCS_VHT_MSK) { in iwl_mvm_rx_rx_mpdu() [all …]
|
D | tx.c | 227 tx_cmd->rate_n_flags = cpu_to_le32((u32)rate_plcp | rate_flags); in iwl_mvm_set_tx_cmd_rate() 558 void iwl_mvm_hwrate_to_tx_rate(u32 rate_n_flags, in iwl_mvm_hwrate_to_tx_rate() argument 562 if (rate_n_flags & RATE_HT_MCS_GF_MSK) in iwl_mvm_hwrate_to_tx_rate() 564 switch (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK) { in iwl_mvm_hwrate_to_tx_rate() 577 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwl_mvm_hwrate_to_tx_rate() 579 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_mvm_hwrate_to_tx_rate() 581 r->idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_hwrate_to_tx_rate() 582 } else if (rate_n_flags & RATE_MCS_VHT_MSK) { in iwl_mvm_hwrate_to_tx_rate() 584 r, rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK, in iwl_mvm_hwrate_to_tx_rate() 585 ((rate_n_flags & RATE_VHT_MCS_NSS_MSK) >> in iwl_mvm_hwrate_to_tx_rate() [all …]
|
D | rs.c | 339 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument 342 return (u8)(rate_n_flags & RATE_LEGACY_RATE_MSK); in rs_extract_rate() 345 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument 349 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_hwrate_to_plcp_idx() 350 idx = rate_n_flags & RATE_HT_MCS_RATE_CODE_MSK; in iwl_hwrate_to_plcp_idx() 358 } else if (rate_n_flags & RATE_MCS_VHT_MSK) { in iwl_hwrate_to_plcp_idx() 359 idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_hwrate_to_plcp_idx() 370 u8 legacy_rate = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx() 574 static inline int get_num_of_ant_from_rate(u32 rate_n_flags) in get_num_of_ant_from_rate() argument 576 return !!(rate_n_flags & RATE_MCS_ANT_A_MSK) + in get_num_of_ant_from_rate() [all …]
|
D | sta.h | 272 u32 rate_n_flags; member
|
D | fw-api-tx.h | 229 __le32 rate_n_flags; member
|
D | utils.c | 223 int iwl_mvm_legacy_rate_to_mac80211_idx(u32 rate_n_flags, in iwl_mvm_legacy_rate_to_mac80211_idx() argument 226 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK; in iwl_mvm_legacy_rate_to_mac80211_idx()
|
D | scan.c | 466 cmd->tx_cmd.rate_n_flags = in iwl_mvm_scan_request() 685 cmd->rate_n_flags = iwl_mvm_scan_rate_n_flags(mvm, band, false); in iwl_scan_offload_build_tx_cmd() 1094 tx_cmd[0].rate_n_flags = iwl_mvm_scan_rate_n_flags(mvm, in iwl_mvm_unified_scan_fill_tx_cmd() 1101 tx_cmd[1].rate_n_flags = iwl_mvm_scan_rate_n_flags(mvm, in iwl_mvm_unified_scan_fill_tx_cmd()
|
D | mac-ctxt.c | 937 beacon_cmd.tx.rate_n_flags = in iwl_mvm_mac_ctxt_send_beacon() 945 beacon_cmd.tx.rate_n_flags |= cpu_to_le32(RATE_MCS_CCK_MSK); in iwl_mvm_mac_ctxt_send_beacon() 947 beacon_cmd.tx.rate_n_flags |= in iwl_mvm_mac_ctxt_send_beacon()
|
D | fw-api-scan.h | 601 __le32 rate_n_flags; member
|
D | mvm.h | 808 int iwl_mvm_legacy_rate_to_mac80211_idx(u32 rate_n_flags, 810 void iwl_mvm_hwrate_to_tx_rate(u32 rate_n_flags,
|
D | fw-api.h | 1055 __le32 rate_n_flags; member
|
/drivers/net/wireless/iwlegacy/ |
D | 4965-rs.c | 113 il4965_hwrate_to_plcp_idx(u32 rate_n_flags) in il4965_hwrate_to_plcp_idx() argument 118 if (rate_n_flags & RATE_MCS_HT_MSK) { in il4965_hwrate_to_plcp_idx() 119 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_plcp_idx() 134 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) in il4965_hwrate_to_plcp_idx() 146 struct il_lq_sta *lq_sta, u32 rate_n_flags); 152 u32 *rate_n_flags, int idx); 155 il4965_rs_dbgfs_set_mcs(struct il_lq_sta *lq_sta, u32 * rate_n_flags, int idx) in il4965_rs_dbgfs_set_mcs() argument 223 il4965_rs_extract_rate(u32 rate_n_flags) in il4965_rs_extract_rate() argument 225 return (u8) (rate_n_flags & 0xFF); in il4965_rs_extract_rate() 392 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 | 71 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()
|
D | 4965-mac.c | 460 il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band) in il4965_hwrate_to_mac80211_idx() argument 466 if (rate_n_flags & RATE_MCS_HT_MSK) { in il4965_hwrate_to_mac80211_idx() 467 idx = (rate_n_flags & 0xff); in il4965_hwrate_to_mac80211_idx() 474 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) in il4965_hwrate_to_mac80211_idx() 636 u32 rate_n_flags; in il4965_hdl_rx() local 685 rate_n_flags = le32_to_cpu(phy_res->rate_n_flags); in il4965_hdl_rx() 697 il4965_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in il4965_hdl_rx() 734 if (rate_n_flags & RATE_MCS_HT_MSK) in il4965_hdl_rx() 736 if (rate_n_flags & RATE_MCS_HT40_MSK) in il4965_hdl_rx() 738 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 1465 __le32 rate_n_flags; /* RATE_MCS_* */ member 1686 __le32 rate_n_flags; /* RATE_MCS_* */ member 1770 __le16 rate_n_flags; member 2072 __le32 rate_n_flags; /* RATE_MCS_*, RATE_* */ member
|
D | 3945.c | 757 station->sta.rate_n_flags = cpu_to_le16(tx_rate); in il3945_sync_sta() 2264 addsta->rate_n_flags = cmd->rate_n_flags; in il3945_build_addsta_hcmd() 2340 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp); in il3945_init_hw_rate_table()
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | rs.c | 114 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument 116 return (u8)(rate_n_flags & RATE_MCS_RATE_MSK); in rs_extract_rate() 119 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument 124 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_hwrate_to_plcp_idx() 125 idx = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx() 143 rs_extract_rate(rate_n_flags)) in iwl_hwrate_to_plcp_idx() 155 struct iwl_lq_sta *lq_sta, u32 rate_n_flags); 161 u32 *rate_n_flags, int index); 164 u32 *rate_n_flags, int index) in rs_dbgfs_set_mcs() argument 442 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 | 205 tx_cmd->rate_n_flags = iwl_hw_set_rate_n_flags(rate_plcp, rate_flags); in iwlagn_tx_cmd_build_rate() 827 static void iwlagn_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, in iwlagn_hwrate_to_tx_control() argument 833 ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); in iwlagn_hwrate_to_tx_control() 834 if (rate_n_flags & RATE_MCS_HT_MSK) in iwlagn_hwrate_to_tx_control() 836 if (rate_n_flags & RATE_MCS_GF_MSK) in iwlagn_hwrate_to_tx_control() 838 if (rate_n_flags & RATE_MCS_HT40_MSK) in iwlagn_hwrate_to_tx_control() 840 if (rate_n_flags & RATE_MCS_DUP_MSK) in iwlagn_hwrate_to_tx_control() 842 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwlagn_hwrate_to_tx_control() 844 r->idx = iwlagn_hwrate_to_mac80211_idx(rate_n_flags, info->band); in iwlagn_hwrate_to_tx_control() 958 agg->rate_n_flags = le32_to_cpu(tx_resp->rate_n_flags); in iwl_rx_reply_tx_agg() [all …]
|
D | rx.c | 223 u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); in iwlagn_rx_beacon_notif() 905 u32 rate_n_flags; in iwlagn_rx_reply_rx() local 933 rate_n_flags = le32_to_cpu(phy_res->rate_n_flags); in iwlagn_rx_reply_rx() 943 iwlagn_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in iwlagn_rx_reply_rx() 990 if (rate_n_flags & RATE_MCS_HT_MSK) in iwlagn_rx_reply_rx() 992 if (rate_n_flags & RATE_MCS_HT40_MSK) in iwlagn_rx_reply_rx() 994 if (rate_n_flags & RATE_MCS_SGI_MSK) in iwlagn_rx_reply_rx() 996 if (rate_n_flags & RATE_MCS_GF_MSK) in iwlagn_rx_reply_rx()
|
D | agn.h | 202 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band); 390 static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) in iwl_hw_get_rate() argument 392 return le32_to_cpu(rate_n_flags) & RATE_MCS_RATE_MSK; in iwl_hw_get_rate()
|
D | sta.c | 607 __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() 815 i, lq->rs_table[i].rate_n_flags); in iwl_dump_lq_cmd() 847 if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & in is_lq_table_valid()
|
D | lib.c | 97 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band) in iwlagn_hwrate_to_mac80211_idx() argument 103 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwlagn_hwrate_to_mac80211_idx() 104 idx = (rate_n_flags & 0xff); in iwlagn_hwrate_to_mac80211_idx() 111 if (iwl_rates[idx].plcp == (rate_n_flags & 0xFF)) in iwlagn_hwrate_to_mac80211_idx()
|
D | commands.h | 1119 __le32 rate_n_flags; /* RATE_MCS_* */ member 1270 __le32 rate_n_flags; /* RATE_MCS_* */ member 1470 __le32 rate_n_flags; /* RATE_MCS_* */ member 1822 __le32 rate_n_flags; /* RATE_MCS_*, IWL_RATE_* */ member
|
D | dev.h | 166 u32 rate_n_flags; member
|
D | scan.c | 832 scan->tx_cmd.rate_n_flags = iwl_hw_set_rate_n_flags(rate, rate_flags); in iwlagn_request_scan()
|