Lines Matching refs:roundedS
869 u64 roundedS) in qfq_slot_insert() argument
871 u64 slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert()
875 u64 deltaS = roundedS - grp->S - in qfq_slot_insert()
941 static void qfq_slot_rotate(struct qfq_group *grp, u64 roundedS) in qfq_slot_rotate() argument
943 unsigned int i = (grp->S - roundedS) >> grp->slot_shift; in qfq_slot_rotate()
1171 u64 roundedS = qfq_round_down(new_front_agg->S, in qfq_choose_next_agg() local
1175 if (grp->S == roundedS) in qfq_choose_next_agg()
1177 grp->S = roundedS; in qfq_choose_next_agg()
1178 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_choose_next_agg()
1264 u64 roundedS; in qfq_schedule_agg() local
1267 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_schedule_agg()
1283 qfq_slot_rotate(grp, roundedS); in qfq_schedule_agg()
1287 } else if (!q->bitmaps[ER] && qfq_gt(roundedS, q->V) && in qfq_schedule_agg()
1289 q->V = roundedS; in qfq_schedule_agg()
1291 grp->S = roundedS; in qfq_schedule_agg()
1292 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_schedule_agg()
1303 qfq_slot_insert(grp, agg, roundedS); in qfq_schedule_agg()
1326 u64 roundedS; in qfq_slot_remove() local
1328 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_slot_remove()
1329 offset = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_remove()
1349 u64 roundedS; in qfq_deactivate_agg() local
1379 roundedS = qfq_round_down(agg->S, grp->slot_shift); in qfq_deactivate_agg()
1380 if (grp->S != roundedS) { in qfq_deactivate_agg()
1385 grp->S = roundedS; in qfq_deactivate_agg()
1386 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_deactivate_agg()