/linux-6.3-rc2/fs/netfs/ |
A D | io.c | 27 subreq->start + subreq->transferred, in netfs_clear_unread() 28 subreq->len - subreq->transferred); in netfs_clear_unread() 53 subreq->start + subreq->transferred, in netfs_read_from_cache() 54 subreq->len - subreq->transferred); in netfs_read_from_cache() 195 if (next->start != subreq->start + subreq->len) in netfs_rreq_do_write_to_cache() 212 subreq->start, subreq->len); in netfs_rreq_do_write_to_cache() 403 subreq->debug_index, subreq->start, subreq->flags, in netfs_subreq_terminated() 432 if (subreq->transferred < subreq->len) in netfs_subreq_terminated() 456 subreq->transferred = subreq->len; in netfs_subreq_terminated() 508 _enter("%llx-%llx,%llx", subreq->start, subreq->start + subreq->len, rreq->i_size); in netfs_rreq_prepare_read() [all …]
|
A D | objects.c | 62 struct netfs_io_subrequest *subreq; in netfs_clear_subrequests() local 67 list_del(&subreq->rreq_link); in netfs_clear_subrequests() 113 struct netfs_io_subrequest *subreq; in netfs_alloc_subrequest() local 116 if (subreq) { in netfs_alloc_subrequest() 117 INIT_LIST_HEAD(&subreq->rreq_link); in netfs_alloc_subrequest() 118 refcount_set(&subreq->ref, 2); in netfs_alloc_subrequest() 119 subreq->rreq = rreq; in netfs_alloc_subrequest() 124 return subreq; in netfs_alloc_subrequest() 132 __refcount_inc(&subreq->ref, &r); in netfs_get_subrequest() 133 trace_netfs_sreq_ref(subreq->rreq->debug_id, subreq->debug_index, r + 1, in netfs_get_subrequest() [all …]
|
A D | buffered_read.c | 18 struct netfs_io_subrequest *subreq; in netfs_rreq_unlock_folios() local 30 __clear_bit(NETFS_SREQ_COPY_TO_CACHE, &subreq->flags); in netfs_rreq_unlock_folios() 40 subreq = list_first_entry(&rreq->subrequests, in netfs_rreq_unlock_folios() 42 subreq_failed = (subreq->error < 0); in netfs_rreq_unlock_folios() 59 if (!subreq) { in netfs_rreq_unlock_folios() 63 if (test_bit(NETFS_SREQ_COPY_TO_CACHE, &subreq->flags)) in netfs_rreq_unlock_folios() 66 sreq_end = subreq->start + subreq->len - 1; in netfs_rreq_unlock_folios() 70 account += subreq->transferred; in netfs_rreq_unlock_folios() 72 subreq = list_next_entry(subreq, rreq_link); in netfs_rreq_unlock_folios() 73 subreq_failed = (subreq->error < 0); in netfs_rreq_unlock_folios() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | cts.c | 62 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 D | seqiv.c | 23 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() 51 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt() local 61 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt() 95 aead_request_set_crypt(subreq, req->dst, req->dst, in seqiv_aead_encrypt() 97 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt() 102 err = crypto_aead_encrypt(subreq); in seqiv_aead_encrypt() 120 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_decrypt() 126 aead_request_set_crypt(subreq, req->src, req->dst, in seqiv_aead_decrypt() [all …]
|
A D | echainiv.c | 30 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 D | xts.c | 38 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 D | simd.c | 66 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 D | lrw.c | 54 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 D | cryptd.c | 249 req->base.data = subreq->base.data; in cryptd_skcipher_prepare() 263 return subreq; in cryptd_skcipher_prepare() 281 subreq->base.data = req->base.data; in cryptd_skcipher_complete() 291 struct skcipher_request *subreq; in cryptd_skcipher_encrypt() local 294 if (likely(subreq)) in cryptd_skcipher_encrypt() 303 struct skcipher_request *subreq; in cryptd_skcipher_decrypt() local 306 if (likely(subreq)) in cryptd_skcipher_decrypt() 322 subreq->base.data = req->base.data; in cryptd_skcipher_enqueue() 727 struct aead_request *subreq; in cryptd_aead_crypt() local 733 subreq = &rctx->req; in cryptd_aead_crypt() [all …]
|
A D | ahash.c | 199 struct ahash_request *subreq; in ahash_save_req() local 206 subreq_size = sizeof(*subreq); in ahash_save_req() 215 subreq = kmalloc(subreq_size, gfp); in ahash_save_req() 216 if (!subreq) in ahash_save_req() 219 ahash_request_set_tfm(subreq, tfm); in ahash_save_req() 232 kfree(subreq); in ahash_save_req() 237 crypto_ahash_import(subreq, state); in ahash_save_req() 241 req->priv = subreq; in ahash_save_req() 256 kfree_sensitive(subreq); in ahash_restore_req() 384 struct ahash_request *subreq; in ahash_def_finup_done1() local [all …]
|
A D | essiv.c | 145 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() 188 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() local 246 aead_request_set_tfm(subreq, tctx->u.aead); in essiv_aead_crypt() 247 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt() 248 aead_request_set_callback(subreq, aead_request_flags(req), in essiv_aead_crypt() 252 err = enc ? crypto_aead_encrypt(subreq) : in essiv_aead_crypt() [all …]
|
A D | ctr.c | 25 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-6.3-rc2/arch/arm/crypto/ |
A D | aes-ce-glue.c | 274 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 …]
|
/linux-6.3-rc2/fs/afs/ |
A D | file.c | 242 struct netfs_io_subrequest *subreq = req->subreq; in afs_fetch_data_notify() local 249 if (subreq) { in afs_fetch_data_notify() 250 __set_bit(NETFS_SREQ_CLEAR_TAIL, &subreq->flags); in afs_fetch_data_notify() 252 req->subreq = NULL; in afs_fetch_data_notify() 300 if (req->subreq) in afs_fetch_data() 314 struct afs_vnode *vnode = AFS_FS_I(subreq->rreq->inode); in afs_issue_read() 319 return netfs_subreq_terminated(subreq, -ENOMEM, false); in afs_issue_read() 321 fsreq->subreq = subreq; in afs_issue_read() 322 fsreq->pos = subreq->start + subreq->transferred; in afs_issue_read() 323 fsreq->len = subreq->len - subreq->transferred; in afs_issue_read() [all …]
|
/linux-6.3-rc2/arch/arm64/crypto/ |
A D | aes-glue.c | 285 struct skcipher_request subreq; in cts_cbc_encrypt() local 288 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt() 314 subreq.cryptlen); in cts_cbc_encrypt() 342 struct skcipher_request subreq; in cts_cbc_decrypt() local 345 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_decrypt() 371 subreq.cryptlen); in cts_cbc_decrypt() 548 struct skcipher_request subreq; in xts_encrypt() local 564 skcipher_request_set_callback(&subreq, in xts_encrypt() 570 req = &subreq; in xts_encrypt() 620 struct skcipher_request subreq; in xts_decrypt() local [all …]
|
A D | sm4-ce-glue.c | 218 struct skcipher_request subreq; in sm4_cbc_cts_crypt() local 229 skcipher_request_set_tfm(&subreq, tfm); in sm4_cbc_cts_crypt() 236 skcipher_request_set_crypt(&subreq, src, dst, in sm4_cbc_cts_crypt() 240 err = sm4_cbc_crypt(&subreq, ctx, encrypt); in sm4_cbc_cts_crypt() 247 subreq.cryptlen); in sm4_cbc_cts_crypt() 251 skcipher_request_set_crypt(&subreq, src, dst, in sm4_cbc_cts_crypt() 255 err = skcipher_walk_virt(&walk, &subreq, false); in sm4_cbc_cts_crypt() 417 struct skcipher_request subreq; in sm4_xts_crypt() local 435 skcipher_request_set_tfm(&subreq, tfm); in sm4_xts_crypt() 436 skcipher_request_set_callback(&subreq, in sm4_xts_crypt() [all …]
|
/linux-6.3-rc2/drivers/crypto/vmx/ |
A D | aes_cbc.c | 80 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 D | aes_xts.c | 91 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 D | aes_ctr.c | 99 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-6.3-rc2/fs/9p/ |
A D | vfs_addr.c | 33 static void v9fs_issue_read(struct netfs_io_subrequest *subreq) in v9fs_issue_read() argument 35 struct netfs_io_request *rreq = subreq->rreq; in v9fs_issue_read() 38 loff_t pos = subreq->start + subreq->transferred; in v9fs_issue_read() 39 size_t len = subreq->len - subreq->transferred; in v9fs_issue_read() 48 __set_bit(NETFS_SREQ_CLEAR_TAIL, &subreq->flags); in v9fs_issue_read() 50 netfs_subreq_terminated(subreq, err ?: total, false); in v9fs_issue_read()
|
/linux-6.3-rc2/fs/nfs/ |
A D | write.c | 464 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 …]
|
A D | pagelist.c | 250 nfs_unroll_locks(head, subreq); in nfs_page_group_lock_subreq() 251 nfs_release_request(subreq); in nfs_page_group_lock_subreq() 267 struct nfs_page *subreq; in nfs_page_group_lock_subrequests() local 274 for (subreq = head->wb_this_page; subreq != head; in nfs_page_group_lock_subrequests() 275 subreq = subreq->wb_this_page) { in nfs_page_group_lock_subrequests() 1281 struct nfs_page *subreq; in __nfs_pageio_add_request() local 1286 subreq = req; in __nfs_pageio_add_request() 1292 if (subreq == req) in __nfs_pageio_add_request() 1298 subreq = req; in __nfs_pageio_add_request() 1304 subreq = req; in __nfs_pageio_add_request() [all …]
|
/linux-6.3-rc2/arch/x86/crypto/ |
A D | aesni-intel_glue.c | 387 struct skcipher_request subreq; in cts_cbc_encrypt() local 391 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt() 406 err = cbc_encrypt(&subreq); in cts_cbc_encrypt() 416 subreq.cryptlen); in cts_cbc_encrypt() 443 struct skcipher_request subreq; in cts_cbc_decrypt() local 447 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_decrypt() 462 err = cbc_decrypt(&subreq); in cts_cbc_decrypt() 472 subreq.cryptlen); in cts_cbc_decrypt() 911 struct skcipher_request subreq; in xts_crypt() local 928 skcipher_request_set_callback(&subreq, in xts_crypt() [all …]
|
/linux-6.3-rc2/drivers/crypto/amcc/ |
A D | crypto4xx_alg.c | 273 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 …]
|