Lines Matching full:best
130 const struct raid6_recov_calls *best; in raid6_choose_recov() local
132 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
133 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
135 best = *algo; in raid6_choose_recov()
137 if (best) { in raid6_choose_recov()
138 raid6_2data_recov = best->data2; in raid6_choose_recov()
139 raid6_datap_recov = best->datap; in raid6_choose_recov()
141 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
145 return best; in raid6_choose_recov()
154 const struct raid6_calls *best; in raid6_choose_gen() local
156 for (bestgenperf = 0, bestxorperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen()
157 if (!best || (*algo)->prefer >= best->prefer) { in raid6_choose_gen()
162 best = *algo; in raid6_choose_gen()
181 best = *algo; in raid6_choose_gen()
203 if (best == *algo) in raid6_choose_gen()
211 if (best) { in raid6_choose_gen()
213 best->name, in raid6_choose_gen()
215 if (best->xor_syndrome) in raid6_choose_gen()
218 raid6_call = *best; in raid6_choose_gen()
222 return best; in raid6_choose_gen()
226 /* Try to pick the best algorithm */