Lines Matching refs:jrdev
67 struct device *jrdev = data; in caam_jr_crypto_engine_exit() local
68 struct caam_drv_private_jr *jrpriv = dev_get_drvdata(jrdev); in caam_jr_crypto_engine_exit()
132 struct device *jrdev; in caam_jr_remove() local
135 jrdev = &pdev->dev; in caam_jr_remove()
136 jrpriv = dev_get_drvdata(jrdev); in caam_jr_remove()
139 caam_rng_exit(jrdev->parent); in caam_jr_remove()
145 dev_err(jrdev, "Device is busy\n"); in caam_jr_remove()
158 ret = caam_jr_shutdown(jrdev); in caam_jr_remove()
160 dev_err(jrdev, "Failed to shut down job ring\n"); in caam_jr_remove()
510 struct device *jrdev; in caam_jr_probe() local
518 jrdev = &pdev->dev; in caam_jr_probe()
519 jrpriv = devm_kzalloc(jrdev, sizeof(*jrpriv), GFP_KERNEL); in caam_jr_probe()
523 dev_set_drvdata(jrdev, jrpriv); in caam_jr_probe()
533 dev_err(jrdev, "platform_get_resource() failed\n"); in caam_jr_probe()
537 ctrl = devm_ioremap(jrdev, r->start, resource_size(r)); in caam_jr_probe()
539 dev_err(jrdev, "devm_ioremap() failed\n"); in caam_jr_probe()
545 error = dma_set_mask_and_coherent(jrdev, caam_get_dma_mask(jrdev)); in caam_jr_probe()
547 dev_err(jrdev, "dma_set_mask_and_coherent failed (%d)\n", in caam_jr_probe()
553 jrpriv->engine = crypto_engine_alloc_init(jrdev, false); in caam_jr_probe()
555 dev_err(jrdev, "Could not init crypto-engine\n"); in caam_jr_probe()
559 error = devm_add_action_or_reset(jrdev, caam_jr_crypto_engine_exit, in caam_jr_probe()
560 jrdev); in caam_jr_probe()
567 dev_err(jrdev, "Could not start crypto-engine\n"); in caam_jr_probe()
574 dev_err(jrdev, "irq_of_parse_and_map failed\n"); in caam_jr_probe()
578 error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping, in caam_jr_probe()
584 error = caam_jr_init(jrdev); /* now turn on hardware */ in caam_jr_probe()
588 jrpriv->dev = jrdev; in caam_jr_probe()
595 register_algs(jrpriv, jrdev->parent); in caam_jr_probe()