Lines Matching refs:idle_mode
53 static struct cpm_idle_mode idle_mode[] = { variable
115 if (idle_mode[mode].enabled) in cpm_idle_config()
118 for (i = 0; i < ARRAY_SIZE(idle_mode); i++) in cpm_idle_config()
119 idle_mode[i].enabled = 0; in cpm_idle_config()
121 idle_mode[mode].enabled = 1; in cpm_idle_config()
130 for (i = 0; i < ARRAY_SIZE(idle_mode); i++) { in cpm_idle_show()
131 if (idle_mode[i].enabled) in cpm_idle_show()
132 s += sprintf(s, "[%s] ", idle_mode[i].name); in cpm_idle_show()
134 s += sprintf(s, "%s ", idle_mode[i].name); in cpm_idle_show()
153 for (i = 0; i < ARRAY_SIZE(idle_mode); i++) { in cpm_idle_store()
154 if (strncmp(buf, idle_mode[i].name, len) == 0) { in cpm_idle_store()
182 if (idle_mode[CPM_IDLE_DOZE].enabled) in cpm_idle()