Lines Matching defs:inv_w
80 inv_w = (1<<FRAC_BITS)/w_i
81 so we can do F = S + len * inv_w * wsum.
159 u32 inv_w; /* ONE_FP/(sum of weights of classes in aggr.). */
233 static int qfq_calc_index(u32 inv_w, unsigned int maxlen, u32 min_slot_shift)
235 u64 slot_size = (u64)maxlen * inv_w;
250 (unsigned long) ONE_FP/inv_w, maxlen, index);
301 agg->inv_w = ONE_FP/new_agg_weight;
304 int i = qfq_calc_index(agg->inv_w, agg->budgetmax,
412 u32 weight, lmax, inv_w;
443 inv_w = ONE_FP / weight;
444 weight = ONE_FP / inv_w;
1029 agg->F = agg->S + (u64)service_received * agg->inv_w;
1085 agg->F = agg->S + (u64)agg->budgetmax * agg->inv_w;