Lines Matching defs:weight
264 * the maximum total weight that can be used for the queues in the system
284 * @weight: scale factor (weight of an entity or weight sum).
286 static u64 bfq_delta(unsigned long service, unsigned long weight)
288 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight);
301 bfq_delta(service, entity->weight);
306 service, entity->weight);
310 bfq_delta(service, entity->weight));
502 * bfq_ioprio_to_weight - calc a weight from an ioprio.
511 * bfq_weight_to_ioprio - calc an ioprio from a weight.
512 * @weight: the weight value to convert.
518 static unsigned short bfq_weight_to_ioprio(int weight)
521 IOPRIO_NR_LEVELS - weight / BFQ_WEIGHT_CONVERSION_COEFF);
632 st->wsum -= entity->weight;
683 * Update weight and priority of entity. If update_class_too is true,
713 old_st->wsum -= entity->weight;
742 * NOTE: here we may be changing the weight too early,
745 * weight changes to the proper time instants (i.e.,
750 prev_weight = entity->weight;
754 * If the weight of the entity changes, and the entity is a
755 * queue, remove the entity from its old weight counter (if
760 entity->weight = new_weight;
762 * Add the entity, if it is not a weight-raised queue,
763 * to the counter associated with its new weight.
768 new_st->wsum += entity->weight;
896 * As a special case, if bfqq is weight-raised, push up
899 * weight-raised queues to become higher than the backshifted
900 * finish timestamps of non weight-raised queues.
956 st->wsum += entity->weight;