Lines Matching refs:best
113 const struct raid6_recov_calls *best; in raid6_choose_recov() local
115 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
116 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
118 best = *algo; in raid6_choose_recov()
120 if (best) { in raid6_choose_recov()
121 raid6_2data_recov = best->data2; in raid6_choose_recov()
122 raid6_datap_recov = best->datap; in raid6_choose_recov()
124 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
128 return best; in raid6_choose_recov()
137 const struct raid6_calls *best; in raid6_choose_gen() local
139 for (bestgenperf = 0, bestxorperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen()
140 if (!best || (*algo)->prefer >= best->prefer) { in raid6_choose_gen()
159 best = *algo; in raid6_choose_gen()
181 if (best == *algo) in raid6_choose_gen()
189 if (best) { in raid6_choose_gen()
191 best->name, in raid6_choose_gen()
193 if (best->xor_syndrome) in raid6_choose_gen()
196 raid6_call = *best; in raid6_choose_gen()
200 return best; in raid6_choose_gen()