Lines Matching refs:load_lvl
136 int load_lvl; in armada37xx_cpufreq_dvfs_setup() local
143 for (load_lvl = 0; load_lvl < LOAD_LEVEL_NR; load_lvl++) { in armada37xx_cpufreq_dvfs_setup()
146 if (load_lvl <= ARMADA_37XX_DVFS_LOAD_1) in armada37xx_cpufreq_dvfs_setup()
151 if (load_lvl == ARMADA_37XX_DVFS_LOAD_0 || in armada37xx_cpufreq_dvfs_setup()
152 load_lvl == ARMADA_37XX_DVFS_LOAD_2) in armada37xx_cpufreq_dvfs_setup()
169 val |= divider[load_lvl] << ARMADA_37XX_NB_TBG_DIV_OFF; in armada37xx_cpufreq_dvfs_setup()
174 val |= load_lvl << ARMADA_37XX_NB_VDD_SEL_OFF; in armada37xx_cpufreq_dvfs_setup()
410 int load_lvl, ret; in armada37xx_cpufreq_driver_init() local
489 for (load_lvl = ARMADA_37XX_DVFS_LOAD_0; load_lvl < LOAD_LEVEL_NR; in armada37xx_cpufreq_driver_init()
490 load_lvl++) { in armada37xx_cpufreq_driver_init()
491 unsigned long u_volt = avs_map[dvfs->avs[load_lvl]] * 1000; in armada37xx_cpufreq_driver_init()
492 freq = base_frequency / dvfs->divider[load_lvl]; in armada37xx_cpufreq_driver_init()
522 while (load_lvl-- > ARMADA_37XX_DVFS_LOAD_0) { in armada37xx_cpufreq_driver_init()
523 freq = base_frequency / dvfs->divider[load_lvl]; in armada37xx_cpufreq_driver_init()
539 int load_lvl; in armada37xx_cpufreq_driver_exit() local
545 for (load_lvl = ARMADA_37XX_DVFS_LOAD_0; load_lvl < LOAD_LEVEL_NR; load_lvl++) { in armada37xx_cpufreq_driver_exit()
546 freq = dvfs->cpu_freq_max / dvfs->divider[load_lvl]; in armada37xx_cpufreq_driver_exit()