Lines Matching refs:dir
64 DIR *dir = opendir(directory); in isValidDir() local
65 if (dir == NULL) in isValidDir()
68 closedir(dir); in isValidDir()
80 DIR *dir = opendir(directory); in getFilesInDir() local
81 if (dir == NULL) in getFilesInDir()
85 while ((entry = readdir(dir)) != NULL) in getFilesInDir()
87 closedir(dir); in getFilesInDir()
157 DIR *dir = opendir("/sys/class/power_supply/"); in dumpTcpmPsyUevent() local
160 if (dir == NULL) in dumpTcpmPsyUevent()
163 while ((entry = readdir(dir)) != NULL) { in dumpTcpmPsyUevent()
172 closedir(dir); in dumpTcpmPsyUevent()
379 DIR *dir = opendir(config[1]); in dumpBatteryDefend() local
380 if (dir == NULL) in dumpBatteryDefend()
384 while ((entry = readdir(dir)) != NULL) { in dumpBatteryDefend()
390 closedir(dir); in dumpBatteryDefend()
415 DIR *dir = opendir(debugfs.c_str()); in printValuesOfDirectory() local
416 if (dir == NULL) in printValuesOfDirectory()
420 while ((entry = readdir(dir)) != NULL) in printValuesOfDirectory()
423 closedir(dir); in printValuesOfDirectory()
560 DIR *dir = opendir(stat[1]); in dumpChargerStats() local
561 if (dir == NULL) in dumpChargerStats()
565 while ((entry = readdir(dir)) != NULL) in dumpChargerStats()
568 closedir(dir); in dumpChargerStats()