Lines Matching full: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, prev_smaller = 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 ((prev_smaller < freq) && (freq <= policy->max)) in cpufreq_frequency_table_verify()
90 prev_smaller = 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()
205 pr_debug("target index is %u, freq is:%u kHz\n", index, 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()
244 * show_boost = true and driver_data = BOOST freq in show_available_freqs()
247 * show_boost = false and driver_data = BOOST freq in show_available_freqs()
248 * show_boost = true and driver_data != BOOST freq in show_available_freqs()
251 * show_boost = false and driver_data != BOOST freq in show_available_freqs()
314 pr_warn("Duplicate freq-table entries: %u\n", in set_freq_table_sorted()
323 pr_debug("Freq table is unsorted\n"); in set_freq_table_sorted()
333 pr_debug("Freq table is unsorted\n"); in set_freq_table_sorted()
348 pr_debug("Freq table is sorted in %s order\n", in set_freq_table_sorted()
359 /* Freq table must be passed by drivers with target_index() */ in cpufreq_table_validate_and_sort()