Lines Matching defs:states
228 genpd->states[state_idx].idle_time =
229 ktime_add(genpd->states[state_idx].idle_time, delta);
443 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
446 genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
492 if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns)
495 genpd->states[state_idx].power_off_latency_ns = elapsed_ns;
592 genpd->states[genpd->state_idx].rejected++;
598 genpd->states[genpd->state_idx].usage++;
1050 * states should be resumed by genpd_prepare(): (1) if the device is enabled
1053 * the system from sleep states and it generally doesn't generate wakeup signals
1095 * set up to wake up the system from sleep states.
1851 static void genpd_free_default_power_state(struct genpd_power_state *states,
1854 kfree(states);
1865 genpd->states = state;
1940 /* Use only one "off" state if there were no states declared */
1949 pr_warn("%s: no governor for states\n", genpd->name);
1996 genpd->free_states(genpd->states, genpd->state_count);
2776 struct genpd_power_state *states)
2783 ret = of_count_phandle_with_args(dn, "domain-idle-states", NULL);
2788 of_for_each_phandle(&it, ret, dn, "domain-idle-states", NULL, 0) {
2796 if (states) {
2797 ret = genpd_parse_state(&states[i], np);
2812 * of_genpd_parse_idle_states: Return array of idle states for the genpd.
2815 * @states: The pointer to which the state array will be saved.
2818 * Returns the device states parsed from the OF node. The memory for the states
2820 * free the memory after use. If any or zero compatible domain idle states is
2824 struct genpd_power_state **states, int *n)
2834 *states = NULL;
2849 *states = st;
3079 ktime_add(genpd->states[i].idle_time, delta));
3081 genpd->states[i].usage, genpd->states[i].rejected);
3125 total = ktime_add(total, genpd->states[i].idle_time);