Lines Matching refs:roundedS
898 u64 roundedS) in qfq_slot_insert() argument
900 u64 slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert()
904 u64 deltaS = roundedS - grp->S - in qfq_slot_insert()
970 static void qfq_slot_rotate(struct qfq_group *grp, u64 roundedS) in qfq_slot_rotate() argument
972 unsigned int i = (grp->S - roundedS) >> grp->slot_shift; in qfq_slot_rotate()
1199 u64 roundedS = qfq_round_down(new_front_agg->S, in qfq_choose_next_agg() local
1203 if (grp->S == roundedS) in qfq_choose_next_agg()
1205 grp->S = roundedS; in qfq_choose_next_agg()
1206 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_choose_next_agg()
1285 u64 roundedS; in qfq_schedule_agg() local
1288 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_schedule_agg()
1304 qfq_slot_rotate(grp, roundedS); in qfq_schedule_agg()
1308 } else if (!q->bitmaps[ER] && qfq_gt(roundedS, q->V) && in qfq_schedule_agg()
1310 q->V = roundedS; in qfq_schedule_agg()
1312 grp->S = roundedS; in qfq_schedule_agg()
1313 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_schedule_agg()
1324 qfq_slot_insert(grp, agg, roundedS); in qfq_schedule_agg()
1347 u64 roundedS; in qfq_slot_remove() local
1349 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_slot_remove()
1350 offset = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_remove()
1370 u64 roundedS; in qfq_deactivate_agg() local
1400 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_deactivate_agg()
1401 if (grp->S != roundedS) { in qfq_deactivate_agg()
1406 grp->S = roundedS; in qfq_deactivate_agg()
1407 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_deactivate_agg()