Lines Matching defs:weight
256 * the maximum total weight that can be used for the queues in the system
276 * @weight: scale factor (weight of an entity or weight sum).
278 static u64 bfq_delta(unsigned long service, unsigned long weight)
280 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight);
293 bfq_delta(service, entity->weight);
298 service, entity->weight);
302 bfq_delta(service, entity->weight));
506 * bfq_ioprio_to_weight - calc a weight from an ioprio.
515 * bfq_weight_to_ioprio - calc an ioprio from a weight.
516 * @weight: the weight value to convert.
522 static unsigned short bfq_weight_to_ioprio(int weight)
525 IOPRIO_BE_NR * BFQ_WEIGHT_CONVERSION_COEFF - weight);
649 st->wsum -= entity->weight;
700 * Update weight and priority of entity. If update_class_too is true,
746 old_st->wsum -= entity->weight;
775 * NOTE: here we may be changing the weight too early,
778 * weight changes to the proper time instants (i.e.,
783 prev_weight = entity->weight;
787 * If the weight of the entity changes, and the entity is a
788 * queue, remove the entity from its old weight counter (if
795 entity->weight = new_weight;
797 * Add the entity, if it is not a weight-raised queue,
798 * to the counter associated with its new weight.
805 new_st->wsum += entity->weight;
933 * As a special case, if bfqq is weight-raised, push up
936 * weight-raised queues to become higher than the backshifted
937 * finish timestamps of non weight-raised queues.
993 st->wsum += entity->weight;