Lines Matching refs:ptdata
111 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()
224 for (i = 0; i < ptdata.nr_tz_sensor; i++) { in show_cooling_device()
225 int tz_inst = ptdata.tzi[i].instance; in show_cooling_device()
226 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device()
236 if (ptdata.tzi[i].cdev_binding) { in show_cooling_device()
237 cdev_inst = ptdata.cdi[j].instance; in show_cooling_device()
239 ptdata.tzi[i].trip_binding[cdev_inst]; in show_cooling_device()
248 ptdata.tzi[i].cdev_binding); in show_cooling_device()
257 x + ptdata.tzi[i].nr_trip_pts - in show_cooling_device()
294 for (j = 0; j <= ptdata.nr_cooling_dev; j++) { in show_dialogue()
298 if (j == ptdata.nr_cooling_dev) in show_dialogue()
303 ptdata.cdi[j].type, ptdata.cdi[j].instance); in show_dialogue()
418 if (ch == ptdata.nr_cooling_dev) { in handle_input_val()
430 CDEV, ptdata.cdi[ch].instance); in handle_input_val()
448 if ((ch >= 'A' && ch <= 'A' + ptdata.nr_cooling_dev) || in handle_input_choice()
449 (ch >= 'a' && ch <= 'a' + ptdata.nr_cooling_dev)) { in handle_input_choice()
452 if (ptdata.nr_cooling_dev == cdev_id) in handle_input_choice()
456 ptdata.cdi[cdev_id].type, in handle_input_choice()
457 ptdata.cdi[cdev_id].instance); in handle_input_choice()
554 for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { in draw_tp_line()
555 x = ptdata.tzi[tz].tp[j].temp / 1000; in draw_tp_line()
557 "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), in draw_tp_line()
560 tz, j, ptdata.tzi[tz].tp[j].temp); in draw_tp_line()
582 for (i = 0; i < ptdata.nr_tz_sensor; i++) { in show_data_w()
589 ptdata.tzi[i].type, in show_data_w()
590 ptdata.tzi[i].instance, temp); in show_data_w()
623 for (i = 0; i < ptdata.nr_tz_sensor; i++) { in show_sensors_w()
624 int inst = ptdata.tzi[i].instance; in show_sensors_w()
628 ptdata.tzi[i].type, ptdata.tzi[i].instance); in show_sensors_w()
629 for (j = ptdata.tzi[i].nr_trip_pts - 1; j >= 0; j--) { in show_sensors_w()
636 tp_pos = ptdata.tzi[i].nr_trip_pts - j - 1; in show_sensors_w()
638 type = trip_type_to_char(ptdata.tzi[i].tp[j].type); in show_sensors_w()