| /linux-6.15/include/linux/ |
| H A D | blk-crypto-profile.h | 12 struct blk_crypto_profile; 37 int (*keyslot_program)(struct blk_crypto_profile *profile, 57 int (*keyslot_evict)(struct blk_crypto_profile *profile, 85 int (*import_key)(struct blk_crypto_profile *profile, 99 int (*generate_key)(struct blk_crypto_profile *profile, 113 int (*prepare_key)(struct blk_crypto_profile *profile, 126 struct blk_crypto_profile { struct 199 struct blk_crypto_profile *profile, 220 const struct blk_crypto_profile *child); 223 const struct blk_crypto_profile *reference); [all …]
|
| H A D | blkdev.h | 43 struct blk_crypto_profile; 537 struct blk_crypto_profile *crypto_profile; 1546 bool blk_crypto_register(struct blk_crypto_profile *profile, 1551 static inline bool blk_crypto_register(struct blk_crypto_profile *profile, in blk_crypto_register()
|
| H A D | device-mapper.h | 637 void dm_destroy_crypto_profile(struct blk_crypto_profile *profile);
|
| /linux-6.15/block/ |
| H A D | blk-crypto-profile.c | 42 struct blk_crypto_profile *profile; 74 int blk_crypto_profile_init(struct blk_crypto_profile *profile, in blk_crypto_profile_init() 156 struct blk_crypto_profile *profile, in devm_blk_crypto_profile_init() 181 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_remove_slot_from_lru_list() 190 blk_crypto_find_keyslot(struct blk_crypto_profile *profile, in blk_crypto_find_keyslot() 327 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_put_keyslot() 455 bool blk_crypto_register(struct blk_crypto_profile *profile, in blk_crypto_register() 488 struct blk_crypto_profile *profile = in blk_crypto_derive_sw_secret() 573 const struct blk_crypto_profile *child) in blk_crypto_intersect_capabilities() 602 const struct blk_crypto_profile *reference) in blk_crypto_has_capabilities() [all …]
|
| H A D | blk-crypto-sysfs.c | 15 struct blk_crypto_profile *profile; 20 ssize_t (*show)(struct blk_crypto_profile *profile, 24 static struct blk_crypto_profile *kobj_to_crypto_profile(struct kobject *kobj) in kobj_to_crypto_profile() 34 static ssize_t hw_wrapped_keys_show(struct blk_crypto_profile *profile, in hw_wrapped_keys_show() 41 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() 47 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() 53 static ssize_t raw_keys_show(struct blk_crypto_profile *profile, in raw_keys_show() 71 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_is_visible() 107 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible() 116 static ssize_t blk_crypto_mode_show(struct blk_crypto_profile *profile, in blk_crypto_mode_show() [all …]
|
| H A D | blk-crypto-internal.h | 74 blk_status_t blk_crypto_get_keyslot(struct blk_crypto_profile *profile, 80 int __blk_crypto_evict_key(struct blk_crypto_profile *profile, 83 bool __blk_crypto_cfg_supported(struct blk_crypto_profile *profile,
|
| H A D | blk-crypto.c | 473 static int blk_crypto_ioctl_import_key(struct blk_crypto_profile *profile, in blk_crypto_ioctl_import_key() 517 static int blk_crypto_ioctl_generate_key(struct blk_crypto_profile *profile, in blk_crypto_ioctl_generate_key() 551 static int blk_crypto_ioctl_prepare_key(struct blk_crypto_profile *profile, in blk_crypto_ioctl_prepare_key() 598 struct blk_crypto_profile *profile = in blk_crypto_ioctl()
|
| H A D | blk-crypto-fallback.c | 81 static struct blk_crypto_profile *blk_crypto_fallback_profile; 108 blk_crypto_fallback_keyslot_program(struct blk_crypto_profile *profile, in blk_crypto_fallback_keyslot_program() 131 static int blk_crypto_fallback_keyslot_evict(struct blk_crypto_profile *profile, in blk_crypto_fallback_keyslot_evict()
|
| /linux-6.15/drivers/mmc/host/ |
| H A D | cqhci-crypto.c | 26 cqhci_host_from_crypto_profile(struct blk_crypto_profile *profile) in cqhci_host_from_crypto_profile() 54 static int cqhci_crypto_keyslot_program(struct blk_crypto_profile *profile, in cqhci_crypto_keyslot_program() 112 static int cqhci_crypto_keyslot_evict(struct blk_crypto_profile *profile, in cqhci_crypto_keyslot_evict() 165 struct blk_crypto_profile *profile = &mmc->crypto_profile; in cqhci_crypto_init()
|
| H A D | sdhci-msm.c | 1865 struct blk_crypto_profile *profile = &mmc->crypto_profile; in sdhci_msm_ice_init() 1944 sdhci_msm_host_from_crypto_profile(struct blk_crypto_profile *profile) in sdhci_msm_host_from_crypto_profile() 1958 static int sdhci_msm_ice_keyslot_program(struct blk_crypto_profile *profile, in sdhci_msm_ice_keyslot_program() 1977 static int sdhci_msm_ice_keyslot_evict(struct blk_crypto_profile *profile, in sdhci_msm_ice_keyslot_evict()
|
| /linux-6.15/drivers/ufs/core/ |
| H A D | ufshcd-crypto.c | 43 static int ufshcd_crypto_keyslot_program(struct blk_crypto_profile *profile, in ufshcd_crypto_keyslot_program() 88 static int ufshcd_crypto_keyslot_evict(struct blk_crypto_profile *profile, in ufshcd_crypto_keyslot_evict()
|
| /linux-6.15/Documentation/block/ |
| H A D | inline-encryption.rst | 94 We also introduce ``struct blk_crypto_profile`` to contain all generic inline 99 wants to support inline encryption will construct a blk_crypto_profile, then 102 The blk_crypto_profile also manages the hardware's keyslots, when applicable. 107 Specifically, for each keyslot, the block layer (via the blk_crypto_profile) 166 blk-crypto-fallback also defines its own blk_crypto_profile and has its own 232 blk_crypto_profile in the request_queue of its device. To do this, it first 237 blk_crypto_profile, e.g. ``modes_supported`` and ``max_dun_bytes_supported``. 240 blk_crypto_profile to tell upper layers how to control the inline encryption 245 Once the driver registers a blk_crypto_profile with a request_queue, I/O 248 the blk_crypto_profile, so drivers don't need to worry about handling [all …]
|
| /linux-6.15/drivers/md/ |
| H A D | dm-table.c | 1149 struct blk_crypto_profile profile; 1166 static int dm_keyslot_evict(struct blk_crypto_profile *profile, in dm_keyslot_evict() 1196 struct blk_crypto_profile *parent = data; in device_intersect_crypto_capabilities() 1197 struct blk_crypto_profile *child = in device_intersect_crypto_capabilities() 1204 void dm_destroy_crypto_profile(struct blk_crypto_profile *profile) in dm_destroy_crypto_profile() 1235 struct blk_crypto_profile *profile; in dm_table_construct_crypto_profile() 1324 void dm_destroy_crypto_profile(struct blk_crypto_profile *profile) in dm_destroy_crypto_profile()
|
| H A D | dm-core.h | 229 struct blk_crypto_profile *crypto_profile;
|
| /linux-6.15/include/linux/mmc/ |
| H A D | host.h | 560 struct blk_crypto_profile crypto_profile; 595 mmc_from_crypto_profile(struct blk_crypto_profile *profile) in mmc_from_crypto_profile()
|
| /linux-6.15/include/ufs/ |
| H A D | ufshcd.h | 1114 struct blk_crypto_profile crypto_profile; 1224 ufs_hba_from_crypto_profile(struct blk_crypto_profile *profile) in ufs_hba_from_crypto_profile()
|
| /linux-6.15/drivers/ufs/host/ |
| H A D | ufs-qcom.c | 146 struct blk_crypto_profile *profile = &hba->crypto_profile; in ufs_qcom_ice_init() 216 static int ufs_qcom_ice_keyslot_program(struct blk_crypto_profile *profile, in ufs_qcom_ice_keyslot_program() 239 static int ufs_qcom_ice_keyslot_evict(struct blk_crypto_profile *profile, in ufs_qcom_ice_keyslot_evict()
|
| H A D | ufs-exynos.c | 1285 struct blk_crypto_profile *profile = &hba->crypto_profile; in exynos_ufs_fmp_init()
|