Home
last modified time | relevance | path

Searched refs:nkreq (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/crypto/cavium/nitrox/
Dnitrox_req.h235 struct nitrox_kcrypt_request nkreq; member
620 static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_src_req_buf() argument
623 struct se_crypto_request *creq = &nkreq->creq; in alloc_src_req_buf()
625 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp); in alloc_src_req_buf()
626 if (!nkreq->src) in alloc_src_req_buf()
642 static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq, in nitrox_creq_set_src_sg() argument
646 char *iv = nkreq->src; in nitrox_creq_set_src_sg()
648 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_src_sg()
666 static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_dst_req_buf() argument
670 struct se_crypto_request *creq = &nkreq->creq; in alloc_dst_req_buf()
[all …]
Dnitrox_skcipher.c53 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_src_sglist() local
55 kfree(nkreq->src); in free_src_sglist()
60 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_dst_sglist() local
62 kfree(nkreq->dst); in free_dst_sglist()
82 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_cbc_cipher_callback() local
92 if (nkreq->creq.ctrl.s.arg == ENCRYPT) { in nitrox_cbc_cipher_callback()
100 memcpy(skreq->iv, nkreq->iv_out, ivsize); in nitrox_cbc_cipher_callback()
101 kfree(nkreq->iv_out); in nitrox_cbc_cipher_callback()
210 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_src_sglist() local
215 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
[all …]
Dnitrox_aead.c93 static int alloc_src_sglist(struct nitrox_kcrypt_request *nkreq, in alloc_src_sglist() argument
106 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
110 nitrox_creq_copy_iv(nkreq->src, iv, ivsize); in alloc_src_sglist()
111 nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen); in alloc_src_sglist()
116 static int alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq, in alloc_dst_sglist() argument
130 ret = alloc_dst_req_buf(nkreq, nents); in alloc_dst_sglist()
134 nitrox_creq_set_orh(nkreq); in alloc_dst_sglist()
135 nitrox_creq_set_comp(nkreq); in alloc_dst_sglist()
136 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen); in alloc_dst_sglist()
141 static void free_src_sglist(struct nitrox_kcrypt_request *nkreq) in free_src_sglist() argument
[all …]