Lines Matching refs:freq
38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local
41 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo()
47 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
48 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo()
49 min_freq = freq; in cpufreq_frequency_table_cpuinfo()
50 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo()
51 max_freq = freq; in cpufreq_frequency_table_cpuinfo()
73 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local
82 freq = pos->frequency; in cpufreq_frequency_table_verify()
84 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify()
89 if ((next_larger > freq) && (freq > policy->max)) in cpufreq_frequency_table_verify()
90 next_larger = freq; in cpufreq_frequency_table_verify()
132 unsigned int freq, diff, i = 0; in cpufreq_table_index_unsorted() local
149 freq = pos->frequency; in cpufreq_table_index_unsorted()
151 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_table_index_unsorted()
153 if (freq == target_freq) { in cpufreq_table_index_unsorted()
159 if (freq < target_freq) { in cpufreq_table_index_unsorted()
160 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted()
161 optimal.frequency = freq; in cpufreq_table_index_unsorted()
165 if (freq <= suboptimal.frequency) { in cpufreq_table_index_unsorted()
166 suboptimal.frequency = freq; in cpufreq_table_index_unsorted()
172 if (freq > target_freq) { in cpufreq_table_index_unsorted()
173 if (freq <= optimal.frequency) { in cpufreq_table_index_unsorted()
174 optimal.frequency = freq; in cpufreq_table_index_unsorted()
178 if (freq >= suboptimal.frequency) { in cpufreq_table_index_unsorted()
179 suboptimal.frequency = freq; in cpufreq_table_index_unsorted()
185 diff = abs(freq - target_freq); in cpufreq_table_index_unsorted()
188 freq > table[optimal.driver_data].frequency)) { in cpufreq_table_index_unsorted()
212 unsigned int freq) in cpufreq_frequency_table_get_index() argument
223 if (pos->frequency == freq) in cpufreq_frequency_table_get_index()