Lines Matching refs:bc
87 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local
95 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx()
97 bc->bc_key = key; in bio_crypt_set_ctx()
98 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx()
100 bio->bi_crypt_context = bc; in bio_crypt_set_ctx()
139 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local
141 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance()
142 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance()
149 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument
154 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous()
157 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
163 if ((bc->bc_dun[i] + carry) < carry) in bio_crypt_dun_is_contiguous()