Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/block/
H A Dblk-crypto.c208 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
285 &bc_key->crypto_cfg)) in __blk_crypto_bio_prep()
357 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
358 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
359 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
360 blk_key->crypto_cfg.is_hw_wrapped = is_hw_wrapped; in blk_crypto_init_key()
401 if (blk_ksm_crypto_cfg_supported(q->ksm, &key->crypto_cfg)) in blk_crypto_start_using_key()
403 if (key->crypto_cfg.is_hw_wrapped) { in blk_crypto_start_using_key()
407 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
427 if (blk_ksm_crypto_cfg_supported(q->ksm, &key->crypto_cfg)) in blk_crypto_evict_key()
H A Dblk-crypto-fallback.c111 key->crypto_cfg.crypto_mode; in blk_crypto_keyslot_program()
282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
389 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
494 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
501 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dinline_crypt.c74 struct blk_crypto_config crypto_cfg; in fscrypt_select_encryption_impl() local
108 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
109 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
110 crypto_cfg.dun_bytes = fscrypt_get_dun_bytes(ci); in fscrypt_select_encryption_impl()
111 crypto_cfg.is_hw_wrapped = is_hw_wrapped_key; in fscrypt_select_encryption_impl()
119 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dcqhci-crypto.c69 &cqhci_crypto_algs[key->crypto_cfg.crypto_mode]; in cqhci_crypto_keyslot_program()
70 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in cqhci_crypto_keyslot_program()
/OK3568_Linux_fs/kernel/drivers/scsi/ufs/
H A Dufshcd-crypto.c61 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()
62 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
/OK3568_Linux_fs/kernel/include/linux/
H A Dblk-crypto.h53 struct blk_crypto_config crypto_cfg; member