Lines Matching refs:num_mb

70 static u32 num_mb = 8;  variable
161 u32 num_mb, int *rc) in do_mult_aead_op() argument
166 for (i = 0; i < num_mb; i++) { in do_mult_aead_op()
174 for (i = 0; i < num_mb; i++) { in do_mult_aead_op()
187 int blen, int secs, u32 num_mb) in test_mb_aead_jiffies() argument
194 rc = kcalloc(num_mb, sizeof(*rc), GFP_KERNEL); in test_mb_aead_jiffies()
200 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_jiffies()
206 bcount * num_mb, secs, (long)bcount * blen * num_mb); in test_mb_aead_jiffies()
214 int blen, u32 num_mb) in test_mb_aead_cycles() argument
221 rc = kcalloc(num_mb, sizeof(*rc), GFP_KERNEL); in test_mb_aead_cycles()
227 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_cycles()
237 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_cycles()
247 (cycles + 4) / (8 * num_mb), blen); in test_mb_aead_cycles()
257 unsigned int aad_size, u8 *keysize, u32 num_mb) in test_mb_aead_speed() argument
284 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL); in test_mb_aead_speed()
297 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
304 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
311 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
318 for (i = 0; i < num_mb; ++i) { in test_mb_aead_speed()
329 for (i = 0; i < num_mb; ++i) { in test_mb_aead_speed()
379 for (j = 0; j < num_mb; ++j) { in test_mb_aead_speed()
420 secs, num_mb); in test_mb_aead_speed()
424 num_mb); in test_mb_aead_speed()
438 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
441 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
444 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
447 for (i = 0; i < num_mb; ++i) in test_mb_aead_speed()
725 static inline int do_mult_ahash_op(struct test_mb_ahash_data *data, u32 num_mb, in do_mult_ahash_op() argument
731 for (i = 0; i < num_mb; i++) in do_mult_ahash_op()
735 for (i = 0; i < num_mb; i++) { in do_mult_ahash_op()
748 int secs, u32 num_mb) in test_mb_ahash_jiffies() argument
755 rc = kcalloc(num_mb, sizeof(*rc), GFP_KERNEL); in test_mb_ahash_jiffies()
761 ret = do_mult_ahash_op(data, num_mb, rc); in test_mb_ahash_jiffies()
767 bcount * num_mb, secs, (long)bcount * blen * num_mb); in test_mb_ahash_jiffies()
775 u32 num_mb) in test_mb_ahash_cycles() argument
782 rc = kcalloc(num_mb, sizeof(*rc), GFP_KERNEL); in test_mb_ahash_cycles()
788 ret = do_mult_ahash_op(data, num_mb, rc); in test_mb_ahash_cycles()
798 ret = do_mult_ahash_op(data, num_mb, rc); in test_mb_ahash_cycles()
808 (cycles + 4) / (8 * num_mb), blen); in test_mb_ahash_cycles()
816 struct hash_speed *speed, u32 num_mb) in test_mb_ahash_speed() argument
823 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL); in test_mb_ahash_speed()
834 for (i = 0; i < num_mb; ++i) { in test_mb_ahash_speed()
874 for (k = 0; k < num_mb; k++) in test_mb_ahash_speed()
885 num_mb); in test_mb_ahash_speed()
888 ret = test_mb_ahash_cycles(data, speed[i].blen, num_mb); in test_mb_ahash_speed()
899 for (k = 0; k < num_mb; ++k) in test_mb_ahash_speed()
902 for (k = 0; k < num_mb; ++k) in test_mb_ahash_speed()
1156 u32 num_mb, int *rc) in do_mult_acipher_op() argument
1161 for (i = 0; i < num_mb; i++) { in do_mult_acipher_op()
1169 for (i = 0; i < num_mb; i++) { in do_mult_acipher_op()
1182 int blen, int secs, u32 num_mb) in test_mb_acipher_jiffies() argument
1189 rc = kcalloc(num_mb, sizeof(*rc), GFP_KERNEL); in test_mb_acipher_jiffies()
1195 ret = do_mult_acipher_op(data, enc, num_mb, rc); in test_mb_acipher_jiffies()
1201 bcount * num_mb, secs, (long)bcount * blen * num_mb); in test_mb_acipher_jiffies()
1209 int blen, u32 num_mb) in test_mb_acipher_cycles() argument
1216 rc = kcalloc(num_mb, sizeof(*rc), GFP_KERNEL); in test_mb_acipher_cycles()
1222 ret = do_mult_acipher_op(data, enc, num_mb, rc); in test_mb_acipher_cycles()
1232 ret = do_mult_acipher_op(data, enc, num_mb, rc); in test_mb_acipher_cycles()
1242 (cycles + 4) / (8 * num_mb), blen); in test_mb_acipher_cycles()
1251 unsigned int tcount, u8 *keysize, u32 num_mb) in test_mb_skcipher_speed() argument
1267 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL); in test_mb_skcipher_speed()
1278 for (i = 0; i < num_mb; ++i) in test_mb_skcipher_speed()
1286 for (i = 0; i < num_mb; ++i) in test_mb_skcipher_speed()
1294 for (i = 0; i < num_mb; ++i) { in test_mb_skcipher_speed()
1305 for (i = 0; i < num_mb; ++i) { in test_mb_skcipher_speed()
1354 for (j = 0; j < num_mb; ++j) { in test_mb_skcipher_speed()
1381 num_mb); in test_mb_skcipher_speed()
1385 *b_size, num_mb); in test_mb_skcipher_speed()
1400 for (i = 0; i < num_mb; ++i) in test_mb_skcipher_speed()
1403 for (i = 0; i < num_mb; ++i) in test_mb_skcipher_speed()
1661 static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) in do_test() argument
1676 ret += do_test(NULL, 0, 0, i, num_mb); in do_test()
2260 0, 16, 16, aead_speed_template_20, num_mb); in do_test()
2262 speed_template_16_24_32, num_mb); in do_test()
2264 0, 16, 16, aead_speed_template_20, num_mb); in do_test()
2266 speed_template_16_24_32, num_mb); in do_test()
2271 16, 16, aead_speed_template_19, num_mb); in do_test()
2273 16, 16, aead_speed_template_19, num_mb); in do_test()
2279 num_mb); in do_test()
2282 num_mb); in do_test()
2490 num_mb); in do_test()
2495 num_mb); in do_test()
2500 num_mb); in do_test()
2505 num_mb); in do_test()
2725 speed_template_16_24_32, num_mb); in do_test()
2727 speed_template_16_24_32, num_mb); in do_test()
2729 speed_template_16_24_32, num_mb); in do_test()
2731 speed_template_16_24_32, num_mb); in do_test()
2733 speed_template_32_40_48, num_mb); in do_test()
2735 speed_template_32_40_48, num_mb); in do_test()
2737 speed_template_32_64, num_mb); in do_test()
2739 speed_template_32_64, num_mb); in do_test()
2741 speed_template_16_24_32, num_mb); in do_test()
2743 speed_template_16_24_32, num_mb); in do_test()
2745 speed_template_16_24_32, num_mb); in do_test()
2747 speed_template_16_24_32, num_mb); in do_test()
2749 speed_template_16_24_32, num_mb); in do_test()
2751 speed_template_16_24_32, num_mb); in do_test()
2753 speed_template_16_24_32, num_mb); in do_test()
2755 speed_template_16_24_32, num_mb); in do_test()
2757 0, speed_template_20_28_36, num_mb); in do_test()
2759 0, speed_template_20_28_36, num_mb); in do_test()
2765 speed_template_24, num_mb); in do_test()
2768 speed_template_24, num_mb); in do_test()
2771 speed_template_24, num_mb); in do_test()
2774 speed_template_24, num_mb); in do_test()
2777 speed_template_24, num_mb); in do_test()
2780 speed_template_24, num_mb); in do_test()
2783 speed_template_24, num_mb); in do_test()
2786 speed_template_24, num_mb); in do_test()
2791 speed_template_8, num_mb); in do_test()
2793 speed_template_8, num_mb); in do_test()
2795 speed_template_8, num_mb); in do_test()
2797 speed_template_8, num_mb); in do_test()
2799 speed_template_8, num_mb); in do_test()
2801 speed_template_8, num_mb); in do_test()
2803 speed_template_8, num_mb); in do_test()
2805 speed_template_8, num_mb); in do_test()
2810 speed_template_16_32, num_mb); in do_test()
2812 speed_template_16_32, num_mb); in do_test()
2814 speed_template_16_32, num_mb); in do_test()
2816 speed_template_16_32, num_mb); in do_test()
2818 speed_template_16_32, num_mb); in do_test()
2820 speed_template_16_32, num_mb); in do_test()
2822 speed_template_32_48, num_mb); in do_test()
2824 speed_template_32_48, num_mb); in do_test()
2826 speed_template_32_64, num_mb); in do_test()
2828 speed_template_32_64, num_mb); in do_test()
2833 speed_template_16_24_32, num_mb); in do_test()
2835 speed_template_16_24_32, num_mb); in do_test()
2837 speed_template_16_24_32, num_mb); in do_test()
2839 speed_template_16_24_32, num_mb); in do_test()
2841 speed_template_16_24_32, num_mb); in do_test()
2843 speed_template_16_24_32, num_mb); in do_test()
2845 speed_template_32_40_48, num_mb); in do_test()
2847 speed_template_32_40_48, num_mb); in do_test()
2849 speed_template_32_48_64, num_mb); in do_test()
2851 speed_template_32_48_64, num_mb); in do_test()
2856 speed_template_8, num_mb); in do_test()
2861 speed_template_8_16, num_mb); in do_test()
2863 speed_template_8_16, num_mb); in do_test()
2865 speed_template_8_16, num_mb); in do_test()
2867 speed_template_8_16, num_mb); in do_test()
2869 speed_template_8_16, num_mb); in do_test()
2871 speed_template_8_16, num_mb); in do_test()
2876 speed_template_16_32, num_mb); in do_test()
2878 speed_template_16_32, num_mb); in do_test()
2880 speed_template_16_32, num_mb); in do_test()
2882 speed_template_16_32, num_mb); in do_test()
2884 speed_template_16_32, num_mb); in do_test()
2886 speed_template_16_32, num_mb); in do_test()
2888 speed_template_32_48, num_mb); in do_test()
2890 speed_template_32_48, num_mb); in do_test()
2892 speed_template_32_64, num_mb); in do_test()
2894 speed_template_32_64, num_mb); in do_test()
2899 speed_template_16_32, num_mb); in do_test()
2901 speed_template_16_32, num_mb); in do_test()
2903 speed_template_16_32, num_mb); in do_test()
2905 speed_template_16_32, num_mb); in do_test()
2907 speed_template_16_32, num_mb); in do_test()
2909 speed_template_16_32, num_mb); in do_test()
2911 speed_template_32_48, num_mb); in do_test()
2913 speed_template_32_48, num_mb); in do_test()
2915 speed_template_32_64, num_mb); in do_test()
2917 speed_template_32_64, num_mb); in do_test()
2922 speed_template_8_32, num_mb); in do_test()
2924 speed_template_8_32, num_mb); in do_test()
2926 speed_template_8_32, num_mb); in do_test()
2928 speed_template_8_32, num_mb); in do_test()
2930 speed_template_8_32, num_mb); in do_test()
2932 speed_template_8_32, num_mb); in do_test()
2954 err = do_test(alg, type, mask, mode, num_mb); in tcrypt_mod_init()
2996 module_param(num_mb, uint, 0000);
2997 MODULE_PARM_DESC(num_mb, "Number of concurrent requests to be used in mb speed tests (defaults to 8…