Home
last modified time | relevance | path

Searched refs:blk_keyslot_manager (Results 1 – 12 of 12) sorted by relevance

/OK3568_Linux_fs/kernel/include/linux/
H A Dkeyslot-manager.h21 struct blk_keyslot_manager;
40 int (*keyslot_program)(struct blk_keyslot_manager *ksm,
43 int (*keyslot_evict)(struct blk_keyslot_manager *ksm,
46 int (*derive_raw_secret)(struct blk_keyslot_manager *ksm,
52 struct blk_keyslot_manager { struct
108 int blk_ksm_init(struct blk_keyslot_manager *ksm, unsigned int num_slots); argument
110 int devm_blk_ksm_init(struct device *dev, struct blk_keyslot_manager *ksm,
113 blk_status_t blk_ksm_get_slot_for_key(struct blk_keyslot_manager *ksm,
121 bool blk_ksm_crypto_cfg_supported(struct blk_keyslot_manager *ksm,
124 int blk_ksm_evict_key(struct blk_keyslot_manager *ksm,
[all …]
H A Dblkdev.h47 struct blk_keyslot_manager;
491 struct blk_keyslot_manager *ksm;
1857 bool blk_ksm_register(struct blk_keyslot_manager *ksm, struct request_queue *q);
1863 static inline bool blk_ksm_register(struct blk_keyslot_manager *ksm, in blk_ksm_register()
H A Ddevice-mapper.h570 void dm_destroy_keyslot_manager(struct blk_keyslot_manager *ksm);
/OK3568_Linux_fs/kernel/block/
H A Dkeyslot-manager.c44 struct blk_keyslot_manager *ksm;
47 static inline void blk_ksm_hw_enter(struct blk_keyslot_manager *ksm) in blk_ksm_hw_enter()
59 static inline void blk_ksm_hw_exit(struct blk_keyslot_manager *ksm) in blk_ksm_hw_exit()
66 static inline bool blk_ksm_is_passthrough(struct blk_keyslot_manager *ksm) in blk_ksm_is_passthrough()
81 int blk_ksm_init(struct blk_keyslot_manager *ksm, unsigned int num_slots) in blk_ksm_init()
152 int devm_blk_ksm_init(struct device *dev, struct blk_keyslot_manager *ksm, in devm_blk_ksm_init()
165 blk_ksm_hash_bucket_for_key(struct blk_keyslot_manager *ksm, in blk_ksm_hash_bucket_for_key()
173 struct blk_keyslot_manager *ksm = slot->ksm; in blk_ksm_remove_slot_from_lru_list()
182 struct blk_keyslot_manager *ksm, in blk_ksm_find_keyslot()
196 struct blk_keyslot_manager *ksm, in blk_ksm_find_and_grab_keyslot()
[all …]
H A Dblk-crypto-fallback.c80 static struct blk_keyslot_manager blk_crypto_ksm;
105 static int blk_crypto_keyslot_program(struct blk_keyslot_manager *ksm, in blk_crypto_keyslot_program()
128 static int blk_crypto_keyslot_evict(struct blk_keyslot_manager *ksm, in blk_crypto_keyslot_evict()
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dcqhci-crypto.c26 cqhci_host_from_ksm(struct blk_keyslot_manager *ksm) in cqhci_host_from_ksm()
60 static int cqhci_crypto_keyslot_program(struct blk_keyslot_manager *ksm, in cqhci_crypto_keyslot_program()
118 static int cqhci_crypto_keyslot_evict(struct blk_keyslot_manager *ksm, in cqhci_crypto_keyslot_evict()
171 struct blk_keyslot_manager *ksm = &mmc->ksm; in cqhci_crypto_init()
/OK3568_Linux_fs/kernel/drivers/scsi/ufs/
H A Dufshcd-crypto.c54 static int ufshcd_crypto_keyslot_program(struct blk_keyslot_manager *ksm, in ufshcd_crypto_keyslot_program()
111 static int ufshcd_crypto_keyslot_evict(struct blk_keyslot_manager *ksm, in ufshcd_crypto_keyslot_evict()
H A Dufshcd.h939 struct blk_keyslot_manager ksm;
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-table.c1220 struct blk_keyslot_manager ksm;
1246 static int dm_keyslot_evict(struct blk_keyslot_manager *ksm, in dm_keyslot_evict()
1308 static int dm_derive_raw_secret(struct blk_keyslot_manager *ksm, in dm_derive_raw_secret()
1355 struct blk_keyslot_manager *parent = data; in device_intersect_crypto_modes()
1356 struct blk_keyslot_manager *child = bdev_get_queue(dev->bdev)->ksm; in device_intersect_crypto_modes()
1362 void dm_destroy_keyslot_manager(struct blk_keyslot_manager *ksm) in dm_destroy_keyslot_manager()
1395 struct blk_keyslot_manager *ksm; in dm_table_construct_keyslot_manager()
1483 void dm_destroy_keyslot_manager(struct blk_keyslot_manager *ksm) in dm_destroy_keyslot_manager()
H A Ddm-core.h174 struct blk_keyslot_manager *ksm;
/OK3568_Linux_fs/kernel/Documentation/block/
H A Dinline-encryption.rst183 A :c:type:``struct blk_keyslot_manager`` should be set up by device drivers in
186 ``blk_keyslot_manager``, while specifying the number of keyslots supported by
193 must fill up after initing the ``blk_keyslot_manager``.
208 ``blk_keyslot_manager`` once it is no longer needed.
/OK3568_Linux_fs/kernel/include/linux/mmc/
H A Dhost.h489 struct blk_keyslot_manager ksm;