Lines Matching refs:rs
272 static bool brcms_c_rateset_valid(struct brcms_c_rateset *rs, bool check_brate) in brcms_c_rateset_valid() argument
276 if (!rs->count) in brcms_c_rateset_valid()
283 for (idx = 0; idx < rs->count; idx++) { in brcms_c_rateset_valid()
284 if (rs->rates[idx] & BRCMS_RATE_FLAG) in brcms_c_rateset_valid()
290 void brcms_c_rateset_mcs_upd(struct brcms_c_rateset *rs, u8 txstreams) in brcms_c_rateset_mcs_upd() argument
294 rs->mcs[i] = 0; in brcms_c_rateset_mcs_upd()
302 brcms_c_rate_hwrs_filter_sort_validate(struct brcms_c_rateset *rs, in brcms_c_rate_hwrs_filter_sort_validate() argument
312 count = rs->count; in brcms_c_rate_hwrs_filter_sort_validate()
316 r = (int)rs->rates[i] & BRCMS_RATE_MASK; in brcms_c_rate_hwrs_filter_sort_validate()
319 rateset[r] = rs->rates[i]; /* preserve basic bit! */ in brcms_c_rate_hwrs_filter_sort_validate()
327 rs->rates[count++] = rateset[r]; in brcms_c_rate_hwrs_filter_sort_validate()
330 rs->count = count; in brcms_c_rate_hwrs_filter_sort_validate()
334 rs->mcs[i] = (rs->mcs[i] & hw_rs->mcs[i]); in brcms_c_rate_hwrs_filter_sort_validate()
336 if (brcms_c_rateset_valid(rs, check_brate)) in brcms_c_rate_hwrs_filter_sort_validate()