/drivers/net/irda/ |
D | mcs7780.c | 132 static int mcs_set_reg(struct mcs_cb *mcs, __u16 reg, __u16 val) in mcs_set_reg() argument 134 struct usb_device *dev = mcs->usbdev; in mcs_set_reg() 141 static int mcs_get_reg(struct mcs_cb *mcs, __u16 reg, __u16 * val) in mcs_get_reg() argument 143 struct usb_device *dev = mcs->usbdev; in mcs_get_reg() 168 static inline int mcs_setup_transceiver_vishay(struct mcs_cb *mcs) in mcs_setup_transceiver_vishay() argument 174 ret = mcs_get_reg(mcs, MCS_XCVR_REG, &rval); in mcs_setup_transceiver_vishay() 188 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay() 193 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay() 198 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay() 208 static inline int mcs_setup_transceiver_agilent(struct mcs_cb *mcs) in mcs_setup_transceiver_agilent() argument [all …]
|
D | mcs7780.h | 133 static int mcs_set_reg(struct mcs_cb *mcs, __u16 reg, __u16 val); 134 static int mcs_get_reg(struct mcs_cb *mcs, __u16 reg, __u16 * val); 136 static inline int mcs_setup_transceiver_vishay(struct mcs_cb *mcs); 137 static inline int mcs_setup_transceiver_agilent(struct mcs_cb *mcs); 138 static inline int mcs_setup_transceiver_sharp(struct mcs_cb *mcs); 139 static inline int mcs_setup_transceiver(struct mcs_cb *mcs); 143 static void mcs_unwrap_mir(struct mcs_cb *mcs, __u8 *buf, int len); 144 static void mcs_unwrap_fir(struct mcs_cb *mcs, __u8 *buf, int len); 145 static inline int mcs_setup_urbs(struct mcs_cb *mcs); 146 static inline int mcs_receive_start(struct mcs_cb *mcs); [all …]
|
/drivers/staging/rtl8723au/core/ |
D | rtw_ieee80211.c | 788 struct ieee80211_mcs_info *mcs) in rtw_mcs_rate23a() argument 793 if (mcs->rx_mask[0] & BIT(7)) in rtw_mcs_rate23a() 796 else if (mcs->rx_mask[0] & BIT(6)) in rtw_mcs_rate23a() 799 else if (mcs->rx_mask[0] & BIT(5)) in rtw_mcs_rate23a() 802 else if (mcs->rx_mask[0] & BIT(4)) in rtw_mcs_rate23a() 805 else if (mcs->rx_mask[0] & BIT(3)) in rtw_mcs_rate23a() 808 else if (mcs->rx_mask[0] & BIT(2)) in rtw_mcs_rate23a() 811 else if (mcs->rx_mask[0] & BIT(1)) in rtw_mcs_rate23a() 814 else if (mcs->rx_mask[0] & BIT(0)) in rtw_mcs_rate23a() 818 if (mcs->rx_mask[1]) { in rtw_mcs_rate23a() [all …]
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
D | rate.h | 56 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()
|
D | rate.c | 294 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()
|
D | ampdu.c | 154 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 …]
|
/drivers/net/wireless/mwifiex/ |
D | 11ac.c | 58 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()
|
D | uap_cmd.c | 173 memset(&bss_cfg->ht_cap.mcs, 0, in mwifiex_set_ht_params() 178 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params() 183 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params() 184 bss_cfg->ht_cap.mcs.rx_mask[1] = 0xff; in mwifiex_set_ht_params() 189 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params() 190 bss_cfg->ht_cap.mcs.rx_mask[1] = 0xff; in mwifiex_set_ht_params() 641 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare()
|
D | 11n.c | 56 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info() 57 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info() 64 SETHT_MCS32(ht_cap->mcs.rx_mask); in mwifiex_fill_cap_info()
|
/drivers/net/wireless/ath/ath9k/ |
D | common-init.c | 210 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()
|
D | xmit.c | 1050 static int ath_max_framelen(int usec, int mcs, bool ht40, bool sgi) in ath_max_framelen() argument 1052 int streams = HT_RC_2_STREAMS(mcs); in ath_max_framelen() 1058 bits = symbols * bits_per_symbol[mcs % 8][ht40] * streams; in ath_max_framelen() 1070 int mcs; in ath_update_max_aggr_framelen() local 1080 for (mcs = 0; mcs < 32; mcs++) { in ath_update_max_aggr_framelen() 1081 cur_ht20[mcs] = ath_max_framelen(txop, mcs, false, false); in ath_update_max_aggr_framelen() 1082 cur_ht20_sgi[mcs] = ath_max_framelen(txop, mcs, false, true); in ath_update_max_aggr_framelen() 1083 cur_ht40[mcs] = ath_max_framelen(txop, mcs, true, false); in ath_update_max_aggr_framelen() 1084 cur_ht40_sgi[mcs] = ath_max_framelen(txop, mcs, true, true); in ath_update_max_aggr_framelen()
|
/drivers/staging/rtl8723au/hal/ |
D | rtl8723a_rf6052.c | 187 u32 ofdm, mcs; in getPowerBase() local 207 mcs = powerlevel[i]; in getPowerBase() 208 mcs = mcs << 24 | mcs << 16 | mcs << 8 | mcs; in getPowerBase() 209 *(MCSBase + i) = mcs; in getPowerBase()
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00dev.c | 664 (rate->mcs == signal))) { in rt2x00lib_rxdone_read_signal() 828 .mcs = RATE_MCS(RATE_MODE_CCK, 0), 835 .mcs = RATE_MCS(RATE_MODE_CCK, 1), 842 .mcs = RATE_MCS(RATE_MODE_CCK, 2), 849 .mcs = RATE_MCS(RATE_MODE_CCK, 3), 856 .mcs = RATE_MCS(RATE_MODE_OFDM, 0), 863 .mcs = RATE_MCS(RATE_MODE_OFDM, 1), 870 .mcs = RATE_MCS(RATE_MODE_OFDM, 2), 877 .mcs = RATE_MCS(RATE_MODE_OFDM, 3), 884 .mcs = RATE_MCS(RATE_MODE_OFDM, 4), [all …]
|
D | rt2x00queue.c | 323 txdesc->u.ht.mcs = txrate->idx; in rt2x00queue_create_tx_descriptor_ht() 329 if (sta && txdesc->u.ht.mcs > 7 && in rt2x00queue_create_tx_descriptor_ht() 333 txdesc->u.ht.mcs = rt2x00_get_rate_mcs(hwrate->mcs); in rt2x00queue_create_tx_descriptor_ht() 335 txdesc->u.ht.mcs |= 0x08; in rt2x00queue_create_tx_descriptor_ht()
|
/drivers/usb/serial/ |
D | mos7840.c | 504 static int mos7840_get_reg(struct moschip_port *mcs, __u16 Wval, __u16 reg, in mos7840_get_reg() argument 507 struct usb_device *dev = mcs->port->serial->dev; in mos7840_get_reg() 508 struct usb_ctrlrequest *dr = mcs->dr; in mos7840_get_reg() 509 unsigned char *buffer = mcs->ctrl_buf; in mos7840_get_reg() 512 if (test_and_set_bit_lock(MOS7840_FLAG_CTRL_BUSY, &mcs->flags)) in mos7840_get_reg() 521 usb_fill_control_urb(mcs->control_urb, dev, usb_rcvctrlpipe(dev, 0), in mos7840_get_reg() 523 mos7840_control_callback, mcs); in mos7840_get_reg() 524 mcs->control_urb->transfer_buffer_length = 2; in mos7840_get_reg() 525 ret = usb_submit_urb(mcs->control_urb, GFP_ATOMIC); in mos7840_get_reg() 527 clear_bit_unlock(MOS7840_FLAG_CTRL_BUSY, &mcs->flags); in mos7840_get_reg() [all …]
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-eeprom-parse.c | 775 ht_info->mcs.rx_mask[0] = 0xFF; in iwl_init_ht_hw_capab() 777 ht_info->mcs.rx_mask[1] = 0xFF; in iwl_init_ht_hw_capab() 779 ht_info->mcs.rx_mask[2] = 0xFF; in iwl_init_ht_hw_capab() 796 ht_info->mcs.rx_highest = cpu_to_le16(max_bit_rate); in iwl_init_ht_hw_capab() 799 ht_info->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in iwl_init_ht_hw_capab() 801 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in iwl_init_ht_hw_capab() 802 ht_info->mcs.tx_params |= ((tx_chains - 1) << in iwl_init_ht_hw_capab()
|
/drivers/net/wireless/ath/wil6210/ |
D | trace.h | 170 __field(u8, mcs) 181 __entry->mcs = wil_rxdesc_mcs(d); 185 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
|
D | debugfs.c | 1187 seq_printf(s, " Tx_mcs = %d\n", sinfo.txrate.mcs); in wil_link_debugfs_show() 1188 seq_printf(s, " Rx_mcs = %d\n", sinfo.rxrate.mcs); in wil_link_debugfs_show() 1347 int i, tid, mcs; in wil_sta_debugfs_show() local 1384 for (mcs = 0; mcs < ARRAY_SIZE(p->stats.rx_per_mcs); in wil_sta_debugfs_show() 1385 mcs++) in wil_sta_debugfs_show() 1387 p->stats.rx_per_mcs[mcs]); in wil_sta_debugfs_show()
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | base.c | 198 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in _rtl_init_hw_ht_capab() 213 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab() 214 ht_cap->mcs.rx_mask[1] = 0xFF; in _rtl_init_hw_ht_capab() 215 ht_cap->mcs.rx_mask[4] = 0x01; in _rtl_init_hw_ht_capab() 217 ht_cap->mcs.rx_highest = cpu_to_le16(MAX_BIT_RATE_40MHZ_MCS15); in _rtl_init_hw_ht_capab() 223 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab() 224 ht_cap->mcs.rx_mask[1] = 0xFF; in _rtl_init_hw_ht_capab() 225 ht_cap->mcs.rx_mask[4] = 0x01; in _rtl_init_hw_ht_capab() 227 ht_cap->mcs.rx_highest = in _rtl_init_hw_ht_capab() 232 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | cfg80211.c | 1718 static bool is_rate_ht20(s32 rate, u8 *mcs, bool *sgi) in is_rate_ht20() argument 1733 *mcs = i; in is_rate_ht20() 1740 static bool is_rate_ht40(s32 rate, u8 *mcs, bool *sgi) in is_rate_ht40() argument 1756 *mcs = i; in is_rate_ht40() 1773 u8 mcs; in ath6kl_get_station() local 1823 } else if (is_rate_ht20(rate, &mcs, &sgi)) { in ath6kl_get_station() 1826 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station() 1828 sinfo->txrate.mcs = mcs; in ath6kl_get_station() 1833 } else if (is_rate_ht40(rate, &mcs, &sgi)) { in ath6kl_get_station() 1836 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station() [all …]
|
/drivers/clk/mediatek/ |
D | clk-mtk.c | 223 void __init mtk_clk_register_composites(const struct mtk_composite *mcs, in mtk_clk_register_composites() argument 231 const struct mtk_composite *mc = &mcs[i]; in mtk_clk_register_composites()
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_mgmt.c | 203 static u16 mcs[] = {13, 26, 39, 52, 78, 104, 117, 130}; variable 984 if (rate == mcs[kk]) { in rsi_map_rates() 1069 for (ii = 0; ii < ARRAY_SIZE(mcs); ii++) in rsi_send_auto_rate_request() 1070 selected_rates[jj++] = mcs[ii]; in rsi_send_auto_rate_request() 1071 num_supported_rates += ARRAY_SIZE(mcs); in rsi_send_auto_rate_request() 1072 rate_offset += ARRAY_SIZE(mcs); in rsi_send_auto_rate_request()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | main.c | 136 .mcs = { 159 .mcs = { 553 BUILD_BUG_ON(sizeof(sta->ht_cap.mcs.rx_mask) > in wcn36xx_update_allowed_rates() 556 sta->ht_cap.mcs.rx_mask, in wcn36xx_update_allowed_rates() 557 sizeof(sta->ht_cap.mcs.rx_mask)); in wcn36xx_update_allowed_rates()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | init.c | 550 ht_cap->mcs.rx_mask[0] = 0xff; in mt76_init_sband() 551 ht_cap->mcs.rx_mask[4] = 0x1; in mt76_init_sband() 552 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_rx.c | 664 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local 694 mcs = info2 & 0x1F; in ath10k_htt_rx_h_rates() 695 nss = mcs >> 3; in ath10k_htt_rx_h_rates() 699 status->rate_idx = mcs; in ath10k_htt_rx_h_rates() 716 mcs = (info3 >> 4) & 0x0F; in ath10k_htt_rx_h_rates() 733 mcs = 0; in ath10k_htt_rx_h_rates() 737 if (mcs > 0x09) { in ath10k_htt_rx_h_rates() 738 ath10k_warn(ar, "invalid MCS received %u\n", mcs); in ath10k_htt_rx_h_rates() 760 status->rate_idx = mcs; in ath10k_htt_rx_h_rates()
|