Searched refs:fsl_lbc_ctrl_dev (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/arch/powerpc/sysdev/ |
H A D | fsl_lbc.c | 34 struct fsl_lbc_ctrl *fsl_lbc_ctrl_dev; variable in typeref:struct:fsl_lbc_ctrl 35 EXPORT_SYMBOL(fsl_lbc_ctrl_dev); variable 48 struct device_node *np = fsl_lbc_ctrl_dev->dev->of_node; fsl_lbc_addr() 72 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) fsl_lbc_find() 75 lbc = fsl_lbc_ctrl_dev->regs; fsl_lbc_find() 107 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) fsl_upm_find() 110 lbc = fsl_lbc_ctrl_dev->regs; fsl_upm_find() 160 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) fsl_upm_run_pattern() 165 out_be32(&fsl_lbc_ctrl_dev->regs->mar, mar); fsl_upm_run_pattern() 290 fsl_lbc_ctrl_dev = kzalloc(sizeof(*fsl_lbc_ctrl_dev), GFP_KERNEL); fsl_lbc_ctrl_probe() 291 if (!fsl_lbc_ctrl_dev) fsl_lbc_ctrl_probe() 294 dev_set_drvdata(&dev->dev, fsl_lbc_ctrl_dev); fsl_lbc_ctrl_probe() 296 spin_lock_init(&fsl_lbc_ctrl_dev->lock); fsl_lbc_ctrl_probe() 297 init_waitqueue_head(&fsl_lbc_ctrl_dev->irq_wait); fsl_lbc_ctrl_probe() 299 fsl_lbc_ctrl_dev->regs = of_iomap(dev->dev.of_node, 0); fsl_lbc_ctrl_probe() 300 if (!fsl_lbc_ctrl_dev->regs) { fsl_lbc_ctrl_probe() 306 fsl_lbc_ctrl_dev->irq[0] = irq_of_parse_and_map(dev->dev.of_node, 0); fsl_lbc_ctrl_probe() 307 if (!fsl_lbc_ctrl_dev->irq[0]) { fsl_lbc_ctrl_probe() 313 fsl_lbc_ctrl_dev->dev = &dev->dev; fsl_lbc_ctrl_probe() 315 ret = fsl_lbc_ctrl_init(fsl_lbc_ctrl_dev, dev->dev.of_node); fsl_lbc_ctrl_probe() 319 ret = request_irq(fsl_lbc_ctrl_dev->irq[0], fsl_lbc_ctrl_irq, 0, fsl_lbc_ctrl_probe() 320 "fsl-lbc", fsl_lbc_ctrl_dev); fsl_lbc_ctrl_probe() 323 fsl_lbc_ctrl_dev->irq[0]); fsl_lbc_ctrl_probe() 324 ret = fsl_lbc_ctrl_dev->irq[0]; fsl_lbc_ctrl_probe() 328 fsl_lbc_ctrl_dev->irq[1] = irq_of_parse_and_map(dev->dev.of_node, 1); fsl_lbc_ctrl_probe() 329 if (fsl_lbc_ctrl_dev->irq[1]) { fsl_lbc_ctrl_probe() 330 ret = request_irq(fsl_lbc_ctrl_dev->irq[1], fsl_lbc_ctrl_irq, fsl_lbc_ctrl_probe() 331 IRQF_SHARED, "fsl-lbc-err", fsl_lbc_ctrl_dev); fsl_lbc_ctrl_probe() 334 fsl_lbc_ctrl_dev->irq[1]); fsl_lbc_ctrl_probe() 335 ret = fsl_lbc_ctrl_dev->irq[1]; fsl_lbc_ctrl_probe() 341 out_be32(&fsl_lbc_ctrl_dev->regs->lteir, LTEIR_ENABLE); fsl_lbc_ctrl_probe() 346 free_irq(fsl_lbc_ctrl_dev->irq[0], fsl_lbc_ctrl_dev); fsl_lbc_ctrl_probe() 348 iounmap(fsl_lbc_ctrl_dev->regs); fsl_lbc_ctrl_probe() 349 kfree(fsl_lbc_ctrl_dev); fsl_lbc_ctrl_probe() 350 fsl_lbc_ctrl_dev = NULL; fsl_lbc_ctrl_probe()
|
/linux-4.1.27/drivers/mtd/nand/ |
H A D | fsl_elbc_nand.c | 829 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) fsl_elbc_nand_probe() 831 lbc = fsl_lbc_ctrl_dev->regs; fsl_elbc_nand_probe() 832 dev = fsl_lbc_ctrl_dev->dev; fsl_elbc_nand_probe() 860 if (!fsl_lbc_ctrl_dev->nand) { fsl_elbc_nand_probe() 871 fsl_lbc_ctrl_dev->nand = elbc_fcm_ctrl; fsl_elbc_nand_probe() 873 elbc_fcm_ctrl = fsl_lbc_ctrl_dev->nand; fsl_elbc_nand_probe() 879 priv->ctrl = fsl_lbc_ctrl_dev; fsl_elbc_nand_probe() 928 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = fsl_lbc_ctrl_dev->nand; fsl_elbc_nand_remove() 936 fsl_lbc_ctrl_dev->nand = NULL; fsl_elbc_nand_remove()
|
/linux-4.1.27/drivers/uio/ |
H A D | uio_fsl_elbc_gpcm.c | 317 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) uio_fsl_elbc_gpcm_probe() 325 priv->lbc = fsl_lbc_ctrl_dev->regs; uio_fsl_elbc_gpcm_probe()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | fsl_lbc.h | 307 extern struct fsl_lbc_ctrl *fsl_lbc_ctrl_dev;
|
Completed in 112 milliseconds