Lines Matching refs:target_prof
622 int acpu_dvfs_target(unsigned int curr_prof, unsigned int target_prof) in acpu_dvfs_target() argument
626 if (curr_prof == target_prof) { in acpu_dvfs_target()
633 (target_prof >= ACPU_FREQ_MAX_NUM)) { in acpu_dvfs_target()
635 __func__, curr_prof, target_prof); in acpu_dvfs_target()
639 if (target_prof > acpu_dvfs_sram_buf->support_freq_num) in acpu_dvfs_target()
640 target_prof = acpu_dvfs_sram_buf->support_freq_num; in acpu_dvfs_target()
642 if (target_prof < curr_prof) in acpu_dvfs_target()
643 ret = acpu_dvfs_freq_descend(curr_prof, target_prof); in acpu_dvfs_target()
644 else if (target_prof > curr_prof) in acpu_dvfs_target()
645 ret = acpu_dvfs_freq_ascend(curr_prof, target_prof); in acpu_dvfs_target()
653 acpu_dvfs_sram_buf->start_prof = target_prof; in acpu_dvfs_target()
664 unsigned int target_prof; in acpu_dvfs_set_freq() local
672 target_prof = i; in acpu_dvfs_set_freq()
683 target_prof = i; in acpu_dvfs_set_freq()
686 if (curr_prof == target_prof) in acpu_dvfs_set_freq()
689 if (acpu_dvfs_target(curr_prof, target_prof)) { in acpu_dvfs_set_freq()