Searched refs:cpu_def (Results 1 – 2 of 2) sorted by relevance
155 struct cpu_volt_def *cpu_def; member187 for (i = 0; i < sc->cpu_def->speedo_nitems; i++) { in freq_to_voltage()188 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { in freq_to_voltage()189 ent = &sc->cpu_def->speedo_tbl[i]; in freq_to_voltage()194 ent = &sc->cpu_def->speedo_tbl[sc->cpu_def->speedo_nitems - 1]; in freq_to_voltage()195 scale = sc->cpu_def->speedo_scale; in freq_to_voltage()202 step_uvolt = sc->cpu_def->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()426 sc->cpu_def = &tegra210_cpu_volt_def; in tegra210_cpufreq_attach()
198 struct cpu_volt_def *cpu_def; member230 for (i = 0; i < sc->cpu_def->speedo_nitems; i++) { in freq_to_voltage()231 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { in freq_to_voltage()232 ent = &sc->cpu_def->speedo_tbl[i]; in freq_to_voltage()237 ent = &sc->cpu_def->speedo_tbl[sc->cpu_def->speedo_nitems - 1]; in freq_to_voltage()238 scale = sc->cpu_def->speedo_scale; in freq_to_voltage()244 step_uvolt = sc->cpu_def->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()511 sc->cpu_def = &tegra124_cpu_volt_pllx_def; in tegra124_cpufreq_attach()[all …]