Lines Matching refs:m2
56 #define is_sc_null(sc) (((sc) == NULL) || ((sc)->m1 == 0 && (sc)->m2 == 0))
789 warnx("m2 is zero for %s", pa->qname);
817 sc.m2 = opts->rtsc_m2;
822 sc.m2 = pa->ifbandwidth / 100 * 80;
825 "bandwidth (%s)", rate2str((double)sc.m2));
835 sc.m2 = opts->lssc_m2;
840 sc.m2 = parent->pa.pq_u.hfsc_opts.lssc_m2;
917 sc.m2 = opts->lssc_m2;
922 sc.m2 = parent->pa.pq_u.fairq_opts.lssc_m2;
1077 gsc_add_seg(gsc, (double)sc->d, 0.0, INFINITY, (double)sc->m2);
1116 if (last->m > sc->m2)
1223 + (x - (double)sc->d) * (double)sc->m2;
1341 eval_bwspec(&opts->data.hfsc_opts.linkshare.m2,
1351 eval_bwspec(&opts->data.hfsc_opts.realtime.m2,
1361 eval_bwspec(&opts->data.hfsc_opts.upperlimit.m2,
1378 eval_bwspec(&opts->data.fairq_opts.linkshare.m2,
1422 print_hfsc_sc(const char *scname, u_int m1, u_int d, u_int m2,
1436 if (sc != NULL && sc->m2.bw_percent > 0)
1437 printf(" %u%%", sc->m2.bw_percent);
1439 printf(" %s", rate2str((double)m2));
1446 print_fairq_sc(const char *scname, u_int m1, u_int d, u_int m2,
1460 if (sc != NULL && sc->m2.bw_percent > 0)
1461 printf(" %u%%", sc->m2.bw_percent);
1463 printf(" %s", rate2str((double)m2));