Home
last modified time | relevance | path

Searched refs:filep (Results 1 – 4 of 4) sorted by relevance

/tools/hv/
Dhv_kvp_daemon.c147 FILE *filep; in kvp_update_file() local
155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file()
156 if (!filep) { in kvp_update_file()
164 kvp_file_info[pool].num_records, filep); in kvp_update_file()
166 if (ferror(filep) || fclose(filep)) { in kvp_update_file()
177 FILE *filep; in kvp_update_mem_state() local
186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state()
187 if (!filep) { in kvp_update_mem_state()
197 filep); in kvp_update_mem_state()
199 if (ferror(filep)) { in kvp_update_mem_state()
[all …]
/tools/power/x86/intel-speed-select/
Disst-config.c167 FILE *filep = fopen(path, mode); in fopen_or_exit() local
169 if (!filep) in fopen_or_exit()
172 return filep; in fopen_or_exit()
180 FILE *filep; in parse_int_file() local
187 filep = fopen_or_exit(path, "r"); in parse_int_file()
189 filep = fopen(path, "r"); in parse_int_file()
190 if (!filep) in parse_int_file()
193 if (fscanf(filep, "%d", &value) != 1) in parse_int_file()
195 fclose(filep); in parse_int_file()
492 FILE *filep; in set_max_cpu_num() local
[all …]
/tools/power/x86/turbostat/
Dturbostat.c1367 FILE *filep; in flush_output_stdout() local
1370 filep = stdout; in flush_output_stdout()
1372 filep = outf; in flush_output_stdout()
1374 fputs(output_buffer, filep); in flush_output_stdout()
1375 fflush(filep); in flush_output_stdout()
1866 FILE *filep = fopen(path, mode); in fopen_or_die() local
1868 if (!filep) in fopen_or_die()
1870 return filep; in fopen_or_die()
2777 FILE *filep; in parse_int_file() local
2783 filep = fopen(path, "r"); in parse_int_file()
[all …]
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c633 FILE *filep = fopen(path, "r"); in fopen_or_die() local
635 if (!filep) in fopen_or_die()
637 return filep; in fopen_or_die()