Lines Matching refs:bc
104 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local
112 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx()
114 bc->bc_key = key; in bio_crypt_set_ctx()
115 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx()
117 bio->bi_crypt_context = bc; in bio_crypt_set_ctx()
156 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local
158 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance()
159 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance()
166 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument
171 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous()
174 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
180 if ((bc->bc_dun[i] + carry) < carry) in bio_crypt_dun_is_contiguous()