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()
67 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local
76 freq = pos->frequency; in cpufreq_frequency_table_verify()
78 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify()
83 if ((next_larger > freq) && (freq > policy->max)) in cpufreq_frequency_table_verify()
84 next_larger = freq; in cpufreq_frequency_table_verify()
126 unsigned int freq, diff, i = 0; in cpufreq_table_index_unsorted() local
143 freq = pos->frequency; in cpufreq_table_index_unsorted()
145 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_table_index_unsorted()
147 if (freq == target_freq) { in cpufreq_table_index_unsorted()
153 if (freq < target_freq) { in cpufreq_table_index_unsorted()
154 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted()
155 optimal.frequency = freq; in cpufreq_table_index_unsorted()
159 if (freq <= suboptimal.frequency) { in cpufreq_table_index_unsorted()
160 suboptimal.frequency = freq; in cpufreq_table_index_unsorted()
166 if (freq > target_freq) { in cpufreq_table_index_unsorted()
167 if (freq <= optimal.frequency) { in cpufreq_table_index_unsorted()
168 optimal.frequency = freq; in cpufreq_table_index_unsorted()
172 if (freq >= suboptimal.frequency) { in cpufreq_table_index_unsorted()
173 suboptimal.frequency = freq; in cpufreq_table_index_unsorted()
179 diff = abs(freq - target_freq); in cpufreq_table_index_unsorted()
182 freq > table[optimal.driver_data].frequency)) { in cpufreq_table_index_unsorted()
206 unsigned int freq) in cpufreq_frequency_table_get_index() argument
217 if (pos->frequency == freq) in cpufreq_frequency_table_get_index()