Home
last modified time | relevance | path

Searched refs:ctrlpriv (Results 1 – 8 of 8) sorted by relevance

/linux-6.3-rc2/drivers/crypto/caam/
A Ddebugfs.c40 debugfs_create_file("qi_congested", 0444, ctrlpriv->ctl, in caam_debugfs_qi_init()
56 ctrlpriv->ctl = debugfs_create_dir("ctl", root); in caam_debugfs_init()
82 ctrlpriv->ctl_kek_wrap.data = (__force void *)&ctrlpriv->ctrl->kek[0]; in caam_debugfs_init()
84 debugfs_create_blob("kek", 0444, ctrlpriv->ctl, in caam_debugfs_init()
85 &ctrlpriv->ctl_kek_wrap); in caam_debugfs_init()
87 ctrlpriv->ctl_tkek_wrap.data = (__force void *)&ctrlpriv->ctrl->tkek[0]; in caam_debugfs_init()
89 debugfs_create_blob("tkek", 0444, ctrlpriv->ctl, in caam_debugfs_init()
90 &ctrlpriv->ctl_tkek_wrap); in caam_debugfs_init()
92 ctrlpriv->ctl_tdsk_wrap.data = (__force void *)&ctrlpriv->ctrl->tdsk[0]; in caam_debugfs_init()
94 debugfs_create_blob("tdsk", 0444, ctrlpriv->ctl, in caam_debugfs_init()
[all …]
A Dctrl.c555 clk_bulk_disable_unprepare(ctrlpriv->num_clks, ctrlpriv->clks); in disable_clocks()
570 ret = devm_clk_bulk_get(dev, ctrlpriv->num_clks, ctrlpriv->clks); in init_clocks()
577 ret = clk_bulk_prepare_enable(ctrlpriv->num_clks, ctrlpriv->clks); in init_clocks()
636 ctrlpriv = devm_kzalloc(&pdev->dev, sizeof(*ctrlpriv), GFP_KERNEL); in caam_probe()
637 if (!ctrlpriv) in caam_probe()
825 if ((!ctrlpriv->qi_present) && (!ctrlpriv->total_jobrs)) { in caam_probe()
841 ctrlpriv->blob_present = ctrlpriv->blob_present && in caam_probe()
846 ctrlpriv->blob_present = ctrlpriv->blob_present && in caam_probe()
920 ctrlpriv->rng4_sh_init = ~ctrlpriv->rng4_sh_init & RDSTA_MASK; in caam_probe()
933 ctrlpriv->era); in caam_probe()
[all …]
A Ddebugfs.h11 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
A Dblob_gen.c65 const struct caam_drv_private *ctrlpriv; in caam_process_blob() local
106 ctrlpriv = dev_get_drvdata(jrdev->parent); in caam_process_blob()
107 moo = FIELD_GET(CSTA_MOO, rd_reg32(&ctrlpriv->ctrl->perfmon.status)); in caam_process_blob()
161 struct caam_drv_private *ctrlpriv; in caam_blob_gen_init() local
176 ctrlpriv = dev_get_drvdata(jrdev->parent); in caam_blob_gen_init()
177 if (!ctrlpriv->blob_present) { in caam_blob_gen_init()
A Dqi.c724 struct caam_drv_private *ctrlpriv; in caam_qi_init() local
727 ctrlpriv = dev_get_drvdata(ctrldev); in caam_qi_init()
772 caam_debugfs_qi_init(ctrlpriv); in caam_qi_init()
774 err = devm_add_action_or_reset(qidev, caam_qi_shutdown, ctrlpriv); in caam_qi_init()
A Dcaamalg.c142 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_null_set_sh_desc() local
162 ctrlpriv->era); in aead_null_set_sh_desc()
181 ctrlpriv->era); in aead_null_set_sh_desc()
195 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_set_sh_desc() local
264 false, ctrlpriv->era); in aead_set_sh_desc()
286 nonce, ctx1_iv_off, false, ctrlpriv->era); in aead_set_sh_desc()
310 ctx1_iv_off, false, ctrlpriv->era); in aead_set_sh_desc()
586 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey() local
603 if (ctrlpriv->era >= 6) { in aead_setkey()
856 if (ctrlpriv->era <= 8 || ctx->xts_key_fallback) { in xts_skcipher_setkey()
[all …]
A Dcaamalg_qi.c98 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in aead_set_sh_desc() local
151 ctx1_iv_off, true, ctrlpriv->era); in aead_set_sh_desc()
167 ctrlpriv->era); in aead_set_sh_desc()
184 ctx1_iv_off, true, ctrlpriv->era); in aead_set_sh_desc()
205 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey() local
222 if (ctrlpriv->era >= 6) { in aead_setkey()
741 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in xts_skcipher_setkey() local
754 if (ctrlpriv->era <= 8 || ctx->xts_key_fallback) { in xts_skcipher_setkey()
1425 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in skcipher_crypt() local
1436 if (ctx->fallback && ((ctrlpriv->era <= 8 && xts_skcipher_ivsize(req)) || in skcipher_crypt()
A Dcaamhash.c207 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in ahash_set_sh_desc() local
215 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
226 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
236 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
247 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
430 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in ahash_setkey() local
456 if (ctrlpriv->era >= 6) { in ahash_setkey()

Completed in 24 milliseconds