Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/block/
Dblk-crypto-fallback.c264 int data_unit_size; in blk_crypto_fallback_encrypt_bio() local
280 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
309 skcipher_request_set_crypt(ciph_req, &src, &dst, data_unit_size, in blk_crypto_fallback_encrypt_bio()
326 sg_set_page(&src, plaintext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
328 sg_set_page(&dst, ciphertext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
332 for (j = 0; j < enc_bvec->bv_len; j += data_unit_size) { in blk_crypto_fallback_encrypt_bio()
341 src.offset += data_unit_size; in blk_crypto_fallback_encrypt_bio()
342 dst.offset += 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() local
409 skcipher_request_set_crypt(ciph_req, &sg, &sg, data_unit_size, in blk_crypto_fallback_decrypt_bio()
[all …]
Dblk-crypto.c206 const unsigned int data_unit_size = in bio_crypt_check_alignment() local
207 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
212 if (!IS_ALIGNED(bv.bv_len | bv.bv_offset, data_unit_size)) in bio_crypt_check_alignment()
322 unsigned int data_unit_size) in blk_crypto_init_key() argument
338 if (!is_power_of_2(data_unit_size)) in blk_crypto_init_key()
343 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
344 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key()
Dkeyslot-manager.c301 cfg->data_unit_size)) in blk_ksm_crypto_cfg_supported()
/kernel/linux/linux-5.10/include/linux/
Dblk-crypto.h31 unsigned int data_unit_size; member
95 unsigned int data_unit_size);
Dqcom_scm.h105 u32 data_unit_size);
165 u32 data_unit_size) { return -ENODEV; } in qcom_scm_ice_set_key() argument
/kernel/linux/linux-5.10/drivers/scsi/ufs/
Dufshcd-crypto.c59 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
78 cfg.data_unit_size = data_unit_mask; in ufshcd_crypto_keyslot_program()
Dufs-qcom-ice.c242 cfg->data_unit_size); in ufs_qcom_ice_program_key()
Dufshci.h342 u8 data_unit_size; member
/kernel/linux/linux-5.10/fs/crypto/
Dinline_crypt.c106 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
/kernel/linux/linux-5.10/drivers/firmware/
Dqcom_scm.c1009 enum qcom_scm_ice_cipher cipher, u32 data_unit_size) in qcom_scm_ice_set_key() argument
1020 .args[4] = data_unit_size, in qcom_scm_ice_set_key()