Lines Matching refs:roundedS
903 u64 roundedS) in qfq_slot_insert() argument
905 u64 slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert()
909 u64 deltaS = roundedS - grp->S - in qfq_slot_insert()
975 static void qfq_slot_rotate(struct qfq_group *grp, u64 roundedS) in qfq_slot_rotate() argument
977 unsigned int i = (grp->S - roundedS) >> grp->slot_shift; in qfq_slot_rotate()
1204 u64 roundedS = qfq_round_down(new_front_agg->S, in qfq_choose_next_agg() local
1208 if (grp->S == roundedS) in qfq_choose_next_agg()
1210 grp->S = roundedS; in qfq_choose_next_agg()
1211 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_choose_next_agg()
1290 u64 roundedS; in qfq_schedule_agg() local
1293 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_schedule_agg()
1309 qfq_slot_rotate(grp, roundedS); in qfq_schedule_agg()
1313 } else if (!q->bitmaps[ER] && qfq_gt(roundedS, q->V) && in qfq_schedule_agg()
1315 q->V = roundedS; in qfq_schedule_agg()
1317 grp->S = roundedS; in qfq_schedule_agg()
1318 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_schedule_agg()
1329 qfq_slot_insert(grp, agg, roundedS); in qfq_schedule_agg()
1352 u64 roundedS; in qfq_slot_remove() local
1354 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_slot_remove()
1355 offset = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_remove()
1375 u64 roundedS; in qfq_deactivate_agg() local
1405 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_deactivate_agg()
1406 if (grp->S != roundedS) { in qfq_deactivate_agg()
1411 grp->S = roundedS; in qfq_deactivate_agg()
1412 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_deactivate_agg()