Searched refs:dun (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/fs/crypto/ |
H A D | inline_crypt.c | 236 u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE]) in fscrypt_generate_dun() 244 memset(dun, 0, BLK_CRYPTO_MAX_IV_SIZE); in fscrypt_generate_dun() 245 for (i = 0; i < ci->ci_mode->ivsize/sizeof(dun[0]); i++) in fscrypt_generate_dun() 246 dun[i] = le64_to_cpu(iv.dun[i]); in fscrypt_generate_dun() 269 u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE]; in fscrypt_set_bio_crypt_ctx() local 275 fscrypt_generate_dun(ci, first_lblk, dun); in fscrypt_set_bio_crypt_ctx() 276 bio_crypt_set_ctx(bio, ci->ci_enc_key.blk_key, dun, gfp_mask); in fscrypt_set_bio_crypt_ctx() 460 u32 dun; in fscrypt_limit_io_blocks() local 475 dun = ci->ci_hashed_ino + lblk; in fscrypt_limit_io_blocks() 477 return min_t(u64, nr_blocks, (u64)U32_MAX + 1 - dun); in fscrypt_limit_io_blocks()
|
H A D | fscrypt_private.h | 293 __le64 dun[FSCRYPT_MAX_IV_SIZE / sizeof(__le64)]; member
|
/openbmc/linux/drivers/md/ |
H A D | dm-io-rewind.c | 78 static void dm_bio_crypt_dun_decrement(u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE], in dm_bio_crypt_dun_decrement() 84 u64 prev = dun[i]; in dm_bio_crypt_dun_decrement() 86 dun[i] -= dec; in dm_bio_crypt_dun_decrement() 87 if (dun[i] > prev) in dm_bio_crypt_dun_decrement()
|
/openbmc/linux/block/ |
H A D | blk-crypto.c | 92 const u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE], gfp_t gfp_mask) in bio_crypt_set_ctx() 105 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx() 126 void bio_crypt_dun_increment(u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE], in bio_crypt_dun_increment() 132 dun[i] += inc; in bio_crypt_dun_increment() 137 if (dun[i] < inc) in bio_crypt_dun_increment()
|
H A D | blk-crypto-fallback.c | 241 __le64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE]; member 245 static void blk_crypto_dun_to_iv(const u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE], in blk_crypto_dun_to_iv() 251 iv->dun[i] = cpu_to_le64(dun[i]); in blk_crypto_dun_to_iv()
|
H A D | blk-crypto-internal.h | 28 void bio_crypt_dun_increment(u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE],
|
/openbmc/linux/include/linux/ |
H A D | blk-crypto.h | 83 const u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE],
|