Lines Matching refs:str
42 int get_qdisc_handle(__u32 *h, const char *str)
48 if (strcmp(str, "none") == 0)
50 maj = strtoul(str, &p, 16);
51 if (p == str)
61 int get_tc_classid(__u32 *h, const char *str)
67 if (strcmp(str, "root") == 0)
70 if (strcmp(str, "none") == 0)
72 maj = strtoul(str, &p, 16);
73 if (p == str) {
82 str = p+1;
83 min = strtoul(str, &p, 16);
146 int get_rate(unsigned *rate, const char *str)
149 double bps = strtod(str, &p);
152 if (p == str)
170 int get_rate_and_cell(unsigned *rate, int *cell_log, char *str)
172 char * slash = strchr(str, '/');
177 if (get_rate(rate, str))
227 int get_time(unsigned *time, const char *str)
232 t = strtod(str, &p);
233 if (p == str)
278 int get_size(unsigned *size, const char *str)
283 sz = strtod(str, &p);
284 if (p == str)
308 int get_size_and_cell(unsigned *size, int *cell_log, char *str)
310 char * slash = strchr(str, '/');
315 if (get_size(size, str))
357 int get_percent(__u32 *percent, const char *str)
360 double per = strtod(str, &p) / 100.;