Home | History | Annotate | Download | only in ic

Lines Matching defs:ndx

166  * returns the ndx with the lowest average_tx_time,
217 int ndx = (sn->last_sample_ndx[size_bin]+1+x) % sn->num_rates;
220 if (ndx == current_ndx)
224 if (sn->stats[size_bin][ndx].perfect_tx_time > current_tt)
228 if (ticks - sn->stats[size_bin][ndx].last_tx < ((hz * STALE_FAILURE_TIMEOUT_MS)/1000) &&
229 sn->stats[size_bin][ndx].successive_failures > 3)
235 if (sn->rates[ndx].rate > 22 && ndx > current_ndx + 2)
239 if (sn->rates[ndx].rate == 18)
244 if (sn->rates[current_ndx].rate == 22 && ndx > current_ndx + 1)
247 sn->last_sample_ndx[size_bin] = ndx;
248 return ndx;
261 int ndx, size_bin, mrr, best_ndx, change_rates;
275 ndx = sn->static_rate_ndx;
286 ndx = pick_sample_ndx(sn, size_bin);
287 if (ndx != sn->current_rate[size_bin]) {
288 sn->current_sample_ndx[size_bin] = ndx;
298 for (ndx = sn->num_rates-1; ndx > 0; ndx--) {
303 if (sn->rates[ndx].rate <= 72 &&
304 sn->stats[size_bin][ndx].successive_failures == 0) {
309 best_ndx = ndx;
342 ndx = sn->current_rate[size_bin];
349 an->an_node.ni_txrate = ndx;
354 KASSERTMSG(ndx >= 0 && ndx < sn->num_rates, "ndx is %d", ndx);
356 *rix = sn->rates[ndx].rix;
358 *txrate = sn->rates[ndx].shortPreambleRateCode;
360 *txrate = sn->rates[ndx].rateCode;
373 int ndx = 0;
376 ndx = sn->current_rate[size_bin]; /* retry at the current bit-rate */
378 if (!sn->stats[size_bin][ndx].packets_acked) {
379 ndx = 0; /* use the lowest bit-rate */
383 rateCode = sn->rates[ndx].shortPreambleRateCode;
385 rateCode = sn->rates[ndx].rateCode;
496 int ndx = -1;
539 ndx = rate_to_ndx(sn, final_rate);
544 ndx, short_tries, long_tries);
545 if (ndx >= 0 && ndx < sn->num_rates) {
547 ndx, long_tries,
702 int ndx = 0;
722 for (ndx = sn->num_rates-1; ndx > 0; ndx--) {
723 if (sn->rates[ndx].rate <= 72) {
727 sn->current_rate[y] = ndx;