Lines Matching +full:no +full:- +full:idle +full:- +full:on +full:- +full:init

1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * arm_cpuidle_simple_enter() - a wrapper to cpu_do_idle()
38 * arm_cpuidle_suspend() - function to enter low power idle states
42 * registered at the init time.
54 * arm_cpuidle_get_ops() - find a registered cpuidle_ops by name
66 for (; m->method; m++) in arm_cpuidle_get_ops()
67 if (!strcmp(m->method, method)) in arm_cpuidle_get_ops()
68 return m->ops; in arm_cpuidle_get_ops()
74 * arm_cpuidle_read_ops() - Initialize the cpuidle ops with the device tree
78 * Get the method name defined in the 'enable-method' property, retrieve the
80 * cpuidle_ops are tagged __initconst and will be unloaded after the init
83 * Return 0 on sucess, -ENOENT if no 'enable-method' is defined, -EOPNOTSUPP if
84 * no cpuidle_ops is registered for the 'enable-method', or if either init or
92 enable_method = of_get_property(dn, "enable-method", NULL); in arm_cpuidle_read_ops()
94 return -ENOENT; in arm_cpuidle_read_ops()
98 pr_warn("%pOF: unsupported enable-method property: %s\n", in arm_cpuidle_read_ops()
100 return -EOPNOTSUPP; in arm_cpuidle_read_ops()
103 if (!ops->init || !ops->suspend) { in arm_cpuidle_read_ops()
104 pr_warn("cpuidle_ops '%s': no init or suspend callback\n", in arm_cpuidle_read_ops()
106 return -EOPNOTSUPP; in arm_cpuidle_read_ops()
111 pr_notice("cpuidle: enable-method property '%s'" in arm_cpuidle_read_ops()
118 * arm_cpuidle_init() - Initialize cpuidle_ops for a specific cpu
122 * the cpu's idle initialization callback. This may fail if the underlying HW
126 * 0 on success,
127 * -ENODEV if it fails to find the cpu node in the device tree,
128 * -EOPNOTSUPP if it does not find a registered and valid cpuidle_ops for
130 * -ENOENT if it fails to find an 'enable-method' property,
131 * -ENXIO if the HW reports a failure or a misconfiguration,
132 * -ENOMEM if the HW report an memory allocation failure
140 return -ENODEV; in arm_cpuidle_init()
144 ret = cpuidle_ops[cpu].init(cpu_node, cpu); in arm_cpuidle_init()