Home
last modified time | relevance | path

Searched refs:data_unit_size (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/block/
Dblk-crypto-fallback.c266 int data_unit_size; in blk_crypto_fallback_encrypt_bio() local
282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
312 skcipher_request_set_crypt(ciph_req, &src, &dst, data_unit_size, in blk_crypto_fallback_encrypt_bio()
329 sg_set_page(&src, plaintext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
331 sg_set_page(&dst, ciphertext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
335 for (j = 0; j < enc_bvec->bv_len; j += data_unit_size) { in blk_crypto_fallback_encrypt_bio()
344 src.offset += data_unit_size; in blk_crypto_fallback_encrypt_bio()
345 dst.offset += 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() local
413 skcipher_request_set_crypt(ciph_req, &sg, &sg, data_unit_size, in blk_crypto_fallback_decrypt_bio()
[all …]
Dblk-crypto.c208 const unsigned int data_unit_size = in bio_crypt_check_alignment() local
209 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
214 if (!IS_ALIGNED(bv.bv_len | bv.bv_offset, data_unit_size)) in bio_crypt_check_alignment()
326 unsigned int data_unit_size) in blk_crypto_init_key() argument
342 if (!is_power_of_2(data_unit_size)) in blk_crypto_init_key()
347 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
348 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key()
Dblk-crypto-profile.c349 if (!(profile->modes_supported[cfg->crypto_mode] & cfg->data_unit_size)) in __blk_crypto_cfg_supported()
/linux-6.1.9/include/linux/
Dblk-crypto.h31 unsigned int data_unit_size; member
95 unsigned int data_unit_size);
Dqcom_scm.h113 u32 data_unit_size);
/linux-6.1.9/drivers/mmc/host/
Dcqhci-crypto.c71 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in cqhci_crypto_keyslot_program()
89 cfg.data_unit_size = data_unit_mask; in cqhci_crypto_keyslot_program()
Dcqhci.h202 u8 data_unit_size; member
Dsdhci-msm.c2007 cfg->data_unit_size); in sdhci_msm_program_key()
/linux-6.1.9/drivers/ufs/core/
Dufshcd-crypto.c60 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
79 cfg.data_unit_size = data_unit_mask; in ufshcd_crypto_keyslot_program()
/linux-6.1.9/drivers/ufs/host/
Dufs-qcom-ice.c241 cfg->data_unit_size); in ufs_qcom_ice_program_key()
/linux-6.1.9/include/ufs/
Dufshci.h348 u8 data_unit_size; member
/linux-6.1.9/fs/crypto/
Dinline_crypt.c134 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
/linux-6.1.9/drivers/firmware/
Dqcom_scm.c1090 enum qcom_scm_ice_cipher cipher, u32 data_unit_size) in qcom_scm_ice_set_key() argument
1101 .args[4] = data_unit_size, in qcom_scm_ice_set_key()