Lines Matching +full:max +full:- +full:functions
7 * Dispatch optimized RAID-5 checksumming functions.
41 active_template->do_2(bytes, dest, p1); in xor_blocks()
47 active_template->do_3(bytes, dest, p1, p2); in xor_blocks()
53 active_template->do_4(bytes, dest, p1, p2, p3); in xor_blocks()
58 active_template->do_5(bytes, dest, p1, p2, p3, p4); in xor_blocks()
72 int i, count, max; in do_xor_speed() local
74 tmpl->next = template_list; in do_xor_speed()
81 * this to calculate the speed of checksumming. We use a 2-page in do_xor_speed()
82 * allocation to have guaranteed color L1-cache layout. in do_xor_speed()
84 max = 0; in do_xor_speed()
92 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed()
97 if (count > max) in do_xor_speed()
98 max = count; in do_xor_speed()
103 speed = max * (HZ * BENCH_SIZE / 1024); in do_xor_speed()
104 tmpl->speed = speed; in do_xor_speed()
106 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name, in do_xor_speed()
120 "checksumming function %-10s\n", in calibrate_xor_blocks()
121 fastest->name); in calibrate_xor_blocks()
128 return -ENOMEM; in calibrate_xor_blocks()
133 * If this arch/cpu has a short-circuited selection, don't loop through in calibrate_xor_blocks()
134 * all the possible functions, just test the best one in calibrate_xor_blocks()
142 for (f = fastest; f; f = f->next) in calibrate_xor_blocks()
143 if (f->speed > fastest->speed) in calibrate_xor_blocks()
147 fastest->name, fastest->speed / 1000, fastest->speed % 1000); in calibrate_xor_blocks()
161 /* when built-in xor.o must initialize before drivers/md/md.o */