Home
last modified time | relevance | path

Searched refs:ksm (Results 1 – 7 of 7) sorted by relevance

/drivers/scsi/ufs/
Dufshcd-crypto.c54 static int ufshcd_crypto_keyslot_program(struct blk_keyslot_manager *ksm, in ufshcd_crypto_keyslot_program() argument
58 struct ufs_hba *hba = container_of(ksm, struct ufs_hba, ksm); in ufshcd_crypto_keyslot_program()
111 static int ufshcd_crypto_keyslot_evict(struct blk_keyslot_manager *ksm, in ufshcd_crypto_keyslot_evict() argument
115 struct ufs_hba *hba = container_of(ksm, struct ufs_hba, ksm); in ufshcd_crypto_keyslot_evict()
126 if (hba->ksm.num_slots) { in ufshcd_crypto_enable()
131 blk_ksm_reprogram_all_keys(&hba->ksm); in ufshcd_crypto_enable()
198 err = devm_blk_ksm_init(hba->dev, &hba->ksm, in ufshcd_hba_init_crypto_capabilities()
203 hba->ksm.ksm_ll_ops = ufshcd_ksm_ops; in ufshcd_hba_init_crypto_capabilities()
205 hba->ksm.max_dun_bytes_supported = 8; in ufshcd_hba_init_crypto_capabilities()
206 hba->ksm.features = BLK_CRYPTO_FEATURE_STANDARD_KEYS; in ufshcd_hba_init_crypto_capabilities()
[all …]
Dufshcd.h981 struct blk_keyslot_manager ksm; member
/drivers/mmc/host/
Dcqhci-crypto.c26 cqhci_host_from_ksm(struct blk_keyslot_manager *ksm) in cqhci_host_from_ksm() argument
28 struct mmc_host *mmc = container_of(ksm, struct mmc_host, ksm); in cqhci_host_from_ksm()
60 static int cqhci_crypto_keyslot_program(struct blk_keyslot_manager *ksm, in cqhci_crypto_keyslot_program() argument
65 struct cqhci_host *cq_host = cqhci_host_from_ksm(ksm); in cqhci_crypto_keyslot_program()
118 static int cqhci_crypto_keyslot_evict(struct blk_keyslot_manager *ksm, in cqhci_crypto_keyslot_evict() argument
122 struct cqhci_host *cq_host = cqhci_host_from_ksm(ksm); in cqhci_crypto_keyslot_evict()
171 struct blk_keyslot_manager *ksm = &mmc->ksm; in cqhci_crypto_init() local
202 err = devm_blk_ksm_init(dev, ksm, num_keyslots); in cqhci_crypto_init()
206 ksm->ksm_ll_ops = cqhci_ksm_ops; in cqhci_crypto_init()
207 ksm->dev = dev; in cqhci_crypto_init()
[all …]
/drivers/md/
Ddm-table.c1195 struct blk_keyslot_manager ksm; member
1212 static int dm_keyslot_evict(struct blk_keyslot_manager *ksm, in dm_keyslot_evict() argument
1215 struct dm_keyslot_manager *dksm = container_of(ksm, in dm_keyslot_evict()
1217 ksm); in dm_keyslot_evict()
1256 if (!q->ksm) { in dm_derive_raw_secret_callback()
1261 args->err = blk_ksm_derive_raw_secret(q->ksm, args->wrapped_key, in dm_derive_raw_secret_callback()
1274 static int dm_derive_raw_secret(struct blk_keyslot_manager *ksm, in dm_derive_raw_secret() argument
1279 struct dm_keyslot_manager *dksm = container_of(ksm, in dm_derive_raw_secret()
1281 ksm); in dm_derive_raw_secret()
1322 struct blk_keyslot_manager *child = bdev_get_queue(dev->bdev)->ksm; in device_intersect_crypto_modes()
[all …]
Ddm-core.h207 struct blk_keyslot_manager *ksm; member
Ddm.c1680 dm_destroy_keyslot_manager(q->ksm); in dm_queue_destroy_keyslot_manager()
/drivers/mmc/core/
Dcrypto.c19 blk_ksm_reprogram_all_keys(&host->ksm); in mmc_crypto_set_initial_state()
25 blk_ksm_register(&host->ksm, q); in mmc_crypto_setup_queue()