Lines Matching full:freq
53 unsigned long *freq) in get_target_freq_by_required_opp() argument
58 if (!p_dev || !p_opp_table || !opp_table || !freq) in get_target_freq_by_required_opp()
61 p_opp = devfreq_recommended_opp(p_dev, freq, 0); in get_target_freq_by_required_opp()
86 unsigned long freq = 0; in get_target_freq_with_cpufreq() local
102 /* Get target freq via required opps */ in get_target_freq_with_cpufreq()
104 freq = get_target_freq_by_required_opp(parent_cpu_data->dev, in get_target_freq_with_cpufreq()
107 if (freq) { in get_target_freq_with_cpufreq()
108 *target_freq = max(freq, *target_freq); in get_target_freq_with_cpufreq()
121 freq = dev_min + mult_frac(dev_max - dev_min, cpu_percent, 100); in get_target_freq_with_cpufreq()
123 *target_freq = max(freq, *target_freq); in get_target_freq_with_cpufreq()
131 unsigned long *freq) in get_target_freq_with_devfreq() argument
139 /* Get target freq via required opps */ in get_target_freq_with_devfreq()
142 devfreq->opp_table, freq); in get_target_freq_with_devfreq()
148 if (parent_devfreq->freq_table[i] == *freq) in get_target_freq_with_devfreq()
162 *freq = child_freq; in get_target_freq_with_devfreq()
168 unsigned long *freq) in devfreq_passive_get_target_freq() argument
183 return p_data->get_target_freq(devfreq, freq); in devfreq_passive_get_target_freq()
187 ret = get_target_freq_with_devfreq(devfreq, freq); in devfreq_passive_get_target_freq()
190 ret = get_target_freq_with_cpufreq(devfreq, freq); in devfreq_passive_get_target_freq()
345 unsigned long freq = freqs->new; in devfreq_passive_notifier_call() local
351 if (parent->previous_freq > freq) in devfreq_passive_notifier_call()
352 ret = devfreq_update_target(devfreq, freq); in devfreq_passive_notifier_call()
356 if (parent->previous_freq < freq) in devfreq_passive_notifier_call()
357 ret = devfreq_update_target(devfreq, freq); in devfreq_passive_notifier_call()