Lines Matching refs:ctx
90 static void bio_post_read_processing(struct bio_post_read_ctx *ctx);
94 struct bio_post_read_ctx *ctx = in decrypt_work() local
96 struct bio *bio = ctx->bio; in decrypt_work()
99 bio_post_read_processing(ctx); in decrypt_work()
106 struct bio_post_read_ctx *ctx = in verity_work() local
108 struct bio *bio = ctx->bio; in verity_work()
118 mempool_free(ctx, bio_post_read_ctx_pool); in verity_work()
126 static void bio_post_read_processing(struct bio_post_read_ctx *ctx) in bio_post_read_processing() argument
133 switch (++ctx->cur_step) { in bio_post_read_processing()
135 if (ctx->enabled_steps & (1 << STEP_DECRYPT)) { in bio_post_read_processing()
136 INIT_WORK(&ctx->work, decrypt_work); in bio_post_read_processing()
137 fscrypt_enqueue_decrypt_work(&ctx->work); in bio_post_read_processing()
140 ctx->cur_step++; in bio_post_read_processing()
143 if (ctx->enabled_steps & (1 << STEP_VERITY)) { in bio_post_read_processing()
144 INIT_WORK(&ctx->work, verity_work); in bio_post_read_processing()
145 fsverity_enqueue_verify_work(&ctx->work); in bio_post_read_processing()
148 ctx->cur_step++; in bio_post_read_processing()
151 __read_end_io(ctx->bio); in bio_post_read_processing()
175 struct bio_post_read_ctx *ctx = bio->bi_private; in mpage_end_io() local
177 ctx->cur_step = STEP_INITIAL; in mpage_end_io()
178 bio_post_read_processing(ctx); in mpage_end_io()
204 struct bio_post_read_ctx *ctx = in ext4_set_bio_post_read_ctx() local
207 ctx->bio = bio; in ext4_set_bio_post_read_ctx()
208 ctx->enabled_steps = post_read_steps; in ext4_set_bio_post_read_ctx()
209 bio->bi_private = ctx; in ext4_set_bio_post_read_ctx()