Lines Matching refs:retval
208 int retval, pkg_no, core_no, thread_no; in for_all_cpus() local
226 retval = func(t, c, p); in for_all_cpus()
227 if (retval) in for_all_cpus()
228 return retval; in for_all_cpus()
247 ssize_t retval; in get_msr() local
256 retval = pread(fd, msr, sizeof *msr, offset); in get_msr()
259 if (retval != sizeof *msr) { in get_msr()
1310 int retval, pkg_no, core_no, thread_no; in for_all_cpus_2() local
1333 retval = func(t, c, p, t2, c2, p2); in for_all_cpus_2()
1334 if (retval) in for_all_cpus_2()
1335 return retval; in for_all_cpus_2()
1350 int retval; in for_all_proc_cpus() local
1354 retval = fscanf(fp, "cpu %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n"); in for_all_proc_cpus()
1355 if (retval != 0) in for_all_proc_cpus()
1359 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus()
1360 if (retval != 1) in for_all_proc_cpus()
1363 retval = func(cpu_num); in for_all_proc_cpus()
1364 if (retval) { in for_all_proc_cpus()
1366 return(retval); in for_all_proc_cpus()
1401 int retval; in turbostat_loop() local
1407 retval = for_all_cpus(get_counters, EVEN_COUNTERS); in turbostat_loop()
1408 if (retval < -1) { in turbostat_loop()
1409 exit(retval); in turbostat_loop()
1410 } else if (retval == -1) { in turbostat_loop()
1412 exit(retval); in turbostat_loop()
1426 retval = for_all_cpus(get_counters, ODD_COUNTERS); in turbostat_loop()
1427 if (retval < -1) { in turbostat_loop()
1428 exit(retval); in turbostat_loop()
1429 } else if (retval == -1) { in turbostat_loop()
1440 retval = for_all_cpus(get_counters, EVEN_COUNTERS); in turbostat_loop()
1441 if (retval < -1) { in turbostat_loop()
1442 exit(retval); in turbostat_loop()
1443 } else if (retval == -1) { in turbostat_loop()