Lines Matching refs:sysfsfp
149 FILE *sysfsfp; in read_sysfs_int() local
151 sysfsfp = fopen(filename, "r"); in read_sysfs_int()
152 if (sysfsfp != NULL) { in read_sysfs_int()
153 if (fscanf(sysfsfp, "%d\n", var) < 0 || fclose(sysfsfp) < 0) { in read_sysfs_int()
164 FILE *sysfsfp; in read_sysfs_int64() local
166 sysfsfp = fopen(filename, "r"); in read_sysfs_int64()
167 if (sysfsfp != NULL) { in read_sysfs_int64()
168 if (fscanf(sysfsfp, "%lld\n", var) < 0 || fclose(sysfsfp) < 0) { in read_sysfs_int64()
192 FILE *sysfsfp; in write_sysfs_int() local
194 sysfsfp = fopen(filename, "w"); in write_sysfs_int()
195 if (sysfsfp != NULL) { in write_sysfs_int()
196 if (fprintf(sysfsfp, "%d\n", var) < 0 || fclose(sysfsfp) < 0) { in write_sysfs_int()
207 FILE *sysfsfp; in write_sysfs_longlong() local
209 sysfsfp = fopen(filename, "w"); in write_sysfs_longlong()
210 if (sysfsfp != NULL) { in write_sysfs_longlong()
211 if (fprintf(sysfsfp, "%lld\n", var) < 0 || fclose(sysfsfp) < 0) { in write_sysfs_longlong()