#include <ufs/ufshcd.h>
#include "ufshcd-crypto.h"
static const struct ufs_crypto_alg_entry { … } ufs_crypto_algs[BLK_ENCRYPTION_MODE_MAX] = …;
static int ufshcd_program_key(struct ufs_hba *hba,
const union ufs_crypto_cfg_entry *cfg, int slot)
{ … }
static int ufshcd_crypto_keyslot_program(struct blk_crypto_profile *profile,
const struct blk_crypto_key *key,
unsigned int slot)
{ … }
static int ufshcd_crypto_keyslot_evict(struct blk_crypto_profile *profile,
const struct blk_crypto_key *key,
unsigned int slot)
{ … }
bool ufshcd_crypto_enable(struct ufs_hba *hba)
{ … }
static const struct blk_crypto_ll_ops ufshcd_crypto_ops = …;
static enum blk_crypto_mode_num
ufshcd_find_blk_crypto_mode(union ufs_crypto_cap_entry cap)
{ … }
int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba)
{ … }
void ufshcd_init_crypto(struct ufs_hba *hba)
{ … }
void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q)
{ … }