Lines Matching full:best
723 int idx, best = -1; in cpufreq_table_find_index_al() local
731 best = idx; in cpufreq_table_find_index_al()
734 return best; in cpufreq_table_find_index_al()
744 int idx, best = -1; in cpufreq_table_find_index_dl() local
753 best = idx; in cpufreq_table_find_index_dl()
758 if (best == -1) in cpufreq_table_find_index_dl()
761 return best; in cpufreq_table_find_index_dl()
764 return best; in cpufreq_table_find_index_dl()
786 int idx, best = -1; in cpufreq_table_find_index_ah() local
795 best = idx; in cpufreq_table_find_index_ah()
800 if (best == -1) in cpufreq_table_find_index_ah()
803 return best; in cpufreq_table_find_index_ah()
806 return best; in cpufreq_table_find_index_ah()
816 int idx, best = -1; in cpufreq_table_find_index_dh() local
824 best = idx; in cpufreq_table_find_index_dh()
827 return best; in cpufreq_table_find_index_dh()
849 int idx, best = -1; in cpufreq_table_find_index_ac() local
858 best = idx; in cpufreq_table_find_index_ac()
863 if (best == -1) in cpufreq_table_find_index_ac()
867 if (target_freq - table[best].frequency > freq - target_freq) in cpufreq_table_find_index_ac()
870 return best; in cpufreq_table_find_index_ac()
873 return best; in cpufreq_table_find_index_ac()
883 int idx, best = -1; in cpufreq_table_find_index_dc() local
892 best = idx; in cpufreq_table_find_index_dc()
897 if (best == -1) in cpufreq_table_find_index_dc()
901 if (table[best].frequency - target_freq > target_freq - freq) in cpufreq_table_find_index_dc()
904 return best; in cpufreq_table_find_index_dc()
907 return best; in cpufreq_table_find_index_dc()