• Home
  • Raw
  • Download

Lines Matching refs:ctx

95 static void bio_post_read_processing(struct bio_post_read_ctx *ctx);
99 struct bio_post_read_ctx *ctx = in decrypt_work() local
102 fscrypt_decrypt_bio(ctx->bio); in decrypt_work()
104 bio_post_read_processing(ctx); in decrypt_work()
109 struct bio_post_read_ctx *ctx = in verity_work() local
111 struct bio *bio = ctx->bio; in verity_work()
121 mempool_free(ctx, bio_post_read_ctx_pool); in verity_work()
129 static void bio_post_read_processing(struct bio_post_read_ctx *ctx) in bio_post_read_processing() argument
136 switch (++ctx->cur_step) { in bio_post_read_processing()
138 if (ctx->enabled_steps & (1 << STEP_DECRYPT)) { in bio_post_read_processing()
139 INIT_WORK(&ctx->work, decrypt_work); in bio_post_read_processing()
140 fscrypt_enqueue_decrypt_work(&ctx->work); in bio_post_read_processing()
143 ctx->cur_step++; in bio_post_read_processing()
146 if (ctx->enabled_steps & (1 << STEP_VERITY)) { in bio_post_read_processing()
147 INIT_WORK(&ctx->work, verity_work); in bio_post_read_processing()
148 fsverity_enqueue_verify_work(&ctx->work); in bio_post_read_processing()
151 ctx->cur_step++; in bio_post_read_processing()
154 __read_end_io(ctx->bio); in bio_post_read_processing()
192 struct bio_post_read_ctx *ctx = bio->bi_private; in mpage_end_io() local
194 ctx->cur_step = STEP_INITIAL; in mpage_end_io()
195 bio_post_read_processing(ctx); in mpage_end_io()
221 struct bio_post_read_ctx *ctx = in ext4_set_bio_post_read_ctx() local
224 ctx->bio = bio; in ext4_set_bio_post_read_ctx()
225 ctx->enabled_steps = post_read_steps; in ext4_set_bio_post_read_ctx()
226 bio->bi_private = ctx; in ext4_set_bio_post_read_ctx()