Lines Matching defs:rate
141 static char *bps_to_str(unsigned long long rate);
873 u_int64_t rate;
886 rate = (u_int64_t)bps;
891 rate *= 1000;
893 rate *= 1000 * 1000;
895 rate *= 1000 * 1000 * 1000;
897 percent = rate;
907 iflpr.iflpr_output_tbr_rate = rate;
914 } else if (errno == ENOENT || rate == 0) {
917 printf("%s: requires absolute TBR rate\n", name);
919 printf("%s: TBR rate set to %u%% of effective link rate\n",
922 printf("%s: TBR rate set to %s\n", name, bps_to_str(rate));
1182 printf("\tlink rate: %s\n",
1185 printf("\tuplink rate: %s [eff] / ",
1201 printf("\tdownlink rate: %s\n",
1204 printf("\tdownlink rate: "
1211 printf("\tuplink rate: %s [tbr]\n",
1319 bps_to_str(unsigned long long rate)
1323 long double n = rate, t;
1325 if (rate >= GIGABIT_PER_SEC) {