ptdata 24 tools/thermal/tmon/sysfs.c struct tmon_platform_data ptdata; ptdata 137 tools/thermal/tmon/sysfs.c ptdata.tzi[tzid].tp[tpid].type = trip_type; ptdata 210 tools/thermal/tmon/sysfs.c if (tzi->nr_cdev > ptdata.nr_cooling_dev) { ptdata 285 tools/thermal/tmon/sysfs.c if (!ptdata.nr_tz_sensor) ptdata 288 tools/thermal/tmon/sysfs.c for (i = 0; i <= ptdata.max_tz_instance; i++) { ptdata 302 tools/thermal/tmon/sysfs.c sysfs_get_string(tz_name, "type", ptdata.tzi[k].type); ptdata 303 tools/thermal/tmon/sysfs.c ptdata.tzi[k].instance = i; ptdata 306 tools/thermal/tmon/sysfs.c ptdata.tzi[k].nr_cdev = 0; ptdata 307 tools/thermal/tmon/sysfs.c ptdata.tzi[k].nr_trip_pts = 0; ptdata 312 tools/thermal/tmon/sysfs.c &ptdata.tzi[k], k)) ptdata 320 tools/thermal/tmon/sysfs.c &ptdata.tzi[k], i, j)) ptdata 329 tools/thermal/tmon/sysfs.c ptdata.tzi[k].nr_cdev); ptdata 343 tools/thermal/tmon/sysfs.c if (!ptdata.nr_cooling_dev) { ptdata 347 tools/thermal/tmon/sysfs.c for (i = 0; i <= ptdata.max_cdev_instance; i++) { ptdata 364 tools/thermal/tmon/sysfs.c sysfs_get_string(cdev_name, "type", ptdata.cdi[k].type); ptdata 365 tools/thermal/tmon/sysfs.c ptdata.cdi[k].instance = i; ptdata 366 tools/thermal/tmon/sysfs.c if (strstr(ptdata.cdi[k].type, ctrl_cdev)) { ptdata 367 tools/thermal/tmon/sysfs.c ptdata.cdi[k].flag |= CDEV_FLAG_IN_CONTROL; ptdata 406 tools/thermal/tmon/sysfs.c if (inst > ptdata.max_cdev_instance) ptdata 407 tools/thermal/tmon/sysfs.c ptdata.max_cdev_instance = inst; ptdata 411 tools/thermal/tmon/sysfs.c ptdata.nr_cooling_dev, ptdata 412 tools/thermal/tmon/sysfs.c ptdata.max_cdev_instance); ptdata 413 tools/thermal/tmon/sysfs.c ptdata.nr_cooling_dev++; ptdata 417 tools/thermal/tmon/sysfs.c if (inst > ptdata.max_tz_instance) ptdata 418 tools/thermal/tmon/sysfs.c ptdata.max_tz_instance = inst; ptdata 422 tools/thermal/tmon/sysfs.c ptdata.nr_tz_sensor, ptdata 423 tools/thermal/tmon/sysfs.c ptdata.max_tz_instance); ptdata 424 tools/thermal/tmon/sysfs.c ptdata.nr_tz_sensor++; ptdata 431 tools/thermal/tmon/sysfs.c ptdata.nr_tz_sensor, ptdata.nr_cooling_dev, ptdata 435 tools/thermal/tmon/sysfs.c if (!ptdata.nr_tz_sensor) { ptdata 440 tools/thermal/tmon/sysfs.c ptdata.tzi = calloc(ptdata.max_tz_instance+1, sizeof(struct tz_info)); ptdata 441 tools/thermal/tmon/sysfs.c if (!ptdata.tzi) { ptdata 447 tools/thermal/tmon/sysfs.c if (ptdata.nr_cooling_dev) { ptdata 448 tools/thermal/tmon/sysfs.c ptdata.cdi = calloc(ptdata.max_cdev_instance + 1, ptdata 450 tools/thermal/tmon/sysfs.c if (!ptdata.cdi) { ptdata 451 tools/thermal/tmon/sysfs.c free(ptdata.tzi); ptdata 470 tools/thermal/tmon/sysfs.c for (i = 0; i < ptdata.nr_tz_sensor; i++) ptdata 471 tools/thermal/tmon/sysfs.c if (ptdata.tzi[i].instance == zone_inst) ptdata 484 tools/thermal/tmon/sysfs.c if (!ptdata.nr_tz_sensor) { ptdata 497 tools/thermal/tmon/sysfs.c for (i = 0; i < ptdata.nr_tz_sensor; i++) { ptdata 500 tools/thermal/tmon/sysfs.c ptdata.tzi[i].instance); ptdata 508 tools/thermal/tmon/sysfs.c for (i = 0; i < ptdata.nr_cooling_dev; i++) { ptdata 513 tools/thermal/tmon/sysfs.c ptdata.cdi[i].instance); ptdata 514 tools/thermal/tmon/sysfs.c probe_cdev(&ptdata.cdi[i], cdev_name); ptdata 515 tools/thermal/tmon/sysfs.c val = ptdata.cdi[i].cur_state; ptdata 539 tools/thermal/tmon/sysfs.c for (i = 0; i < ptdata.nr_cooling_dev; i++) { ptdata 540 tools/thermal/tmon/sysfs.c if (ptdata.cdi[i].flag & CDEV_FLAG_IN_CONTROL) { ptdata 541 tools/thermal/tmon/sysfs.c if (ptdata.cdi[i].max_state < 10) { ptdata 546 tools/thermal/tmon/sysfs.c cdev_state = state * ptdata.cdi[i].max_state/100; ptdata 549 tools/thermal/tmon/sysfs.c ptdata.cdi[i].instance, state, cdev_state); ptdata 551 tools/thermal/tmon/sysfs.c CDEV, ptdata.cdi[i].instance); ptdata 568 tools/thermal/tmon/sysfs.c for (i = 0; i < ptdata.nr_cooling_dev; i++) { ptdata 569 tools/thermal/tmon/sysfs.c if (ptdata.cdi[i].flag & CDEV_FLAG_IN_CONTROL) { ptdata 570 tools/thermal/tmon/sysfs.c ctrl_cdev_id = ptdata.cdi[i].instance; ptdata 572 tools/thermal/tmon/sysfs.c ptdata.cdi[i].instance); ptdata 587 tools/thermal/tmon/sysfs.c free(ptdata.tzi); ptdata 588 tools/thermal/tmon/sysfs.c free(ptdata.cdi); ptdata 172 tools/thermal/tmon/tmon.c for (i = 0; i < ptdata.nr_tz_sensor; i++) { ptdata 178 tools/thermal/tmon/tmon.c binding_str[j] = (ptdata.tzi[i].cdev_binding & 1<<j) ? ptdata 182 tools/thermal/tmon/tmon.c ptdata.tzi[i].type, ptdata 183 tools/thermal/tmon/tmon.c ptdata.tzi[i].instance, ptdata 185 tools/thermal/tmon/tmon.c for (j = 0; j < ptdata.tzi[i].nr_trip_pts; j++) { ptdata 187 tools/thermal/tmon/tmon.c trip_type_name[ptdata.tzi[i].tp[j].type], ptdata 188 tools/thermal/tmon/tmon.c ptdata.tzi[i].tp[j].temp); ptdata 193 tools/thermal/tmon/tmon.c for (i = 0; i < ptdata.nr_cooling_dev; i++) ptdata 195 tools/thermal/tmon/tmon.c i, ptdata.cdi[i].type); ptdata 199 tools/thermal/tmon/tmon.c for (i = 0; i < ptdata.nr_tz_sensor; i++) { ptdata 200 tools/thermal/tmon/tmon.c fprintf(tmon_log, "%s%d ", ptdata.tzi[i].type, ptdata 201 tools/thermal/tmon/tmon.c ptdata.tzi[i].instance); ptdata 203 tools/thermal/tmon/tmon.c for (i = 0; i < ptdata.nr_cooling_dev; i++) ptdata 204 tools/thermal/tmon/tmon.c fprintf(tmon_log, "%s%d ", ptdata.cdi[i].type, ptdata 205 tools/thermal/tmon/tmon.c ptdata.cdi[i].instance); ptdata 317 tools/thermal/tmon/tmon.c target_thermal_zone = ptdata.tzi[0].instance; ptdata 136 tools/thermal/tmon/tmon.h extern struct tmon_platform_data ptdata; ptdata 111 tools/thermal/tmon/tui.c int entries = ptdata.nr_cooling_dev + 1; ptdata 132 tools/thermal/tmon/tui.c cooling_device_window = subwin(stdscr, ptdata.nr_cooling_dev + 3, maxx, ptdata 134 tools/thermal/tmon/tui.c y_begin += ptdata.nr_cooling_dev + 3; /* 2 lines for border */ ptdata 143 tools/thermal/tmon/tui.c thermal_data_window = subwin(stdscr, ptdata.nr_tz_sensor * ptdata 145 tools/thermal/tmon/tui.c y_begin += ptdata.nr_tz_sensor * NR_LINES_TZDATA + 3; ptdata 211 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.nr_cooling_dev; j++) { ptdata 217 tools/thermal/tmon/tui.c ptdata.cdi[j].instance, ptdata 218 tools/thermal/tmon/tui.c ptdata.cdi[j].type, ptdata 219 tools/thermal/tmon/tui.c ptdata.cdi[j].cur_state, ptdata 220 tools/thermal/tmon/tui.c ptdata.cdi[j].max_state); ptdata 224 tools/thermal/tmon/tui.c for (i = 0; i < ptdata.nr_tz_sensor; i++) { ptdata 225 tools/thermal/tmon/tui.c int tz_inst = ptdata.tzi[i].instance; ptdata 226 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.nr_cooling_dev; j++) { ptdata 236 tools/thermal/tmon/tui.c if (ptdata.tzi[i].cdev_binding) { ptdata 237 tools/thermal/tmon/tui.c cdev_inst = ptdata.cdi[j].instance; ptdata 239 tools/thermal/tmon/tui.c ptdata.tzi[i].trip_binding[cdev_inst]; ptdata 248 tools/thermal/tmon/tui.c ptdata.tzi[i].cdev_binding); ptdata 257 tools/thermal/tmon/tui.c x + ptdata.tzi[i].nr_trip_pts - ptdata 294 tools/thermal/tmon/tui.c for (j = 0; j <= ptdata.nr_cooling_dev; j++) { ptdata 298 tools/thermal/tmon/tui.c if (j == ptdata.nr_cooling_dev) ptdata 303 tools/thermal/tmon/tui.c ptdata.cdi[j].type, ptdata.cdi[j].instance); ptdata 418 tools/thermal/tmon/tui.c if (ch == ptdata.nr_cooling_dev) { ptdata 430 tools/thermal/tmon/tui.c CDEV, ptdata.cdi[ch].instance); ptdata 448 tools/thermal/tmon/tui.c if ((ch >= 'A' && ch <= 'A' + ptdata.nr_cooling_dev) || ptdata 449 tools/thermal/tmon/tui.c (ch >= 'a' && ch <= 'a' + ptdata.nr_cooling_dev)) { ptdata 452 tools/thermal/tmon/tui.c if (ptdata.nr_cooling_dev == cdev_id) ptdata 456 tools/thermal/tmon/tui.c ptdata.cdi[cdev_id].type, ptdata 457 tools/thermal/tmon/tui.c ptdata.cdi[cdev_id].instance); ptdata 554 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { ptdata 555 tools/thermal/tmon/tui.c x = ptdata.tzi[tz].tp[j].temp / 1000; ptdata 557 tools/thermal/tmon/tui.c "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), ptdata 560 tools/thermal/tmon/tui.c tz, j, ptdata.tzi[tz].tp[j].temp); ptdata 582 tools/thermal/tmon/tui.c for (i = 0; i < ptdata.nr_tz_sensor; i++) { ptdata 589 tools/thermal/tmon/tui.c ptdata.tzi[i].type, ptdata 590 tools/thermal/tmon/tui.c ptdata.tzi[i].instance, temp); ptdata 623 tools/thermal/tmon/tui.c for (i = 0; i < ptdata.nr_tz_sensor; i++) { ptdata 624 tools/thermal/tmon/tui.c int inst = ptdata.tzi[i].instance; ptdata 628 tools/thermal/tmon/tui.c ptdata.tzi[i].type, ptdata.tzi[i].instance); ptdata 629 tools/thermal/tmon/tui.c for (j = ptdata.tzi[i].nr_trip_pts - 1; j >= 0; j--) { ptdata 636 tools/thermal/tmon/tui.c tp_pos = ptdata.tzi[i].nr_trip_pts - j - 1; ptdata 638 tools/thermal/tmon/tui.c type = trip_type_to_char(ptdata.tzi[i].tp[j].type);