Home
last modified time | relevance | path

Searched refs:step_uvolt (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c59 int step_uvolt; /* Step of CPU voltage */ member
98 .step_uvolt = 10000, /* 10 mV */
181 int uv, scale, min_uvolt, max_uvolt, step_uvolt; in freq_to_voltage() local
202 step_uvolt = sc->cpu_def->step_uvolt; in freq_to_voltage()
204 uv = ROUND_UP(uv, step_uvolt); in freq_to_voltage()
207 min_uvolt = ROUND_UP(sc->cpu_def->min_uvolt, step_uvolt); in freq_to_voltage()
208 max_uvolt = ROUND_DOWN(sc->cpu_def->max_uvolt, step_uvolt); in freq_to_voltage()
/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c60 int step_uvolt; /* Step of CPU voltage */ member
104 .step_uvolt = 10000, /* 10 mV */
142 .step_uvolt = 10000, /* 10 mV */
224 int uv, scale, min_uvolt, max_uvolt, step_uvolt; in freq_to_voltage() local
244 step_uvolt = sc->cpu_def->step_uvolt; in freq_to_voltage()
246 uv = ROUND_UP(uv, step_uvolt); in freq_to_voltage()
249 min_uvolt = ROUND_UP(sc->cpu_def->min_uvolt, step_uvolt); in freq_to_voltage()
250 max_uvolt = ROUND_DOWN(sc->cpu_def->max_uvolt, step_uvolt); in freq_to_voltage()
/freebsd/sys/dev/regulator/
H A Dregulator.h76 int step_uvolt; member
85 .step_uvolt = _step_uvolt, \
H A Dregulator.c1269 *volt = range->min_uvolt + sel * range->step_uvolt; in regulator_range_sel8_to_volt()
1291 (range->max_sel - range->min_sel) * range->step_uvolt; in regulator_range_volt_to_sel8()
1301 if (range->step_uvolt == 0) in regulator_range_volt_to_sel8()
1305 range->step_uvolt); in regulator_range_volt_to_sel8()