Lines Matching refs:ksm
54 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()
207 hba->ksm.dev = hba->dev; in ufshcd_hba_init_crypto_capabilities()
222 hba->ksm.crypto_modes_supported[blk_mode_num] |= in ufshcd_hba_init_crypto_capabilities()
248 for (slot = 0; slot < hba->ksm.num_slots; slot++) in ufshcd_init_crypto()
249 hba->ksm.ksm_ll_ops.keyslot_evict(&hba->ksm, NULL, slot); in ufshcd_init_crypto()
256 blk_ksm_register(&hba->ksm, q); in ufshcd_crypto_setup_rq_keyslot_manager()