Searched refs:crypto_cfg (Results 1 – 8 of 8) sorted by relevance
226 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()304 &bc_key->crypto_cfg)) in __blk_crypto_bio_prep()374 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()375 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()376 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()377 blk_key->crypto_cfg.key_type = key_type; in blk_crypto_init_key()426 if (blk_crypto_config_supported_natively(bdev, &key->crypto_cfg)) in blk_crypto_start_using_key()428 if (key->crypto_cfg.key_type != BLK_CRYPTO_KEY_TYPE_RAW) { in blk_crypto_start_using_key()432 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()456 if (blk_crypto_config_supported_natively(bdev, &key->crypto_cfg)) in blk_crypto_evict_key()
114 key->crypto_cfg.crypto_mode; in blk_crypto_fallback_keyslot_program()283 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()391 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()497 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()504 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
96 struct blk_crypto_config crypto_cfg; in fscrypt_select_encryption_impl() local130 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()131 crypto_cfg.data_unit_size = 1U << ci->ci_data_unit_bits; in fscrypt_select_encryption_impl()132 crypto_cfg.dun_bytes = fscrypt_get_dun_bytes(ci); in fscrypt_select_encryption_impl()133 crypto_cfg.key_type = BLK_CRYPTO_KEY_TYPE_RAW; in fscrypt_select_encryption_impl()140 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()144 fscrypt_log_blk_crypto_impl(ci->ci_mode, devs, num_devs, &crypto_cfg); in fscrypt_select_encryption_impl()
50 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()51 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
63 &cqhci_crypto_algs[key->crypto_cfg.crypto_mode]; in cqhci_crypto_keyslot_program()64 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in cqhci_crypto_keyslot_program()
1966 if (key->crypto_cfg.crypto_mode != BLK_ENCRYPTION_MODE_AES_256_XTS) in sdhci_msm_ice_keyslot_program()1973 key->crypto_cfg.data_unit_size / 512, in sdhci_msm_ice_keyslot_program()
102 struct blk_crypto_config crypto_cfg; member
225 if (key->crypto_cfg.crypto_mode != BLK_ENCRYPTION_MODE_AES_256_XTS) in ufs_qcom_ice_keyslot_program()233 key->crypto_cfg.data_unit_size / 512, in ufs_qcom_ice_keyslot_program()