Lines Matching refs:namelist
281 struct dirent **namelist; in scan_tzones() local
298 n = scandir(tz_name, &namelist, 0, alphasort); in scan_tzones()
311 if (find_tzone_tp(tz_name, namelist[n]->d_name, in scan_tzones()
314 temp_str = strstr(namelist[n]->d_name, "cdev"); in scan_tzones()
316 free(namelist[n]); in scan_tzones()
319 if (!find_tzone_cdev(namelist[n], tz_name, in scan_tzones()
322 free(namelist[n]); in scan_tzones()
324 free(namelist); in scan_tzones()
339 struct dirent **namelist; in scan_cdevs() local
360 n = scandir(cdev_name, &namelist, 0, alphasort); in scan_cdevs()
371 free(namelist[n]); in scan_cdevs()
372 free(namelist); in scan_cdevs()
384 struct dirent **namelist; in probe_thermal_sysfs() local
392 n = scandir(THERMAL_SYSFS, &namelist, 0, alphasort); in probe_thermal_sysfs()
400 if (strstr(namelist[n]->d_name, CDEV)) { in probe_thermal_sysfs()
401 inst = get_instance_id(namelist[n]->d_name, 1, in probe_thermal_sysfs()
410 namelist[n]->d_name, in probe_thermal_sysfs()
414 } else if (strstr(namelist[n]->d_name, TZONE)) { in probe_thermal_sysfs()
415 inst = get_instance_id(namelist[n]->d_name, 1, in probe_thermal_sysfs()
421 namelist[n]->d_name, in probe_thermal_sysfs()
426 free(namelist[n]); in probe_thermal_sysfs()
428 free(namelist); in probe_thermal_sysfs()