Home
last modified time | relevance | path

Searched refs:blk_crypto_profile (Results 1 – 17 of 17) sorted by relevance

/linux-6.14.4/include/linux/
Dblk-crypto-profile.h12 struct blk_crypto_profile;
37 int (*keyslot_program)(struct blk_crypto_profile *profile,
57 int (*keyslot_evict)(struct blk_crypto_profile *profile,
70 struct blk_crypto_profile { struct
133 int blk_crypto_profile_init(struct blk_crypto_profile *profile, argument
137 struct blk_crypto_profile *profile,
142 void blk_crypto_reprogram_all_keys(struct blk_crypto_profile *profile);
144 void blk_crypto_profile_destroy(struct blk_crypto_profile *profile);
146 void blk_crypto_intersect_capabilities(struct blk_crypto_profile *parent,
147 const struct blk_crypto_profile *child);
[all …]
Dblkdev.h43 struct blk_crypto_profile;
531 struct blk_crypto_profile *crypto_profile;
1502 bool blk_crypto_register(struct blk_crypto_profile *profile,
1507 static inline bool blk_crypto_register(struct blk_crypto_profile *profile, in blk_crypto_register()
Ddevice-mapper.h637 void dm_destroy_crypto_profile(struct blk_crypto_profile *profile);
/linux-6.14.4/block/
Dblk-crypto-profile.c42 struct blk_crypto_profile *profile;
45 static inline void blk_crypto_hw_enter(struct blk_crypto_profile *profile) in blk_crypto_hw_enter()
57 static inline void blk_crypto_hw_exit(struct blk_crypto_profile *profile) in blk_crypto_hw_exit()
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()
171 blk_crypto_hash_bucket_for_key(struct blk_crypto_profile *profile, in blk_crypto_hash_bucket_for_key()
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()
205 blk_crypto_find_and_grab_keyslot(struct blk_crypto_profile *profile, in blk_crypto_find_and_grab_keyslot()
248 blk_status_t blk_crypto_get_keyslot(struct blk_crypto_profile *profile, in blk_crypto_get_keyslot()
[all …]
Dblk-crypto-sysfs.c15 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 max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show()
40 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show()
72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible()
81 static ssize_t blk_crypto_mode_show(struct blk_crypto_profile *profile, in blk_crypto_mode_show()
104 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_attr_show()
Dblk-crypto-internal.h73 blk_status_t blk_crypto_get_keyslot(struct blk_crypto_profile *profile,
79 int __blk_crypto_evict_key(struct blk_crypto_profile *profile,
82 bool __blk_crypto_cfg_supported(struct blk_crypto_profile *profile,
Dblk-crypto-fallback.c81 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.14.4/drivers/mmc/host/
Dcqhci-crypto.c26 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()
Dsdhci-msm.c1865 struct blk_crypto_profile *profile = &mmc->crypto_profile; in sdhci_msm_ice_init()
1943 sdhci_msm_host_from_crypto_profile(struct blk_crypto_profile *profile) in sdhci_msm_host_from_crypto_profile()
1957 static int sdhci_msm_ice_keyslot_program(struct blk_crypto_profile *profile, in sdhci_msm_ice_keyslot_program()
1976 static int sdhci_msm_ice_keyslot_evict(struct blk_crypto_profile *profile, in sdhci_msm_ice_keyslot_evict()
/linux-6.14.4/Documentation/block/
Dinline-encryption.rst94 We also introduce ``struct blk_crypto_profile`` to contain all generic inline
96 blk_crypto_profile serves as the way that drivers for inline encryption hardware
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
[all …]
/linux-6.14.4/drivers/ufs/core/
Dufshcd-crypto.c43 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.14.4/drivers/md/
Ddm-table.c1153 struct blk_crypto_profile profile;
1170 static int dm_keyslot_evict(struct blk_crypto_profile *profile, in dm_keyslot_evict()
1199 struct blk_crypto_profile *parent = data; in device_intersect_crypto_capabilities()
1200 struct blk_crypto_profile *child = in device_intersect_crypto_capabilities()
1207 void dm_destroy_crypto_profile(struct blk_crypto_profile *profile) in dm_destroy_crypto_profile()
1238 struct blk_crypto_profile *profile; in dm_table_construct_crypto_profile()
1326 void dm_destroy_crypto_profile(struct blk_crypto_profile *profile) in dm_destroy_crypto_profile()
Ddm-core.h229 struct blk_crypto_profile *crypto_profile;
/linux-6.14.4/include/linux/mmc/
Dhost.h560 struct blk_crypto_profile crypto_profile;
595 mmc_from_crypto_profile(struct blk_crypto_profile *profile) in mmc_from_crypto_profile()
/linux-6.14.4/include/ufs/
Dufshcd.h1105 struct blk_crypto_profile crypto_profile;
1211 ufs_hba_from_crypto_profile(struct blk_crypto_profile *profile) in ufs_hba_from_crypto_profile()
/linux-6.14.4/drivers/ufs/host/
Dufs-qcom.c120 struct blk_crypto_profile *profile = &hba->crypto_profile; in ufs_qcom_ice_init()
189 static int ufs_qcom_ice_keyslot_program(struct blk_crypto_profile *profile, in ufs_qcom_ice_keyslot_program()
212 static int ufs_qcom_ice_keyslot_evict(struct blk_crypto_profile *profile, in ufs_qcom_ice_keyslot_evict()
Dufs-exynos.c1280 struct blk_crypto_profile *profile = &hba->crypto_profile; in exynos_ufs_fmp_init()