Lines Matching defs:data
134 struct crypto_wait *wait = req->base.data;
149 static int do_mult_aead_op(struct test_mb_aead_data *data, int enc,
157 rc[i] = crypto_aead_encrypt(data[i].req);
159 rc[i] = crypto_aead_decrypt(data[i].req);
164 rc[i] = crypto_wait_req(rc[i], &data[i].wait);
175 static int test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc,
189 ret = do_mult_aead_op(data, enc, num_mb, rc);
202 static int test_mb_aead_cycles(struct test_mb_aead_data *data, int enc,
216 ret = do_mult_aead_op(data, enc, num_mb, rc);
226 ret = do_mult_aead_op(data, enc, num_mb, rc);
248 struct test_mb_aead_data *data;
260 pr_err("associate data length (%u) too big\n", aad_size);
273 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL);
274 if (!data)
292 if (testmgr_alloc_buf(data[i].xbuf)) {
294 testmgr_free_buf(data[i].xbuf);
299 if (testmgr_alloc_buf(data[i].axbuf)) {
301 testmgr_free_buf(data[i].axbuf);
306 if (testmgr_alloc_buf(data[i].xoutbuf)) {
308 testmgr_free_buf(data[i].xoutbuf);
313 data[i].req = aead_request_alloc(tfm, GFP_KERNEL);
314 if (!data[i].req) {
318 aead_request_free(data[i].req);
324 crypto_init_wait(&data[i].wait);
325 aead_request_set_callback(data[i].req,
327 crypto_req_done, &data[i].wait);
376 struct test_mb_aead_data *cur = &data[j];
415 ret = test_mb_aead_jiffies(data, enc, bs,
419 ret = test_mb_aead_cycles(data, enc, bs,
435 aead_request_free(data[i].req);
438 testmgr_free_buf(data[i].xoutbuf);
441 testmgr_free_buf(data[i].axbuf);
444 testmgr_free_buf(data[i].xbuf);
448 kfree(data);
545 pr_err("associate data length (%u) too big\n", aad_size);
714 struct crypto_wait *wait = req->base.data;
966 static int do_mult_acipher_op(struct test_mb_skcipher_data *data, int enc,
974 rc[i] = crypto_skcipher_encrypt(data[i].req);
976 rc[i] = crypto_skcipher_decrypt(data[i].req);
981 rc[i] = crypto_wait_req(rc[i], &data[i].wait);
992 static int test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc,
1006 ret = do_mult_acipher_op(data, enc, num_mb, rc);
1019 static int test_mb_acipher_cycles(struct test_mb_skcipher_data *data, int enc,
1033 ret = do_mult_acipher_op(data, enc, num_mb, rc);
1043 ret = do_mult_acipher_op(data, enc, num_mb, rc);
1064 struct test_mb_skcipher_data *data;
1078 data = kcalloc(num_mb, sizeof(*data), GFP_KERNEL);
1079 if (!data)
1090 if (testmgr_alloc_buf(data[i].xbuf)) {
1092 testmgr_free_buf(data[i].xbuf);
1097 data[i].req = skcipher_request_alloc(tfm, GFP_KERNEL);
1098 if (!data[i].req) {
1102 skcipher_request_free(data[i].req);
1108 skcipher_request_set_callback(data[i].req,
1110 crypto_req_done, &data[i].wait);
1111 crypto_init_wait(&data[i].wait);
1159 struct test_mb_skcipher_data *cur = &data[j];
1182 ret = test_mb_acipher_jiffies(data, enc,
1187 ret = test_mb_acipher_cycles(data, enc,
1204 skcipher_request_free(data[i].req);
1207 testmgr_free_buf(data[i].xbuf);
1211 kfree(data);
1216 struct crypto_wait *wait = req->base.data;