Lines Matching refs:best
143 const struct raid6_recov_calls *best;
145 for (best = NULL, algo = raid6_recov_algos; *algo; algo++)
146 if (!best || (*algo)->priority > best->priority)
148 best = *algo;
150 if (best) {
151 raid6_2data_recov = best->data2;
152 raid6_datap_recov = best->datap;
154 pr_info("raid6: using %s recovery algorithm\n", best->name);
158 return best;
167 const struct raid6_calls *best;
169 for (bestgenperf = 0, bestxorperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) {
170 if (!best || (*algo)->prefer >= best->prefer) {
175 best = *algo;
194 best = *algo;
217 if (best == *algo)
226 if (best) {
229 best->name,
232 if (best->xor_syndrome)
238 best->name);
239 raid6_call = *best;
243 return best;
247 /* Try to pick the best algorithm */