Lines Matching refs:rate_idx
582 int *rate_idx) in rs_get_tbl_info_from_mcs() argument
589 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs()
591 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs()
592 *rate_idx = -1; in rs_get_tbl_info_from_mcs()
2629 int rate_idx; in rs_initialize_lq() local
2665 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq()
2669 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq()
2688 int rate_idx; in rs_get_rate() local
2709 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate()
2712 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate()
2714 rate_idx = (rate_idx > 0) ? (rate_idx - 1) : 0; in rs_get_rate()
2717 rate_idx = rate_idx + (2 * MCS_INDEX_PER_STREAM); in rs_get_rate()
2720 rate_idx = rate_idx + MCS_INDEX_PER_STREAM; in rs_get_rate()
2732 if ((rate_idx < 0) || (rate_idx >= IWL_RATE_COUNT_LEGACY) || in rs_get_rate()
2734 (rate_idx < IWL_FIRST_OFDM_RATE))) in rs_get_rate()
2735 rate_idx = rate_lowest_index(sband, sta); in rs_get_rate()
2738 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate()
2741 info->control.rates[0].idx = rate_idx; in rs_get_rate()
2865 int rate_idx; in rs_fill_link_cmd() local
2879 &tbl_type, &rate_idx); in rs_fill_link_cmd()
2945 &rate_idx); in rs_fill_link_cmd()
2960 new_rate = rs_get_lower_rate(lq_sta, &tbl_type, rate_idx, in rs_fill_link_cmd()