/linux-5.19.10/drivers/crypto/caam/ |
D | debugfs.c | 38 void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) in caam_debugfs_qi_init() argument 40 debugfs_create_file("qi_congested", 0444, ctrlpriv->ctl, in caam_debugfs_qi_init() 45 void caam_debugfs_init(struct caam_drv_private *ctrlpriv, struct dentry *root) in caam_debugfs_init() argument 54 perfmon = (struct caam_perfmon __force *)&ctrlpriv->ctrl->perfmon; in caam_debugfs_init() 56 ctrlpriv->ctl = debugfs_create_dir("ctl", root); in caam_debugfs_init() 58 debugfs_create_file("rq_dequeued", 0444, ctrlpriv->ctl, in caam_debugfs_init() 60 debugfs_create_file("ob_rq_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init() 62 debugfs_create_file("ib_rq_decrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init() 64 debugfs_create_file("ob_bytes_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init() 66 debugfs_create_file("ob_bytes_protected", 0444, ctrlpriv->ctl, in caam_debugfs_init() [all …]
|
D | ctrl.c | 95 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctrldev); in run_descriptor_deco0() local 96 struct caam_ctrl __iomem *ctrl = ctrlpriv->ctrl; in run_descriptor_deco0() 97 struct caam_deco __iomem *deco = ctrlpriv->deco; in run_descriptor_deco0() 103 if (ctrlpriv->virt_en == 1 || in run_descriptor_deco0() 151 if (ctrlpriv->era < 10) in run_descriptor_deco0() 172 if (ctrlpriv->virt_en == 1) in run_descriptor_deco0() 241 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctrldev); in devm_deinstantiate_rng() local 247 if (ctrlpriv->rng4_sh_init) in devm_deinstantiate_rng() 248 deinstantiate_rng(ctrldev, ctrlpriv->rng4_sh_init); in devm_deinstantiate_rng() 273 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctrldev); in instantiate_rng() local [all …]
|
D | debugfs.h | 11 void caam_debugfs_init(struct caam_drv_private *ctrlpriv, struct dentry *root); 13 static inline void caam_debugfs_init(struct caam_drv_private *ctrlpriv, in caam_debugfs_init() argument 20 void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv); 23 static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {} in caam_debugfs_qi_init() argument
|
D | blob_gen.c | 152 struct caam_drv_private *ctrlpriv; in caam_blob_gen_init() local 167 ctrlpriv = dev_get_drvdata(jrdev->parent); in caam_blob_gen_init() 168 if (!ctrlpriv->blob_present) { in caam_blob_gen_init()
|
D | qi.c | 718 struct caam_drv_private *ctrlpriv; in caam_qi_init() local 721 ctrlpriv = dev_get_drvdata(ctrldev); in caam_qi_init() 766 caam_debugfs_qi_init(ctrlpriv); in caam_qi_init() 768 err = devm_add_action_or_reset(qidev, caam_qi_shutdown, ctrlpriv); in caam_qi_init()
|
D | caamalg.c | 136 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_null_set_sh_desc() local 156 ctrlpriv->era); in aead_null_set_sh_desc() 175 ctrlpriv->era); in aead_null_set_sh_desc() 189 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_set_sh_desc() local 258 false, ctrlpriv->era); in aead_set_sh_desc() 280 nonce, ctx1_iv_off, false, ctrlpriv->era); in aead_set_sh_desc() 304 ctx1_iv_off, false, ctrlpriv->era); in aead_set_sh_desc() 580 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey() local 597 if (ctrlpriv->era >= 6) { in aead_setkey() 837 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in xts_skcipher_setkey() local [all …]
|
D | caamalg_qi.c | 93 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in aead_set_sh_desc() local 146 ctx1_iv_off, true, ctrlpriv->era); in aead_set_sh_desc() 162 ctrlpriv->era); in aead_set_sh_desc() 179 ctx1_iv_off, true, ctrlpriv->era); in aead_set_sh_desc() 200 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey() local 217 if (ctrlpriv->era >= 6) { in aead_setkey() 736 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in xts_skcipher_setkey() local 749 if (ctrlpriv->era <= 8 || ctx->xts_key_fallback) { in xts_skcipher_setkey() 1409 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in skcipher_crypt() local 1420 if (ctx->fallback && ((ctrlpriv->era <= 8 && xts_skcipher_ivsize(req)) || in skcipher_crypt()
|
D | caamhash.c | 205 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in ahash_set_sh_desc() local 213 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc() 224 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc() 234 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc() 245 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc() 428 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in ahash_setkey() local 448 if (ctrlpriv->era >= 6) { in ahash_setkey()
|