Searched refs:inv_w (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/sys/netpfil/ipfw/
H A Ddn_sched_qfq.c152 inv_w = (1<<FRAC_BITS)/w_i
153 so we can do F = S + len * inv_w * wsum.
217 uint32_t inv_w; /* ONE_FP/weight */ member in struct:qfq_class
274 static int qfq_calc_index(uint32_t inv_w, unsigned int maxlen) argument
276 uint64_t slot_size = (uint64_t)maxlen *inv_w;
291 ND("W = %d, L = %d, I = %d\n", ONE_FP/inv_w, maxlen, index);
317 cl->inv_w = ONE_FP/w;
318 w = ONE_FP/cl->inv_w;
322 i = qfq_calc_index(cl->inv_w, cl->lmax);
336 if (cl->inv_w) {
[all...]
H A Ddn_sched_wf2q.c99 uint32_t inv_w; /* ONE_FP / weight */ member in struct:wf2qp_queue
161 alg_fq->F = alg_fq->S + len * alg_fq->inv_w;
252 alg_fq->F += len * alg_fq->inv_w;
309 q->inv_w = ONE_FP / _q->fs->fs.par[0];

Completed in 216 milliseconds