Searched refs:cpu_def (Results 1 – 2 of 2) sorted by relevance
158 struct cpu_volt_def *cpu_def; member190 for (i = 0; i < sc->cpu_def->speedo_nitems; i++) { in freq_to_voltage()191 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { in freq_to_voltage()192 ent = &sc->cpu_def->speedo_tbl[i]; in freq_to_voltage()197 ent = &sc->cpu_def->speedo_tbl[sc->cpu_def->speedo_nitems - 1]; in freq_to_voltage()198 scale = sc->cpu_def->speedo_scale; in freq_to_voltage()205 step_uvolt = sc->cpu_def->step_uvolt; in freq_to_voltage()210 min_uvolt = ROUND_UP(sc->cpu_def->min_uvolt, step_uvolt); in freq_to_voltage()211 max_uvolt = ROUND_DOWN(sc->cpu_def->max_uvolt, step_uvolt); in freq_to_voltage()430 sc->cpu_def = &tegra210_cpu_volt_def; in tegra210_cpufreq_attach()
201 struct cpu_volt_def *cpu_def; member233 for (i = 0; i < sc->cpu_def->speedo_nitems; i++) { in freq_to_voltage()234 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { in freq_to_voltage()235 ent = &sc->cpu_def->speedo_tbl[i]; in freq_to_voltage()240 ent = &sc->cpu_def->speedo_tbl[sc->cpu_def->speedo_nitems - 1]; in freq_to_voltage()241 scale = sc->cpu_def->speedo_scale; in freq_to_voltage()247 step_uvolt = sc->cpu_def->step_uvolt; in freq_to_voltage()252 min_uvolt = ROUND_UP(sc->cpu_def->min_uvolt, step_uvolt); in freq_to_voltage()253 max_uvolt = ROUND_DOWN(sc->cpu_def->max_uvolt, step_uvolt); in freq_to_voltage()515 sc->cpu_def = &tegra124_cpu_volt_pllx_def; in tegra124_cpufreq_attach()[all …]