Home
last modified time | relevance | path

Searched refs:crypto_cfg (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/block/
Dblk-crypto.c209 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
288 if (__blk_crypto_cfg_supported(profile, &bc_key->crypto_cfg)) in __blk_crypto_bio_prep()
345 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
346 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
347 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
385 if (__blk_crypto_cfg_supported(q->crypto_profile, &key->crypto_cfg)) in blk_crypto_start_using_key()
387 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
406 if (__blk_crypto_cfg_supported(q->crypto_profile, &key->crypto_cfg)) in blk_crypto_evict_key()
Dblk-crypto-fallback.c114 key->crypto_cfg.crypto_mode; in blk_crypto_fallback_keyslot_program()
282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
390 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
496 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
503 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
/linux-6.1.9/fs/crypto/
Dinline_crypt.c99 struct blk_crypto_config crypto_cfg; in fscrypt_select_encryption_impl() local
133 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
134 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
135 crypto_cfg.dun_bytes = fscrypt_get_dun_bytes(ci); in fscrypt_select_encryption_impl()
143 &crypto_cfg)) in fscrypt_select_encryption_impl()
147 fscrypt_log_blk_crypto_impl(ci->ci_mode, devs, num_devs, &crypto_cfg); in fscrypt_select_encryption_impl()
/linux-6.1.9/drivers/mmc/host/
Dcqhci-crypto.c70 &cqhci_crypto_algs[key->crypto_cfg.crypto_mode]; in cqhci_crypto_keyslot_program()
71 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in cqhci_crypto_keyslot_program()
/linux-6.1.9/drivers/ufs/core/
Dufshcd-crypto.c59 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()
60 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
/linux-6.1.9/include/linux/
Dblk-crypto.h48 struct blk_crypto_config crypto_cfg; member