Lines Matching full:best
127 const struct raid6_recov_calls *best; in raid6_choose_recov() local
129 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
130 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
132 best = *algo; in raid6_choose_recov()
134 if (best) { in raid6_choose_recov()
135 raid6_2data_recov = best->data2; in raid6_choose_recov()
136 raid6_datap_recov = best->datap; in raid6_choose_recov()
138 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
142 return best; in raid6_choose_recov()
151 const struct raid6_calls *best; in raid6_choose_gen() local
153 for (bestgenperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen()
154 if (!best || (*algo)->priority >= best->priority) { in raid6_choose_gen()
159 best = *algo; in raid6_choose_gen()
178 best = *algo; in raid6_choose_gen()
186 if (!best) { in raid6_choose_gen()
191 raid6_call = *best; in raid6_choose_gen()
195 best->name); in raid6_choose_gen()
200 best->name, in raid6_choose_gen()
204 if (best->xor_syndrome) { in raid6_choose_gen()
213 best->xor_syndrome(disks, start, stop, in raid6_choose_gen()
225 return best; in raid6_choose_gen()
229 /* Try to pick the best algorithm */