Lines Matching refs:best
137 const struct raid6_recov_calls *best; in raid6_choose_recov() local
139 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
140 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
142 best = *algo; in raid6_choose_recov()
144 if (best) { in raid6_choose_recov()
145 raid6_2data_recov = best->data2; in raid6_choose_recov()
146 raid6_datap_recov = best->datap; in raid6_choose_recov()
148 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
152 return best; in raid6_choose_recov()
161 const struct raid6_calls *best; in raid6_choose_gen() local
163 for (bestgenperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen()
164 if (!best || (*algo)->priority >= best->priority) { in raid6_choose_gen()
169 best = *algo; in raid6_choose_gen()
188 best = *algo; in raid6_choose_gen()
196 if (!best) { in raid6_choose_gen()
201 raid6_call = *best; in raid6_choose_gen()
205 best->name); in raid6_choose_gen()
210 best->name, in raid6_choose_gen()
214 if (best->xor_syndrome) { in raid6_choose_gen()
223 best->xor_syndrome(disks, start, stop, in raid6_choose_gen()
235 return best; in raid6_choose_gen()