Home
last modified time | relevance | path

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

12

/linux/fs/netfs/
A Dread_helper.c154 subreq->start + subreq->transferred, in netfs_clear_unread()
155 subreq->len - subreq->transferred); in netfs_clear_unread()
180 subreq->start + subreq->transferred, in netfs_read_from_cache()
181 subreq->len - subreq->transferred); in netfs_read_from_cache()
334 subreq->start, subreq->len); in netfs_rreq_do_write_to_cache()
419 subreq = list_next_entry(subreq, rreq_link); in netfs_rreq_unlock()
610 subreq->debug_index, subreq->start, subreq->flags, in netfs_subreq_terminated()
639 if (subreq->transferred < subreq->len) in netfs_subreq_terminated()
663 subreq->transferred = subreq->len; in netfs_subreq_terminated()
715 _enter("%llx-%llx,%llx", subreq->start, subreq->start + subreq->len, rreq->i_size); in netfs_rreq_prepare_read()
[all …]
/linux/crypto/
A Dcts.c62 struct skcipher_request subreq; member
102 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_encrypt() local
125 return crypto_skcipher_encrypt(subreq); in cts_cbc_encrypt()
148 struct skcipher_request *subreq = &rctx->subreq; in crypto_cts_encrypt() local
164 return crypto_skcipher_encrypt(subreq); in crypto_cts_encrypt()
175 return crypto_skcipher_encrypt(subreq) ?: in crypto_cts_encrypt()
183 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_decrypt() local
219 return crypto_skcipher_decrypt(subreq); in cts_cbc_decrypt()
242 struct skcipher_request *subreq = &rctx->subreq; in crypto_cts_decrypt() local
259 return crypto_skcipher_decrypt(subreq); in crypto_cts_decrypt()
[all …]
A Dseqiv.c23 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2() local
33 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_encrypt_complete2()
36 kfree_sensitive(subreq->iv); in seqiv_aead_encrypt_complete2()
52 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt() local
62 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt()
96 aead_request_set_crypt(subreq, req->dst, req->dst, in seqiv_aead_encrypt()
98 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt()
103 err = crypto_aead_encrypt(subreq); in seqiv_aead_encrypt()
121 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_decrypt()
127 aead_request_set_crypt(subreq, req->src, req->dst, in seqiv_aead_decrypt()
[all …]
A Dechainiv.c30 struct aead_request *subreq = aead_request_ctx(req); in echainiv_encrypt() local
40 aead_request_set_tfm(subreq, ctx->child); in echainiv_encrypt()
59 aead_request_set_callback(subreq, req->base.flags, in echainiv_encrypt()
61 aead_request_set_crypt(subreq, req->dst, req->dst, in echainiv_encrypt()
63 aead_request_set_ad(subreq, req->assoclen); in echainiv_encrypt()
82 return crypto_aead_encrypt(subreq); in echainiv_encrypt()
89 struct aead_request *subreq = aead_request_ctx(req); in echainiv_decrypt() local
97 aead_request_set_tfm(subreq, ctx->child); in echainiv_decrypt()
103 aead_request_set_crypt(subreq, req->src, req->dst, in echainiv_decrypt()
105 aead_request_set_ad(subreq, req->assoclen + ivsize); in echainiv_decrypt()
[all …]
A Dxts.c38 struct skcipher_request subreq; member
94 req = &rctx->subreq; in xts_xor_tweak()
166 struct skcipher_request *subreq = &rctx->subreq; in xts_cts_final() local
182 skcipher_request_set_tfm(subreq, ctx->child); in xts_cts_final()
188 err = crypt(subreq); in xts_cts_final()
245 struct skcipher_request *subreq = &rctx->subreq; in xts_init_crypt() local
250 skcipher_request_set_tfm(subreq, ctx->child); in xts_init_crypt()
264 struct skcipher_request *subreq = &rctx->subreq; in xts_encrypt() local
269 crypto_skcipher_encrypt(subreq) ?: in xts_encrypt()
281 struct skcipher_request *subreq = &rctx->subreq; in xts_decrypt() local
[all …]
A Dsimd.c66 struct skcipher_request *subreq; in simd_skcipher_encrypt() local
69 subreq = skcipher_request_ctx(req); in simd_skcipher_encrypt()
70 *subreq = *req; in simd_skcipher_encrypt()
87 struct skcipher_request *subreq; in simd_skcipher_decrypt() local
91 *subreq = *req; in simd_skcipher_decrypt()
314 struct aead_request *subreq; in simd_aead_encrypt() local
317 subreq = aead_request_ctx(req); in simd_aead_encrypt()
318 *subreq = *req; in simd_aead_encrypt()
335 struct aead_request *subreq; in simd_aead_decrypt() local
338 subreq = aead_request_ctx(req); in simd_aead_decrypt()
[all …]
A Dlrw.c54 struct skcipher_request subreq; member
153 req = &rctx->subreq; in lrw_xor_tweak()
215 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in lrw_crypt_done()
227 struct skcipher_request *subreq = &rctx->subreq; in lrw_init_crypt() local
229 skcipher_request_set_tfm(subreq, ctx->child); in lrw_init_crypt()
230 skcipher_request_set_callback(subreq, req->base.flags, lrw_crypt_done, in lrw_init_crypt()
233 skcipher_request_set_crypt(subreq, req->dst, req->dst, in lrw_init_crypt()
246 struct skcipher_request *subreq = &rctx->subreq; in lrw_encrypt() local
250 crypto_skcipher_encrypt(subreq) ?: in lrw_encrypt()
257 struct skcipher_request *subreq = &rctx->subreq; in lrw_decrypt() local
[all …]
A Dessiv.c145 struct skcipher_request *subreq = skcipher_request_ctx(req); in essiv_skcipher_crypt() local
149 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt()
152 skcipher_request_set_callback(subreq, skcipher_request_flags(req), in essiv_skcipher_crypt()
155 return enc ? crypto_skcipher_encrypt(subreq) : in essiv_skcipher_crypt()
156 crypto_skcipher_decrypt(subreq); in essiv_skcipher_crypt()
183 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() local
241 aead_request_set_tfm(subreq, tctx->u.aead); in essiv_aead_crypt()
242 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt()
243 aead_request_set_callback(subreq, aead_request_flags(req), in essiv_aead_crypt()
247 err = enc ? crypto_aead_encrypt(subreq) : in essiv_aead_crypt()
[all …]
A Dgcm.c40 struct aead_request subreq; member
54 struct aead_request subreq; member
727 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4106_crypt() local
752 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt()
755 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt()
758 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt()
760 return subreq; in crypto_rfc4106_crypt()
933 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local
948 aead_request_set_tfm(subreq, ctx->child); in crypto_rfc4543_crypt()
954 subreq->cryptlen); in crypto_rfc4543_crypt()
[all …]
A Dctr.c25 struct skcipher_request subreq CRYPTO_MINALIGN_ATTR;
198 struct skcipher_request *subreq = &rctx->subreq; in crypto_rfc3686_crypt() local
209 skcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt()
210 skcipher_request_set_callback(subreq, req->base.flags, in crypto_rfc3686_crypt()
212 skcipher_request_set_crypt(subreq, req->src, req->dst, in crypto_rfc3686_crypt()
215 return crypto_skcipher_encrypt(subreq); in crypto_rfc3686_crypt()
/linux/fs/cachefiles/
A Dio.c278 _enter("%zx @%llx/%llx", subreq->len, subreq->start, i_size); in cachefiles_prepare_read()
288 if (subreq->start >= i_size) in cachefiles_prepare_read()
293 off = vfs_llseek(file, subreq->start, SEEK_DATA); in cachefiles_prepare_read()
300 if (off >= subreq->start + subreq->len) in cachefiles_prepare_read()
303 if (off > subreq->start) { in cachefiles_prepare_read()
305 subreq->len = off - subreq->start; in cachefiles_prepare_read()
309 to = vfs_llseek(file, subreq->start, SEEK_HOLE); in cachefiles_prepare_read()
313 if (to < subreq->start + subreq->len) { in cachefiles_prepare_read()
314 if (subreq->start + subreq->len >= i_size) in cachefiles_prepare_read()
318 subreq->len = to - subreq->start; in cachefiles_prepare_read()
[all …]
/linux/arch/arm/crypto/
A Daes-ce-glue.c274 struct skcipher_request subreq; in cts_cbc_encrypt() local
278 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt()
304 subreq.cryptlen); in cts_cbc_encrypt()
332 struct skcipher_request subreq; in cts_cbc_decrypt() local
336 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_decrypt()
362 subreq.cryptlen); in cts_cbc_decrypt()
451 struct skcipher_request subreq; in xts_encrypt() local
467 skcipher_request_set_callback(&subreq, in xts_encrypt()
473 req = &subreq; in xts_encrypt()
523 struct skcipher_request subreq; in xts_decrypt() local
[all …]
A Daes-neonbs-glue.c150 struct skcipher_request *subreq = skcipher_request_ctx(req); in cbc_encrypt() local
154 skcipher_request_set_tfm(subreq, ctx->enc_tfm); in cbc_encrypt()
155 skcipher_request_set_callback(subreq, in cbc_encrypt()
158 skcipher_request_set_crypt(subreq, req->src, req->dst, in cbc_encrypt()
161 return crypto_skcipher_encrypt(subreq); in cbc_encrypt()
351 struct skcipher_request subreq; in __xts_crypt() local
360 skcipher_request_set_tfm(&subreq, tfm); in __xts_crypt()
361 skcipher_request_set_callback(&subreq, in __xts_crypt()
364 skcipher_request_set_crypt(&subreq, req->src, req->dst, in __xts_crypt()
366 req = &subreq; in __xts_crypt()
/linux/arch/arm64/crypto/
A Daes-glue.c281 struct skcipher_request subreq; in cts_cbc_encrypt() local
284 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt()
310 subreq.cryptlen); in cts_cbc_encrypt()
338 struct skcipher_request subreq; in cts_cbc_decrypt() local
341 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_decrypt()
367 subreq.cryptlen); in cts_cbc_decrypt()
495 struct skcipher_request subreq; in xts_encrypt() local
511 skcipher_request_set_callback(&subreq, in xts_encrypt()
517 req = &subreq; in xts_encrypt()
567 struct skcipher_request subreq; in xts_decrypt() local
[all …]
/linux/fs/afs/
A Dfile.c229 struct netfs_read_subrequest *subreq = req->subreq; in afs_fetch_data_notify() local
236 if (subreq) { in afs_fetch_data_notify()
237 __set_bit(NETFS_SREQ_CLEAR_TAIL, &subreq->flags); in afs_fetch_data_notify()
239 req->subreq = NULL; in afs_fetch_data_notify()
287 if (req->subreq) in afs_fetch_data()
301 struct afs_vnode *vnode = AFS_FS_I(subreq->rreq->inode); in afs_req_issue_op()
306 return netfs_subreq_terminated(subreq, -ENOMEM, false); in afs_req_issue_op()
308 fsreq->subreq = subreq; in afs_req_issue_op()
309 fsreq->pos = subreq->start + subreq->transferred; in afs_req_issue_op()
310 fsreq->len = subreq->len - subreq->transferred; in afs_req_issue_op()
[all …]
/linux/fs/nfs/
A Dpagelist.c213 nfs_unroll_locks(head, subreq); in nfs_page_group_lock_subreq()
214 nfs_release_request(subreq); in nfs_page_group_lock_subreq()
230 struct nfs_page *subreq; in nfs_page_group_lock_subrequests() local
237 for (subreq = head->wb_this_page; subreq != head; in nfs_page_group_lock_subrequests()
238 subreq = subreq->wb_this_page) { in nfs_page_group_lock_subrequests()
1161 struct nfs_page *subreq; in __nfs_pageio_add_request() local
1166 subreq = req; in __nfs_pageio_add_request()
1172 if (subreq == req) in __nfs_pageio_add_request()
1178 subreq = req; in __nfs_pageio_add_request()
1184 subreq = req; in __nfs_pageio_add_request()
[all …]
A Dwrite.c464 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
465 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
474 nfs_free_request(subreq); in nfs_destroy_unlinked_subrequests()
508 struct nfs_page *subreq; in nfs_join_page_group() local
515 for (subreq = head->wb_this_page; subreq != head; in nfs_join_page_group()
516 subreq = subreq->wb_this_page) { in nfs_join_page_group()
521 pgbase = subreq->wb_pgbase; in nfs_join_page_group()
523 bytes = max(subreq->wb_pgbase + subreq->wb_bytes in nfs_join_page_group()
534 subreq = head; in nfs_join_page_group()
537 subreq = subreq->wb_this_page; in nfs_join_page_group()
[all …]
/linux/drivers/crypto/vmx/
A Daes_cbc.c80 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_cbc_crypt() local
82 *subreq = *req; in p8_aes_cbc_crypt()
83 skcipher_request_set_tfm(subreq, ctx->fallback); in p8_aes_cbc_crypt()
84 return enc ? crypto_skcipher_encrypt(subreq) : in p8_aes_cbc_crypt()
85 crypto_skcipher_decrypt(subreq); in p8_aes_cbc_crypt()
A Daes_xts.c91 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_xts_crypt() local
93 *subreq = *req; in p8_aes_xts_crypt()
94 skcipher_request_set_tfm(subreq, ctx->fallback); in p8_aes_xts_crypt()
95 return enc ? crypto_skcipher_encrypt(subreq) : in p8_aes_xts_crypt()
96 crypto_skcipher_decrypt(subreq); in p8_aes_xts_crypt()
A Daes_ctr.c99 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_ctr_crypt() local
101 *subreq = *req; in p8_aes_ctr_crypt()
102 skcipher_request_set_tfm(subreq, ctx->fallback); in p8_aes_ctr_crypt()
103 return crypto_skcipher_encrypt(subreq); in p8_aes_ctr_crypt()
/linux/arch/x86/crypto/
A Daesni-intel_glue.c373 struct skcipher_request subreq; in cts_cbc_encrypt() local
377 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt()
392 err = cbc_encrypt(&subreq); in cts_cbc_encrypt()
402 subreq.cryptlen); in cts_cbc_encrypt()
429 struct skcipher_request subreq; in cts_cbc_decrypt() local
433 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_decrypt()
448 err = cbc_decrypt(&subreq); in cts_cbc_decrypt()
458 subreq.cryptlen); in cts_cbc_decrypt()
844 struct skcipher_request subreq; in xts_crypt() local
861 skcipher_request_set_callback(&subreq, in xts_crypt()
[all …]
/linux/fs/9p/
A Dvfs_addr.c33 static void v9fs_req_issue_op(struct netfs_read_subrequest *subreq) in v9fs_req_issue_op() argument
35 struct netfs_read_request *rreq = subreq->rreq; in v9fs_req_issue_op()
38 loff_t pos = subreq->start + subreq->transferred; in v9fs_req_issue_op()
39 size_t len = subreq->len - subreq->transferred; in v9fs_req_issue_op()
45 netfs_subreq_terminated(subreq, err ?: total, false); in v9fs_req_issue_op()
/linux/drivers/crypto/amcc/
A Dcrypto4xx_alg.c273 skcipher_request_set_callback(subreq, req->base.flags, in crypto4xx_ctr_crypt()
275 skcipher_request_set_crypt(subreq, req->src, req->dst, in crypto4xx_ctr_crypt()
277 ret = encrypt ? crypto_skcipher_encrypt(subreq) in crypto4xx_ctr_crypt()
278 : crypto_skcipher_decrypt(subreq); in crypto4xx_ctr_crypt()
279 skcipher_request_zero(subreq); in crypto4xx_ctr_crypt()
354 struct aead_request *subreq = aead_request_ctx(req); in crypto4xx_aead_fallback() local
356 aead_request_set_tfm(subreq, ctx->sw_cipher.aead); in crypto4xx_aead_fallback()
357 aead_request_set_callback(subreq, req->base.flags, in crypto4xx_aead_fallback()
361 aead_request_set_ad(subreq, req->assoclen); in crypto4xx_aead_fallback()
362 return do_decrypt ? crypto_aead_decrypt(subreq) : in crypto4xx_aead_fallback()
[all …]
/linux/drivers/crypto/xilinx/
A Dzynqmp-aes-gcm.c212 struct aead_request *subreq = aead_request_ctx(req); in zynqmp_handle_aes_req() local
219 aead_request_set_tfm(subreq, tfm_ctx->fbk_cipher); in zynqmp_handle_aes_req()
221 aead_request_set_callback(subreq, areq->base.flags, in zynqmp_handle_aes_req()
223 aead_request_set_crypt(subreq, areq->src, areq->dst, in zynqmp_handle_aes_req()
225 aead_request_set_ad(subreq, areq->assoclen); in zynqmp_handle_aes_req()
227 err = crypto_aead_encrypt(subreq); in zynqmp_handle_aes_req()
229 err = crypto_aead_decrypt(subreq); in zynqmp_handle_aes_req()
/linux/arch/powerpc/crypto/
A Daes-spe-glue.c326 struct skcipher_request subreq; in ppc_xts_encrypt() local
334 subreq = *req; in ppc_xts_encrypt()
335 skcipher_request_set_crypt(&subreq, req->src, req->dst, in ppc_xts_encrypt()
337 req = &subreq; in ppc_xts_encrypt()
364 struct skcipher_request subreq; in ppc_xts_decrypt() local
373 subreq = *req; in ppc_xts_decrypt()
374 skcipher_request_set_crypt(&subreq, req->src, req->dst, in ppc_xts_decrypt()
376 req = &subreq; in ppc_xts_decrypt()

Completed in 477 milliseconds

12