Lines Matching refs:stf

51 		if ((wlc->stf->rxstreams == 1) && (val != HT_CAP_RX_STBC_NO))  in brcms_c_stf_stbc_rx_ht_update()
75 if (wlc->stf->txchain == wlc->stf->hw_txchain) { in brcms_c_tempsense_upd()
76 if (txchain && (txchain < wlc->stf->hw_txchain)) in brcms_c_tempsense_upd()
79 } else if (wlc->stf->txchain < wlc->stf->hw_txchain) { in brcms_c_tempsense_upd()
80 if (txchain == wlc->stf->hw_txchain) in brcms_c_tempsense_upd()
136 if ((int_val == ON) && (wlc->stf->txstreams == 1)) in brcms_c_stf_stbc_tx_set()
153 && (wlc->stf->rxstreams == 1)) in brcms_c_stf_stbc_rx_set()
167 if (hweight8(core_mask) > wlc->stf->txstreams) in brcms_c_stf_txcore_set()
170 if ((hweight8(core_mask) == wlc->stf->txstreams) && in brcms_c_stf_txcore_set()
171 ((core_mask & ~wlc->stf->txchain) in brcms_c_stf_txcore_set()
172 || !(core_mask & wlc->stf->txchain))) in brcms_c_stf_txcore_set()
173 core_mask = wlc->stf->txchain; in brcms_c_stf_txcore_set()
175 wlc->stf->txcore[Nsts] = core_mask; in brcms_c_stf_txcore_set()
181 wlc->stf->phytxant = core_mask << PHY_TXC_ANT_SHIFT; in brcms_c_stf_txcore_set()
182 brcms_b_txant_set(wlc->hw, wlc->stf->phytxant); in brcms_c_stf_txcore_set()
201 wlc->stf->spatial_policy = (s8) val; in brcms_c_stf_spatial_policy_set()
204 wlc->stf->txchain : txcore_default[i]; in brcms_c_stf_spatial_policy_set()
230 txant = (s8) wlc->stf->txant; in _brcms_c_stf_phy_txant_upd()
233 wlc->stf->phytxant = PHY_TXC_ANT_0; in _brcms_c_stf_phy_txant_upd()
235 wlc->stf->phytxant = PHY_TXC_ANT_1; in _brcms_c_stf_phy_txant_upd()
240 wlc->stf->phytxant = PHY_TXC_ANT_2; in _brcms_c_stf_phy_txant_upd()
244 wlc->stf->phytxant = PHY_TXC_LCNPHY_ANT_LAST; in _brcms_c_stf_phy_txant_upd()
247 WARN_ON(wlc->stf->txchain <= 0); in _brcms_c_stf_phy_txant_upd()
248 wlc->stf->phytxant = in _brcms_c_stf_phy_txant_upd()
249 wlc->stf->txchain << PHY_TXC_ANT_SHIFT; in _brcms_c_stf_phy_txant_upd()
254 wlc->stf->phytxant = PHY_TXC_OLD_ANT_0; in _brcms_c_stf_phy_txant_upd()
256 wlc->stf->phytxant = PHY_TXC_OLD_ANT_1; in _brcms_c_stf_phy_txant_upd()
258 wlc->stf->phytxant = PHY_TXC_OLD_ANT_LAST; in _brcms_c_stf_phy_txant_upd()
261 brcms_b_txant_set(wlc->hw, wlc->stf->phytxant); in _brcms_c_stf_phy_txant_upd()
270 if (wlc->stf->txchain == txchain) in brcms_c_stf_txchain_set()
273 if ((txchain & ~wlc->stf->hw_txchain) in brcms_c_stf_txchain_set()
274 || !(txchain & wlc->stf->hw_txchain)) in brcms_c_stf_txchain_set()
285 wlc->stf->txchain = txchain; in brcms_c_stf_txchain_set()
286 wlc->stf->txstreams = txstreams; in brcms_c_stf_txchain_set()
290 wlc->stf->txant = in brcms_c_stf_txchain_set()
291 (wlc->stf->txstreams == 1) ? ANT_TX_FORCE_0 : ANT_TX_DEF; in brcms_c_stf_txchain_set()
294 wlc_phy_stf_chain_set(wlc->band->pi, wlc->stf->txchain, in brcms_c_stf_txchain_set()
295 wlc->stf->rxchain); in brcms_c_stf_txchain_set()
313 prev_stf_ss = wlc->stf->ss_opmode; in brcms_c_stf_ss_update()
320 wlc->stf->ss_algosel_auto in brcms_c_stf_ss_update()
321 && (wlc->stf->ss_algo_channel != (u16) -1)) { in brcms_c_stf_ss_update()
322 upd_stf_ss = (wlc->stf->txstreams == 1 || in brcms_c_stf_ss_update()
323 isset(&wlc->stf->ss_algo_channel, in brcms_c_stf_ss_update()
329 upd_stf_ss = (wlc->stf->txstreams == 1) ? in brcms_c_stf_ss_update()
333 wlc->stf->ss_opmode = upd_stf_ss; in brcms_c_stf_ss_update()
357 wlc->stf->ss_algosel_auto = true; in brcms_c_stf_attach()
359 wlc->stf->ss_algo_channel = (u16) -1; in brcms_c_stf_attach()
378 wlc->stf->hw_txchain = sprom->txchain; in brcms_c_stf_phy_chain_calc()
379 wlc->stf->hw_rxchain = sprom->rxchain; in brcms_c_stf_phy_chain_calc()
382 if (wlc->stf->hw_txchain == 0 || wlc->stf->hw_txchain == 0xf) { in brcms_c_stf_phy_chain_calc()
384 wlc->stf->hw_txchain = TXCHAIN_DEF_NPHY; in brcms_c_stf_phy_chain_calc()
386 wlc->stf->hw_txchain = TXCHAIN_DEF; in brcms_c_stf_phy_chain_calc()
389 wlc->stf->txchain = wlc->stf->hw_txchain; in brcms_c_stf_phy_chain_calc()
390 wlc->stf->txstreams = (u8) hweight8(wlc->stf->hw_txchain); in brcms_c_stf_phy_chain_calc()
392 if (wlc->stf->hw_rxchain == 0 || wlc->stf->hw_rxchain == 0xf) { in brcms_c_stf_phy_chain_calc()
394 wlc->stf->hw_rxchain = RXCHAIN_DEF_NPHY; in brcms_c_stf_phy_chain_calc()
396 wlc->stf->hw_rxchain = RXCHAIN_DEF; in brcms_c_stf_phy_chain_calc()
399 wlc->stf->rxchain = wlc->stf->hw_rxchain; in brcms_c_stf_phy_chain_calc()
400 wlc->stf->rxstreams = (u8) hweight8(wlc->stf->hw_rxchain); in brcms_c_stf_phy_chain_calc()
403 memcpy(wlc->stf->txcore, txcore_default, sizeof(wlc->stf->txcore)); in brcms_c_stf_phy_chain_calc()
406 wlc->stf->spatial_policy = MIN_SPATIAL_EXPANSION; in brcms_c_stf_phy_chain_calc()
413 u16 phytxant = wlc->stf->phytxant; in _brcms_c_stf_phytxchain_sel()
416 phytxant = wlc->stf->txchain << PHY_TXC_ANT_SHIFT; in _brcms_c_stf_phytxchain_sel()
417 else if (wlc->stf->txant == ANT_TX_DEF) in _brcms_c_stf_phytxchain_sel()
418 phytxant = wlc->stf->txchain << PHY_TXC_ANT_SHIFT; in _brcms_c_stf_phytxchain_sel()
430 u16 phytxant = wlc->stf->phytxant; in brcms_c_stf_d11hdrs_phyctl_txant()