Lines Matching refs:weight
278 static u64 bfq_delta(unsigned long service, unsigned long weight) in bfq_delta() argument
280 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight); in bfq_delta()
293 bfq_delta(service, entity->weight); in bfq_calc_finish()
298 service, entity->weight); in bfq_calc_finish()
302 bfq_delta(service, entity->weight)); in bfq_calc_finish()
522 static unsigned short bfq_weight_to_ioprio(int weight) in bfq_weight_to_ioprio() argument
525 IOPRIO_BE_NR * BFQ_WEIGHT_CONVERSION_COEFF - weight); in bfq_weight_to_ioprio()
649 st->wsum -= entity->weight; in bfq_forget_entity()
746 old_st->wsum -= entity->weight; in __bfq_entity_update_weight_prio()
783 prev_weight = entity->weight; in __bfq_entity_update_weight_prio()
795 entity->weight = new_weight; in __bfq_entity_update_weight_prio()
805 new_st->wsum += entity->weight; in __bfq_entity_update_weight_prio()
993 st->wsum += entity->weight; in __bfq_activate_entity()