• Home
  • Raw
  • Download

Lines Matching refs:data

142 	struct crypto_wait *wait = req->base.data;  in do_one_aead_op()
157 static int do_mult_aead_op(struct test_mb_aead_data *data, int enc, in do_mult_aead_op() argument
165 rc[i] = crypto_aead_encrypt(data[i].req); in do_mult_aead_op()
167 rc[i] = crypto_aead_decrypt(data[i].req); in do_mult_aead_op()
172 rc[i] = crypto_wait_req(rc[i], &data[i].wait); in do_mult_aead_op()
183 static int test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc, in test_mb_aead_jiffies() argument
197 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_jiffies()
210 static int test_mb_aead_cycles(struct test_mb_aead_data *data, int enc, in test_mb_aead_cycles() argument
224 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_cycles()
234 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_cycles()
256 struct test_mb_aead_data *data; in test_mb_aead_speed() local
281 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL); in test_mb_aead_speed()
282 if (!data) in test_mb_aead_speed()
300 if (testmgr_alloc_buf(data[i].xbuf)) { in test_mb_aead_speed()
302 testmgr_free_buf(data[i].xbuf); in test_mb_aead_speed()
307 if (testmgr_alloc_buf(data[i].axbuf)) { in test_mb_aead_speed()
309 testmgr_free_buf(data[i].axbuf); in test_mb_aead_speed()
314 if (testmgr_alloc_buf(data[i].xoutbuf)) { in test_mb_aead_speed()
316 testmgr_free_buf(data[i].xoutbuf); in test_mb_aead_speed()
321 data[i].req = aead_request_alloc(tfm, GFP_KERNEL); in test_mb_aead_speed()
322 if (!data[i].req) { in test_mb_aead_speed()
326 aead_request_free(data[i].req); in test_mb_aead_speed()
332 crypto_init_wait(&data[i].wait); in test_mb_aead_speed()
333 aead_request_set_callback(data[i].req, in test_mb_aead_speed()
335 crypto_req_done, &data[i].wait); in test_mb_aead_speed()
384 struct test_mb_aead_data *cur = &data[j]; in test_mb_aead_speed()
423 ret = test_mb_aead_jiffies(data, enc, bs, in test_mb_aead_speed()
427 ret = test_mb_aead_cycles(data, enc, bs, in test_mb_aead_speed()
443 aead_request_free(data[i].req); in test_mb_aead_speed()
446 testmgr_free_buf(data[i].xoutbuf); in test_mb_aead_speed()
449 testmgr_free_buf(data[i].axbuf); in test_mb_aead_speed()
452 testmgr_free_buf(data[i].xbuf); in test_mb_aead_speed()
456 kfree(data); in test_mb_aead_speed()
722 struct crypto_wait *wait = req->base.data; in do_one_ahash_op()
735 static inline int do_mult_ahash_op(struct test_mb_ahash_data *data, u32 num_mb, in do_mult_ahash_op() argument
742 rc[i] = crypto_ahash_digest(data[i].req); in do_mult_ahash_op()
746 rc[i] = crypto_wait_req(rc[i], &data[i].wait); in do_mult_ahash_op()
757 static int test_mb_ahash_jiffies(struct test_mb_ahash_data *data, int blen, in test_mb_ahash_jiffies() argument
771 ret = do_mult_ahash_op(data, num_mb, rc); in test_mb_ahash_jiffies()
784 static int test_mb_ahash_cycles(struct test_mb_ahash_data *data, int blen, in test_mb_ahash_cycles() argument
798 ret = do_mult_ahash_op(data, num_mb, rc); in test_mb_ahash_cycles()
808 ret = do_mult_ahash_op(data, num_mb, rc); in test_mb_ahash_cycles()
828 struct test_mb_ahash_data *data; in test_mb_ahash_speed() local
833 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL); in test_mb_ahash_speed()
834 if (!data) in test_mb_ahash_speed()
845 if (testmgr_alloc_buf(data[i].xbuf)) in test_mb_ahash_speed()
848 crypto_init_wait(&data[i].wait); in test_mb_ahash_speed()
850 data[i].req = ahash_request_alloc(tfm, GFP_KERNEL); in test_mb_ahash_speed()
851 if (!data[i].req) { in test_mb_ahash_speed()
857 ahash_request_set_callback(data[i].req, 0, crypto_req_done, in test_mb_ahash_speed()
858 &data[i].wait); in test_mb_ahash_speed()
860 sg_init_table(data[i].sg, XBUFSIZE); in test_mb_ahash_speed()
862 sg_set_buf(data[i].sg + j, data[i].xbuf[j], PAGE_SIZE); in test_mb_ahash_speed()
863 memset(data[i].xbuf[j], 0xff, PAGE_SIZE); in test_mb_ahash_speed()
885 ahash_request_set_crypt(data[k].req, data[k].sg, in test_mb_ahash_speed()
886 data[k].result, speed[i].blen); in test_mb_ahash_speed()
894 ret = test_mb_ahash_jiffies(data, speed[i].blen, secs, in test_mb_ahash_speed()
898 ret = test_mb_ahash_cycles(data, speed[i].blen, num_mb); in test_mb_ahash_speed()
910 ahash_request_free(data[k].req); in test_mb_ahash_speed()
913 testmgr_free_buf(data[k].xbuf); in test_mb_ahash_speed()
918 kfree(data); in test_mb_ahash_speed()
1168 static int do_mult_acipher_op(struct test_mb_skcipher_data *data, int enc, in do_mult_acipher_op() argument
1176 rc[i] = crypto_skcipher_encrypt(data[i].req); in do_mult_acipher_op()
1178 rc[i] = crypto_skcipher_decrypt(data[i].req); in do_mult_acipher_op()
1183 rc[i] = crypto_wait_req(rc[i], &data[i].wait); in do_mult_acipher_op()
1194 static int test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc, in test_mb_acipher_jiffies() argument
1208 ret = do_mult_acipher_op(data, enc, num_mb, rc); in test_mb_acipher_jiffies()
1221 static int test_mb_acipher_cycles(struct test_mb_skcipher_data *data, int enc, in test_mb_acipher_cycles() argument
1235 ret = do_mult_acipher_op(data, enc, num_mb, rc); in test_mb_acipher_cycles()
1245 ret = do_mult_acipher_op(data, enc, num_mb, rc); in test_mb_acipher_cycles()
1266 struct test_mb_skcipher_data *data; in test_mb_skcipher_speed() local
1280 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL); in test_mb_skcipher_speed()
1281 if (!data) in test_mb_skcipher_speed()
1292 if (testmgr_alloc_buf(data[i].xbuf)) { in test_mb_skcipher_speed()
1294 testmgr_free_buf(data[i].xbuf); in test_mb_skcipher_speed()
1299 data[i].req = skcipher_request_alloc(tfm, GFP_KERNEL); in test_mb_skcipher_speed()
1300 if (!data[i].req) { in test_mb_skcipher_speed()
1304 skcipher_request_free(data[i].req); in test_mb_skcipher_speed()
1310 skcipher_request_set_callback(data[i].req, in test_mb_skcipher_speed()
1312 crypto_req_done, &data[i].wait); in test_mb_skcipher_speed()
1313 crypto_init_wait(&data[i].wait); in test_mb_skcipher_speed()
1361 struct test_mb_skcipher_data *cur = &data[j]; in test_mb_skcipher_speed()
1384 ret = test_mb_acipher_jiffies(data, enc, in test_mb_skcipher_speed()
1389 ret = test_mb_acipher_cycles(data, enc, in test_mb_skcipher_speed()
1406 skcipher_request_free(data[i].req); in test_mb_skcipher_speed()
1409 testmgr_free_buf(data[i].xbuf); in test_mb_skcipher_speed()
1413 kfree(data); in test_mb_skcipher_speed()
1418 struct crypto_wait *wait = req->base.data; in do_one_acipher_op()