• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/iwlwifi/

Lines Matching refs:index

89 			     u32 *rate_n_flags, int index);
92 u32 *rate_n_flags, int index)
222 s32 index;
250 index = time_diff / TID_QUEUE_CELL_SPACING;
254 if (index >= TID_QUEUE_MAX_SIZE)
257 index = (tl->head + index) % TID_QUEUE_MAX_SIZE;
258 tl->packet_count[index] = tl->packet_count[index] + 1;
261 if ((index + 1) > tl->queue_count)
262 tl->queue_count = index + 1;
274 s32 index;
288 index = time_diff / TID_QUEUE_CELL_SPACING;
292 if (index >= TID_QUEUE_MAX_SIZE)
441 int index, u8 use_green)
446 rate_n_flags = iwl_rates[index].plcp;
447 if (index >= IWL_FIRST_CCK_RATE && index <= IWL_LAST_CCK_RATE)
451 if (index > IWL_LAST_OFDM_RATE) {
452 IWL_ERR(priv, "Invalid HT rate index %d\n", index);
453 index = IWL_LAST_OFDM_RATE;
458 rate_n_flags |= iwl_rates[index].plcp_siso;
460 rate_n_flags |= iwl_rates[index].plcp_mimo2;
462 rate_n_flags |= iwl_rates[index].plcp_mimo3;
620 static u16 rs_get_adjacent_rate(struct iwl_priv *priv, u8 index, u16 rate_mask,
633 i = index - 1;
642 i = index + 1;
653 low = index;
663 high = index;
807 * mac80211 HT index is always zero-indexed; we need to move
858 * first index into rate scale table.
1008 u16 rate_mask, s8 index)
1013 s32 active_sr = active_tbl->win[index].success_ratio;
1014 s32 active_tpt = active_tbl->expected_tpt[index];
1021 s8 rate = index;
1103 struct iwl_scale_tbl_info *tbl, int index)
1135 rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);
1139 IWL_DEBUG_RATE(priv, "Can't switch with index %d rate mask %x\n",
1145 IWL_DEBUG_RATE(priv, "LQ: Switch to new mcs %X index is green %X\n",
1157 struct iwl_scale_tbl_info *tbl, int index)
1189 rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);
1194 IWL_DEBUG_RATE(priv, "Can't switch with index %d rate mask %x\n",
1200 IWL_DEBUG_RATE(priv, "LQ: Switch to new mcs %X index is green %X\n",
1212 struct iwl_scale_tbl_info *tbl, int index)
1238 rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);
1242 IWL_DEBUG_RATE(priv, "can not switch with index %d rate mask %x\n",
1247 IWL_DEBUG_RATE(priv, "LQ: Switch to new mcs %X index is green %X\n",
1259 int index)
1264 struct iwl_rate_scale_data *window = &(tbl->win[index]);
1313 search_tbl, index);
1340 search_tbl, index);
1360 search_tbl, index);
1395 struct ieee80211_sta *sta, int index)
1401 struct iwl_rate_scale_data *window = &(tbl->win[index]);
1457 search_tbl, index);
1483 if (tpt >= search_tbl->expected_tpt[index])
1488 index, is_green);
1501 search_tbl, index);
1533 struct ieee80211_sta *sta, int index)
1539 struct iwl_rate_scale_data *window = &(tbl->win[index]);
1594 search_tbl, index);
1622 if (tpt >= search_tbl->expected_tpt[index])
1627 index, is_green);
1641 search_tbl, index);
1674 struct ieee80211_sta *sta, int index)
1680 struct iwl_rate_scale_data *window = &(tbl->win[index]);
1733 search_tbl, index);
1757 search_tbl, index);
1785 if (tpt >= search_tbl->expected_tpt[index])
1790 index, is_green);
1904 int index, u8 is_green)
1909 rate = rate_n_flags_from_tbl(priv, tbl, index, is_green);
1930 int index;
1992 index = lq_sta->last_txrate_idx;
1994 IWL_DEBUG_RATE(priv, "Rate scale index %d for type %d\n", index,
2018 if (!((1 << index) & rate_scale_index_msk)) {
2026 index = iwl_hwrate_to_plcp_idx(tbl->current_rate);
2028 tbl, index, is_green);
2041 (lq_sta->max_rate_idx < index)) {
2042 index = lq_sta->max_rate_idx;
2044 window = &(tbl->win[index]);
2048 window = &(tbl->win[index]);
2061 "for index %d\n",
2062 window->success_counter, window->counter, index);
2076 tbl->expected_tpt[index] + 64) / 128)) {
2079 tbl->expected_tpt[index] + 64) / 128);
2120 index = iwl_hwrate_to_plcp_idx(tbl->current_rate);
2136 high_low = rs_get_adjacent_rate(priv, index, rate_scale_index_msk,
2222 index = low;
2230 index = high;
2240 IWL_DEBUG_RATE(priv, "choose rate scale index %d action %d low %d "
2242 index, scale_action, low, high, tbl->lq_type);
2248 tbl, index, is_green);
2268 rs_move_legacy_other(priv, lq_sta, conf, sta, index);
2270 rs_move_siso_to_other(priv, lq_sta, conf, sta, index);
2272 rs_move_mimo2_to_other(priv, lq_sta, conf, sta, index);
2274 rs_move_mimo3_to_other(priv, lq_sta, conf, sta, index);
2284 index = iwl_hwrate_to_plcp_idx(tbl->current_rate);
2286 IWL_DEBUG_RATE(priv, "Switch current mcs: %X index: %d\n",
2287 tbl->current_rate, index);
2331 tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, index, is_green);
2332 i = index;
2439 /* 6M and 9M shared same MCS index */
2462 /* On valid 5 GHz rate, adjust index */
2584 int index = 0;
2592 /* Override starting rate (index 0) if needed for debug purposes */
2593 rs_dbgfs_set_mcs(lq_sta, &new_rate, index);
2611 /* Fill 1st table entry (index 0) */
2612 lq_cmd->rs_table[index].rate_n_flags = cpu_to_le32(new_rate);
2622 index++;
2629 while (index < LINK_QUAL_MAX_RETRY_NUM) {
2633 while (repeat_rate > 0 && (index < LINK_QUAL_MAX_RETRY_NUM)) {
2644 rs_dbgfs_set_mcs(lq_sta, &new_rate, index);
2647 lq_cmd->rs_table[index].rate_n_flags =
2650 index++;
2660 lq_cmd->general_params.mimo_delimiter = index;
2685 rs_dbgfs_set_mcs(lq_sta, &new_rate, index);
2688 lq_cmd->rs_table[index].rate_n_flags = cpu_to_le32(new_rate);
2690 index++;
2727 u32 *rate_n_flags, int index)
2796 int index = 0;
2853 index = iwl_hwrate_to_plcp_idx(
2858 iwl_rate_mcs[index].mbps);
2862 iwl_rate_mcs[index].mbps, iwl_rate_mcs[index].mcs);