Lines Matching defs:bc
85 struct bio_crypt_ctx *bc;
93 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask);
95 bc->bc_key = key;
96 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun));
98 bio->bi_crypt_context = bc;
138 struct bio_crypt_ctx *bc = bio->bi_crypt_context;
140 bio_crypt_dun_increment(bc->bc_dun,
141 bytes >> bc->bc_key->data_unit_size_bits);
145 * Returns true if @bc->bc_dun plus @bytes converted to data units is equal to
148 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc,
153 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits;
156 if (bc->bc_dun[i] + carry != next_dun[i])
162 if ((bc->bc_dun[i] + carry) < carry)