Lines Matching defs:inv_w
80 inv_w = (1<<FRAC_BITS)/w_i
81 so we can do F = S + len * inv_w * wsum.
157 u32 inv_w; /* ONE_FP/(sum of weights of classes in aggr.). */
231 static int qfq_calc_index(u32 inv_w, unsigned int maxlen, u32 min_slot_shift)
233 u64 slot_size = (u64)maxlen * inv_w;
248 (unsigned long) ONE_FP/inv_w, maxlen, index);
299 agg->inv_w = ONE_FP/new_agg_weight;
302 int i = qfq_calc_index(agg->inv_w, agg->budgetmax,
410 u32 weight, lmax, inv_w;
441 inv_w = ONE_FP / weight;
442 weight = ONE_FP / inv_w;
1024 agg->F = agg->S + (u64)service_received * agg->inv_w;
1080 agg->F = agg->S + (u64)agg->budgetmax * agg->inv_w;