Lines Matching refs:ra_mask
44 u64 ra_mask = 0; in get_mcs_ra_mask() local
52 ra_mask |= GENMASK_ULL(highest_mcs, 0) << nss; in get_mcs_ra_mask()
55 ra_mask |= GENMASK_ULL(highest_mcs - gap, 0) << nss; in get_mcs_ra_mask()
58 ra_mask |= GENMASK_ULL(highest_mcs - gap * 2, 0) << nss; in get_mcs_ra_mask()
65 return ra_mask; in get_mcs_ra_mask()
123 static u64 rtw89_phy_ra_mask_recover(u64 ra_mask, u64 ra_mask_bak) in rtw89_phy_ra_mask_recover() argument
125 if ((ra_mask & ~(RA_MASK_CCK_RATES | RA_MASK_OFDM_RATES)) == 0) in rtw89_phy_ra_mask_recover()
126 ra_mask |= (ra_mask_bak & ~(RA_MASK_CCK_RATES | RA_MASK_OFDM_RATES)); in rtw89_phy_ra_mask_recover()
128 if (ra_mask == 0) in rtw89_phy_ra_mask_recover()
129 ra_mask |= (ra_mask_bak & (RA_MASK_CCK_RATES | RA_MASK_OFDM_RATES)); in rtw89_phy_ra_mask_recover()
131 return ra_mask; in rtw89_phy_ra_mask_recover()
241 u64 ra_mask = 0; in rtw89_phy_ra_sta_update() local
258 ra_mask |= get_he_ra_mask(sta); in rtw89_phy_ra_sta_update()
273 ra_mask |= get_mcs_ra_mask(mcs_map, 9, 1); in rtw89_phy_ra_sta_update()
282 ra_mask |= ((u64)sta->deflink.ht_cap.mcs.rx_mask[3] << 48) | in rtw89_phy_ra_sta_update()
295 ra_mask |= sta->deflink.supp_rates[NL80211_BAND_2GHZ]; in rtw89_phy_ra_sta_update()
302 ra_mask |= (u64)sta->deflink.supp_rates[NL80211_BAND_5GHZ] << 4; in rtw89_phy_ra_sta_update()
306 ra_mask |= (u64)sta->deflink.supp_rates[NL80211_BAND_6GHZ] << 4; in rtw89_phy_ra_sta_update()
314 ra_mask_bak = ra_mask; in rtw89_phy_ra_sta_update()
324 ra_mask &= mask; in rtw89_phy_ra_sta_update()
326 ra_mask &= (RA_MASK_OFDM_RATES | RA_MASK_SUBCCK_RATES); in rtw89_phy_ra_sta_update()
330 ra_mask &= rtw89_phy_ra_mask_rssi(rtwdev, rssi, 0); in rtw89_phy_ra_sta_update()
332 ra_mask = rtw89_phy_ra_mask_recover(ra_mask, ra_mask_bak); in rtw89_phy_ra_sta_update()
333 ra_mask &= rtw89_phy_ra_mask_cfg(rtwdev, rtwsta); in rtw89_phy_ra_sta_update()
363 ra_mask = rtw89_phy_ra_mask_cfg(rtwdev, rtwsta); in rtw89_phy_ra_sta_update()
364 ra_mask &= rate_pattern->ra_mask; in rtw89_phy_ra_sta_update()
375 ra->ra_mask = ra_mask; in rtw89_phy_ra_sta_update()
417 u16 rate_base, u64 ra_mask, u8 ra_mode, in __check_rate_pattern() argument
438 next->ra_mask = ra_mask; in __check_rate_pattern()
517 next_pattern.ra_mask, in rtw89_phy_rate_pattern_vif()