Home
last modified time | relevance | path

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

123

/drivers/net/irda/
Dmcs7780.c133 static int mcs_set_reg(struct mcs_cb *mcs, __u16 reg, __u16 val) in mcs_set_reg() argument
135 struct usb_device *dev = mcs->usbdev; in mcs_set_reg()
142 static int mcs_get_reg(struct mcs_cb *mcs, __u16 reg, __u16 * val) in mcs_get_reg() argument
144 struct usb_device *dev = mcs->usbdev; in mcs_get_reg()
159 static inline int mcs_setup_transceiver_vishay(struct mcs_cb *mcs) in mcs_setup_transceiver_vishay() argument
165 ret = mcs_get_reg(mcs, MCS_XCVR_REG, &rval); in mcs_setup_transceiver_vishay()
179 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
184 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
189 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
199 static inline int mcs_setup_transceiver_agilent(struct mcs_cb *mcs) in mcs_setup_transceiver_agilent() argument
[all …]
Dmcs7780.h134 static int mcs_set_reg(struct mcs_cb *mcs, __u16 reg, __u16 val);
135 static int mcs_get_reg(struct mcs_cb *mcs, __u16 reg, __u16 * val);
137 static inline int mcs_setup_transceiver_vishay(struct mcs_cb *mcs);
138 static inline int mcs_setup_transceiver_agilent(struct mcs_cb *mcs);
139 static inline int mcs_setup_transceiver_sharp(struct mcs_cb *mcs);
140 static inline int mcs_setup_transceiver(struct mcs_cb *mcs);
144 static void mcs_unwrap_mir(struct mcs_cb *mcs, __u8 *buf, int len);
145 static void mcs_unwrap_fir(struct mcs_cb *mcs, __u8 *buf, int len);
146 static inline int mcs_setup_urbs(struct mcs_cb *mcs);
147 static inline int mcs_receive_start(struct mcs_cb *mcs);
[all …]
/drivers/net/wireless/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 …]
/drivers/net/wireless/rt2x00/
Drt2x00dev.c662 (rate->mcs == signal))) { in rt2x00lib_rxdone_read_signal()
826 .mcs = RATE_MCS(RATE_MODE_CCK, 0),
833 .mcs = RATE_MCS(RATE_MODE_CCK, 1),
840 .mcs = RATE_MCS(RATE_MODE_CCK, 2),
847 .mcs = RATE_MCS(RATE_MODE_CCK, 3),
854 .mcs = RATE_MCS(RATE_MODE_OFDM, 0),
861 .mcs = RATE_MCS(RATE_MODE_OFDM, 1),
868 .mcs = RATE_MCS(RATE_MODE_OFDM, 2),
875 .mcs = RATE_MCS(RATE_MODE_OFDM, 3),
882 .mcs = RATE_MCS(RATE_MODE_OFDM, 4),
[all …]
Drt2x00queue.c351 txdesc->u.ht.mcs = txrate->idx; in rt2x00queue_create_tx_descriptor_ht()
357 if (sta && txdesc->u.ht.mcs > 7 && in rt2x00queue_create_tx_descriptor_ht()
361 txdesc->u.ht.mcs = rt2x00_get_rate_mcs(hwrate->mcs); in rt2x00queue_create_tx_descriptor_ht()
363 txdesc->u.ht.mcs |= 0x08; in rt2x00queue_create_tx_descriptor_ht()
Drt2x00lib.h51 unsigned short mcs; member
/drivers/net/wireless/iwlwifi/
Diwl-eeprom-parse.c761 ht_info->mcs.rx_mask[0] = 0xFF; in iwl_init_ht_hw_capab()
763 ht_info->mcs.rx_mask[1] = 0xFF; in iwl_init_ht_hw_capab()
765 ht_info->mcs.rx_mask[2] = 0xFF; in iwl_init_ht_hw_capab()
776 ht_info->mcs.rx_mask[4] = 0x01; in iwl_init_ht_hw_capab()
783 ht_info->mcs.rx_highest = cpu_to_le16(max_bit_rate); in iwl_init_ht_hw_capab()
786 ht_info->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in iwl_init_ht_hw_capab()
788 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in iwl_init_ht_hw_capab()
789 ht_info->mcs.tx_params |= ((tx_chains - 1) << in iwl_init_ht_hw_capab()
/drivers/usb/serial/
Dmos7840.c488 static int mos7840_get_reg(struct moschip_port *mcs, __u16 Wval, __u16 reg, in mos7840_get_reg() argument
491 struct usb_device *dev = mcs->port->serial->dev; in mos7840_get_reg()
492 struct usb_ctrlrequest *dr = mcs->dr; in mos7840_get_reg()
493 unsigned char *buffer = mcs->ctrl_buf; in mos7840_get_reg()
502 usb_fill_control_urb(mcs->control_urb, dev, usb_rcvctrlpipe(dev, 0), in mos7840_get_reg()
504 mos7840_control_callback, mcs); in mos7840_get_reg()
505 mcs->control_urb->transfer_buffer_length = 2; in mos7840_get_reg()
506 ret = usb_submit_urb(mcs->control_urb, GFP_ATOMIC); in mos7840_get_reg()
529 static void mos7840_set_led_async(struct moschip_port *mcs, __u16 wval, in mos7840_set_led_async() argument
532 struct usb_device *dev = mcs->port->serial->dev; in mos7840_set_led_async()
[all …]
/drivers/net/wireless/rtlwifi/
Dbase.c200 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in _rtl_init_hw_ht_capab()
216 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab()
217 ht_cap->mcs.rx_mask[1] = 0xFF; in _rtl_init_hw_ht_capab()
218 ht_cap->mcs.rx_mask[4] = 0x01; in _rtl_init_hw_ht_capab()
220 ht_cap->mcs.rx_highest = cpu_to_le16(MAX_BIT_RATE_40MHZ_MCS15); in _rtl_init_hw_ht_capab()
226 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab()
227 ht_cap->mcs.rx_mask[1] = 0xFF; in _rtl_init_hw_ht_capab()
228 ht_cap->mcs.rx_mask[4] = 0x01; in _rtl_init_hw_ht_capab()
230 ht_cap->mcs.rx_highest = in _rtl_init_hw_ht_capab()
235 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c1717 static bool is_rate_ht20(s32 rate, u8 *mcs, bool *sgi) in is_rate_ht20() argument
1732 *mcs = i; in is_rate_ht20()
1739 static bool is_rate_ht40(s32 rate, u8 *mcs, bool *sgi) in is_rate_ht40() argument
1755 *mcs = i; in is_rate_ht40()
1772 u8 mcs; in ath6kl_get_station() local
1822 } else if (is_rate_ht20(rate, &mcs, &sgi)) { in ath6kl_get_station()
1825 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station()
1827 sinfo->txrate.mcs = mcs; in ath6kl_get_station()
1831 } else if (is_rate_ht40(rate, &mcs, &sgi)) { in ath6kl_get_station()
1834 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station()
[all …]
/drivers/net/wireless/ath/ath9k/
Dxmit.c932 static int ath_max_framelen(int usec, int mcs, bool ht40, bool sgi) in ath_max_framelen() argument
934 int streams = HT_RC_2_STREAMS(mcs); in ath_max_framelen()
939 bits = symbols * bits_per_symbol[mcs % 8][ht40] * streams; in ath_max_framelen()
952 int mcs; in ath_update_max_aggr_framelen() local
962 for (mcs = 0; mcs < 32; mcs++) { in ath_update_max_aggr_framelen()
963 cur_ht20[mcs] = ath_max_framelen(txop, mcs, false, false); in ath_update_max_aggr_framelen()
964 cur_ht20_sgi[mcs] = ath_max_framelen(txop, mcs, false, true); in ath_update_max_aggr_framelen()
965 cur_ht40[mcs] = ath_max_framelen(txop, mcs, true, false); in ath_update_max_aggr_framelen()
966 cur_ht40_sgi[mcs] = ath_max_framelen(txop, mcs, true, true); in ath_update_max_aggr_framelen()
Drc.c1203 if (sta->ht_cap.mcs.rx_mask[1] && sta->ht_cap.mcs.rx_mask[2]) in ath_rc_build_ht_caps()
1205 else if (sta->ht_cap.mcs.rx_mask[1]) in ath_rc_build_ht_caps()
1296 if (sta->ht_cap.mcs.rx_mask[i/8] & (1<<(i%8))) in ath_rate_init()
1378 char mcs[5]; in read_file_rcstat() local
1383 used_mcs = snprintf(mcs, 5, "%d", in read_file_rcstat()
1394 mcs[used_mcs] = '\0'; in read_file_rcstat()
1401 mcs, in read_file_rcstat()
Dhtc_drv_init.c511 memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); in setup_ht_cap()
521 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in setup_ht_cap()
522 ht_info->mcs.tx_params |= ((tx_streams - 1) << in setup_ht_cap()
527 ht_info->mcs.rx_mask[i] = 0xff; in setup_ht_cap()
529 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_DEFINED; in setup_ht_cap()
Dinit.c287 memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); in setup_ht_cap()
295 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in setup_ht_cap()
296 ht_info->mcs.tx_params |= ((tx_streams - 1) << in setup_ht_cap()
301 ht_info->mcs.rx_mask[i] = 0xff; in setup_ht_cap()
303 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_DEFINED; in setup_ht_cap()
/drivers/net/wireless/mwifiex/
Dcfg80211.c847 rate->mcs = priv->tx_rate; in mwifiex_parse_htinfo()
852 rate->mcs = priv->tx_rate & 0x0F; in mwifiex_parse_htinfo()
887 rate->mcs = priv->tx_rate; in mwifiex_parse_htinfo()
1160 bitmap_rates[2] = mask->control[band].mcs[0]; in mwifiex_cfg80211_set_bitrate_mask()
1162 bitmap_rates[2] |= mask->control[band].mcs[1] << 8; in mwifiex_cfg80211_set_bitrate_mask()
1974 u8 *mcs = (u8 *)&mcs_set; in mwifiex_setup_ht_caps() local
1981 memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); in mwifiex_setup_ht_caps()
2029 memset(mcs, 0xff, rx_mcs_supp); in mwifiex_setup_ht_caps()
2031 memset(&mcs[rx_mcs_supp], 0, in mwifiex_setup_ht_caps()
2038 memcpy((u8 *) &ht_info->mcs, mcs, sizeof(struct ieee80211_mcs_info)); in mwifiex_setup_ht_caps()
[all …]
D11n.c52 memcpy((u8 *) &ht_cap->ht_cap.mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info()
53 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info()
60 SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask); in mwifiex_fill_cap_info()
/drivers/net/wireless/ath/wil6210/
Dcfg80211.c44 .mcs = {
131 sinfo->txrate.mcs = wil->stats.bf_mcs; in wil_cfg80211_get_station()
134 sinfo->rxrate.mcs = wil->stats.last_mcs_rx; in wil_cfg80211_get_station()
/drivers/net/wireless/iwlwifi/mvm/
Drs.c597 u8 mcs; in rs_get_tbl_info_from_mcs() local
628 mcs = rs_extract_rate(rate_n_flags); in rs_get_tbl_info_from_mcs()
631 if (mcs <= IWL_RATE_SISO_60M_PLCP) { in rs_get_tbl_info_from_mcs()
635 } else if (mcs <= IWL_RATE_MIMO2_60M_PLCP) { in rs_get_tbl_info_from_mcs()
2619 lq_sta->active_siso_rate = ht_cap->mcs.rx_mask[0] << 1; in iwl_mvm_rs_rate_init()
2620 lq_sta->active_siso_rate |= ht_cap->mcs.rx_mask[0] & 0x1; in iwl_mvm_rs_rate_init()
2625 lq_sta->active_mimo2_rate = ht_cap->mcs.rx_mask[1] << 1; in iwl_mvm_rs_rate_init()
2626 lq_sta->active_mimo2_rate |= ht_cap->mcs.rx_mask[1] & 0x1; in iwl_mvm_rs_rate_init()
2630 lq_sta->active_mimo3_rate = ht_cap->mcs.rx_mask[2] << 1; in iwl_mvm_rs_rate_init()
2631 lq_sta->active_mimo3_rate |= ht_cap->mcs.rx_mask[2] & 0x1; in iwl_mvm_rs_rate_init()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Drs.c620 u8 mcs; in rs_get_tbl_info_from_mcs() local
656 mcs = rs_extract_rate(rate_n_flags); in rs_get_tbl_info_from_mcs()
659 if (mcs <= IWL_RATE_SISO_60M_PLCP) { in rs_get_tbl_info_from_mcs()
663 } else if (mcs <= IWL_RATE_MIMO2_60M_PLCP) { in rs_get_tbl_info_from_mcs()
2873 lq_sta->active_siso_rate = ht_cap->mcs.rx_mask[0] << 1; in iwl_rs_rate_init()
2874 lq_sta->active_siso_rate |= ht_cap->mcs.rx_mask[0] & 0x1; in iwl_rs_rate_init()
2879 lq_sta->active_mimo2_rate = ht_cap->mcs.rx_mask[1] << 1; in iwl_rs_rate_init()
2880 lq_sta->active_mimo2_rate |= ht_cap->mcs.rx_mask[1] & 0x1; in iwl_rs_rate_init()
2884 lq_sta->active_mimo3_rate = ht_cap->mcs.rx_mask[2] << 1; in iwl_rs_rate_init()
2885 lq_sta->active_mimo3_rate |= ht_cap->mcs.rx_mask[2] & 0x1; in iwl_rs_rate_init()
[all …]
Drxon.c1319 if (ht_cap->mcs.rx_mask[1] == 0 && in iwlagn_check_needed_chains()
1320 ht_cap->mcs.rx_mask[2] == 0) { in iwlagn_check_needed_chains()
1322 } else if (!(ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
1326 } else if (ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
1337 maxstreams = (ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
/drivers/net/wireless/iwlegacy/
D4965-rs.c559 u8 mcs; in il4965_rs_get_tbl_info_from_mcs() local
595 mcs = il4965_rs_extract_rate(rate_n_flags); in il4965_rs_get_tbl_info_from_mcs()
598 if (mcs <= RATE_SISO_60M_PLCP) { in il4965_rs_get_tbl_info_from_mcs()
2336 lq_sta->active_siso_rate = ht_cap->mcs.rx_mask[0] << 1; in il4965_rs_rate_init()
2337 lq_sta->active_siso_rate |= ht_cap->mcs.rx_mask[0] & 0x1; in il4965_rs_rate_init()
2342 lq_sta->active_mimo2_rate = ht_cap->mcs.rx_mask[1] << 1; in il4965_rs_rate_init()
2343 lq_sta->active_mimo2_rate |= ht_cap->mcs.rx_mask[1] & 0x1; in il4965_rs_rate_init()
2680 il_rate_mcs[idx].mcs); in il4965_rs_sta_dbgfs_scale_table_read()
Dcommon.c3333 memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); in il_init_ht_hw_capab()
3342 ht_info->mcs.rx_mask[4] = 0x01; in il_init_ht_hw_capab()
3352 ht_info->mcs.rx_mask[0] = 0xFF; in il_init_ht_hw_capab()
3354 ht_info->mcs.rx_mask[1] = 0xFF; in il_init_ht_hw_capab()
3356 ht_info->mcs.rx_mask[2] = 0xFF; in il_init_ht_hw_capab()
3361 ht_info->mcs.rx_highest = cpu_to_le16(max_bit_rate); in il_init_ht_hw_capab()
3364 ht_info->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in il_init_ht_hw_capab()
3366 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in il_init_ht_hw_capab()
3367 ht_info->mcs.tx_params |= in il_init_ht_hw_capab()
5187 (ht_cap->mcs. in il_ht_conf()
[all …]
/drivers/net/wireless/ti/wl18xx/
Dmain.c1530 .mcs = {
1545 .mcs = {
1559 .mcs = {
1573 .mcs = {

123