Lines Matching refs:jrdev

69 	struct device *jrdev = data;  in caam_jr_crypto_engine_exit()  local
70 struct caam_drv_private_jr *jrpriv = dev_get_drvdata(jrdev); in caam_jr_crypto_engine_exit()
186 struct device *jrdev; in caam_jr_remove() local
189 jrdev = &pdev->dev; in caam_jr_remove()
190 jrpriv = dev_get_drvdata(jrdev); in caam_jr_remove()
193 caam_rng_exit(jrdev->parent); in caam_jr_remove()
199 dev_err(jrdev, "Device is busy\n"); in caam_jr_remove()
212 ret = caam_jr_shutdown(jrdev); in caam_jr_remove()
214 dev_err(jrdev, "Failed to shut down job ring\n"); in caam_jr_remove()
593 struct device *jrdev; in caam_jr_probe() local
601 jrdev = &pdev->dev; in caam_jr_probe()
602 jrpriv = devm_kzalloc(jrdev, sizeof(*jrpriv), GFP_KERNEL); in caam_jr_probe()
606 dev_set_drvdata(jrdev, jrpriv); in caam_jr_probe()
616 dev_err(jrdev, "platform_get_resource() failed\n"); in caam_jr_probe()
620 ctrl = devm_ioremap(jrdev, r->start, resource_size(r)); in caam_jr_probe()
622 dev_err(jrdev, "devm_ioremap() failed\n"); in caam_jr_probe()
628 error = dma_set_mask_and_coherent(jrdev, caam_get_dma_mask(jrdev)); in caam_jr_probe()
630 dev_err(jrdev, "dma_set_mask_and_coherent failed (%d)\n", in caam_jr_probe()
636 jrpriv->engine = crypto_engine_alloc_init_and_set(jrdev, true, NULL, in caam_jr_probe()
640 dev_err(jrdev, "Could not init crypto-engine\n"); in caam_jr_probe()
644 error = devm_add_action_or_reset(jrdev, caam_jr_crypto_engine_exit, in caam_jr_probe()
645 jrdev); in caam_jr_probe()
652 dev_err(jrdev, "Could not start crypto-engine\n"); in caam_jr_probe()
659 dev_err(jrdev, "irq_of_parse_and_map failed\n"); in caam_jr_probe()
663 error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping, in caam_jr_probe()
669 error = caam_jr_init(jrdev); /* now turn on hardware */ in caam_jr_probe()
673 jrpriv->dev = jrdev; in caam_jr_probe()
683 register_algs(jrpriv, jrdev->parent); in caam_jr_probe()