Lines Matching refs:best
794 int idx, best = -1; in cpufreq_table_find_index_al() local
802 best = idx; in cpufreq_table_find_index_al()
805 return best; in cpufreq_table_find_index_al()
816 int idx, best = -1; in cpufreq_table_find_index_dl() local
825 best = idx; in cpufreq_table_find_index_dl()
830 if (best == -1) in cpufreq_table_find_index_dl()
833 return best; in cpufreq_table_find_index_dl()
836 return best; in cpufreq_table_find_index_dl()
862 int idx, best = -1; in cpufreq_table_find_index_ah() local
871 best = idx; in cpufreq_table_find_index_ah()
876 if (best == -1) in cpufreq_table_find_index_ah()
879 return best; in cpufreq_table_find_index_ah()
882 return best; in cpufreq_table_find_index_ah()
893 int idx, best = -1; in cpufreq_table_find_index_dh() local
901 best = idx; in cpufreq_table_find_index_dh()
904 return best; in cpufreq_table_find_index_dh()
930 int idx, best = -1; in cpufreq_table_find_index_ac() local
939 best = idx; in cpufreq_table_find_index_ac()
944 if (best == -1) in cpufreq_table_find_index_ac()
948 if (target_freq - table[best].frequency > freq - target_freq) in cpufreq_table_find_index_ac()
951 return best; in cpufreq_table_find_index_ac()
954 return best; in cpufreq_table_find_index_ac()
965 int idx, best = -1; in cpufreq_table_find_index_dc() local
974 best = idx; in cpufreq_table_find_index_dc()
979 if (best == -1) in cpufreq_table_find_index_dc()
983 if (table[best].frequency - target_freq > target_freq - freq) in cpufreq_table_find_index_dc()
986 return best; in cpufreq_table_find_index_dc()
989 return best; in cpufreq_table_find_index_dc()