Lines Matching refs:rate_idx
604 int *rate_idx) in rs_get_tbl_info_from_mcs() argument
611 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs()
613 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs()
614 *rate_idx = -1; in rs_get_tbl_info_from_mcs()
2658 int rate_idx; in rs_initialize_lq() local
2694 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq()
2698 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq()
2717 int rate_idx; in rs_get_rate() local
2742 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate()
2745 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate()
2747 rate_idx = (rate_idx > 0) ? (rate_idx - 1) : 0; in rs_get_rate()
2750 rate_idx = rate_idx + (2 * MCS_INDEX_PER_STREAM); in rs_get_rate()
2753 rate_idx = rate_idx + MCS_INDEX_PER_STREAM; in rs_get_rate()
2765 if ((rate_idx < 0) || (rate_idx >= IWL_RATE_COUNT_LEGACY) || in rs_get_rate()
2767 (rate_idx < IWL_FIRST_OFDM_RATE))) in rs_get_rate()
2768 rate_idx = rate_lowest_index(sband, sta); in rs_get_rate()
2771 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate()
2774 info->control.rates[0].idx = rate_idx; in rs_get_rate()
2898 int rate_idx; in rs_fill_link_cmd() local
2912 &tbl_type, &rate_idx); in rs_fill_link_cmd()
2978 &rate_idx); in rs_fill_link_cmd()
2993 new_rate = rs_get_lower_rate(lq_sta, &tbl_type, rate_idx, in rs_fill_link_cmd()