Home | History | Annotate | Download | only in tc

Lines Matching defs:umax

54 		"SC := [ [ umax BYTE ] dmax SEC ] rate BPS\n"
56 " umax : maximum unit of work\n"
340 unsigned int umax = 0, dmax = 0, rate = 0;
342 if (matches(*argv, "umax") == 0) {
344 if (get_size(&umax, *argv) < 0) {
345 explain1("umax");
369 if (umax != 0 && dmax == 0) {
370 fprintf(stderr, "HFSC: umax given but dmax is zero.\n");
374 if (dmax != 0 && ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax) > rate) {
376 * concave curve, slope of first segment is umax/dmax,
379 sc->m1 = ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax); /* in bps */
385 * is at dmax - umax / rate
388 sc->d = tc_core_time2ktime(ceil(dmax - umax * TIME_UNITS_PER_SEC / rate));