Lines Matching refs:max_state
598 return sprintf(buf, "%ld\n", cdev->max_state);
628 /* Requested state should be less than max_state + 1 */
629 if (state > cdev->max_state)
644 static DEVICE_ATTR_RO(max_state);
700 stats->trans_table[stats->state * (cdev->max_state + 1) + new_state]++;
750 for (i = 0; i <= cdev->max_state; i++) {
776 states = cdev->max_state + 1;
814 for (i = 0; i <= cdev->max_state; i++) {
826 for (i = 0; i <= cdev->max_state; i++) {
832 for (j = 0; j <= cdev->max_state; j++) {
836 stats->trans_table[i * (cdev->max_state + 1) + j]);
877 unsigned long states = cdev->max_state + 1;