Lines Matching refs:tmp_freq
227 int tmp_freq; in gx_validate_speed() local
235 tmp_freq = (stock_freq * tmp_off) / i; in gx_validate_speed()
238 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { in gx_validate_speed()
241 old_tmp_freq = tmp_freq; in gx_validate_speed()
337 unsigned int tmp_freq = 0; in cpufreq_gx_verify() local
353 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2); in cpufreq_gx_verify()
354 if (tmp_freq < policy->min) in cpufreq_gx_verify()
355 tmp_freq += stock_freq / max_duration; in cpufreq_gx_verify()
356 policy->min = tmp_freq; in cpufreq_gx_verify()
358 policy->max = tmp_freq; in cpufreq_gx_verify()
359 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2); in cpufreq_gx_verify()
360 if (tmp_freq > policy->max) in cpufreq_gx_verify()
361 tmp_freq -= stock_freq / max_duration; in cpufreq_gx_verify()
362 policy->max = tmp_freq; in cpufreq_gx_verify()
380 unsigned int tmp_freq; in cpufreq_gx_target() local
387 tmp_freq = gx_validate_speed(target_freq, &tmp1, &tmp2); in cpufreq_gx_target()
388 while (tmp_freq < policy->min) { in cpufreq_gx_target()
389 tmp_freq += stock_freq / max_duration; in cpufreq_gx_target()
390 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2); in cpufreq_gx_target()
392 while (tmp_freq > policy->max) { in cpufreq_gx_target()
393 tmp_freq -= stock_freq / max_duration; in cpufreq_gx_target()
394 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2); in cpufreq_gx_target()
397 gx_set_cpuspeed(policy, tmp_freq); in cpufreq_gx_target()