Home
last modified time | relevance | path

Searched refs:nkreq (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/
H A 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, nent in alloc_src_sglist()
228 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); alloc_dst_sglist() local
251 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); nitrox_skcipher_crypt() local
292 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); nitrox_cbc_decrypt() local
[all...]
H A Dnitrox_req.h220 * @nkreq: Base request context
234 struct nitrox_kcrypt_request nkreq; member
616 static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_src_req_buf() argument
619 struct se_crypto_request *creq = &nkreq->creq; in alloc_src_req_buf()
621 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp); in alloc_src_req_buf()
622 if (!nkreq->src) in alloc_src_req_buf()
638 static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq, in nitrox_creq_set_src_sg() argument
642 char *iv = nkreq->src; in nitrox_creq_set_src_sg()
644 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_src_sg()
662 static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_dst_req_buf() argument
675 nitrox_creq_set_orh(struct nitrox_kcrypt_request *nkreq) nitrox_creq_set_orh() argument
683 nitrox_creq_set_comp(struct nitrox_kcrypt_request *nkreq) nitrox_creq_set_comp() argument
696 nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq, int nents, int ivsize, struct scatterlist *dst, int buflen) nitrox_creq_set_dst_sg() argument
[all...]
H A Dnitrox_aead.c94 static int alloc_src_sglist(struct nitrox_kcrypt_request *nkreq, in alloc_src_sglist() argument
107 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
111 nitrox_creq_copy_iv(nkreq->src, iv, ivsize); in alloc_src_sglist()
112 nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen); in alloc_src_sglist()
117 static int alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq, in alloc_dst_sglist() argument
131 ret = alloc_dst_req_buf(nkreq, nents); in alloc_dst_sglist()
135 nitrox_creq_set_orh(nkreq); in alloc_dst_sglist()
136 nitrox_creq_set_comp(nkreq); in alloc_dst_sglist()
137 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen); in alloc_dst_sglist()
142 static void free_src_sglist(struct nitrox_kcrypt_request *nkreq) in free_src_sglist() argument
147 free_dst_sglist(struct nitrox_kcrypt_request *nkreq) free_dst_sglist() argument
429 struct nitrox_kcrypt_request *nkreq = &rctx->base.nkreq; nitrox_rfc4106_callback() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/
H A 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, nent in alloc_src_sglist()
228 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); alloc_dst_sglist() local
251 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); nitrox_skcipher_crypt() local
292 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); nitrox_cbc_decrypt() local
[all...]
H A Dnitrox_req.h221 * @nkreq: Base request context
235 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
679 nitrox_creq_set_orh(struct nitrox_kcrypt_request *nkreq) nitrox_creq_set_orh() argument
687 nitrox_creq_set_comp(struct nitrox_kcrypt_request *nkreq) nitrox_creq_set_comp() argument
700 nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq, int nents, int ivsize, struct scatterlist *dst, int buflen) nitrox_creq_set_dst_sg() argument
[all...]
H A 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
146 free_dst_sglist(struct nitrox_kcrypt_request *nkreq) free_dst_sglist() argument
428 struct nitrox_kcrypt_request *nkreq = &rctx->base.nkreq; nitrox_rfc4106_callback() local
[all...]

Completed in 6 milliseconds