core_dev 170 drivers/crypto/amcc/crypto4xx_core.c dev->pdr = dma_alloc_coherent(dev->core_dev->device, core_dev 179 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 185 drivers/crypto/amcc/crypto4xx_core.c dev->shadow_sa_pool = dma_alloc_coherent(dev->core_dev->device, core_dev 192 drivers/crypto/amcc/crypto4xx_core.c dev->shadow_sr_pool = dma_alloc_coherent(dev->core_dev->device, core_dev 219 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 224 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 229 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 258 drivers/crypto/amcc/crypto4xx_core.c spin_lock_irqsave(&dev->core_dev->lock, flags); core_dev 266 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 278 drivers/crypto/amcc/crypto4xx_core.c dev->gdr = dma_alloc_coherent(dev->core_dev->device, core_dev 289 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 324 drivers/crypto/amcc/crypto4xx_core.c spin_lock_irqsave(&dev->core_dev->lock, flags); core_dev 326 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 335 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 358 drivers/crypto/amcc/crypto4xx_core.c dev->sdr = dma_alloc_coherent(dev->core_dev->device, core_dev 365 drivers/crypto/amcc/crypto4xx_core.c dma_alloc_coherent(dev->core_dev->device, core_dev 382 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 387 drivers/crypto/amcc/crypto4xx_core.c dma_free_coherent(dev->core_dev->device, core_dev 423 drivers/crypto/amcc/crypto4xx_core.c spin_lock_irqsave(&dev->core_dev->lock, flags); core_dev 425 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 432 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 533 drivers/crypto/amcc/crypto4xx_core.c addr = dma_map_page(dev->core_dev->device, sg_page(dst), core_dev 587 drivers/crypto/amcc/crypto4xx_core.c dma_unmap_page(dev->core_dev->device, pd->dest, dst->length, core_dev 652 drivers/crypto/amcc/crypto4xx_core.c static void crypto4xx_stop_all(struct crypto4xx_core_device *core_dev) core_dev 654 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_destroy_pdr(core_dev->dev); core_dev 655 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_destroy_gdr(core_dev->dev); core_dev 656 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_destroy_sdr(core_dev->dev); core_dev 657 drivers/crypto/amcc/crypto4xx_core.c iounmap(core_dev->dev->ce_base); core_dev 658 drivers/crypto/amcc/crypto4xx_core.c kfree(core_dev->dev); core_dev 659 drivers/crypto/amcc/crypto4xx_core.c kfree(core_dev); core_dev 724 drivers/crypto/amcc/crypto4xx_core.c dev_err(dev->core_dev->device, "Invalid number of src SG.\n"); core_dev 755 drivers/crypto/amcc/crypto4xx_core.c spin_lock_irqsave(&dev->core_dev->lock, flags); core_dev 776 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 784 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 793 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 803 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 806 drivers/crypto/amcc/crypto4xx_core.c spin_unlock_irqrestore(&dev->core_dev->lock, flags); core_dev 845 drivers/crypto/amcc/crypto4xx_core.c gd->ptr = dma_map_page(dev->core_dev->device, core_dev 859 drivers/crypto/amcc/crypto4xx_core.c pd->src = (u32)dma_map_page(dev->core_dev->device, sg_page(src), core_dev 878 drivers/crypto/amcc/crypto4xx_core.c pd->dest = (u32)dma_map_page(dev->core_dev->device, core_dev 1077 drivers/crypto/amcc/crypto4xx_core.c struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev); core_dev 1080 drivers/crypto/amcc/crypto4xx_core.c u32 tail = core_dev->dev->pdr_tail; core_dev 1081 drivers/crypto/amcc/crypto4xx_core.c u32 head = core_dev->dev->pdr_head; core_dev 1084 drivers/crypto/amcc/crypto4xx_core.c pd_uinfo = &core_dev->dev->pdr_uinfo[tail]; core_dev 1085 drivers/crypto/amcc/crypto4xx_core.c pd = &core_dev->dev->pdr[tail]; core_dev 1090 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_pd_done(core_dev->dev, tail); core_dev 1091 drivers/crypto/amcc/crypto4xx_core.c tail = crypto4xx_put_pd_to_pdr(core_dev->dev, tail); core_dev 1106 drivers/crypto/amcc/crypto4xx_core.c struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev); core_dev 1108 drivers/crypto/amcc/crypto4xx_core.c writel(clr_val, core_dev->dev->ce_base + CRYPTO4XX_INT_CLR); core_dev 1109 drivers/crypto/amcc/crypto4xx_core.c tasklet_schedule(&core_dev->tasklet); core_dev 1175 drivers/crypto/amcc/crypto4xx_core.c mutex_lock(&dev->core_dev->rng_lock); core_dev 1177 drivers/crypto/amcc/crypto4xx_core.c mutex_unlock(&dev->core_dev->rng_lock); core_dev 1379 drivers/crypto/amcc/crypto4xx_core.c struct crypto4xx_core_device *core_dev; core_dev 1410 drivers/crypto/amcc/crypto4xx_core.c core_dev = kzalloc(sizeof(struct crypto4xx_core_device), GFP_KERNEL); core_dev 1411 drivers/crypto/amcc/crypto4xx_core.c if (!core_dev) core_dev 1414 drivers/crypto/amcc/crypto4xx_core.c dev_set_drvdata(dev, core_dev); core_dev 1415 drivers/crypto/amcc/crypto4xx_core.c core_dev->ofdev = ofdev; core_dev 1416 drivers/crypto/amcc/crypto4xx_core.c core_dev->dev = kzalloc(sizeof(struct crypto4xx_device), GFP_KERNEL); core_dev 1418 drivers/crypto/amcc/crypto4xx_core.c if (!core_dev->dev) core_dev 1435 drivers/crypto/amcc/crypto4xx_core.c core_dev->dev->core_dev = core_dev; core_dev 1436 drivers/crypto/amcc/crypto4xx_core.c core_dev->dev->is_revb = is_revb; core_dev 1437 drivers/crypto/amcc/crypto4xx_core.c core_dev->device = dev; core_dev 1438 drivers/crypto/amcc/crypto4xx_core.c mutex_init(&core_dev->rng_lock); core_dev 1439 drivers/crypto/amcc/crypto4xx_core.c spin_lock_init(&core_dev->lock); core_dev 1440 drivers/crypto/amcc/crypto4xx_core.c INIT_LIST_HEAD(&core_dev->dev->alg_list); core_dev 1441 drivers/crypto/amcc/crypto4xx_core.c ratelimit_default_init(&core_dev->dev->aead_ratelimit); core_dev 1442 drivers/crypto/amcc/crypto4xx_core.c rc = crypto4xx_build_pdr(core_dev->dev); core_dev 1446 drivers/crypto/amcc/crypto4xx_core.c rc = crypto4xx_build_gdr(core_dev->dev); core_dev 1450 drivers/crypto/amcc/crypto4xx_core.c rc = crypto4xx_build_sdr(core_dev->dev); core_dev 1455 drivers/crypto/amcc/crypto4xx_core.c tasklet_init(&core_dev->tasklet, crypto4xx_bh_tasklet_cb, core_dev 1458 drivers/crypto/amcc/crypto4xx_core.c core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0); core_dev 1459 drivers/crypto/amcc/crypto4xx_core.c if (!core_dev->dev->ce_base) { core_dev 1466 drivers/crypto/amcc/crypto4xx_core.c core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); core_dev 1467 drivers/crypto/amcc/crypto4xx_core.c rc = request_irq(core_dev->irq, is_revb ? core_dev 1475 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_hw_init(core_dev->dev); core_dev 1478 drivers/crypto/amcc/crypto4xx_core.c rc = crypto4xx_register_alg(core_dev->dev, crypto4xx_alg, core_dev 1483 drivers/crypto/amcc/crypto4xx_core.c ppc4xx_trng_probe(core_dev); core_dev 1487 drivers/crypto/amcc/crypto4xx_core.c free_irq(core_dev->irq, dev); core_dev 1489 drivers/crypto/amcc/crypto4xx_core.c irq_dispose_mapping(core_dev->irq); core_dev 1490 drivers/crypto/amcc/crypto4xx_core.c iounmap(core_dev->dev->ce_base); core_dev 1492 drivers/crypto/amcc/crypto4xx_core.c tasklet_kill(&core_dev->tasklet); core_dev 1494 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_destroy_sdr(core_dev->dev); core_dev 1495 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_destroy_gdr(core_dev->dev); core_dev 1497 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_destroy_pdr(core_dev->dev); core_dev 1498 drivers/crypto/amcc/crypto4xx_core.c kfree(core_dev->dev); core_dev 1500 drivers/crypto/amcc/crypto4xx_core.c kfree(core_dev); core_dev 1508 drivers/crypto/amcc/crypto4xx_core.c struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev); core_dev 1510 drivers/crypto/amcc/crypto4xx_core.c ppc4xx_trng_remove(core_dev); core_dev 1512 drivers/crypto/amcc/crypto4xx_core.c free_irq(core_dev->irq, dev); core_dev 1513 drivers/crypto/amcc/crypto4xx_core.c irq_dispose_mapping(core_dev->irq); core_dev 1515 drivers/crypto/amcc/crypto4xx_core.c tasklet_kill(&core_dev->tasklet); core_dev 1517 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_unregister_alg(core_dev->dev); core_dev 1518 drivers/crypto/amcc/crypto4xx_core.c mutex_destroy(&core_dev->rng_lock); core_dev 1520 drivers/crypto/amcc/crypto4xx_core.c crypto4xx_stop_all(core_dev); core_dev 75 drivers/crypto/amcc/crypto4xx_core.h struct crypto4xx_core_device *core_dev; core_dev 71 drivers/crypto/amcc/crypto4xx_trng.c void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev) core_dev 73 drivers/crypto/amcc/crypto4xx_trng.c struct crypto4xx_device *dev = core_dev->dev; core_dev 98 drivers/crypto/amcc/crypto4xx_trng.c core_dev->trng = rng; core_dev 101 drivers/crypto/amcc/crypto4xx_trng.c err = devm_hwrng_register(core_dev->device, core_dev->trng); core_dev 104 drivers/crypto/amcc/crypto4xx_trng.c dev_err(core_dev->device, "failed to register hwrng (%d).\n", core_dev 114 drivers/crypto/amcc/crypto4xx_trng.c core_dev->trng = NULL; core_dev 117 drivers/crypto/amcc/crypto4xx_trng.c void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev) core_dev 119 drivers/crypto/amcc/crypto4xx_trng.c if (core_dev && core_dev->trng) { core_dev 120 drivers/crypto/amcc/crypto4xx_trng.c struct crypto4xx_device *dev = core_dev->dev; core_dev 122 drivers/crypto/amcc/crypto4xx_trng.c devm_hwrng_unregister(core_dev->device, core_dev->trng); core_dev 125 drivers/crypto/amcc/crypto4xx_trng.c kfree(core_dev->trng); core_dev 16 drivers/crypto/amcc/crypto4xx_trng.h void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev); core_dev 17 drivers/crypto/amcc/crypto4xx_trng.h void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev); core_dev 848 drivers/memstick/host/r592.c static int r592_suspend(struct device *core_dev) core_dev 850 drivers/memstick/host/r592.c struct r592_device *dev = dev_get_drvdata(core_dev); core_dev 858 drivers/memstick/host/r592.c static int r592_resume(struct device *core_dev) core_dev 860 drivers/memstick/host/r592.c struct r592_device *dev = dev_get_drvdata(core_dev); core_dev 345 include/linux/mfd/abx500.h int abx500_register_ops(struct device *core_dev, struct abx500_ops *ops);