Lines Matching refs:dvfs
52 struct cpu_dvfs *dvfs; member
76 return cpu_opp.dvfs[opp].freq_khz; in stm32_cpu_opp_level()
81 return clk_set_rate(cpu_opp.clock, cpu_opp.dvfs[opp].freq_khz * 1000); in set_opp_clk_rate()
86 return regulator_set_voltage(cpu_opp.regul, cpu_opp.dvfs[opp].volt_uv); in set_opp_voltage()
158 if (cpu_opp.dvfs[opp].volt_uv <= PWR_MPU_RAM_LOW_SPEED_THRESHOLD) in set_clock_then_voltage()
167 if (cpu_opp.dvfs[cpu_opp.current_opp].volt_uv > in set_clock_then_voltage()
191 if (cpu_opp.dvfs[opp].volt_uv > PWR_MPU_RAM_LOW_SPEED_THRESHOLD) in set_voltage_then_clock()
200 if (cpu_opp.dvfs[cpu_opp.current_opp].volt_uv <= in set_voltage_then_clock()
236 if (level == cpu_opp.dvfs[opp].freq_khz) in stm32_cpu_opp_set_level()
308 if (cpu_opp.dvfs[opp].freq_khz * 1000 >= clk_cpu) in cpu_opp_pm()
331 cpu_opp.dvfs = calloc(CFG_STM32MP_OPP_COUNT, sizeof(*cpu_opp.dvfs)); in stm32_cpu_opp_get_dt_subnode()
332 if (!cpu_opp.dvfs) in stm32_cpu_opp_get_dt_subnode()
388 cpu_opp.dvfs[i].freq_khz = freq_khz; in stm32_cpu_opp_get_dt_subnode()
389 cpu_opp.dvfs[i].volt_uv = volt_uv; in stm32_cpu_opp_get_dt_subnode()
433 free(cpu_opp.dvfs); in stm32_cpu_opp_get_dt_subnode()
434 cpu_opp.dvfs = NULL; in stm32_cpu_opp_get_dt_subnode()