Lines Matching defs:bc
94 struct bio_crypt_ctx *bc;
102 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask);
104 bc->bc_key = key;
105 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun));
107 bio->bi_crypt_context = bc;
146 struct bio_crypt_ctx *bc = bio->bi_crypt_context;
148 bio_crypt_dun_increment(bc->bc_dun,
149 bytes >> bc->bc_key->data_unit_size_bits);
153 * Returns true if @bc->bc_dun plus @bytes converted to data units is equal to
156 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc,
161 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits;
164 if (bc->bc_dun[i] + carry != next_dun[i])
170 if ((bc->bc_dun[i] + carry) < carry)