Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_req.h230 struct nitrox_kcrypt_request nkreq; member
612 static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_src_req_buf() argument
615 struct se_crypto_request *creq = &nkreq->creq; in alloc_src_req_buf()
617 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp); in alloc_src_req_buf()
618 if (!nkreq->src) in alloc_src_req_buf()
634 static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq, in nitrox_creq_set_src_sg() argument
638 char *iv = nkreq->src; in nitrox_creq_set_src_sg()
640 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_src_sg()
658 static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_dst_req_buf() argument
662 struct se_crypto_request *creq = &nkreq->creq; in alloc_dst_req_buf()
[all …]
Dnitrox_aead.c77 static int alloc_src_sglist(struct nitrox_kcrypt_request *nkreq, in alloc_src_sglist() argument
90 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
94 nitrox_creq_copy_iv(nkreq->src, iv, ivsize); in alloc_src_sglist()
95 nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen); in alloc_src_sglist()
100 static int alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq, in alloc_dst_sglist() argument
114 ret = alloc_dst_req_buf(nkreq, nents); in alloc_dst_sglist()
118 nitrox_creq_set_orh(nkreq); in alloc_dst_sglist()
119 nitrox_creq_set_comp(nkreq); in alloc_dst_sglist()
120 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen); in alloc_dst_sglist()
125 static void free_src_sglist(struct nitrox_kcrypt_request *nkreq) in free_src_sglist() argument
[all …]
Dnitrox_skcipher.c139 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_src_sglist() local
144 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
148 nitrox_creq_copy_iv(nkreq->src, skreq->iv, ivsize); in alloc_src_sglist()
149 nitrox_creq_set_src_sg(nkreq, nents, ivsize, skreq->src, in alloc_src_sglist()
157 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_dst_sglist() local
164 ret = alloc_dst_req_buf(nkreq, nents); in alloc_dst_sglist()
168 nitrox_creq_set_orh(nkreq); in alloc_dst_sglist()
169 nitrox_creq_set_comp(nkreq); in alloc_dst_sglist()
170 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, skreq->dst, in alloc_dst_sglist()
178 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_src_sglist() local
[all …]