Lines Matching refs:blen

95 			       struct scatterlist *sg, int blen, int secs)  in test_cipher_jiffies()  argument
104 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_jiffies()
106 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_jiffies()
113 bcount, secs, (long)bcount * blen); in test_cipher_jiffies()
118 struct scatterlist *sg, int blen) in test_cipher_cycles() argument
129 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
131 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
143 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
145 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
159 (cycles + 4) / 8, blen); in test_cipher_cycles()
179 int blen, int secs) in test_aead_jiffies() argument
197 bcount, secs, (long)bcount * blen); in test_aead_jiffies()
201 static int test_aead_cycles(struct aead_request *req, int enc, int blen) in test_aead_cycles() argument
242 (cycles + 4) / 8, blen); in test_aead_cycles()
558 struct scatterlist *sg, int blen, in test_hash_jiffies_digest() argument
567 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_jiffies_digest()
573 bcount / secs, ((long)bcount * blen) / secs); in test_hash_jiffies_digest()
579 int blen, int plen, char *out, int secs) in test_hash_jiffies() argument
585 if (plen == blen) in test_hash_jiffies()
586 return test_hash_jiffies_digest(desc, sg, blen, out, secs); in test_hash_jiffies()
593 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_jiffies()
605 bcount / secs, ((long)bcount * blen) / secs); in test_hash_jiffies()
611 struct scatterlist *sg, int blen, char *out) in test_hash_cycles_digest() argument
621 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
632 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
648 cycles / 8, cycles / (8 * blen)); in test_hash_cycles_digest()
654 int blen, int plen, char *out) in test_hash_cycles() argument
660 if (plen == blen) in test_hash_cycles()
661 return test_hash_cycles_digest(desc, sg, blen, out); in test_hash_cycles()
670 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_cycles()
689 for (pcount = 0; pcount < blen; pcount += plen) { in test_hash_cycles()
710 cycles / 8, cycles / (8 * blen)); in test_hash_cycles()
757 for (i = 0; speed[i].blen != 0; i++) { in test_hash_speed()
758 if (speed[i].blen > TVMEMSIZE * PAGE_SIZE) { in test_hash_speed()
761 speed[i].blen, TVMEMSIZE * PAGE_SIZE); in test_hash_speed()
770 i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen); in test_hash_speed()
773 ret = test_hash_jiffies(&desc, sg, speed[i].blen, in test_hash_speed()
776 ret = test_hash_cycles(&desc, sg, speed[i].blen, in test_hash_speed()
801 static int test_ahash_jiffies_digest(struct ahash_request *req, int blen, in test_ahash_jiffies_digest() argument
816 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies_digest()
821 static int test_ahash_jiffies(struct ahash_request *req, int blen, in test_ahash_jiffies() argument
828 if (plen == blen) in test_ahash_jiffies()
829 return test_ahash_jiffies_digest(req, blen, out, secs); in test_ahash_jiffies()
836 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_jiffies()
848 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies()
853 static int test_ahash_cycles_digest(struct ahash_request *req, int blen, in test_ahash_cycles_digest() argument
886 cycles / 8, cycles / (8 * blen)); in test_ahash_cycles_digest()
891 static int test_ahash_cycles(struct ahash_request *req, int blen, in test_ahash_cycles() argument
897 if (plen == blen) in test_ahash_cycles()
898 return test_ahash_cycles_digest(req, blen, out); in test_ahash_cycles()
905 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_cycles()
924 for (pcount = 0; pcount < blen; pcount += plen) { in test_ahash_cycles()
943 cycles / 8, cycles / (8 * blen)); in test_ahash_cycles()
989 for (i = 0; speed[i].blen != 0; i++) { in test_ahash_speed()
990 if (speed[i].blen > TVMEMSIZE * PAGE_SIZE) { in test_ahash_speed()
992 speed[i].blen, TVMEMSIZE * PAGE_SIZE); in test_ahash_speed()
998 i, speed[i].blen, speed[i].plen, speed[i].blen / speed[i].plen); in test_ahash_speed()
1003 ret = test_ahash_jiffies(req, speed[i].blen, in test_ahash_speed()
1006 ret = test_ahash_cycles(req, speed[i].blen, in test_ahash_speed()
1038 int blen, int secs) in test_acipher_jiffies() argument
1058 bcount, secs, (long)bcount * blen); in test_acipher_jiffies()
1063 int blen) in test_acipher_cycles() argument
1104 (cycles + 4) / 8, blen); in test_acipher_cycles()