Home
last modified time | relevance | path

Searched refs:rspec (Results 1 – 8 of 8) sorted by relevance

/linux-2.6.39/drivers/staging/brcm80211/brcmsmac/
Dwlc_rate.h88 #define RSPEC_ACTIVE(rspec) (rspec & (RSPEC_RATE_MASK | RSPEC_MIMORATE)) argument
89 #define RSPEC2RATE(rspec) ((rspec & RSPEC_MIMORATE) ? \ argument
90 MCS_RATE((rspec & RSPEC_RATE_MASK), RSPEC_IS40MHZ(rspec), RSPEC_ISSGI(rspec)) : \
91 (rspec & RSPEC_RATE_MASK))
93 #define RSPEC2RATE500K(rspec) ((rspec & RSPEC_MIMORATE) ? \ argument
94 MCS_RATE((rspec & RSPEC_RATE_MASK), state->is40bw, RSPEC_ISSGI(rspec))/500 : \
95 (rspec & RSPEC_RATE_MASK))
96 #define CRSPEC2RATE500K(rspec) ((rspec & RSPEC_MIMORATE) ? \ argument
97 MCS_RATE((rspec & RSPEC_RATE_MASK), RSPEC_IS40MHZ(rspec), RSPEC_ISSGI(rspec))/500 :\
98 (rspec & RSPEC_RATE_MASK))
[all …]
Dwlc_main.c126 #define WLC_BASIC_RATE(wlc, rspec) (IS_MCS(rspec) ? \ argument
127 (wlc)->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK].leg_ofdm] : \
128 (wlc)->band->basic_rate[rspec & RSPEC_RATE_MASK])
276 static u16 wlc_compute_airtime(struct wlc_info *wlc, ratespec_t rspec,
5334 wlc_compute_airtime(struct wlc_info *wlc, ratespec_t rspec, uint length) in wlc_compute_airtime() argument
5337 uint mac_rate = RSPEC2RATE(rspec); in wlc_compute_airtime()
5340 if (IS_MCS(rspec)) { in wlc_compute_airtime()
5343 } else if (IS_OFDM(rspec)) { in wlc_compute_airtime()
5370 wlc->pub->unit, rspec); in wlc_compute_airtime()
5380 wlc_compute_plcp(struct wlc_info *wlc, ratespec_t rspec, uint length, u8 *plcp) in wlc_compute_plcp() argument
[all …]
Dwlc_rate.c339 ratespec_t rspec = PHY_TXC1_BW_20MHZ << RSPEC_BW_SHIFT; in wlc_compute_rspec() local
348 rspec = in wlc_compute_rspec()
352 rspec = in wlc_compute_rspec()
357 rspec = (plcp[0] & MIMO_PLCP_MCS_MASK) | RSPEC_MIMORATE; in wlc_compute_rspec()
360 rspec &= ~RSPEC_BW_MASK; in wlc_compute_rspec()
361 rspec |= (PHY_TXC1_BW_40MHZ << RSPEC_BW_SHIFT); in wlc_compute_rspec()
372 rspec |= RSPEC_SHORT_GI; in wlc_compute_rspec()
375 rspec = OFDM_PHY2MAC_RATE(((ofdm_phy_hdr_t *) plcp)->rlpt[0]); in wlc_compute_rspec()
377 rspec = CCK_PHY2MAC_RATE(((cck_phy_hdr_t *) plcp)->signal); in wlc_compute_rspec()
379 return rspec; in wlc_compute_rspec()
Dwlc_stf.h35 extern u16 wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec);
36 extern u16 wlc_stf_d11hdrs_phyctl_txant(struct wlc_info *wlc, ratespec_t rspec);
Dwlc_stf.c56 static u16 _wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec);
502 static u16 _wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec) in _wlc_stf_phytxchain_sel() argument
506 if (RSPEC_STF(rspec) != PHY_TXC1_MODE_SISO) { in _wlc_stf_phytxchain_sel()
515 u16 wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec) in wlc_stf_phytxchain_sel() argument
517 return _wlc_stf_phytxchain_sel(wlc, rspec); in wlc_stf_phytxchain_sel()
520 u16 wlc_stf_d11hdrs_phyctl_txant(struct wlc_info *wlc, ratespec_t rspec) in wlc_stf_d11hdrs_phyctl_txant() argument
528 phytxant = _wlc_stf_phytxchain_sel(wlc, rspec); in wlc_stf_d11hdrs_phyctl_txant()
Dwlc_ampdu.h30 ratespec_t rspec, int phylen);
Dwlc_ampdu.c515 ratespec_t rspec = 0, rspec_fallback = 0; in wlc_sendampdu() local
698 rspec = RSPEC_MIMORATE; in wlc_sendampdu()
699 rspec |= plcp[0] & ~MIMO_PLCP_40MHZ; in wlc_sendampdu()
701 rspec |= (PHY_TXC1_BW_40MHZ << RSPEC_BW_SHIFT); in wlc_sendampdu()
719 wlc_rspec_to_rts_rspec(wlc, rspec, false, in wlc_sendampdu()
811 wlc_calc_lsig_len(wlc, rspec, ampdu_len); in wlc_sendampdu()
845 rspec, rts_preamble_type, in wlc_sendampdu()
1300 ratespec_t rspec, int phylen) in wlc_ampdu_null_delim_cnt() argument
1325 bytes = CEIL(RSPEC2RATE(rspec), tmp); in wlc_ampdu_null_delim_cnt()
Dwlc_main.h170 #define VALID_RATE_DBG(wlc, rspec) wlc_valid_rate(wlc, rspec, WLC_BAND_AUTO, true) argument
868 extern ratespec_t wlc_rspec_to_rts_rspec(struct wlc_info *wlc, ratespec_t rspec,
917 extern u16 wlc_phytxctl1_calc(struct wlc_info *wlc, ratespec_t rspec);
954 extern u16 wlc_compute_bcntsfoff(struct wlc_info *wlc, ratespec_t rspec,