Home
last modified time | relevance | path

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

/Linux-v5.10/block/
Dblk-crypto.c207 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
284 &bc_key->crypto_cfg)) in __blk_crypto_bio_prep()
341 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
342 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
343 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
381 if (blk_ksm_crypto_cfg_supported(q->ksm, &key->crypto_cfg)) in blk_crypto_start_using_key()
383 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
402 if (blk_ksm_crypto_cfg_supported(q->ksm, &key->crypto_cfg)) in blk_crypto_evict_key()
Dblk-crypto-fallback.c111 key->crypto_cfg.crypto_mode; in blk_crypto_keyslot_program()
280 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
387 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
492 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
499 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
/Linux-v5.10/fs/crypto/
Dinline_crypt.c71 struct blk_crypto_config crypto_cfg; in fscrypt_select_encryption_impl() local
105 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
106 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
107 crypto_cfg.dun_bytes = fscrypt_get_dun_bytes(ci); in fscrypt_select_encryption_impl()
115 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()
/Linux-v5.10/drivers/scsi/ufs/
Dufshcd-crypto.c58 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()
59 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
/Linux-v5.10/include/linux/
Dblk-crypto.h48 struct blk_crypto_config crypto_cfg; member