Lines Matching refs:i
69 size_t i; in bio_crypt_ctx_init() local
87 for (i = 0; i < BLK_ENCRYPTION_MODE_MAX; i++) { in bio_crypt_ctx_init()
88 BUG_ON(blk_crypto_modes[i].keysize > in bio_crypt_ctx_init()
90 BUG_ON(blk_crypto_modes[i].security_strength > in bio_crypt_ctx_init()
91 blk_crypto_modes[i].keysize); in bio_crypt_ctx_init()
92 BUG_ON(blk_crypto_modes[i].ivsize > BLK_CRYPTO_MAX_IV_SIZE); in bio_crypt_ctx_init()
139 int i; in bio_crypt_dun_increment() local
141 for (i = 0; inc && i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in bio_crypt_dun_increment()
142 dun[i] += inc; in bio_crypt_dun_increment()
147 if (dun[i] < inc) in bio_crypt_dun_increment()
170 int i; in bio_crypt_dun_is_contiguous() local
173 for (i = 0; i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { 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()