Lines Matching refs:inuse
452 u32 inuse; member
894 static void __propagate_active_weight(struct ioc_gq *iocg, u32 active, u32 inuse) in __propagate_active_weight() argument
901 inuse = min(active, inuse); in __propagate_active_weight()
910 parent->child_inuse_sum += (s32)(inuse - child->inuse); in __propagate_active_weight()
913 child->inuse = inuse; in __propagate_active_weight()
929 parent_inuse == parent->inuse) in __propagate_active_weight()
933 inuse = parent_inuse; in __propagate_active_weight()
951 static void propagate_active_weight(struct ioc_gq *iocg, u32 active, u32 inuse) in propagate_active_weight() argument
953 __propagate_active_weight(iocg, active, inuse); in propagate_active_weight()
988 u32 inuse = READ_ONCE(child->inuse); in current_hweight() local
997 inuse_sum = max(inuse, inuse_sum); in current_hweight()
998 hwi = hwi * inuse / inuse_sum; /* max 16bits * 10000 */ in current_hweight()
1023 DIV64_U64_ROUND_UP(iocg->inuse * weight, iocg->weight)); in weight_updated()
1386 iocg->last_inuse = iocg->inuse; in ioc_timer_fn()
1478 new_inuse = div64_u64((u64)iocg->inuse * new_hwi, in ioc_timer_fn()
1482 if (new_inuse > iocg->inuse) { in ioc_timer_fn()
1484 iocg->inuse, new_inuse, in ioc_timer_fn()
1521 new_inuse = DIV64_U64_ROUND_UP((u64)iocg->inuse * new_hwi, in ioc_timer_fn()
1523 if (new_inuse < iocg->inuse) { in ioc_timer_fn()
1525 iocg->inuse, new_inuse, in ioc_timer_fn()
1709 iocg->inuse, iocg->weight, hw_inuse, hw_active); in ioc_rqos_throttle()