Lines Matching refs:tab

53 	struct gred_sched_data *tab[MAX_DPs];
99 struct gred_sched_data *q = table->tab[i];
106 if (table->tab[n] && table->tab[n]->prio == q->prio)
160 if (table->tab[i] && table->tab[i]->red_flags)
173 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) {
176 q = t->tab[dp];
199 if (t->tab[i] && t->tab[i]->prio < q->prio &&
200 !red_is_idling(&t->tab[i]->vars))
201 qavg += t->tab[i]->vars.qavg;
272 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) {
301 struct gred_sched_data *q = t->tab[i];
334 struct gred_sched_data *q = table->tab[i];
338 opt->set.tab[i].present = true;
339 opt->set.tab[i].limit = q->limit;
340 opt->set.tab[i].prio = q->prio;
341 opt->set.tab[i].min = q->parms.qth_min >> q->parms.Wlog;
342 opt->set.tab[i].max = q->parms.qth_max >> q->parms.Wlog;
343 opt->set.tab[i].is_ecn = gred_use_ecn(q);
344 opt->set.tab[i].is_harddrop = gred_use_harddrop(q);
345 opt->set.tab[i].probability = q->parms.max_P;
346 opt->set.tab[i].backlog = &q->backlog;
372 if (table->tab[i])
373 hw_stats->stats.xstats[i] = &table->tab[i]->stats;
382 if (!table->tab[i])
384 table->tab[i]->packetsin += u64_stats_read(&hw_stats->stats.bstats[i].packets);
385 table->tab[i]->bytesin += u64_stats_read(&hw_stats->stats.bstats[i].bytes);
386 table->tab[i]->backlog += hw_stats->stats.qstats[i].backlog;
464 if (table->tab[i])
465 table->tab[i]->red_flags =
469 if (table->tab[i]) {
472 gred_destroy_vq(table->tab[i]);
473 table->tab[i] = NULL;
488 struct gred_sched_data *q = table->tab[dp];
496 table->tab[dp] = q = *prealloc;
549 table->tab[dp]->red_flags = nla_get_u32(tb[TCA_GRED_VQ_FLAGS]);
588 if (dp != cdp && !table->tab[dp]) {
692 if (table->tab[table->def])
693 def_prio = table->tab[table->def]->prio;
791 struct gred_sched_data *q = table->tab[i];
807 struct gred_sched_data *q = table->tab[i];
857 struct gred_sched_data *q = table->tab[i];
914 gred_destroy_vq(table->tab[i]);