Lines Matching refs:rate
146 int get_rate(unsigned *rate, const char *str)
156 *rate = bps / 8.; /* assume bytes/sec */
162 *rate = (bps * s->scale) / 8.;
170 int get_rate_and_cell(unsigned *rate, int *cell_log, char *str)
177 if (get_rate(rate, str))
199 void print_rate(char *buf, int len, __u32 rate)
201 double tmp = (double)rate*8;
221 char * sprint_rate(__u32 rate, char *buf)
223 print_rate(buf, SPRINT_BSIZE-1, rate);
560 fprintf(fp, "rate ");