Lines Matching defs:cpuidle_ops
15 static struct cpuidle_ops cpuidle_ops[NR_CPUS] __ro_after_init;
49 return cpuidle_ops[cpu].suspend(index);
53 * arm_cpuidle_get_ops() - find a registered cpuidle_ops by name
59 * Returns a struct cpuidle_ops pointer, NULL if not found.
61 static const struct cpuidle_ops *__init arm_cpuidle_get_ops(const char *method)
78 * associated cpuidle_ops and do a struct copy. This copy is needed because all
79 * cpuidle_ops are tagged __initconst and will be unloaded after the init
83 * no cpuidle_ops is registered for the 'enable-method', or if either init or
89 const struct cpuidle_ops *ops;
103 pr_warn("cpuidle_ops '%s': no init or suspend callback\n",
108 cpuidle_ops[cpu] = *ops; /* structure copy */
117 * arm_cpuidle_init() - Initialize cpuidle_ops for a specific cpu
127 * -EOPNOTSUPP if it does not find a registered and valid cpuidle_ops for
143 ret = cpuidle_ops[cpu].init(cpu_node, cpu);