Home
last modified time | relevance | path

Searched refs:subreq (Results 1 – 8 of 8) sorted by relevance

/linux-4.1.27/crypto/
Dchainiv.c52 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in chainiv_givencrypt() local
56 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in chainiv_givencrypt()
57 ablkcipher_request_set_callback(subreq, req->creq.base.flags & in chainiv_givencrypt()
61 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in chainiv_givencrypt()
69 memcpy(subreq->info, ctx->iv, ivsize); in chainiv_givencrypt()
71 err = crypto_ablkcipher_encrypt(subreq); in chainiv_givencrypt()
75 memcpy(ctx->iv, subreq->info, ivsize); in chainiv_givencrypt()
165 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt_tail() local
169 memcpy(subreq->info, ctx->iv, ivsize); in async_chainiv_givencrypt_tail()
171 ctx->err = crypto_ablkcipher_encrypt(subreq); in async_chainiv_givencrypt_tail()
[all …]
Dseqiv.c34 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_complete2() local
44 memcpy(req->creq.info, subreq->info, crypto_ablkcipher_ivsize(geniv)); in seqiv_complete2()
47 kfree(subreq->info); in seqiv_complete2()
60 struct aead_request *subreq = aead_givcrypt_reqctx(req); in seqiv_aead_complete2() local
70 memcpy(req->areq.iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_complete2()
73 kfree(subreq->iv); in seqiv_aead_complete2()
102 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_givencrypt() local
109 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in seqiv_givencrypt()
129 ablkcipher_request_set_callback(subreq, req->creq.base.flags, compl, in seqiv_givencrypt()
131 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in seqiv_givencrypt()
[all …]
Deseqiv.c70 struct ablkcipher_request *subreq; in eseqiv_givencrypt() local
85 subreq = (void *)(reqctx->tail + ctx->reqoff); in eseqiv_givencrypt()
86 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in eseqiv_givencrypt()
108 ablkcipher_request_set_callback(subreq, req->creq.base.flags, compl, in eseqiv_givencrypt()
124 ablkcipher_request_set_crypt(subreq, reqctx->src, dst, in eseqiv_givencrypt()
138 err = crypto_ablkcipher_encrypt(subreq); in eseqiv_givencrypt()
Dctr.c35 struct ablkcipher_request subreq CRYPTO_MINALIGN_ATTR;
286 struct ablkcipher_request *subreq = &rctx->subreq; in crypto_rfc3686_crypt() local
297 ablkcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt()
298 ablkcipher_request_set_callback(subreq, req->base.flags, in crypto_rfc3686_crypt()
300 ablkcipher_request_set_crypt(subreq, req->src, req->dst, req->nbytes, in crypto_rfc3686_crypt()
303 return crypto_ablkcipher_encrypt(subreq); in crypto_rfc3686_crypt()
Dgcm.c57 struct aead_request subreq; member
900 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4106_crypt() local
904 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
910 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt()
911 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt()
913 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4106_crypt()
914 aead_request_set_assoc(subreq, req->assoc, req->assoclen); in crypto_rfc4106_crypt()
916 return subreq; in crypto_rfc4106_crypt()
1124 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local
1173 aead_request_set_tfm(subreq, ctx->child); in crypto_rfc4543_crypt()
[all …]
Dccm.c680 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4309_crypt() local
684 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt()
693 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt()
694 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt()
696 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4309_crypt()
697 aead_request_set_assoc(subreq, req->assoc, req->assoclen); in crypto_rfc4309_crypt()
699 return subreq; in crypto_rfc4309_crypt()
/linux-4.1.27/fs/nfs/
Dpagelist.c1033 struct nfs_page *subreq; in __nfs_pageio_add_request() local
1039 subreq = req; in __nfs_pageio_add_request()
1040 bytes_left = subreq->wb_bytes; in __nfs_pageio_add_request()
1041 offset = subreq->wb_offset; in __nfs_pageio_add_request()
1042 pgbase = subreq->wb_pgbase; in __nfs_pageio_add_request()
1045 if (!nfs_pageio_do_add_request(desc, subreq)) { in __nfs_pageio_add_request()
1047 WARN_ON_ONCE(subreq->wb_bytes != bytes_left); in __nfs_pageio_add_request()
1048 WARN_ON_ONCE(subreq->wb_offset != offset); in __nfs_pageio_add_request()
1049 WARN_ON_ONCE(subreq->wb_pgbase != pgbase); in __nfs_pageio_add_request()
1064 WARN_ON_ONCE(subreq->wb_bytes + subreq->wb_pgbase > PAGE_SIZE); in __nfs_pageio_add_request()
[all …]
Dwrite.c370 struct nfs_page *subreq = destroy_list; in nfs_destroy_unlinked_subrequests() local
372 destroy_list = (subreq->wb_this_page == old_head) ? in nfs_destroy_unlinked_subrequests()
373 NULL : subreq->wb_this_page; in nfs_destroy_unlinked_subrequests()
375 WARN_ON_ONCE(old_head != subreq->wb_head); in nfs_destroy_unlinked_subrequests()
378 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
379 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
383 nfs_unlock_request(subreq); in nfs_destroy_unlinked_subrequests()
385 if (!test_bit(PG_TEARDOWN, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
389 nfs_page_group_clear_bits(subreq); in nfs_destroy_unlinked_subrequests()
392 if (test_and_clear_bit(PG_INODE_REF, &subreq->wb_flags)) in nfs_destroy_unlinked_subrequests()
[all …]