Lines Matching refs:cap_idx
62 int cap_idx = -1; in ufshcd_crypto_keyslot_program() local
71 cap_idx = i; in ufshcd_crypto_keyslot_program()
76 if (WARN_ON(cap_idx < 0)) in ufshcd_crypto_keyslot_program()
80 cfg.crypto_cap_idx = cap_idx; in ufshcd_crypto_keyslot_program()
83 if (ccap_array[cap_idx].algorithm_id == UFS_CRYPTO_ALG_AES_XTS) { in ufshcd_crypto_keyslot_program()
158 int cap_idx; in ufshcd_hba_init_crypto_capabilities() local
199 for (cap_idx = 0; cap_idx < hba->crypto_capabilities.num_crypto_cap; in ufshcd_hba_init_crypto_capabilities()
200 cap_idx++) { in ufshcd_hba_init_crypto_capabilities()
201 hba->crypto_cap_array[cap_idx].reg_val = in ufshcd_hba_init_crypto_capabilities()
204 cap_idx * sizeof(__le32))); in ufshcd_hba_init_crypto_capabilities()
206 hba->crypto_cap_array[cap_idx]); in ufshcd_hba_init_crypto_capabilities()
209 hba->crypto_cap_array[cap_idx].sdus_mask * 512; in ufshcd_hba_init_crypto_capabilities()