Home
last modified time | relevance | path

Searched refs:crypto_mode (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/block/
H A Dblk-crypto-fallback.c76 enum blk_crypto_mode_num crypto_mode; member
93 enum blk_crypto_mode_num crypto_mode = slotp->crypto_mode; in blk_crypto_evict_keyslot() local
96 WARN_ON(slotp->crypto_mode == BLK_ENCRYPTION_MODE_INVALID); in blk_crypto_evict_keyslot()
99 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_evict_keyslot()
100 blk_crypto_modes[crypto_mode].keysize); in blk_crypto_evict_keyslot()
102 slotp->crypto_mode = BLK_ENCRYPTION_MODE_INVALID; in blk_crypto_evict_keyslot()
110 const enum blk_crypto_mode_num crypto_mode = in blk_crypto_keyslot_program() local
111 key->crypto_cfg.crypto_mode; in blk_crypto_keyslot_program()
114 if (crypto_mode != slotp->crypto_mode && in blk_crypto_keyslot_program()
115 slotp->crypto_mode != BLK_ENCRYPTION_MODE_INVALID) in blk_crypto_keyslot_program()
[all …]
H A Dblk-crypto.c328 enum blk_crypto_mode_num crypto_mode, in blk_crypto_init_key() argument
336 if (crypto_mode >= ARRAY_SIZE(blk_crypto_modes)) in blk_crypto_init_key()
341 mode = &blk_crypto_modes[crypto_mode]; in blk_crypto_init_key()
357 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
407 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
H A Dkeyslot-manager.c338 if (!(ksm->crypto_modes_supported[cfg->crypto_mode] & in blk_ksm_crypto_cfg_supported()
/OK3568_Linux_fs/kernel/include/linux/
H A Dblk-crypto.h34 enum blk_crypto_mode_num crypto_mode; member
100 enum blk_crypto_mode_num crypto_mode,
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dinline_crypt.c108 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
138 enum blk_crypto_mode_num crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_prepare_inline_crypt_key() local
156 is_hw_wrapped, crypto_mode, in fscrypt_prepare_inline_crypt_key()
/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()
/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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath11k/
H A Dcore.c22 module_param_named(crypto_mode, ath11k_crypto_mode, uint, 0644);
23 MODULE_PARM_DESC(crypto_mode, "crypto mode: 0-hardware, 1-software");