Home
last modified time | relevance | path

Searched refs:ptdata (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/tools/thermal/tmon/
Dsysfs.c25 struct tmon_platform_data ptdata; variable
138 ptdata.tzi[tzid].tp[tpid].type = trip_type; in get_trip_point_data()
211 if (tzi->nr_cdev > ptdata.nr_cooling_dev) { in find_tzone_cdev()
287 if (!ptdata.nr_tz_sensor) in scan_tzones()
290 for (i = 0; i <= ptdata.max_tz_instance; i++) { in scan_tzones()
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()
[all …]
Dtui.c111 int entries = ptdata.nr_cooling_dev + 1; in diag_dev_rows()
132 cooling_device_window = subwin(stdscr, ptdata.nr_cooling_dev + 3, maxx, in setup_windows()
134 y_begin += ptdata.nr_cooling_dev + 3; /* 2 lines for border */ in setup_windows()
143 thermal_data_window = subwin(stdscr, ptdata.nr_tz_sensor * in setup_windows()
145 y_begin += ptdata.nr_tz_sensor * NR_LINES_TZDATA + 3; in setup_windows()
211 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device()
217 ptdata.cdi[j].instance, in show_cooling_device()
218 ptdata.cdi[j].type, in show_cooling_device()
219 ptdata.cdi[j].cur_state, in show_cooling_device()
220 ptdata.cdi[j].max_state); in show_cooling_device()
[all …]
Dtmon.c168 for (i = 0; i < ptdata.nr_tz_sensor; i++) { in prepare_logging()
174 binding_str[j] = (ptdata.tzi[i].cdev_binding & (1 << j)) ? in prepare_logging()
178 ptdata.tzi[i].type, in prepare_logging()
179 ptdata.tzi[i].instance, in prepare_logging()
181 for (j = 0; j < ptdata.tzi[i].nr_trip_pts; j++) { in prepare_logging()
183 trip_type_name[ptdata.tzi[i].tp[j].type], in prepare_logging()
184 ptdata.tzi[i].tp[j].temp); in prepare_logging()
188 for (i = 0; i < ptdata.nr_cooling_dev; i++) in prepare_logging()
190 i, ptdata.cdi[i].type); in prepare_logging()
194 for (i = 0; i < ptdata.nr_tz_sensor; i++) { in prepare_logging()
[all …]
Dtmon.h139 extern struct tmon_platform_data ptdata;