Lines Matching refs:tzi
138 ptdata.tzi[tzid].tp[tpid].type = trip_type; in get_trip_point_data()
166 static int find_tzone_tp(char *tz_name, char *d_name, struct tz_info *tzi, in find_tzone_tp() argument
179 tzi->nr_trip_pts++; in find_tzone_tp()
190 tzi->tp[tp_id].temp = temp_ulong; in find_tzone_tp()
199 struct tz_info *tzi, int tz_id, int cid) in find_tzone_cdev() argument
210 tzi->nr_cdev++; in find_tzone_cdev()
211 if (tzi->nr_cdev > ptdata.nr_cooling_dev) { in find_tzone_cdev()
213 tzi->nr_cdev); in find_tzone_cdev()
226 tzi->cdev_binding |= (1 << cdev_id); in find_tzone_cdev()
240 tzi->trip_binding[cdev_id] |= 1 << trip_instance; in find_tzone_cdev()
243 tzi->trip_binding[cdev_id], in find_tzone_cdev()
304 sysfs_get_string(tz_name, "type", ptdata.tzi[k].type); in scan_tzones()
305 ptdata.tzi[k].instance = i; in scan_tzones()
308 ptdata.tzi[k].nr_cdev = 0; in scan_tzones()
309 ptdata.tzi[k].nr_trip_pts = 0; in scan_tzones()
314 &ptdata.tzi[k], k)) in scan_tzones()
322 &ptdata.tzi[k], i, j)) in scan_tzones()
331 ptdata.tzi[k].nr_cdev); in scan_tzones()
442 ptdata.tzi = calloc(ptdata.max_tz_instance+1, sizeof(struct tz_info)); in probe_thermal_sysfs()
443 if (!ptdata.tzi) { in probe_thermal_sysfs()
453 free(ptdata.tzi); in probe_thermal_sysfs()
473 if (ptdata.tzi[i].instance == zone_inst) in zone_instance_to_index()
502 ptdata.tzi[i].instance); in update_thermal_data()
589 free(ptdata.tzi); in free_thermal_data()