Lines Matching refs:bc
94 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local
102 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx()
104 bc->bc_key = key; in bio_crypt_set_ctx()
105 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx()
107 bio->bi_crypt_context = bc; in bio_crypt_set_ctx()
146 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local
148 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance()
149 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance()
156 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument
161 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous()
164 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
170 if ((bc->bc_dun[i] + carry) < carry) in bio_crypt_dun_is_contiguous()