Lines Matching refs:blen

76 			       struct scatterlist *sg, int blen, int secs)  in test_cipher_jiffies()  argument
85 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_jiffies()
87 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_jiffies()
94 bcount, secs, (long)bcount * blen); in test_cipher_jiffies()
99 struct scatterlist *sg, int blen) in test_cipher_cycles() argument
110 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
112 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
124 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
126 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
140 (cycles + 4) / 8, blen); in test_cipher_cycles()
146 int blen, int secs) in test_aead_jiffies() argument
164 bcount, secs, (long)bcount * blen); in test_aead_jiffies()
168 static int test_aead_cycles(struct aead_request *req, int enc, int blen) in test_aead_cycles() argument
209 (cycles + 4) / 8, blen); in test_aead_cycles()
520 struct scatterlist *sg, int blen, in test_hash_jiffies_digest() argument
529 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_jiffies_digest()
535 bcount / secs, ((long)bcount * blen) / secs); in test_hash_jiffies_digest()
541 int blen, int plen, char *out, int secs) in test_hash_jiffies() argument
547 if (plen == blen) in test_hash_jiffies()
548 return test_hash_jiffies_digest(desc, sg, blen, out, secs); in test_hash_jiffies()
555 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_jiffies()
567 bcount / secs, ((long)bcount * blen) / secs); in test_hash_jiffies()
573 struct scatterlist *sg, int blen, char *out) in test_hash_cycles_digest() argument
583 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
594 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
610 cycles / 8, cycles / (8 * blen)); in test_hash_cycles_digest()
616 int blen, int plen, char *out) in test_hash_cycles() argument
622 if (plen == blen) in test_hash_cycles()
623 return test_hash_cycles_digest(desc, sg, blen, out); in test_hash_cycles()
632 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_cycles()
651 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_cycles()
672 cycles / 8, cycles / (8 * blen)); in test_hash_cycles()
719 for (i = 0; speed[i].blen != 0; i++) { in test_hash_speed()
720 if (speed[i].blen > TVMEMSIZE * PAGE_SIZE) { in test_hash_speed()
723 speed[i].blen, TVMEMSIZE * PAGE_SIZE); in test_hash_speed()
732 i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen); in test_hash_speed()
735 ret = test_hash_jiffies(&desc, sg, speed[i].blen, in test_hash_speed()
738 ret = test_hash_cycles(&desc, sg, speed[i].blen, in test_hash_speed()
779 static int test_ahash_jiffies_digest(struct ahash_request *req, int blen, in test_ahash_jiffies_digest() argument
794 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies_digest()
799 static int test_ahash_jiffies(struct ahash_request *req, int blen, in test_ahash_jiffies() argument
806 if (plen == blen) in test_ahash_jiffies()
807 return test_ahash_jiffies_digest(req, blen, out, secs); in test_ahash_jiffies()
814 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_jiffies()
826 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies()
831 static int test_ahash_cycles_digest(struct ahash_request *req, int blen, in test_ahash_cycles_digest() argument
864 cycles / 8, cycles / (8 * blen)); in test_ahash_cycles_digest()
869 static int test_ahash_cycles(struct ahash_request *req, int blen, in test_ahash_cycles() argument
875 if (plen == blen) in test_ahash_cycles()
876 return test_ahash_cycles_digest(req, blen, out); in test_ahash_cycles()
883 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_cycles()
902 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_cycles()
921 cycles / 8, cycles / (8 * blen)); in test_ahash_cycles()
963 for (i = 0; speed[i].blen != 0; i++) { in test_ahash_speed()
964 if (speed[i].blen > TVMEMSIZE * PAGE_SIZE) { in test_ahash_speed()
966 speed[i].blen, TVMEMSIZE * PAGE_SIZE); in test_ahash_speed()
972 i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen); in test_ahash_speed()
977 ret = test_ahash_jiffies(req, speed[i].blen, in test_ahash_speed()
980 ret = test_ahash_cycles(req, speed[i].blen, in test_ahash_speed()
1009 int blen, int secs) in test_acipher_jiffies() argument
1029 bcount, secs, (long)bcount * blen); in test_acipher_jiffies()
1034 int blen) in test_acipher_cycles() argument
1075 (cycles + 4) / 8, blen); in test_acipher_cycles()