Lines Matching refs:max_state
598 return sprintf(buf, "%ld\n", cdev->max_state); in max_state_show()
629 if (state > cdev->max_state) in cur_state_store()
644 static DEVICE_ATTR_RO(max_state);
700 stats->trans_table[stats->state * (cdev->max_state + 1) + new_state]++; in thermal_cooling_device_stats_update()
750 for (i = 0; i <= cdev->max_state; i++) { in time_in_state_ms_show()
776 states = cdev->max_state + 1; in reset_store()
814 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show()
826 for (i = 0; i <= cdev->max_state; i++) { in trans_table_show()
832 for (j = 0; j <= cdev->max_state; j++) { in trans_table_show()
836 stats->trans_table[i * (cdev->max_state + 1) + j]); in trans_table_show()
877 unsigned long states = cdev->max_state + 1; in cooling_device_stats_setup()