Lines Matching refs:freq

42 	unsigned int freq;  in cpufreq_frequency_table_cpuinfo()  local
45 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo()
51 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
52 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo()
53 min_freq = freq; in cpufreq_frequency_table_cpuinfo()
54 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo()
55 max_freq = freq; in cpufreq_frequency_table_cpuinfo()
71 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local
80 freq = pos->frequency; in cpufreq_frequency_table_verify()
82 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify()
87 if ((next_larger > freq) && (freq > policy->max)) in cpufreq_frequency_table_verify()
88 next_larger = freq; in cpufreq_frequency_table_verify()
130 unsigned int freq, diff, i = 0; in cpufreq_table_index_unsorted() local
147 freq = pos->frequency; in cpufreq_table_index_unsorted()
149 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_table_index_unsorted()
151 if (freq == target_freq) { in cpufreq_table_index_unsorted()
157 if (freq < target_freq) { in cpufreq_table_index_unsorted()
158 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted()
159 optimal.frequency = freq; in cpufreq_table_index_unsorted()
163 if (freq <= suboptimal.frequency) { in cpufreq_table_index_unsorted()
164 suboptimal.frequency = freq; in cpufreq_table_index_unsorted()
170 if (freq > target_freq) { in cpufreq_table_index_unsorted()
171 if (freq <= optimal.frequency) { in cpufreq_table_index_unsorted()
172 optimal.frequency = freq; in cpufreq_table_index_unsorted()
176 if (freq >= suboptimal.frequency) { in cpufreq_table_index_unsorted()
177 suboptimal.frequency = freq; in cpufreq_table_index_unsorted()
183 diff = abs(freq - target_freq); in cpufreq_table_index_unsorted()
186 freq > table[optimal.driver_data].frequency)) { in cpufreq_table_index_unsorted()
210 unsigned int freq) in cpufreq_frequency_table_get_index() argument
221 if (pos->frequency == freq) in cpufreq_frequency_table_get_index()