Lines Matching refs:tab

53 	struct gred_sched_data *tab[MAX_DPs];
98 struct gred_sched_data *q = table->tab[i];
105 if (table->tab[n] && table->tab[n]->prio == q->prio)
159 if (table->tab[i] && table->tab[i]->red_flags)
172 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) {
175 q = t->tab[dp];
198 if (t->tab[i] && t->tab[i]->prio < q->prio &&
199 !red_is_idling(&t->tab[i]->vars))
200 qavg += t->tab[i]->vars.qavg;
271 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) {
300 struct gred_sched_data *q = t->tab[i];
332 struct gred_sched_data *q = table->tab[i];
336 opt.set.tab[i].present = true;
337 opt.set.tab[i].limit = q->limit;
338 opt.set.tab[i].prio = q->prio;
339 opt.set.tab[i].min = q->parms.qth_min >> q->parms.Wlog;
340 opt.set.tab[i].max = q->parms.qth_max >> q->parms.Wlog;
341 opt.set.tab[i].is_ecn = gred_use_ecn(q);
342 opt.set.tab[i].is_harddrop = gred_use_harddrop(q);
343 opt.set.tab[i].probability = q->parms.max_P;
344 opt.set.tab[i].backlog = &q->backlog;
368 if (table->tab[i])
369 hw_stats->stats.xstats[i] = &table->tab[i]->stats;
376 if (!table->tab[i])
378 table->tab[i]->packetsin += hw_stats->stats.bstats[i].packets;
379 table->tab[i]->bytesin += hw_stats->stats.bstats[i].bytes;
380 table->tab[i]->backlog += hw_stats->stats.qstats[i].backlog;
457 if (table->tab[i])
458 table->tab[i]->red_flags =
462 if (table->tab[i]) {
465 gred_destroy_vq(table->tab[i]);
466 table->tab[i] = NULL;
481 struct gred_sched_data *q = table->tab[dp];
489 table->tab[dp] = q = *prealloc;
542 table->tab[dp]->red_flags = nla_get_u32(tb[TCA_GRED_VQ_FLAGS]);
581 if (dp != cdp && !table->tab[dp]) {
688 if (table->tab[table->def])
689 def_prio = table->tab[table->def]->prio;
780 struct gred_sched_data *q = table->tab[i];
796 struct gred_sched_data *q = table->tab[i];
847 struct gred_sched_data *q = table->tab[i];
906 if (table->tab[i])
907 gred_destroy_vq(table->tab[i]);