Lines Matching refs:blen
71 struct scatterlist *sg, int blen, int sec) in test_cipher_jiffies() argument
80 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_jiffies()
82 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_jiffies()
89 bcount, sec, (long)bcount * blen); in test_cipher_jiffies()
94 struct scatterlist *sg, int blen) in test_cipher_cycles() argument
106 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
108 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
120 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
122 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
137 (cycles + 4) / 8, blen); in test_cipher_cycles()
244 struct scatterlist *sg, int blen, in test_hash_jiffies_digest() argument
253 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_jiffies_digest()
259 bcount / sec, ((long)bcount * blen) / sec); in test_hash_jiffies_digest()
265 int blen, int plen, char *out, int sec) in test_hash_jiffies() argument
271 if (plen == blen) in test_hash_jiffies()
272 return test_hash_jiffies_digest(desc, sg, blen, out, sec); in test_hash_jiffies()
279 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_jiffies()
291 bcount / sec, ((long)bcount * blen) / sec); in test_hash_jiffies()
297 struct scatterlist *sg, int blen, char *out) in test_hash_cycles_digest() argument
308 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
319 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
336 cycles / 8, cycles / (8 * blen)); in test_hash_cycles_digest()
342 int blen, int plen, char *out) in test_hash_cycles() argument
348 if (plen == blen) in test_hash_cycles()
349 return test_hash_cycles_digest(desc, sg, blen, out); in test_hash_cycles()
359 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_cycles()
378 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_cycles()
400 cycles / 8, cycles / (8 * blen)); in test_hash_cycles()
446 for (i = 0; speed[i].blen != 0; i++) { in test_hash_speed()
447 if (speed[i].blen > TVMEMSIZE * PAGE_SIZE) { in test_hash_speed()
450 speed[i].blen, TVMEMSIZE * PAGE_SIZE); in test_hash_speed()
459 i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen); in test_hash_speed()
462 ret = test_hash_jiffies(&desc, sg, speed[i].blen, in test_hash_speed()
465 ret = test_hash_cycles(&desc, sg, speed[i].blen, in test_hash_speed()
507 static int test_ahash_jiffies_digest(struct ahash_request *req, int blen, in test_ahash_jiffies_digest() argument
522 bcount / sec, ((long)bcount * blen) / sec); in test_ahash_jiffies_digest()
527 static int test_ahash_jiffies(struct ahash_request *req, int blen, in test_ahash_jiffies() argument
534 if (plen == blen) in test_ahash_jiffies()
535 return test_ahash_jiffies_digest(req, blen, out, sec); in test_ahash_jiffies()
542 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_jiffies()
554 bcount / sec, ((long)bcount * blen) / sec); in test_ahash_jiffies()
559 static int test_ahash_cycles_digest(struct ahash_request *req, int blen, in test_ahash_cycles_digest() argument
592 cycles / 8, cycles / (8 * blen)); in test_ahash_cycles_digest()
597 static int test_ahash_cycles(struct ahash_request *req, int blen, in test_ahash_cycles() argument
603 if (plen == blen) in test_ahash_cycles()
604 return test_ahash_cycles_digest(req, blen, out); in test_ahash_cycles()
611 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_cycles()
630 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_cycles()
649 cycles / 8, cycles / (8 * blen)); in test_ahash_cycles()
690 for (i = 0; speed[i].blen != 0; i++) { in test_ahash_speed()
691 if (speed[i].blen > TVMEMSIZE * PAGE_SIZE) { in test_ahash_speed()
693 speed[i].blen, TVMEMSIZE * PAGE_SIZE); in test_ahash_speed()
699 i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen); in test_ahash_speed()
704 ret = test_ahash_jiffies(req, speed[i].blen, in test_ahash_speed()
707 ret = test_ahash_cycles(req, speed[i].blen, in test_ahash_speed()