Home
last modified time | relevance | path

Searched refs:mcs (Results 1 – 25 of 136) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Drate.h56 static inline u8 mcs_2_txstreams(u8 mcs) in mcs_2_txstreams() argument
58 return (mcs_table[mcs].tx_phy_ctl3 & MCS_TXS_MASK) >> MCS_TXS_SHIFT; in mcs_2_txstreams()
61 static inline uint mcs_2_rate(u8 mcs, bool is40, bool sgi) in mcs_2_rate() argument
65 return mcs_table[mcs].phy_rate_40_sgi; in mcs_2_rate()
66 return mcs_table[mcs].phy_rate_20_sgi; in mcs_2_rate()
69 return mcs_table[mcs].phy_rate_40; in mcs_2_rate()
71 return mcs_table[mcs].phy_rate_20; in mcs_2_rate()
190 static inline bool is_single_stream(u8 mcs) in is_single_stream() argument
192 return mcs <= HIGHEST_SINGLE_STREAM_MCS || mcs == 32; in is_single_stream()
Drate.c294 rs->mcs[i] = 0; in brcms_c_rateset_mcs_upd()
334 rs->mcs[i] = (rs->mcs[i] & hw_rs->mcs[i]); in brcms_c_rate_hwrs_filter_sort_validate()
432 memcpy(&dst->mcs[0], &src->mcs[0], MCSSET_LEN); in brcms_c_rateset_filter()
498 rateset->mcs[i] = 0; in brcms_c_rateset_mcs_clear()
503 memcpy(&rateset->mcs[0], &cck_ofdm_mimo_rates.mcs[0], MCSSET_LEN); in brcms_c_rateset_mcs_build()
511 setbit(rateset->mcs, 32); in brcms_c_rateset_bw_mcs_filter()
513 clrbit(rateset->mcs, 32); in brcms_c_rateset_bw_mcs_filter()
Dampdu.c154 u32 rate, mcs; in brcms_c_scb_ampdu_update_max_txlen() local
156 for (mcs = 0; mcs < MCS_TABLE_SIZE; mcs++) { in brcms_c_scb_ampdu_update_max_txlen()
159 rate = mcs_2_rate(mcs, false, false); in brcms_c_scb_ampdu_update_max_txlen()
160 ampdu->max_txlen[mcs][0][0] = (rate * dur) >> 3; in brcms_c_scb_ampdu_update_max_txlen()
162 rate = mcs_2_rate(mcs, true, false); in brcms_c_scb_ampdu_update_max_txlen()
163 ampdu->max_txlen[mcs][1][0] = (rate * dur) >> 3; in brcms_c_scb_ampdu_update_max_txlen()
165 rate = mcs_2_rate(mcs, false, true); in brcms_c_scb_ampdu_update_max_txlen()
166 ampdu->max_txlen[mcs][0][1] = (rate * dur) >> 3; in brcms_c_scb_ampdu_update_max_txlen()
168 rate = mcs_2_rate(mcs, true, true); in brcms_c_scb_ampdu_update_max_txlen()
169 ampdu->max_txlen[mcs][1][1] = (rate * dur) >> 3; in brcms_c_scb_ampdu_update_max_txlen()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Ddebugfs_sta.c21 int gi, mcs, bw, nss; in ath11k_debugfs_sta_add_tx_stats() local
28 mcs = txrate->mcs; in ath11k_debugfs_sta_add_tx_stats()
35 STATS_OP_FMT(SUCC).he[0][mcs] += peer_stats->succ_bytes; in ath11k_debugfs_sta_add_tx_stats()
36 STATS_OP_FMT(SUCC).he[1][mcs] += peer_stats->succ_pkts; in ath11k_debugfs_sta_add_tx_stats()
37 STATS_OP_FMT(FAIL).he[0][mcs] += peer_stats->failed_bytes; in ath11k_debugfs_sta_add_tx_stats()
38 STATS_OP_FMT(FAIL).he[1][mcs] += peer_stats->failed_pkts; in ath11k_debugfs_sta_add_tx_stats()
39 STATS_OP_FMT(RETRY).he[0][mcs] += peer_stats->retry_bytes; in ath11k_debugfs_sta_add_tx_stats()
40 STATS_OP_FMT(RETRY).he[1][mcs] += peer_stats->retry_pkts; in ath11k_debugfs_sta_add_tx_stats()
42 STATS_OP_FMT(SUCC).vht[0][mcs] += peer_stats->succ_bytes; in ath11k_debugfs_sta_add_tx_stats()
43 STATS_OP_FMT(SUCC).vht[1][mcs] += peer_stats->succ_pkts; in ath11k_debugfs_sta_add_tx_stats()
[all …]
Dhal_rx.c899 ppdu_info->mcs = FIELD_GET(HAL_RX_HT_SIG_INFO_INFO0_MCS, info0); in ath11k_hal_rx_parse_mon_status_tlv()
906 switch (ppdu_info->mcs) { in ath11k_hal_rx_parse_mon_status_tlv()
922 ppdu_info->mcs = ppdu_info->mcs % 8; in ath11k_hal_rx_parse_mon_status_tlv()
957 ppdu_info->mcs = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_MCS, in ath11k_hal_rx_parse_mon_status_tlv()
998 ppdu_info->mcs = in ath11k_hal_rx_parse_mon_status_tlv()
1087 ppdu_info->mcs = in ath11k_hal_rx_parse_mon_status_tlv()
1103 ppdu_info->mcs = in ath11k_hal_rx_parse_mon_status_tlv()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dutil.c82 void rtw_desc_to_mcsrate(u16 rate, u8 *mcs, u8 *nss) in rtw_desc_to_mcsrate() argument
90 *mcs = rate - DESC_RATEVHT1SS_MCS0; in rtw_desc_to_mcsrate()
94 *mcs = rate - DESC_RATEVHT2SS_MCS0; in rtw_desc_to_mcsrate()
98 *mcs = rate - DESC_RATEVHT3SS_MCS0; in rtw_desc_to_mcsrate()
102 *mcs = rate - DESC_RATEVHT4SS_MCS0; in rtw_desc_to_mcsrate()
105 *mcs = rate - DESC_RATEMCS0; in rtw_desc_to_mcsrate()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dadau1977.c267 unsigned int mcs; in adau1977_lookup_mcs() local
280 mcs = adau1977->sysclk / rate; in adau1977_lookup_mcs()
283 if (mcs < 1 || mcs > 6 || mcs == 5) in adau1977_lookup_mcs()
286 mcs = mcs - 1; in adau1977_lookup_mcs()
287 if (mcs == 5) in adau1977_lookup_mcs()
288 mcs = 4; in adau1977_lookup_mcs()
290 return mcs; in adau1977_lookup_mcs()
302 int mcs, fs; in adau1977_hw_params() local
310 mcs = adau1977_lookup_mcs(adau1977, rate, fs); in adau1977_hw_params()
311 if (mcs < 0) in adau1977_hw_params()
[all …]
Dssm2518.c342 int mcs; in ssm2518_hw_params() local
345 mcs = ssm2518_lookup_mcs(ssm2518, rate); in ssm2518_hw_params()
346 if (mcs < 0) in ssm2518_hw_params()
347 return mcs; in ssm2518_hw_params()
388 SSM2518_POWER1_MCS_MASK, mcs << 1); in ssm2518_hw_params()
/kernel/linux/linux-5.10/net/mac80211/
Dht.c69 scaps = (u8 *)(&ht_capa->mcs.rx_mask); in ieee80211_apply_htcap_overrides()
70 smask = (u8 *)(&ht_capa_mask->mcs.rx_mask); in ieee80211_apply_htcap_overrides()
81 ht_cap->mcs.rx_mask[i] &= ~m; /* turn off all masked bits */ in ieee80211_apply_htcap_overrides()
83 ht_cap->mcs.rx_mask[i] |= (m & scaps[i]); in ieee80211_apply_htcap_overrides()
198 tx_mcs_set_cap = own_cap.mcs.tx_params; in ieee80211_ht_cap_ie_to_sta_ht_cap()
201 ht_cap.mcs.tx_params = ht_cap_ie->mcs.tx_params; in ieee80211_ht_cap_ie_to_sta_ht_cap()
223 ht_cap.mcs.rx_mask[i] = in ieee80211_ht_cap_ie_to_sta_ht_cap()
224 own_cap.mcs.rx_mask[i] & ht_cap_ie->mcs.rx_mask[i]; in ieee80211_ht_cap_ie_to_sta_ht_cap()
229 ht_cap.mcs.rx_mask[i] = in ieee80211_ht_cap_ie_to_sta_ht_cap()
230 own_cap.mcs.rx_mask[i] & in ieee80211_ht_cap_ie_to_sta_ht_cap()
[all …]
Dvht.c521 if (sta->sta.ht_cap.mcs.rx_mask[0]) in ieee80211_sta_set_rx_nss()
523 if (sta->sta.ht_cap.mcs.rx_mask[1]) in ieee80211_sta_set_rx_nss()
525 if (sta->sta.ht_cap.mcs.rx_mask[2]) in ieee80211_sta_set_rx_nss()
527 if (sta->sta.ht_cap.mcs.rx_mask[3]) in ieee80211_sta_set_rx_nss()
539 u8 mcs = (rx_mcs_map >> (2 * i)) & 3; in ieee80211_sta_set_rx_nss() local
541 if (mcs != IEEE80211_VHT_MCS_NOT_SUPPORTED) { in ieee80211_sta_set_rx_nss()
/kernel/linux/linux-5.10/arch/x86/xen/
Dmmu_pv.c174 struct multicall_space mcs; in xen_extend_mmu_update() local
177 mcs = xen_mc_extend_args(__HYPERVISOR_mmu_update, sizeof(*u)); in xen_extend_mmu_update()
179 if (mcs.mc != NULL) { in xen_extend_mmu_update()
180 mcs.mc->args[1]++; in xen_extend_mmu_update()
182 mcs = __xen_mc_entry(sizeof(*u)); in xen_extend_mmu_update()
183 MULTI_mmu_update(mcs.mc, mcs.args, 1, NULL, DOMID_SELF); in xen_extend_mmu_update()
186 u = mcs.args; in xen_extend_mmu_update()
192 struct multicall_space mcs; in xen_extend_mmuext_op() local
195 mcs = xen_mc_extend_args(__HYPERVISOR_mmuext_op, sizeof(*u)); in xen_extend_mmuext_op()
197 if (mcs.mc != NULL) { in xen_extend_mmuext_op()
[all …]
Denlighten_pv.c424 struct multicall_space mcs = xen_mc_entry(sizeof(*op)); in xen_set_ldt() local
428 op = mcs.args; in xen_set_ldt()
433 MULTI_mmuext_op(mcs.mc, op, 1, NULL, DOMID_SELF); in xen_set_ldt()
845 struct multicall_space mcs; in xen_load_sp0() local
847 mcs = xen_mc_entry(0); in xen_load_sp0()
848 MULTI_stack_switch(mcs.mc, __KERNEL_DS, sp0); in xen_load_sp0()
903 struct multicall_space mcs; in xen_write_cr0() local
909 mcs = xen_mc_entry(0); in xen_write_cr0()
911 MULTI_fpu_taskswitch(mcs.mc, (cr0 & X86_CR0_TS) != 0); in xen_write_cr0()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
D11ac.c58 u8 i, nss, mcs; in mwifiex_convert_mcsmap_to_maxrate() local
71 mcs = GET_VHTNSSMCS(mcs_map, i); in mwifiex_convert_mcsmap_to_maxrate()
72 if (mcs < IEEE80211_VHT_MCS_NOT_SUPPORTED) in mwifiex_convert_mcsmap_to_maxrate()
75 mcs = GET_VHTNSSMCS(mcs_map, nss); in mwifiex_convert_mcsmap_to_maxrate()
78 if (mcs == IEEE80211_VHT_MCS_NOT_SUPPORTED) in mwifiex_convert_mcsmap_to_maxrate()
79 mcs = IEEE80211_VHT_MCS_SUPPORT_0_9; in mwifiex_convert_mcsmap_to_maxrate()
83 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate()
86 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate()
88 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate()
91 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dtrace.h161 __field(u8, mcs)
172 __entry->mcs = wil_rxdesc_mcs(d);
176 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
193 __field(u8, mcs)
205 __entry->mcs = wil_rx_status_get_mcs(msg);
210 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
262 __field(u8, mcs)
270 __entry->mcs = wil_tx_status_get_mcs(msg);
275 __entry->num_descs, __entry->status, __entry->mcs)
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dcommon-init.c210 memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); in ath9k_cmn_setup_ht_cap()
218 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in ath9k_cmn_setup_ht_cap()
219 ht_info->mcs.tx_params |= ((tx_streams - 1) << in ath9k_cmn_setup_ht_cap()
224 ht_info->mcs.rx_mask[i] = 0xff; in ath9k_cmn_setup_ht_cap()
226 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_DEFINED; in ath9k_cmn_setup_ht_cap()
/kernel/linux/linux-5.10/kernel/locking/
Dqspinlock.c82 struct mcs_spinlock mcs; member
130 return per_cpu_ptr(&qnodes[idx].mcs, cpu); in decode_tail()
136 return &((struct qnode *)base + idx)->mcs; in grab_mcs_node()
400 node = this_cpu_ptr(&qnodes[0].mcs); in queued_spin_lock_slowpath()
560 __this_cpu_dec(qnodes[0].mcs.count); in queued_spin_lock_slowpath()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_txrx.c62 u8 mcs = ieee80211_rate_get_vht_mcs(rate); in mt76x02_tx_get_max_txpwr_adj() local
64 if (mcs == 8 || mcs == 9) { in mt76x02_tx_get_max_txpwr_adj()
70 idx = ((nss - 1) << 3) + mcs; in mt76x02_tx_get_max_txpwr_adj()
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00dev.c718 (rate->mcs == signal))) { in rt2x00lib_rxdone_read_signal()
885 .mcs = RATE_MCS(RATE_MODE_CCK, 0),
892 .mcs = RATE_MCS(RATE_MODE_CCK, 1),
899 .mcs = RATE_MCS(RATE_MODE_CCK, 2),
906 .mcs = RATE_MCS(RATE_MODE_CCK, 3),
913 .mcs = RATE_MCS(RATE_MODE_OFDM, 0),
920 .mcs = RATE_MCS(RATE_MODE_OFDM, 1),
927 .mcs = RATE_MCS(RATE_MODE_OFDM, 2),
934 .mcs = RATE_MCS(RATE_MODE_OFDM, 3),
941 .mcs = RATE_MCS(RATE_MODE_OFDM, 4),
[all …]
/kernel/linux/linux-5.10/net/wireless/
Dutil.c242 WARN_ON((sband->ht_cap.mcs.rx_mask[0] & 0x1e) != 0x1e); in set_mandatory_flags_band()
1127 if (WARN_ON_ONCE(rate->mcs >= 32)) in cfg80211_calculate_bitrate_ht()
1130 modulation = rate->mcs & 7; in cfg80211_calculate_bitrate_ht()
1131 streams = (rate->mcs >> 3) + 1; in cfg80211_calculate_bitrate_ht()
1192 if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate))) in cfg80211_calculate_bitrate_dmg()
1195 return __mcs2bitrate[rate->mcs]; in cfg80211_calculate_bitrate_dmg()
1226 if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate))) in cfg80211_calculate_bitrate_edmg()
1229 return __mcs2bitrate[rate->mcs] * rate->n_bonded_ch; in cfg80211_calculate_bitrate_edmg()
1284 if (rate->mcs > 9) in cfg80211_calculate_bitrate_vht()
1305 bitrate = base[idx][rate->mcs]; in cfg80211_calculate_bitrate_vht()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c948 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local
978 mcs = info2 & 0x1F; in ath10k_htt_rx_h_rates()
979 nss = mcs >> 3; in ath10k_htt_rx_h_rates()
983 status->rate_idx = mcs; in ath10k_htt_rx_h_rates()
1001 mcs = (info3 >> 4) & 0x0F; in ath10k_htt_rx_h_rates()
1018 mcs = 0; in ath10k_htt_rx_h_rates()
1022 if (mcs > 0x09) { in ath10k_htt_rx_h_rates()
1023 ath10k_warn(ar, "invalid MCS received %u\n", mcs); in ath10k_htt_rx_h_rates()
1045 status->rate_idx = mcs; in ath10k_htt_rx_h_rates()
3544 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Drs-fw.c234 static u16 rs_fw_he_ieee80211_mcs_to_rs_mcs(u16 mcs) in rs_fw_he_ieee80211_mcs_to_rs_mcs() argument
236 switch (mcs) { in rs_fw_he_ieee80211_mcs_to_rs_mcs()
247 WARN(1, "invalid HE MCS %d\n", mcs); in rs_fw_he_ieee80211_mcs_to_rs_mcs()
330 cpu_to_le16(ht_cap->mcs.rx_mask[0]); in rs_fw_set_supp_rates()
338 cpu_to_le16(ht_cap->mcs.rx_mask[1]); in rs_fw_set_supp_rates()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8192e.c484 u32 val32, ofdm, mcs; in rtl8192e_set_tx_power() local
515 mcs = mcsbase | mcsbase << 8 | mcsbase << 16 | mcsbase << 24; in rtl8192e_set_tx_power()
517 rtl8xxxu_write32(priv, REG_TX_AGC_A_MCS03_MCS00, mcs); in rtl8192e_set_tx_power()
518 rtl8xxxu_write32(priv, REG_TX_AGC_A_MCS07_MCS04, mcs); in rtl8192e_set_tx_power()
519 rtl8xxxu_write32(priv, REG_TX_AGC_A_MCS11_MCS08, mcs); in rtl8192e_set_tx_power()
520 rtl8xxxu_write32(priv, REG_TX_AGC_A_MCS15_MCS12, mcs); in rtl8192e_set_tx_power()
548 mcs = mcsbase | mcsbase << 8 | mcsbase << 16 | mcsbase << 24; in rtl8192e_set_tx_power()
550 rtl8xxxu_write32(priv, REG_TX_AGC_B_MCS03_MCS00, mcs); in rtl8192e_set_tx_power()
551 rtl8xxxu_write32(priv, REG_TX_AGC_B_MCS07_MCS04, mcs); in rtl8192e_set_tx_power()
552 rtl8xxxu_write32(priv, REG_TX_AGC_B_MCS11_MCS08, mcs); in rtl8192e_set_tx_power()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-parse.c777 ht_info->mcs.rx_mask[0] = 0xFF; in iwl_init_ht_hw_capab()
779 ht_info->mcs.rx_mask[1] = 0xFF; in iwl_init_ht_hw_capab()
781 ht_info->mcs.rx_mask[2] = 0xFF; in iwl_init_ht_hw_capab()
798 ht_info->mcs.rx_highest = cpu_to_le16(max_bit_rate); in iwl_init_ht_hw_capab()
801 ht_info->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in iwl_init_ht_hw_capab()
803 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in iwl_init_ht_hw_capab()
804 ht_info->mcs.tx_params |= ((tx_chains - 1) << in iwl_init_ht_hw_capab()
/kernel/linux/linux-5.10/drivers/usb/serial/
Dmos7840.c370 static void mos7840_set_led_async(struct moschip_port *mcs, __u16 wval, in mos7840_set_led_async() argument
373 struct usb_device *dev = mcs->port->serial->dev; in mos7840_set_led_async()
374 struct usb_ctrlrequest *dr = mcs->led_dr; in mos7840_set_led_async()
382 usb_fill_control_urb(mcs->led_urb, dev, usb_sndctrlpipe(dev, 0), in mos7840_set_led_async()
385 usb_submit_urb(mcs->led_urb, GFP_ATOMIC); in mos7840_set_led_async()
399 struct moschip_port *mcs = from_timer(mcs, t, led_timer1); in mos7840_led_off() local
402 mos7840_set_led_async(mcs, 0x0300, MODEM_CONTROL_REGISTER); in mos7840_led_off()
403 mod_timer(&mcs->led_timer2, in mos7840_led_off()
409 struct moschip_port *mcs = from_timer(mcs, t, led_timer2); in mos7840_led_flag_off() local
411 clear_bit_unlock(MOS7840_FLAG_LED_BUSY, &mcs->flags); in mos7840_led_flag_off()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmcu.c429 rate->mcs = FIELD_GET(MT_RA_RATE_MCS, r); in mt7915_mcu_tx_rate_cal()
440 rate->legacy = sband->bitrates[rate->mcs].bitrate; in mt7915_mcu_tx_rate_cal()
444 rate->mcs += (rate->nss - 1) * 8; in mt7915_mcu_tx_rate_cal()
1732 struct ieee80211_mcs_info *mcs = &sta->ht_cap.mcs; in mt7915_mcu_sta_bfer_ht() local
1738 if (mcs->tx_params & IEEE80211_HT_MCS_TX_RX_DIFF && in mt7915_mcu_sta_bfer_ht()
1739 (mcs->tx_params & IEEE80211_HT_MCS_TX_DEFINED)) in mt7915_mcu_sta_bfer_ht()
1741 mcs->tx_params); in mt7915_mcu_sta_bfer_ht()
1742 else if (mcs->rx_mask[3]) in mt7915_mcu_sta_bfer_ht()
1744 else if (mcs->rx_mask[2]) in mt7915_mcu_sta_bfer_ht()
1746 else if (mcs->rx_mask[1]) in mt7915_mcu_sta_bfer_ht()
[all …]

123456