Lines Matching refs:cpu
49 int n, cpu, prev; in cpu_map__read() local
55 n = fscanf(file, "%u%c", &cpu, &sep); in cpu_map__read()
59 int new_max = nr_cpus + cpu - prev - 1; in cpu_map__read()
69 while (++prev < cpu) in cpu_map__read()
80 tmp_cpus[nr_cpus++] = cpu; in cpu_map__read()
82 prev = cpu; in cpu_map__read()
212 int cpu, ret; in cpu_map__get_socket() local
217 cpu = map->map[idx]; in cpu_map__get_socket()
225 mnt, cpu); in cpu_map__get_socket()
230 ret = fscanf(fp, "%d", &cpu); in cpu_map__get_socket()
232 return ret == 1 ? cpu : -1; in cpu_map__get_socket()
241 int (*f)(struct cpu_map *map, int cpu)) in cpu_map__build_map()
245 int cpu, s1, s2; in cpu_map__build_map() local
252 for (cpu = 0; cpu < nr; cpu++) { in cpu_map__build_map()
253 s1 = f(cpus, cpu); in cpu_map__build_map()
275 int cpu, ret, s; in cpu_map__get_core() local
280 cpu = map->map[idx]; in cpu_map__get_core()
288 mnt, cpu); in cpu_map__get_core()
293 ret = fscanf(fp, "%d", &cpu); in cpu_map__get_core()
308 return (s << 16) | (cpu & 0xffff); in cpu_map__get_core()