Lines Matching defs:rate_idx
455 static bool rate_idx_match_legacy_mask(s8 *rate_idx, int n_bitrates, u32 mask)
460 for (j = *rate_idx; j >= 0; j--) {
463 *rate_idx = j;
469 for (j = *rate_idx + 1; j < n_bitrates; j++) {
472 *rate_idx = j;
479 static bool rate_idx_match_mcs_mask(s8 *rate_idx, u8 *mcs_mask)
484 ridx = *rate_idx / 8;
485 rbit = *rate_idx % 8;
495 *rate_idx = i * 8 + j;
502 ridx = (*rate_idx + 1) / 8;
503 rbit = (*rate_idx + 1) % 8;
508 *rate_idx = i * 8 + j;
516 static bool rate_idx_match_vht_mcs_mask(s8 *rate_idx, u16 *vht_mask)
521 ridx = *rate_idx >> 4;
522 rbit = *rate_idx & 0xf;
531 *rate_idx = (i << 4) | j;
539 ridx = (*rate_idx + 1) >> 4;
540 rbit = (*rate_idx + 1) & 0xf;
545 *rate_idx = (i << 4) | j;
554 static void rate_idx_match_mask(s8 *rate_idx, u16 *rate_flags,
563 if (rate_idx_match_vht_mcs_mask(rate_idx, vht_mask))
566 *rate_idx = 0;
576 if (rate_idx_match_mcs_mask(rate_idx, mcs_mask))
582 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
587 if (rate_idx_match_mcs_mask(rate_idx, mcs_mask))
591 *rate_idx = 0;
596 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
601 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
615 *rate_idx = 0;
626 if (rate_idx_match_mcs_mask(rate_idx, mcs_mask))