• Home
  • Raw
  • Download

Lines Matching refs:i

65 	int i = rix;  in rix_to_ndx()  local
66 for (i = rix; i >= 0; i--) in rix_to_ndx()
67 if (mi->r[i].rix == rix) in rix_to_ndx()
69 return i; in rix_to_ndx()
74 minstrel_sort_best_tp_rates(struct minstrel_sta_info *mi, int i, u8 *tp_list) in minstrel_sort_best_tp_rates() argument
78 while (j > 0 && mi->r[i].stats.cur_tp > mi->r[tp_list[j - 1]].stats.cur_tp) in minstrel_sort_best_tp_rates()
83 tp_list[j] = i; in minstrel_sort_best_tp_rates()
102 int i = 0; in minstrel_update_rates() local
109 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[0]); in minstrel_update_rates()
113 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[1]); in minstrel_update_rates()
118 minstrel_set_rate(mi, ratetbl, i++, mi->max_prob_rate); in minstrel_update_rates()
122 ratetbl->rate[i].idx = mi->lowest_rix; in minstrel_update_rates()
123 ratetbl->rate[i].count = mp->max_retry; in minstrel_update_rates()
124 ratetbl->rate[i].count_cts = mp->max_retry; in minstrel_update_rates()
125 ratetbl->rate[i].count_rts = mp->max_retry; in minstrel_update_rates()
136 int i; in minstrel_update_stats() local
138 for (i = 0; i < MAX_THR_RATES; i++) in minstrel_update_stats()
139 tmp_tp_rate[i] = 0; in minstrel_update_stats()
141 for (i = 0; i < mi->n_rates; i++) { in minstrel_update_stats()
142 struct minstrel_rate *mr = &mi->r[i]; in minstrel_update_stats()
143 struct minstrel_rate_stats *mrs = &mi->r[i].stats; in minstrel_update_stats()
187 minstrel_sort_best_tp_rates(mi, i, tmp_tp_rate); in minstrel_update_stats()
197 tmp_prob_rate = i; in minstrel_update_stats()
200 tmp_prob_rate = i; in minstrel_update_stats()
232 int i, ndx; in minstrel_tx_status() local
237 for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { in minstrel_tx_status()
238 if (ar[i].idx < 0) in minstrel_tx_status()
241 ndx = rix_to_ndx(mi, ar[i].idx); in minstrel_tx_status()
245 mi->r[ndx].stats.attempts += ar[i].count; in minstrel_tx_status()
247 if ((i != IEEE80211_TX_MAX_RATES - 1) && (ar[i + 1].idx < 0)) in minstrel_tx_status()
251 if ((info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE) && (i >= 0)) in minstrel_tx_status()
419 unsigned int i, col, new_idx; in init_sample_table() local
428 for (i = 0; i < mi->n_rates; i++) { in init_sample_table()
429 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table()
433 SAMPLE_TBL(mi, new_idx, col) = i; in init_sample_table()
446 unsigned int i, n = 0; in minstrel_rate_init() local
462 for (i = 0; i < sband->n_bitrates; i++) { in minstrel_rate_init()
470 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
472 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in minstrel_rate_init()
479 mr->rix = i; in minstrel_rate_init()
481 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in minstrel_rate_init()
483 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
513 if (!(sband->bitrates[i].flags & IEEE80211_RATE_ERP_G)) in minstrel_rate_init()
517 for (i = n; i < sband->n_bitrates; i++) { in minstrel_rate_init()
518 struct minstrel_rate *mr = &mi->r[i]; in minstrel_rate_init()
537 int i; in minstrel_alloc_sta() local
543 for (i = 0; i < IEEE80211_NUM_BANDS; i++) { in minstrel_alloc_sta()
544 sband = hw->wiphy->bands[i]; in minstrel_alloc_sta()
583 int i, j; in minstrel_init_cck_rates() local
589 for (i = 0, j = 0; i < sband->n_bitrates; i++) { in minstrel_init_cck_rates()
590 struct ieee80211_rate *rate = &sband->bitrates[i]; in minstrel_init_cck_rates()
595 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in minstrel_init_cck_rates()
602 mp->cck_rates[j] = i; in minstrel_init_cck_rates()