Lines Matching refs:tmp_freq
235 int tmp_freq; in gx_validate_speed() local
243 tmp_freq = (stock_freq * tmp_off) / i; in gx_validate_speed()
246 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { in gx_validate_speed()
249 old_tmp_freq = tmp_freq; in gx_validate_speed()
348 unsigned int tmp_freq = 0; in cpufreq_gx_verify() local
364 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2); in cpufreq_gx_verify()
365 if (tmp_freq < policy->min) in cpufreq_gx_verify()
366 tmp_freq += stock_freq / max_duration; in cpufreq_gx_verify()
367 policy->min = tmp_freq; in cpufreq_gx_verify()
369 policy->max = tmp_freq; in cpufreq_gx_verify()
370 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2); in cpufreq_gx_verify()
371 if (tmp_freq > policy->max) in cpufreq_gx_verify()
372 tmp_freq -= stock_freq / max_duration; in cpufreq_gx_verify()
373 policy->max = tmp_freq; in cpufreq_gx_verify()
391 unsigned int tmp_freq; in cpufreq_gx_target() local
398 tmp_freq = gx_validate_speed(target_freq, &tmp1, &tmp2); in cpufreq_gx_target()
399 while (tmp_freq < policy->min) { in cpufreq_gx_target()
400 tmp_freq += stock_freq / max_duration; in cpufreq_gx_target()
401 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2); in cpufreq_gx_target()
403 while (tmp_freq > policy->max) { in cpufreq_gx_target()
404 tmp_freq -= stock_freq / max_duration; in cpufreq_gx_target()
405 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2); in cpufreq_gx_target()
408 gx_set_cpuspeed(tmp_freq); in cpufreq_gx_target()