Lines Matching refs:tz_name
166 static int find_tzone_tp(char *tz_name, char *d_name, struct tz_info *tzi, in find_tzone_tp() argument
177 sysfs_get_ulong(tz_name, d_name, &temp_ulong); in find_tzone_tp()
183 tz_name, tp_id, temp_ulong, d_name); in find_tzone_tp()
189 get_trip_point_data(tz_name, tz_id, tp_id); in find_tzone_tp()
198 static int find_tzone_cdev(struct dirent *nl, char *tz_name, in find_tzone_cdev() argument
218 tz_name, nl->d_name); in find_tzone_cdev()
233 sysfs_get_ulong(tz_name, cdev_trip_name, in find_tzone_cdev()
284 char tz_name[256]; in scan_tzones() local
291 memset(tz_name, 0, sizeof(tz_name)); in scan_tzones()
292 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, i); in scan_tzones()
294 dir = opendir(tz_name); in scan_tzones()
296 syslog(LOG_INFO, "Thermal zone %s skipped\n", tz_name); in scan_tzones()
300 n = scandir(tz_name, &namelist, 0, alphasort); in scan_tzones()
302 syslog(LOG_ERR, "scandir failed in %s", tz_name); in scan_tzones()
304 sysfs_get_string(tz_name, "type", ptdata.tzi[k].type); in scan_tzones()
313 if (find_tzone_tp(tz_name, namelist[n]->d_name, in scan_tzones()
321 if (!find_tzone_cdev(namelist[n], tz_name, in scan_tzones()
483 char tz_name[256]; in update_thermal_data() local
500 memset(tz_name, 0, sizeof(tz_name)); in update_thermal_data()
501 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, in update_thermal_data()
503 sysfs_get_ulong(tz_name, "temp", in update_thermal_data()