Lines Matching refs:best
125 const struct raid6_recov_calls *best; in raid6_choose_recov() local
127 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
128 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
130 best = *algo; in raid6_choose_recov()
132 if (best) { in raid6_choose_recov()
133 raid6_2data_recov = best->data2; in raid6_choose_recov()
134 raid6_datap_recov = best->datap; in raid6_choose_recov()
136 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
140 return best; in raid6_choose_recov()
149 const struct raid6_calls *best; in raid6_choose_gen() local
151 for (bestgenperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen()
152 if (!best || (*algo)->priority >= best->priority) { in raid6_choose_gen()
157 best = *algo; in raid6_choose_gen()
176 best = *algo; in raid6_choose_gen()
184 if (!best) { in raid6_choose_gen()
189 raid6_call = *best; in raid6_choose_gen()
193 best->name); in raid6_choose_gen()
198 best->name, in raid6_choose_gen()
202 if (best->xor_syndrome) { in raid6_choose_gen()
211 best->xor_syndrome(disks, start, stop, in raid6_choose_gen()
223 return best; in raid6_choose_gen()