Home | History | Annotate | Download | only in tc

Lines Matching defs:dmax

54 		"SC := [ [ umax BYTE ] dmax SEC ] rate BPS\n"
57 " dmax : maximum delay\n"
340 unsigned int umax = 0, dmax = 0, rate = 0;
351 if (matches(*argv, "dmax") == 0) {
353 if (get_time(&dmax, *argv) < 0) {
354 explain1("dmax");
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,
377 * intersection is at dmax
379 sc->m1 = ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax); /* in bps */
380 sc->d = tc_core_time2ktime(dmax);
385 * is at dmax - umax / rate
388 sc->d = tc_core_time2ktime(ceil(dmax - umax * TIME_UNITS_PER_SEC / rate));