Lines Matching defs:dmax
54 "SC := [ [ umax BYTE ] dmax SEC ] rate BPS\n"
57 " dmax : maximum delay\n"
336 unsigned int umax = 0, dmax = 0, rate = 0;
347 if (matches(*argv, "dmax") == 0) {
349 if (get_usecs(&dmax, *argv) < 0) {
350 explain1("dmax");
365 if (umax != 0 && dmax == 0) {
366 fprintf(stderr, "HFSC: umax given but dmax is zero.\n");
370 if (dmax != 0 && ceil(umax * 1000000.0 / dmax) > rate) {
372 * concave curve, slope of first segment is umax/dmax,
373 * intersection is at dmax
375 sc->m1 = ceil(umax * 1000000.0 / dmax); /* in bps */
376 sc->d = dmax;
381 * is at dmax - umax / rate
384 sc->d = ceil(dmax - umax * 1000000.0 / rate); /* in usec */