Lines Matching refs:start
39 int start, end; in parse_cpu_set() local
41 start = end = (int)strtol(s, &next, 0); in parse_cpu_set()
57 if (start < 0 || start >= CPU_SETSIZE) { in parse_cpu_set()
58 ERROR(0, "bad cpu number '%d' in cpu set", start); in parse_cpu_set()
67 if (end < start) { in parse_cpu_set()
68 ERROR(0, "bad range '%d-%d' in cpu set", start, end); in parse_cpu_set()
72 for (cpu = start; cpu <= end; ++cpu) in parse_cpu_set()
87 int start, int end) in show_range() argument
91 if (start == end) in show_range()
92 n = snprintf(buf, len, "%s%d", prefix, start); in show_range()
94 n = snprintf(buf, len, "%s%d-%d", prefix, start, end); in show_range()
113 int start = -1; in show_cpu_set() local
120 if (start < 0) in show_cpu_set()
121 start = cpu; in show_cpu_set()
123 } else if (start >= 0) { in show_cpu_set()
125 if ((n = show_range(bufp, len, sep, start, end)) < 0) in show_cpu_set()
130 start = end = -1; in show_cpu_set()
134 if (start >= 0) { in show_cpu_set()
136 if ((n = show_range(bufp, len, sep, start, end)) < 0) in show_cpu_set()