Lines Matching refs:enc
94 static int test_cipher_jiffies(struct blkcipher_desc *desc, int enc, in test_cipher_jiffies() argument
103 if (enc) in test_cipher_jiffies()
117 static int test_cipher_cycles(struct blkcipher_desc *desc, int enc, in test_cipher_cycles() argument
128 if (enc) in test_cipher_cycles()
142 if (enc) in test_cipher_cycles()
178 static int test_aead_jiffies(struct aead_request *req, int enc, in test_aead_jiffies() argument
187 if (enc) in test_aead_jiffies()
201 static int test_aead_cycles(struct aead_request *req, int enc, int blen) in test_aead_cycles() argument
211 if (enc) in test_aead_cycles()
225 if (enc) in test_aead_cycles()
301 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() argument
332 if (enc == ENCRYPT) in test_aead_speed()
413 *b_size + (enc ? authsize : 0)); in test_aead_speed()
416 *b_size + (enc ? authsize : 0)); in test_aead_speed()
425 ret = test_aead_jiffies(req, enc, *b_size, in test_aead_speed()
428 ret = test_aead_cycles(req, enc, *b_size); in test_aead_speed()
457 static void test_cipher_speed(const char *algo, int enc, unsigned int secs, in test_cipher_speed() argument
469 if (enc == ENCRYPT) in test_cipher_speed()
537 ret = test_cipher_jiffies(&desc, enc, sg, in test_cipher_speed()
540 ret = test_cipher_cycles(&desc, enc, sg, in test_cipher_speed()
1037 static int test_acipher_jiffies(struct ablkcipher_request *req, int enc, in test_acipher_jiffies() argument
1046 if (enc) in test_acipher_jiffies()
1062 static int test_acipher_cycles(struct ablkcipher_request *req, int enc, in test_acipher_cycles() argument
1071 if (enc) in test_acipher_cycles()
1087 if (enc) in test_acipher_cycles()
1109 static void test_acipher_speed(const char *algo, int enc, unsigned int secs, in test_acipher_speed() argument
1122 if (enc == ENCRYPT) in test_acipher_speed()
1214 ret = test_acipher_jiffies(req, enc, in test_acipher_speed()
1217 ret = test_acipher_cycles(req, enc, in test_acipher_speed()