Home
last modified time | relevance | path

Searched refs:regul (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/drivers/
H A Dstpmic1.c595 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_levels_mv() local
597 assert(regul); in stpmic1_regulator_levels_mv()
600 *levels_count = regul->voltage_table_size; in stpmic1_regulator_levels_mv()
603 if (regul->voltage_table == ldo3_voltage_table) in stpmic1_regulator_levels_mv()
608 *levels = regul->voltage_table; in stpmic1_regulator_levels_mv()
613 const struct regul_struct *regul = get_regulator_data(name); in voltage_to_index() local
616 assert(regul->voltage_table); in voltage_to_index()
617 for (i = 0; i < regul->voltage_table_size; i++) in voltage_to_index()
618 if (regul->voltage_table[i] == millivolts) in voltage_to_index()
638 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_enable() local
[all …]
H A Dstm32_cpu_opp.c51 struct regulator *regul; member
86 return regulator_set_voltage(cpu_opp.regul, cpu_opp.dvfs[opp].volt_uv); in set_opp_voltage()
95 static bool opp_voltage_is_supported(struct regulator *regul, uint32_t *volt_uv) in opp_voltage_is_supported() argument
108 res = regulator_supported_voltages(regul, &desc, &levels); in opp_voltage_is_supported()
110 regulator_get_range(regul, &min_uv, &max_uv); in opp_voltage_is_supported()
374 if (!opp_voltage_is_supported(cpu_opp.regul, &volt_uv)) { in stm32_cpu_opp_get_dt_subnode()
459 res = regulator_dt_get_supply(fdt, node, "cpu", &cpu_opp.regul); in stm32_cpu_init()
/optee_os/core/include/drivers/
H A Dregulator.h196 static inline TEE_Result regulator_set_voltage(struct regulator *regul __unused, in regulator_set_voltage()