Lines Matching defs:tmp_freq
235 int tmp_freq;
243 tmp_freq = (stock_freq * tmp_off) / i;
246 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) {
249 old_tmp_freq = tmp_freq;
347 unsigned int tmp_freq = 0;
363 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2);
364 if (tmp_freq < policy->min)
365 tmp_freq += stock_freq / max_duration;
366 policy->min = tmp_freq;
368 policy->max = tmp_freq;
369 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2);
370 if (tmp_freq > policy->max)
371 tmp_freq -= stock_freq / max_duration;
372 policy->max = tmp_freq;
390 unsigned int tmp_freq;
397 tmp_freq = gx_validate_speed(target_freq, &tmp1, &tmp2);
398 while (tmp_freq < policy->min) {
399 tmp_freq += stock_freq / max_duration;
400 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2);
402 while (tmp_freq > policy->max) {
403 tmp_freq -= stock_freq / max_duration;
404 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2);
407 gx_set_cpuspeed(tmp_freq);