Lines Matching refs:tzi
146 ptdata.tzi[tzid].tp[tpid].type = trip_type; in get_trip_point_data()
174 static int find_tzone_tp(char *tz_name, char *d_name, struct tz_info *tzi, in find_tzone_tp() argument
187 tzi->nr_trip_pts++; in find_tzone_tp()
198 tzi->tp[tp_id].temp = temp_ulong; in find_tzone_tp()
207 struct tz_info *tzi, int tz_id, int cid) in find_tzone_cdev() argument
218 tzi->nr_cdev++; in find_tzone_cdev()
219 if (tzi->nr_cdev > ptdata.nr_cooling_dev) { in find_tzone_cdev()
221 tzi->nr_cdev); in find_tzone_cdev()
233 tzi->cdev_binding |= (1 << cdev_id); in find_tzone_cdev()
247 tzi->trip_binding[cdev_id] |= 1 << trip_instance; in find_tzone_cdev()
250 tzi->trip_binding[cdev_id], in find_tzone_cdev()
311 sysfs_get_string(tz_name, "type", ptdata.tzi[k].type); in scan_tzones()
312 ptdata.tzi[k].instance = i; in scan_tzones()
315 ptdata.tzi[k].nr_cdev = 0; in scan_tzones()
316 ptdata.tzi[k].nr_trip_pts = 0; in scan_tzones()
321 &ptdata.tzi[k], k)) in scan_tzones()
329 &ptdata.tzi[k], i, j)) in scan_tzones()
338 ptdata.tzi[k].nr_cdev); in scan_tzones()
449 ptdata.tzi = calloc(ptdata.max_tz_instance+1, sizeof(struct tz_info)); in probe_thermal_sysfs()
450 if (!ptdata.tzi) { in probe_thermal_sysfs()
460 free(ptdata.tzi); in probe_thermal_sysfs()
480 if (ptdata.tzi[i].instance == zone_inst) in zone_instance_to_index()
508 ptdata.tzi[i].instance); in update_thermal_data()
594 free(ptdata.tzi); in free_thermal_data()