Lines Matching +full:enable +full:- +full:method

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
54 * arm_cpuidle_get_ops() - find a registered cpuidle_ops by name
55 * @method: the method name
58 * method name.
62 static const struct cpuidle_ops *__init arm_cpuidle_get_ops(const char *method) in arm_cpuidle_get_ops() argument
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
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()
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
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()