Lines Matching refs:cpu_reg

34 	struct regulator *cpu_reg;  member
52 struct regulator *cpu_reg = priv->cpu_reg; in set_target() local
66 if (!IS_ERR(cpu_reg)) { in set_target()
81 volt_old = regulator_get_voltage(cpu_reg); in set_target()
91 if (!IS_ERR(cpu_reg) && new_freq > old_freq) { in set_target()
92 ret = regulator_set_voltage_tol(cpu_reg, volt, tol); in set_target()
103 if (!IS_ERR(cpu_reg) && volt_old > 0) in set_target()
104 regulator_set_voltage_tol(cpu_reg, volt_old, tol); in set_target()
109 if (!IS_ERR(cpu_reg) && new_freq < old_freq) { in set_target()
110 ret = regulator_set_voltage_tol(cpu_reg, volt, tol); in set_target()
125 struct regulator *cpu_reg; in allocate_resources() local
143 cpu_reg = regulator_get_optional(cpu_dev, reg); in allocate_resources()
144 if (IS_ERR(cpu_reg)) { in allocate_resources()
149 if (PTR_ERR(cpu_reg) == -EPROBE_DEFER) { in allocate_resources()
162 cpu, PTR_ERR(cpu_reg)); in allocate_resources()
168 if (!IS_ERR(cpu_reg)) in allocate_resources()
169 regulator_put(cpu_reg); in allocate_resources()
184 *creg = cpu_reg; in allocate_resources()
197 struct regulator *cpu_reg; in cpufreq_init() local
205 ret = allocate_resources(policy->cpu, &cpu_dev, &cpu_reg, &cpu_clk); in cpufreq_init()
285 if (!IS_ERR(cpu_reg)) { in cpufreq_init()
307 if (regulator_is_supported_voltage(cpu_reg, in cpufreq_init()
321 ret = regulator_set_voltage_time(cpu_reg, min_uV, max_uV); in cpufreq_init()
333 priv->cpu_reg = cpu_reg; in cpufreq_init()
376 if (!IS_ERR(cpu_reg)) in cpufreq_init()
377 regulator_put(cpu_reg); in cpufreq_init()
390 if (!IS_ERR(priv->cpu_reg)) in cpufreq_exit()
391 regulator_put(priv->cpu_reg); in cpufreq_exit()
440 struct regulator *cpu_reg; in dt_cpufreq_probe() local
451 ret = allocate_resources(0, &cpu_dev, &cpu_reg, &cpu_clk); in dt_cpufreq_probe()
456 if (!IS_ERR(cpu_reg)) in dt_cpufreq_probe()
457 regulator_put(cpu_reg); in dt_cpufreq_probe()