Lines Matching refs:namelist
290 struct dirent **namelist; in scan_tzones() local
307 n = scandir(tz_name, &namelist, 0, alphasort); in scan_tzones()
320 if (find_tzone_tp(tz_name, namelist[n]->d_name, in scan_tzones()
323 temp_str = strstr(namelist[n]->d_name, "cdev"); in scan_tzones()
325 free(namelist[n]); in scan_tzones()
328 if (!find_tzone_cdev(namelist[n], tz_name, in scan_tzones()
331 free(namelist[n]); in scan_tzones()
333 free(namelist); in scan_tzones()
348 struct dirent **namelist; in scan_cdevs() local
369 n = scandir(cdev_name, &namelist, 0, alphasort); in scan_cdevs()
380 free(namelist[n]); in scan_cdevs()
381 free(namelist); in scan_cdevs()
393 struct dirent **namelist; in probe_thermal_sysfs() local
401 n = scandir(THERMAL_SYSFS, &namelist, 0, alphasort); in probe_thermal_sysfs()
409 if (strstr(namelist[n]->d_name, CDEV)) { in probe_thermal_sysfs()
410 inst = get_instance_id(namelist[n]->d_name, 1, in probe_thermal_sysfs()
419 namelist[n]->d_name, in probe_thermal_sysfs()
423 } else if (strstr(namelist[n]->d_name, TZONE)) { in probe_thermal_sysfs()
424 inst = get_instance_id(namelist[n]->d_name, 1, in probe_thermal_sysfs()
430 namelist[n]->d_name, in probe_thermal_sysfs()
435 free(namelist[n]); in probe_thermal_sysfs()
437 free(namelist); in probe_thermal_sysfs()