Lines Matching refs:tfms
155 struct crypto_ablkcipher **tfms; member
193 return cc->tfms[0]; in any_tfm()
893 ablkcipher_request_set_tfm(ctx->req, cc->tfms[key_index]); in crypt_alloc_req()
1418 if (!cc->tfms) in crypt_free_tfms()
1422 if (cc->tfms[i] && !IS_ERR(cc->tfms[i])) { in crypt_free_tfms()
1423 crypto_free_ablkcipher(cc->tfms[i]); in crypt_free_tfms()
1424 cc->tfms[i] = NULL; in crypt_free_tfms()
1427 kfree(cc->tfms); in crypt_free_tfms()
1428 cc->tfms = NULL; in crypt_free_tfms()
1436 cc->tfms = kmalloc(cc->tfms_count * sizeof(struct crypto_ablkcipher *), in crypt_alloc_tfms()
1438 if (!cc->tfms) in crypt_alloc_tfms()
1442 cc->tfms[i] = crypto_alloc_ablkcipher(ciphermode, 0, 0); in crypt_alloc_tfms()
1443 if (IS_ERR(cc->tfms[i])) { in crypt_alloc_tfms()
1444 err = PTR_ERR(cc->tfms[i]); in crypt_alloc_tfms()
1462 r = crypto_ablkcipher_setkey(cc->tfms[i], in crypt_setkey_allcpus()