Lines Matching refs:tfms
156 struct crypto_ablkcipher **tfms; member
194 return cc->tfms[0]; in any_tfm()
894 ablkcipher_request_set_tfm(ctx->req, cc->tfms[key_index]); in crypt_alloc_req()
1435 if (!cc->tfms) in crypt_free_tfms()
1439 if (cc->tfms[i] && !IS_ERR(cc->tfms[i])) { in crypt_free_tfms()
1440 crypto_free_ablkcipher(cc->tfms[i]); in crypt_free_tfms()
1441 cc->tfms[i] = NULL; in crypt_free_tfms()
1444 kfree(cc->tfms); in crypt_free_tfms()
1445 cc->tfms = NULL; in crypt_free_tfms()
1453 cc->tfms = kmalloc(cc->tfms_count * sizeof(struct crypto_ablkcipher *), in crypt_alloc_tfms()
1455 if (!cc->tfms) in crypt_alloc_tfms()
1459 cc->tfms[i] = crypto_alloc_ablkcipher(ciphermode, 0, 0); in crypt_alloc_tfms()
1460 if (IS_ERR(cc->tfms[i])) { in crypt_alloc_tfms()
1461 err = PTR_ERR(cc->tfms[i]); in crypt_alloc_tfms()
1479 r = crypto_ablkcipher_setkey(cc->tfms[i], in crypt_setkey_allcpus()