ofdev 42 arch/powerpc/include/asm/macio.h struct platform_device ofdev; ofdev 49 arch/powerpc/include/asm/macio.h #define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) ofdev 50 arch/powerpc/include/asm/macio.h #define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev) ofdev 102 arch/powerpc/include/asm/macio.h dev_set_drvdata(&dev->ofdev.dev, data); ofdev 107 arch/powerpc/include/asm/macio.h return dev_get_drvdata(&dev->ofdev.dev); ofdev 112 arch/powerpc/include/asm/macio.h return mdev->ofdev.dev.of_node; ofdev 714 arch/powerpc/platforms/52xx/mpc52xx_gpt.c static int mpc52xx_gpt_probe(struct platform_device *ofdev) ofdev 718 arch/powerpc/platforms/52xx/mpc52xx_gpt.c gpt = devm_kzalloc(&ofdev->dev, sizeof *gpt, GFP_KERNEL); ofdev 723 arch/powerpc/platforms/52xx/mpc52xx_gpt.c gpt->dev = &ofdev->dev; ofdev 724 arch/powerpc/platforms/52xx/mpc52xx_gpt.c gpt->ipb_freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); ofdev 725 arch/powerpc/platforms/52xx/mpc52xx_gpt.c gpt->regs = of_iomap(ofdev->dev.of_node, 0); ofdev 729 arch/powerpc/platforms/52xx/mpc52xx_gpt.c dev_set_drvdata(&ofdev->dev, gpt); ofdev 731 arch/powerpc/platforms/52xx/mpc52xx_gpt.c mpc52xx_gpt_gpio_setup(gpt, ofdev->dev.of_node); ofdev 732 arch/powerpc/platforms/52xx/mpc52xx_gpt.c mpc52xx_gpt_irq_setup(gpt, ofdev->dev.of_node); ofdev 739 arch/powerpc/platforms/52xx/mpc52xx_gpt.c if (of_get_property(ofdev->dev.of_node, "fsl,has-wdt", NULL) || ofdev 740 arch/powerpc/platforms/52xx/mpc52xx_gpt.c of_get_property(ofdev->dev.of_node, "has-wdt", NULL)) { ofdev 744 arch/powerpc/platforms/52xx/mpc52xx_gpt.c on_boot_wdt = of_get_property(ofdev->dev.of_node, ofdev 757 arch/powerpc/platforms/52xx/mpc52xx_gpt.c static int mpc52xx_gpt_remove(struct platform_device *ofdev) ofdev 110 arch/powerpc/platforms/82xx/ep8248e.c static int ep8248e_mdio_probe(struct platform_device *ofdev) ofdev 117 arch/powerpc/platforms/82xx/ep8248e.c node = of_get_parent(ofdev->dev.of_node); ofdev 122 arch/powerpc/platforms/82xx/ep8248e.c ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); ofdev 131 arch/powerpc/platforms/82xx/ep8248e.c bus->parent = &ofdev->dev; ofdev 134 arch/powerpc/platforms/82xx/ep8248e.c ret = of_mdiobus_register(bus, ofdev->dev.of_node); ofdev 144 arch/powerpc/platforms/82xx/ep8248e.c static int ep8248e_mdio_remove(struct platform_device *ofdev) ofdev 323 arch/powerpc/platforms/83xx/suspend.c static int pmc_probe(struct platform_device *ofdev) ofdev 326 arch/powerpc/platforms/83xx/suspend.c struct device_node *np = ofdev->dev.of_node; ofdev 331 arch/powerpc/platforms/83xx/suspend.c match = of_match_device(pmc_match, &ofdev->dev); ofdev 342 arch/powerpc/platforms/83xx/suspend.c pmc_dev = ofdev; ofdev 355 arch/powerpc/platforms/83xx/suspend.c "pmc", ofdev); ofdev 402 arch/powerpc/platforms/83xx/suspend.c free_irq(pmc_irq, ofdev); ofdev 407 arch/powerpc/platforms/83xx/suspend.c static int pmc_remove(struct platform_device *ofdev) ofdev 207 arch/powerpc/platforms/pasemi/gpio_mdio.c static int gpio_mdio_probe(struct platform_device *ofdev) ofdev 209 arch/powerpc/platforms/pasemi/gpio_mdio.c struct device *dev = &ofdev->dev; ofdev 210 arch/powerpc/platforms/pasemi/gpio_mdio.c struct device_node *np = ofdev->dev.of_node; ofdev 392 arch/powerpc/platforms/pseries/ibmebus.c struct platform_device *ofdev; ofdev 394 arch/powerpc/platforms/pseries/ibmebus.c ofdev = to_platform_device(dev); ofdev 395 arch/powerpc/platforms/pseries/ibmebus.c return sprintf(buf, "%pOF\n", ofdev->dev.of_node); ofdev 402 arch/powerpc/platforms/pseries/ibmebus.c struct platform_device *ofdev; ofdev 404 arch/powerpc/platforms/pseries/ibmebus.c ofdev = to_platform_device(dev); ofdev 405 arch/powerpc/platforms/pseries/ibmebus.c return sprintf(buf, "%pOFn\n", ofdev->dev.of_node); ofdev 19 arch/powerpc/sysdev/cpm_gpio.c static int cpm_gpio_probe(struct platform_device *ofdev) ofdev 21 arch/powerpc/sysdev/cpm_gpio.c struct device *dev = &ofdev->dev; ofdev 324 arch/powerpc/sysdev/fsl_msi.c static int fsl_of_msi_remove(struct platform_device *ofdev) ofdev 326 arch/powerpc/sysdev/fsl_msi.c struct fsl_msi *msi = platform_get_drvdata(ofdev); ofdev 59 arch/powerpc/sysdev/fsl_pmc.c static int pmc_probe(struct platform_device *ofdev) ofdev 61 arch/powerpc/sysdev/fsl_pmc.c pmc_regs = of_iomap(ofdev->dev.of_node, 0); ofdev 65 arch/powerpc/sysdev/fsl_pmc.c pmc_dev = &ofdev->dev; ofdev 20 arch/sparc/include/asm/leon_pci.h void leon_pci_init(struct platform_device *ofdev, ofdev 25 arch/sparc/kernel/leon_pci.c void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info) ofdev 43 arch/sparc/kernel/leon_pci.c bridge->dev.parent = &ofdev->dev; ofdev 511 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_of_probe(struct platform_device *ofdev) ofdev 521 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "only one GRPCI1 supported\n"); ofdev 525 arch/sparc/kernel/leon_pci_grpci1.c if (ofdev->num_resources < 3) { ofdev 526 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "not enough APB/AHB resources\n"); ofdev 530 arch/sparc/kernel/leon_pci_grpci1.c priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); ofdev 532 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "memory allocation failed\n"); ofdev 535 arch/sparc/kernel/leon_pci_grpci1.c platform_set_drvdata(ofdev, priv); ofdev 536 arch/sparc/kernel/leon_pci_grpci1.c priv->dev = &ofdev->dev; ofdev 539 arch/sparc/kernel/leon_pci_grpci1.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 540 arch/sparc/kernel/leon_pci_grpci1.c regs = devm_ioremap_resource(&ofdev->dev, res); ofdev 550 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "not in host system slot\n"); ofdev 558 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "BAR1 must be at least 256MByte\n"); ofdev 564 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "byte-twisting is required\n"); ofdev 569 arch/sparc/kernel/leon_pci_grpci1.c priv->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 570 arch/sparc/kernel/leon_pci_grpci1.c dev_info(&ofdev->dev, "host found at 0x%p, irq%d\n", regs, priv->irq); ofdev 573 arch/sparc/kernel/leon_pci_grpci1.c priv->pci_area = ofdev->resource[1].start; ofdev 574 arch/sparc/kernel/leon_pci_grpci1.c priv->pci_area_end = ofdev->resource[1].end+1; ofdev 575 arch/sparc/kernel/leon_pci_grpci1.c priv->pci_io = ofdev->resource[2].start; ofdev 576 arch/sparc/kernel/leon_pci_grpci1.c priv->pci_conf = ofdev->resource[2].start + 0x10000; ofdev 580 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "unable to map PCI I/O area\n"); ofdev 612 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "unable to request PCI memory area\n"); ofdev 618 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "unable to request PCI I/O area\n"); ofdev 651 arch/sparc/kernel/leon_pci_grpci1.c err = devm_request_irq(&ofdev->dev, priv->irq, grpci1_jump_interrupt, 0, ofdev 654 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "ERR IRQ request failed: %d\n", err); ofdev 659 arch/sparc/kernel/leon_pci_grpci1.c err = devm_request_irq(&ofdev->dev, priv->irq_err, ofdev 663 arch/sparc/kernel/leon_pci_grpci1.c dev_err(&ofdev->dev, "ERR VIRQ request failed: %d\n", err); ofdev 667 arch/sparc/kernel/leon_pci_grpci1.c tmp = of_get_property(ofdev->dev.of_node, "all_pci_errors", &len); ofdev 685 arch/sparc/kernel/leon_pci_grpci1.c leon_pci_init(ofdev, &priv->info); ofdev 684 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_of_probe(struct platform_device *ofdev) ofdev 697 arch/sparc/kernel/leon_pci_grpci2.c if (ofdev->num_resources < 3) { ofdev 703 arch/sparc/kernel/leon_pci_grpci2.c regs = of_ioremap(&ofdev->resource[0], 0, ofdev 704 arch/sparc/kernel/leon_pci_grpci2.c resource_size(&ofdev->resource[0]), ofdev 728 arch/sparc/kernel/leon_pci_grpci2.c priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ ofdev 737 arch/sparc/kernel/leon_pci_grpci2.c tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); ofdev 744 arch/sparc/kernel/leon_pci_grpci2.c tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); ofdev 751 arch/sparc/kernel/leon_pci_grpci2.c tmp = of_get_property(ofdev->dev.of_node, "reset", &len); ofdev 758 arch/sparc/kernel/leon_pci_grpci2.c priv->pci_area = ofdev->resource[1].start; ofdev 759 arch/sparc/kernel/leon_pci_grpci2.c priv->pci_area_end = ofdev->resource[1].end+1; ofdev 760 arch/sparc/kernel/leon_pci_grpci2.c priv->pci_io = ofdev->resource[2].start; ofdev 761 arch/sparc/kernel/leon_pci_grpci2.c priv->pci_conf = ofdev->resource[2].start + 0x10000; ofdev 826 arch/sparc/kernel/leon_pci_grpci2.c priv->virq_dma = ofdev->archdata.irqs[1]; ofdev 839 arch/sparc/kernel/leon_pci_grpci2.c leon_update_virq_handling(ofdev->archdata.irqs[i], ofdev 842 arch/sparc/kernel/leon_pci_grpci2.c priv->irq_map[i] = ofdev->archdata.irqs[i]; ofdev 846 arch/sparc/kernel/leon_pci_grpci2.c priv->virq_dma = ofdev->archdata.irqs[4]; ofdev 871 arch/sparc/kernel/leon_pci_grpci2.c leon_pci_init(ofdev, &priv->info); ofdev 885 arch/sparc/kernel/leon_pci_grpci2.c of_iounmap(&ofdev->resource[0], regs, ofdev 886 arch/sparc/kernel/leon_pci_grpci2.c resource_size(&ofdev->resource[0])); ofdev 1125 drivers/ata/pata_macio.c dev_err(&mdev->ofdev.dev, ofdev 1134 drivers/ata/pata_macio.c priv = devm_kzalloc(&mdev->ofdev.dev, ofdev 1139 drivers/ata/pata_macio.c priv->node = of_node_get(mdev->ofdev.dev.of_node); ofdev 1141 drivers/ata/pata_macio.c priv->dev = &mdev->ofdev.dev; ofdev 1145 drivers/ata/pata_macio.c dev_err(&mdev->ofdev.dev, ofdev 1154 drivers/ata/pata_macio.c dev_err(&mdev->ofdev.dev, ofdev 1170 drivers/ata/pata_macio.c dev_warn(&mdev->ofdev.dev, ofdev 22 drivers/ata/pata_of_platform.c static int pata_of_platform_probe(struct platform_device *ofdev) ofdev 25 drivers/ata/pata_of_platform.c struct device_node *dn = ofdev->dev.of_node; ofdev 36 drivers/ata/pata_of_platform.c dev_err(&ofdev->dev, "can't get IO address from " ofdev 43 drivers/ata/pata_of_platform.c dev_err(&ofdev->dev, "can't get CTL address from " ofdev 48 drivers/ata/pata_of_platform.c irq_res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0); ofdev 54 drivers/ata/pata_of_platform.c dev_err(&ofdev->dev, "invalid pio-mode\n"); ofdev 58 drivers/ata/pata_of_platform.c dev_info(&ofdev->dev, "pio-mode unspecified, assuming PIO0\n"); ofdev 66 drivers/ata/pata_of_platform.c return __pata_platform_probe(&ofdev->dev, &io_res, &ctl_res, irq_res, ofdev 1198 drivers/ata/sata_dwc_460ex.c static int sata_dwc_probe(struct platform_device *ofdev) ofdev 1209 drivers/ata/sata_dwc_460ex.c struct device_node *np = ofdev->dev.of_node; ofdev 1213 drivers/ata/sata_dwc_460ex.c host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_DWC_MAX_PORTS); ofdev 1214 drivers/ata/sata_dwc_460ex.c hsdev = devm_kzalloc(&ofdev->dev, sizeof(*hsdev), GFP_KERNEL); ofdev 1221 drivers/ata/sata_dwc_460ex.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 1222 drivers/ata/sata_dwc_460ex.c base = devm_ioremap_resource(&ofdev->dev, res); ofdev 1225 drivers/ata/sata_dwc_460ex.c dev_dbg(&ofdev->dev, "ioremap done for SATA register address\n"); ofdev 1239 drivers/ata/sata_dwc_460ex.c dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n", ofdev 1243 drivers/ata/sata_dwc_460ex.c hsdev->dev = &ofdev->dev; ofdev 1251 drivers/ata/sata_dwc_460ex.c dev_err(&ofdev->dev, "no SATA DMA irq\n"); ofdev 1258 drivers/ata/sata_dwc_460ex.c err = sata_dwc_dma_init_old(ofdev, hsdev); ofdev 1282 drivers/ata/sata_dwc_460ex.c dev_err(&ofdev->dev, "failed to activate host"); ofdev 1291 drivers/ata/sata_dwc_460ex.c static int sata_dwc_remove(struct platform_device *ofdev) ofdev 1293 drivers/ata/sata_dwc_460ex.c struct device *dev = &ofdev->dev; ofdev 1306 drivers/ata/sata_dwc_460ex.c dev_dbg(&ofdev->dev, "done\n"); ofdev 1440 drivers/ata/sata_fsl.c static int sata_fsl_probe(struct platform_device *ofdev) ofdev 1454 drivers/ata/sata_fsl.c dev_info(&ofdev->dev, "Sata FSL Platform/CSB Driver init\n"); ofdev 1456 drivers/ata/sata_fsl.c hcr_base = of_iomap(ofdev->dev.of_node, 0); ofdev 1463 drivers/ata/sata_fsl.c if (!of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc8315-sata")) { ofdev 1481 drivers/ata/sata_fsl.c irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 1483 drivers/ata/sata_fsl.c dev_err(&ofdev->dev, "invalid irq from platform\n"); ofdev 1488 drivers/ata/sata_fsl.c if (of_device_is_compatible(ofdev->dev.of_node, "fsl,pq-sata-v2")) ofdev 1494 drivers/ata/sata_fsl.c host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_FSL_MAX_PORTS); ofdev 1530 drivers/ata/sata_fsl.c device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); ofdev 1548 drivers/ata/sata_fsl.c static int sata_fsl_remove(struct platform_device *ofdev) ofdev 1550 drivers/ata/sata_fsl.c struct ata_host *host = platform_get_drvdata(ofdev); ofdev 1553 drivers/ata/sata_fsl.c device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); ofdev 1554 drivers/ata/sata_fsl.c device_remove_file(&ofdev->dev, &host_priv->rx_watermark); ofdev 208 drivers/block/swim3.c #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) ofdev 209 drivers/block/swim3.c #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) ofdev 210 drivers/block/swim3.c #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) ofdev 213 drivers/block/swim3.c #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) ofdev 1086 drivers/block/swim3.c struct device_node *swim = mdev->ofdev.dev.of_node; ofdev 1111 drivers/block/swim3.c dev_set_drvdata(&mdev->ofdev.dev, fs); ofdev 113 drivers/char/hw_random/stm32-rng.c static int stm32_rng_probe(struct platform_device *ofdev) ofdev 115 drivers/char/hw_random/stm32-rng.c struct device *dev = &ofdev->dev; ofdev 116 drivers/char/hw_random/stm32-rng.c struct device_node *np = ofdev->dev.of_node; ofdev 133 drivers/char/hw_random/stm32-rng.c priv->clk = devm_clk_get(&ofdev->dev, NULL); ofdev 137 drivers/char/hw_random/stm32-rng.c priv->rst = devm_reset_control_get(&ofdev->dev, NULL); ofdev 164 drivers/char/hw_random/stm32-rng.c static int stm32_rng_remove(struct platform_device *ofdev) ofdev 166 drivers/char/hw_random/stm32-rng.c pm_runtime_disable(&ofdev->dev); ofdev 1374 drivers/crypto/amcc/crypto4xx_core.c static int crypto4xx_probe(struct platform_device *ofdev) ofdev 1378 drivers/crypto/amcc/crypto4xx_core.c struct device *dev = &ofdev->dev; ofdev 1383 drivers/crypto/amcc/crypto4xx_core.c rc = of_address_to_resource(ofdev->dev.of_node, 0, &res); ofdev 1415 drivers/crypto/amcc/crypto4xx_core.c core_dev->ofdev = ofdev; ofdev 1458 drivers/crypto/amcc/crypto4xx_core.c core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0); ofdev 1466 drivers/crypto/amcc/crypto4xx_core.c core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 1505 drivers/crypto/amcc/crypto4xx_core.c static int crypto4xx_remove(struct platform_device *ofdev) ofdev 1507 drivers/crypto/amcc/crypto4xx_core.c struct device *dev = &ofdev->dev; ofdev 107 drivers/crypto/amcc/crypto4xx_core.h struct platform_device *ofdev; ofdev 3106 drivers/crypto/talitos.c static int talitos_remove(struct platform_device *ofdev) ofdev 3108 drivers/crypto/talitos.c struct device *dev = &ofdev->dev; ofdev 3235 drivers/crypto/talitos.c static int talitos_probe_irq(struct platform_device *ofdev) ofdev 3237 drivers/crypto/talitos.c struct device *dev = &ofdev->dev; ofdev 3238 drivers/crypto/talitos.c struct device_node *np = ofdev->dev.of_node; ofdev 3289 drivers/crypto/talitos.c static int talitos_probe(struct platform_device *ofdev) ofdev 3291 drivers/crypto/talitos.c struct device *dev = &ofdev->dev; ofdev 3292 drivers/crypto/talitos.c struct device_node *np = ofdev->dev.of_node; ofdev 3306 drivers/crypto/talitos.c priv->ofdev = ofdev; ofdev 3310 drivers/crypto/talitos.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 3370 drivers/crypto/talitos.c err = talitos_probe_irq(ofdev); ofdev 3497 drivers/crypto/talitos.c talitos_remove(ofdev); ofdev 111 drivers/crypto/talitos.h struct platform_device *ofdev; ofdev 624 drivers/dma/fsl_raid.c static int fsl_re_chan_probe(struct platform_device *ofdev, ofdev 636 drivers/dma/fsl_raid.c dev = &ofdev->dev; ofdev 747 drivers/dma/fsl_raid.c static int fsl_re_probe(struct platform_device *ofdev) ofdev 757 drivers/dma/fsl_raid.c struct device *dev = &ofdev->dev; ofdev 763 drivers/dma/fsl_raid.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 839 drivers/dma/fsl_raid.c fsl_re_chan_probe(ofdev, child, ridx++, off); ofdev 861 drivers/dma/fsl_raid.c static int fsl_re_remove(struct platform_device *ofdev) ofdev 867 drivers/dma/fsl_raid.c dev = &ofdev->dev; ofdev 3871 drivers/dma/ppc4xx/adma.c struct platform_device *ofdev; ofdev 3875 drivers/dma/ppc4xx/adma.c ofdev = container_of(adev->dev, struct platform_device, dev); ofdev 3876 drivers/dma/ppc4xx/adma.c np = ofdev->dev.of_node; ofdev 4007 drivers/dma/ppc4xx/adma.c static int ppc440spe_adma_probe(struct platform_device *ofdev) ofdev 4009 drivers/dma/ppc4xx/adma.c struct device_node *np = ofdev->dev.of_node; ofdev 4031 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "Device node %pOF has missing " ofdev 4054 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "failed to get memory resource\n"); ofdev 4061 drivers/dma/ppc4xx/adma.c dev_driver_string(&ofdev->dev))) { ofdev 4062 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "failed to request memory region %pR\n", ofdev 4080 drivers/dma/ppc4xx/adma.c adev->dma_desc_pool_virt = dma_alloc_coherent(&ofdev->dev, ofdev 4084 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "failed to allocate %d bytes of coherent " ofdev 4091 drivers/dma/ppc4xx/adma.c dev_dbg(&ofdev->dev, "allocated descriptor pool virt 0x%p phys 0x%llx\n", ofdev 4096 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "failed to ioremap regs!\n"); ofdev 4124 drivers/dma/ppc4xx/adma.c adev->dev = &ofdev->dev; ofdev 4125 drivers/dma/ppc4xx/adma.c adev->common.dev = &ofdev->dev; ofdev 4127 drivers/dma/ppc4xx/adma.c platform_set_drvdata(ofdev, adev); ofdev 4162 drivers/dma/ppc4xx/adma.c chan->pdest = dma_map_page(&ofdev->dev, chan->pdest_page, 0, ofdev 4164 drivers/dma/ppc4xx/adma.c chan->qdest = dma_map_page(&ofdev->dev, chan->qdest_page, 0, ofdev 4174 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "failed to allocate channel reference!\n"); ofdev 4188 drivers/dma/ppc4xx/adma.c dev_err(&ofdev->dev, "failed to register dma device\n"); ofdev 4205 drivers/dma/ppc4xx/adma.c dma_unmap_page(&ofdev->dev, chan->pdest, ofdev 4207 drivers/dma/ppc4xx/adma.c dma_unmap_page(&ofdev->dev, chan->qdest, ofdev 4237 drivers/dma/ppc4xx/adma.c static int ppc440spe_adma_remove(struct platform_device *ofdev) ofdev 4239 drivers/dma/ppc4xx/adma.c struct ppc440spe_adma_device *adev = platform_get_drvdata(ofdev); ofdev 4240 drivers/dma/ppc4xx/adma.c struct device_node *np = ofdev->dev.of_node; ofdev 4257 drivers/dma/ppc4xx/adma.c dma_unmap_page(&ofdev->dev, ppc440spe_chan->pdest, ofdev 4259 drivers/dma/ppc4xx/adma.c dma_unmap_page(&ofdev->dev, ppc440spe_chan->qdest, ofdev 328 drivers/gpio/gpio-grgpio.c static int grgpio_probe(struct platform_device *ofdev) ofdev 330 drivers/gpio/gpio-grgpio.c struct device_node *np = ofdev->dev.of_node; ofdev 340 drivers/gpio/gpio-grgpio.c priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); ofdev 344 drivers/gpio/gpio-grgpio.c regs = devm_platform_ioremap_resource(ofdev, 0); ofdev 349 drivers/gpio/gpio-grgpio.c err = bgpio_init(gc, &ofdev->dev, 4, regs + GRGPIO_DATA, ofdev 353 drivers/gpio/gpio-grgpio.c dev_err(&ofdev->dev, "bgpio_init() failed\n"); ofdev 359 drivers/gpio/gpio-grgpio.c priv->dev = &ofdev->dev; ofdev 364 drivers/gpio/gpio-grgpio.c gc->label = devm_kasprintf(&ofdev->dev, GFP_KERNEL, "%pOF", np); ofdev 370 drivers/gpio/gpio-grgpio.c dev_dbg(&ofdev->dev, ofdev 383 drivers/gpio/gpio-grgpio.c dev_err(&ofdev->dev, ofdev 393 drivers/gpio/gpio-grgpio.c dev_err(&ofdev->dev, "Could not add irq domain\n"); ofdev 407 drivers/gpio/gpio-grgpio.c ret = platform_get_irq(ofdev, lirq->index); ofdev 419 drivers/gpio/gpio-grgpio.c platform_set_drvdata(ofdev, priv); ofdev 423 drivers/gpio/gpio-grgpio.c dev_err(&ofdev->dev, "Could not add gpiochip\n"); ofdev 429 drivers/gpio/gpio-grgpio.c dev_info(&ofdev->dev, "regs=0x%p, base=%d, ngpio=%d, irqs=%s\n", ofdev 435 drivers/gpio/gpio-grgpio.c static int grgpio_remove(struct platform_device *ofdev) ofdev 437 drivers/gpio/gpio-grgpio.c struct grgpio_priv *priv = platform_get_drvdata(ofdev); ofdev 135 drivers/gpio/gpio-mpc5200.c static int mpc52xx_wkup_gpiochip_probe(struct platform_device *ofdev) ofdev 142 drivers/gpio/gpio-mpc5200.c chip = devm_kzalloc(&ofdev->dev, sizeof(*chip), GFP_KERNEL); ofdev 146 drivers/gpio/gpio-mpc5200.c platform_set_drvdata(ofdev, chip); ofdev 156 drivers/gpio/gpio-mpc5200.c ret = of_mm_gpiochip_add_data(ofdev->dev.of_node, &chip->mmchip, chip); ofdev 168 drivers/gpio/gpio-mpc5200.c static int mpc52xx_gpiochip_remove(struct platform_device *ofdev) ofdev 170 drivers/gpio/gpio-mpc5200.c struct mpc52xx_gpiochip *chip = platform_get_drvdata(ofdev); ofdev 297 drivers/gpio/gpio-mpc5200.c static int mpc52xx_simple_gpiochip_probe(struct platform_device *ofdev) ofdev 304 drivers/gpio/gpio-mpc5200.c chip = devm_kzalloc(&ofdev->dev, sizeof(*chip), GFP_KERNEL); ofdev 308 drivers/gpio/gpio-mpc5200.c platform_set_drvdata(ofdev, chip); ofdev 318 drivers/gpio/gpio-mpc5200.c ret = of_mm_gpiochip_add_data(ofdev->dev.of_node, &chip->mmchip, chip); ofdev 95 drivers/i2c/busses/i2c-cpm.c struct platform_device *ofdev; ofdev 422 drivers/i2c/busses/i2c-cpm.c struct platform_device *ofdev = cpm->ofdev; ofdev 430 drivers/i2c/busses/i2c-cpm.c dev_dbg(&cpm->ofdev->dev, "cpm_i2c_setup()\n"); ofdev 434 drivers/i2c/busses/i2c-cpm.c cpm->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 445 drivers/i2c/busses/i2c-cpm.c i2c_base = of_iomap(ofdev->dev.of_node, 1); ofdev 451 drivers/i2c/busses/i2c-cpm.c if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm1-i2c")) { ofdev 468 drivers/i2c/busses/i2c-cpm.c } else if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm2-i2c")) { ofdev 483 drivers/i2c/busses/i2c-cpm.c cpm->i2c_reg = of_iomap(ofdev->dev.of_node, 0); ofdev 489 drivers/i2c/busses/i2c-cpm.c data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); ofdev 496 drivers/i2c/busses/i2c-cpm.c data = of_get_property(ofdev->dev.of_node, "linux,i2c-class", &len); ofdev 500 drivers/i2c/busses/i2c-cpm.c data = of_get_property(ofdev->dev.of_node, "clock-frequency", &len); ofdev 525 drivers/i2c/busses/i2c-cpm.c cpm->rxbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, ofdev 534 drivers/i2c/busses/i2c-cpm.c cpm->txbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, ofdev 548 drivers/i2c/busses/i2c-cpm.c dev_dbg(&cpm->ofdev->dev, "i2c_ram 0x%p, i2c_addr 0x%04x, freq %d\n", ofdev 550 drivers/i2c/busses/i2c-cpm.c dev_dbg(&cpm->ofdev->dev, "tbase 0x%04x, rbase 0x%04x\n", ofdev 581 drivers/i2c/busses/i2c-cpm.c dma_free_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, ofdev 584 drivers/i2c/busses/i2c-cpm.c dma_free_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, ofdev 615 drivers/i2c/busses/i2c-cpm.c dma_free_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, ofdev 617 drivers/i2c/busses/i2c-cpm.c dma_free_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, ofdev 630 drivers/i2c/busses/i2c-cpm.c static int cpm_i2c_probe(struct platform_device *ofdev) ofdev 640 drivers/i2c/busses/i2c-cpm.c cpm->ofdev = ofdev; ofdev 642 drivers/i2c/busses/i2c-cpm.c platform_set_drvdata(ofdev, cpm); ofdev 646 drivers/i2c/busses/i2c-cpm.c cpm->adap.dev.parent = &ofdev->dev; ofdev 647 drivers/i2c/busses/i2c-cpm.c cpm->adap.dev.of_node = of_node_get(ofdev->dev.of_node); ofdev 651 drivers/i2c/busses/i2c-cpm.c dev_err(&ofdev->dev, "Unable to init hardware\n"); ofdev 657 drivers/i2c/busses/i2c-cpm.c data = of_get_property(ofdev->dev.of_node, "linux,i2c-index", &len); ofdev 664 drivers/i2c/busses/i2c-cpm.c dev_dbg(&ofdev->dev, "hw routines for %s registered.\n", ofdev 676 drivers/i2c/busses/i2c-cpm.c static int cpm_i2c_remove(struct platform_device *ofdev) ofdev 678 drivers/i2c/busses/i2c-cpm.c struct cpm_i2c *cpm = platform_get_drvdata(ofdev); ofdev 657 drivers/i2c/busses/i2c-ibm_iic.c static int iic_request_irq(struct platform_device *ofdev, ofdev 660 drivers/i2c/busses/i2c-ibm_iic.c struct device_node *np = ofdev->dev.of_node; ofdev 668 drivers/i2c/busses/i2c-ibm_iic.c dev_err(&ofdev->dev, "irq_of_parse_and_map failed\n"); ofdev 677 drivers/i2c/busses/i2c-ibm_iic.c dev_err(&ofdev->dev, "request_irq %d failed\n", irq); ofdev 688 drivers/i2c/busses/i2c-ibm_iic.c static int iic_probe(struct platform_device *ofdev) ofdev 690 drivers/i2c/busses/i2c-ibm_iic.c struct device_node *np = ofdev->dev.of_node; ofdev 698 drivers/i2c/busses/i2c-ibm_iic.c dev_err(&ofdev->dev, "failed to allocate device data\n"); ofdev 702 drivers/i2c/busses/i2c-ibm_iic.c platform_set_drvdata(ofdev, dev); ofdev 706 drivers/i2c/busses/i2c-ibm_iic.c dev_err(&ofdev->dev, "failed to iomap device\n"); ofdev 713 drivers/i2c/busses/i2c-ibm_iic.c dev->irq = iic_request_irq(ofdev, dev); ofdev 715 drivers/i2c/busses/i2c-ibm_iic.c dev_warn(&ofdev->dev, "using polling mode\n"); ofdev 725 drivers/i2c/busses/i2c-ibm_iic.c dev_err(&ofdev->dev, "Unable to get bus frequency\n"); ofdev 732 drivers/i2c/busses/i2c-ibm_iic.c dev_dbg(&ofdev->dev, "clckdiv = %d\n", dev->clckdiv); ofdev 739 drivers/i2c/busses/i2c-ibm_iic.c adap->dev.parent = &ofdev->dev; ofdev 751 drivers/i2c/busses/i2c-ibm_iic.c dev_info(&ofdev->dev, "using %s mode\n", ofdev 772 drivers/i2c/busses/i2c-ibm_iic.c static int iic_remove(struct platform_device *ofdev) ofdev 774 drivers/i2c/busses/i2c-ibm_iic.c struct ibm_iic_private *dev = platform_get_drvdata(ofdev); ofdev 1145 drivers/ide/pmac.c mdev->ofdev.dev.of_node); ofdev 1153 drivers/ide/pmac.c "%pOF!\n", mdev->ofdev.dev.of_node); ofdev 1165 drivers/ide/pmac.c "13\n", mdev->ofdev.dev.of_node); ofdev 1174 drivers/ide/pmac.c pmif->node = mdev->ofdev.dev.of_node; ofdev 1183 drivers/ide/pmac.c mdev->ofdev.dev.of_node); ofdev 1189 drivers/ide/pmac.c dev_set_drvdata(&mdev->ofdev.dev, pmif); ofdev 1195 drivers/ide/pmac.c hw.parent = &mdev->ofdev.dev; ofdev 1200 drivers/ide/pmac.c dev_set_drvdata(&mdev->ofdev.dev, NULL); ofdev 1220 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(&mdev->ofdev.dev); ofdev 1223 drivers/ide/pmac.c if (mesg.event != mdev->ofdev.dev.power.power_state.event ofdev 1227 drivers/ide/pmac.c mdev->ofdev.dev.power.power_state = mesg; ofdev 1236 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(&mdev->ofdev.dev); ofdev 1239 drivers/ide/pmac.c if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { ofdev 1242 drivers/ide/pmac.c mdev->ofdev.dev.power.power_state = PMSG_ON; ofdev 1354 drivers/ide/pmac.c pmac_ide_hwif_t *pmif = dev_get_drvdata(&mdev->ofdev.dev); ofdev 131 drivers/input/serio/apbps2.c static int apbps2_of_probe(struct platform_device *ofdev) ofdev 138 drivers/input/serio/apbps2.c priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); ofdev 140 drivers/input/serio/apbps2.c dev_err(&ofdev->dev, "memory allocation failed\n"); ofdev 145 drivers/input/serio/apbps2.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 146 drivers/input/serio/apbps2.c priv->regs = devm_ioremap_resource(&ofdev->dev, res); ofdev 154 drivers/input/serio/apbps2.c irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 155 drivers/input/serio/apbps2.c err = devm_request_irq(&ofdev->dev, irq, apbps2_isr, ofdev 158 drivers/input/serio/apbps2.c dev_err(&ofdev->dev, "request IRQ%d failed\n", irq); ofdev 163 drivers/input/serio/apbps2.c if (of_property_read_u32(ofdev->dev.of_node, "freq", &freq_hz)) { ofdev 164 drivers/input/serio/apbps2.c dev_err(&ofdev->dev, "unable to get core frequency\n"); ofdev 184 drivers/input/serio/apbps2.c dev_info(&ofdev->dev, "irq = %d, base = 0x%p\n", irq, priv->regs); ofdev 188 drivers/input/serio/apbps2.c platform_set_drvdata(ofdev, priv); ofdev 230 drivers/input/serio/xilinx_ps2.c static int xps2_of_probe(struct platform_device *ofdev) ofdev 235 drivers/input/serio/xilinx_ps2.c struct device *dev = &ofdev->dev; ofdev 312 drivers/input/serio/xilinx_ps2.c platform_set_drvdata(ofdev, drvdata); ofdev 53 drivers/macintosh/macio_asic.c tmp = get_device(&dev->ofdev.dev); ofdev 63 drivers/macintosh/macio_asic.c put_device(&dev->ofdev.dev); ofdev 238 drivers/macintosh/macio_asic.c dev->interrupt[index].name = dev_name(&dev->ofdev.dev); ofdev 246 drivers/macintosh/macio_asic.c struct device_node *np = dev->ofdev.dev.of_node; ofdev 287 drivers/macintosh/macio_asic.c struct device_node *np = dev->ofdev.dev.of_node; ofdev 302 drivers/macintosh/macio_asic.c res->name = dev_name(&dev->ofdev.dev); ofdev 315 drivers/macintosh/macio_asic.c struct device_node *np = dev->ofdev.dev.of_node; ofdev 325 drivers/macintosh/macio_asic.c res->name = dev_name(&dev->ofdev.dev); ofdev 338 drivers/macintosh/macio_asic.c index, dev_name(&dev->ofdev.dev)); ofdev 372 drivers/macintosh/macio_asic.c dev->ofdev.dev.of_node = np; ofdev 373 drivers/macintosh/macio_asic.c dev->ofdev.archdata.dma_mask = 0xffffffffUL; ofdev 374 drivers/macintosh/macio_asic.c dev->ofdev.dev.dma_mask = &dev->ofdev.archdata.dma_mask; ofdev 375 drivers/macintosh/macio_asic.c dev->ofdev.dev.coherent_dma_mask = dev->ofdev.archdata.dma_mask; ofdev 376 drivers/macintosh/macio_asic.c dev->ofdev.dev.parent = parent; ofdev 377 drivers/macintosh/macio_asic.c dev->ofdev.dev.bus = &macio_bus_type; ofdev 378 drivers/macintosh/macio_asic.c dev->ofdev.dev.release = macio_release_dev; ofdev 379 drivers/macintosh/macio_asic.c dev->ofdev.dev.dma_parms = &dev->dma_parms; ofdev 382 drivers/macintosh/macio_asic.c dma_set_max_seg_size(&dev->ofdev.dev, 65536); ofdev 383 drivers/macintosh/macio_asic.c dma_set_seg_boundary(&dev->ofdev.dev, 0xffffffff); ofdev 392 drivers/macintosh/macio_asic.c dev->ofdev.dev.archdata = chip->lbus.pdev->dev.archdata; ofdev 393 drivers/macintosh/macio_asic.c dev->ofdev.dev.dma_ops = chip->lbus.pdev->dev.dma_ops; ofdev 398 drivers/macintosh/macio_asic.c dev, &dev->ofdev, &dev->ofdev.dev, &dev->ofdev.dev.kobj); ofdev 404 drivers/macintosh/macio_asic.c dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s", ofdev 414 drivers/macintosh/macio_asic.c dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s", ofdev 425 drivers/macintosh/macio_asic.c if (of_device_register(&dev->ofdev) != 0) { ofdev 427 drivers/macintosh/macio_asic.c dev_name(&dev->ofdev.dev)); ofdev 481 drivers/macintosh/macio_asic.c mdev = macio_add_one_device(chip, &rdev->ofdev.dev, np, NULL, ofdev 493 drivers/macintosh/macio_asic.c pnode = mbdev->ofdev.dev.of_node; ofdev 498 drivers/macintosh/macio_asic.c if (macio_add_one_device(chip, &mbdev->ofdev.dev, np, ofdev 506 drivers/macintosh/macio_asic.c pnode = sdev->ofdev.dev.of_node; ofdev 511 drivers/macintosh/macio_asic.c if (macio_add_one_device(chip, &sdev->ofdev.dev, np, ofdev 563 drivers/macintosh/macio_asic.c dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); ofdev 569 drivers/macintosh/macio_asic.c return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL; ofdev 574 drivers/macintosh/macio_asic.c return devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); ofdev 615 drivers/macintosh/macio_asic.c dev_name(&dev->ofdev.dev)); ofdev 14 drivers/macintosh/macio_sysfs.c of = &to_macio_device (dev)->ofdev; ofdev 42 drivers/macintosh/macio_sysfs.c struct platform_device *ofdev; ofdev 44 drivers/macintosh/macio_sysfs.c ofdev = to_platform_device(dev); ofdev 45 drivers/macintosh/macio_sysfs.c return sprintf(buf, "%pOF\n", ofdev->dev.of_node); ofdev 505 drivers/macintosh/mediabay.c device_for_each_child(&bay->mdev->ofdev.dev, ofdev 519 drivers/macintosh/mediabay.c device_for_each_child(&bay->mdev->ofdev.dev, ofdev 525 drivers/macintosh/mediabay.c device_for_each_child(&bay->mdev->ofdev.dev, ofdev 564 drivers/macintosh/mediabay.c ofnode = mdev->ofdev.dev.of_node; ofdev 619 drivers/macintosh/mediabay.c if (state.event != mdev->ofdev.dev.power.power_state.event ofdev 626 drivers/macintosh/mediabay.c mdev->ofdev.dev.power.power_state = state; ofdev 635 drivers/macintosh/mediabay.c if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { ofdev 636 drivers/macintosh/mediabay.c mdev->ofdev.dev.power.power_state = PMSG_ON; ofdev 377 drivers/macintosh/rack-meter.c for_each_child_of_node(mdev->ofdev.dev.of_node, i2s) ofdev 408 drivers/macintosh/rack-meter.c dev_set_drvdata(&mdev->ofdev.dev, rm); ofdev 415 drivers/macintosh/rack-meter.c mdev->ofdev.dev.of_node); ofdev 422 drivers/macintosh/rack-meter.c mdev->ofdev.dev.of_node); ofdev 434 drivers/macintosh/rack-meter.c mdev->ofdev.dev.of_node); ofdev 522 drivers/macintosh/rack-meter.c dev_set_drvdata(&mdev->ofdev.dev, NULL); ofdev 528 drivers/macintosh/rack-meter.c struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); ofdev 534 drivers/macintosh/rack-meter.c dev_set_drvdata(&mdev->ofdev.dev, NULL); ofdev 567 drivers/macintosh/rack-meter.c struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); ofdev 200 drivers/mtd/nand/raw/fsl_upm.c static int fun_probe(struct platform_device *ofdev) ofdev 214 drivers/mtd/nand/raw/fsl_upm.c ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res); ofdev 216 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, "can't get IO base\n"); ofdev 222 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, "can't find UPM\n"); ofdev 226 drivers/mtd/nand/raw/fsl_upm.c prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset", ofdev 229 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, "can't get UPM address offset\n"); ofdev 235 drivers/mtd/nand/raw/fsl_upm.c prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size); ofdev 237 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, "can't get UPM command offset\n"); ofdev 243 drivers/mtd/nand/raw/fsl_upm.c prop = of_get_property(ofdev->dev.of_node, ofdev 248 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, "too much multiple chips\n"); ofdev 259 drivers/mtd/nand/raw/fsl_upm.c rnb_gpio = of_get_gpio(ofdev->dev.of_node, i); ofdev 261 drivers/mtd/nand/raw/fsl_upm.c ret = gpio_request(rnb_gpio, dev_name(&ofdev->dev)); ofdev 263 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, ofdev 270 drivers/mtd/nand/raw/fsl_upm.c dev_err(&ofdev->dev, "RNB gpio #%d is invalid\n", i); ofdev 275 drivers/mtd/nand/raw/fsl_upm.c prop = of_get_property(ofdev->dev.of_node, "chip-delay", NULL); ofdev 281 drivers/mtd/nand/raw/fsl_upm.c prop = of_get_property(ofdev->dev.of_node, "fsl,upm-wait-flags", &size); ofdev 288 drivers/mtd/nand/raw/fsl_upm.c fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start, ofdev 295 drivers/mtd/nand/raw/fsl_upm.c fun->dev = &ofdev->dev; ofdev 298 drivers/mtd/nand/raw/fsl_upm.c ret = fun_chip_init(fun, ofdev->dev.of_node, &io_res); ofdev 302 drivers/mtd/nand/raw/fsl_upm.c dev_set_drvdata(&ofdev->dev, fun); ofdev 317 drivers/mtd/nand/raw/fsl_upm.c static int fun_remove(struct platform_device *ofdev) ofdev 319 drivers/mtd/nand/raw/fsl_upm.c struct fsl_upm_nand *fun = dev_get_drvdata(&ofdev->dev); ofdev 33 drivers/mtd/nand/raw/ndfc.c struct platform_device *ofdev; ofdev 158 drivers/mtd/nand/raw/ndfc.c mtd->dev.parent = &ndfc->ofdev->dev; ofdev 165 drivers/mtd/nand/raw/ndfc.c mtd->name = kasprintf(GFP_KERNEL, "%s.%pOFn", dev_name(&ndfc->ofdev->dev), ofdev 185 drivers/mtd/nand/raw/ndfc.c static int ndfc_probe(struct platform_device *ofdev) ofdev 194 drivers/mtd/nand/raw/ndfc.c reg = of_get_property(ofdev->dev.of_node, "reg", &len); ofdev 196 drivers/mtd/nand/raw/ndfc.c dev_err(&ofdev->dev, "unable read reg property (%d)\n", len); ofdev 202 drivers/mtd/nand/raw/ndfc.c dev_err(&ofdev->dev, "invalid CS number (%d)\n", cs); ofdev 210 drivers/mtd/nand/raw/ndfc.c ndfc->ofdev = ofdev; ofdev 211 drivers/mtd/nand/raw/ndfc.c dev_set_drvdata(&ofdev->dev, ndfc); ofdev 213 drivers/mtd/nand/raw/ndfc.c ndfc->ndfcbase = of_iomap(ofdev->dev.of_node, 0); ofdev 215 drivers/mtd/nand/raw/ndfc.c dev_err(&ofdev->dev, "failed to get memory\n"); ofdev 222 drivers/mtd/nand/raw/ndfc.c reg = of_get_property(ofdev->dev.of_node, "ccr", NULL); ofdev 229 drivers/mtd/nand/raw/ndfc.c reg = of_get_property(ofdev->dev.of_node, "bank-settings", NULL); ofdev 235 drivers/mtd/nand/raw/ndfc.c err = ndfc_chip_init(ndfc, ofdev->dev.of_node); ofdev 244 drivers/mtd/nand/raw/ndfc.c static int ndfc_remove(struct platform_device *ofdev) ofdev 246 drivers/mtd/nand/raw/ndfc.c struct ndfc_controller *ndfc = dev_get_drvdata(&ofdev->dev); ofdev 76 drivers/mtd/nand/raw/pasemi_nand.c static int pasemi_nand_probe(struct platform_device *ofdev) ofdev 78 drivers/mtd/nand/raw/pasemi_nand.c struct device *dev = &ofdev->dev; ofdev 167 drivers/mtd/nand/raw/pasemi_nand.c static int pasemi_nand_remove(struct platform_device *ofdev) ofdev 122 drivers/mtd/nand/raw/socrates_nand.c static int socrates_nand_probe(struct platform_device *ofdev) ofdev 130 drivers/mtd/nand/raw/socrates_nand.c host = devm_kzalloc(&ofdev->dev, sizeof(*host), GFP_KERNEL); ofdev 134 drivers/mtd/nand/raw/socrates_nand.c host->io_base = of_iomap(ofdev->dev.of_node, 0); ofdev 136 drivers/mtd/nand/raw/socrates_nand.c dev_err(&ofdev->dev, "ioremap failed\n"); ofdev 142 drivers/mtd/nand/raw/socrates_nand.c host->dev = &ofdev->dev; ofdev 146 drivers/mtd/nand/raw/socrates_nand.c nand_set_flash_node(nand_chip, ofdev->dev.of_node); ofdev 148 drivers/mtd/nand/raw/socrates_nand.c mtd->dev.parent = &ofdev->dev; ofdev 162 drivers/mtd/nand/raw/socrates_nand.c dev_set_drvdata(&ofdev->dev, host); ofdev 182 drivers/mtd/nand/raw/socrates_nand.c static int socrates_nand_remove(struct platform_device *ofdev) ofdev 184 drivers/mtd/nand/raw/socrates_nand.c struct socrates_nand_host *host = dev_get_drvdata(&ofdev->dev); ofdev 1550 drivers/net/can/grcan.c static void grcan_sanitize_module_config(struct platform_device *ofdev) ofdev 1552 drivers/net/can/grcan.c grcan_sanitize_enable0(ofdev); ofdev 1553 drivers/net/can/grcan.c grcan_sanitize_enable1(ofdev); ofdev 1554 drivers/net/can/grcan.c grcan_sanitize_select(ofdev); ofdev 1555 drivers/net/can/grcan.c grcan_sanitize_txsize(ofdev); ofdev 1556 drivers/net/can/grcan.c grcan_sanitize_rxsize(ofdev); ofdev 1581 drivers/net/can/grcan.c static int grcan_setup_netdev(struct platform_device *ofdev, ofdev 1619 drivers/net/can/grcan.c dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n"); ofdev 1631 drivers/net/can/grcan.c SET_NETDEV_DEV(dev, &ofdev->dev); ofdev 1632 drivers/net/can/grcan.c dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n", ofdev 1639 drivers/net/can/grcan.c platform_set_drvdata(ofdev, dev); ofdev 1652 drivers/net/can/grcan.c static int grcan_probe(struct platform_device *ofdev) ofdev 1654 drivers/net/can/grcan.c struct device_node *np = ofdev->dev.of_node; ofdev 1671 drivers/net/can/grcan.c dev_err(&ofdev->dev, "unable to fetch \"freq\" property\n"); ofdev 1675 drivers/net/can/grcan.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 1676 drivers/net/can/grcan.c base = devm_ioremap_resource(&ofdev->dev, res); ofdev 1684 drivers/net/can/grcan.c dev_err(&ofdev->dev, "no irq found\n"); ofdev 1689 drivers/net/can/grcan.c grcan_sanitize_module_config(ofdev); ofdev 1691 drivers/net/can/grcan.c err = grcan_setup_netdev(ofdev, base, irq, ambafreq, txbug); ofdev 1700 drivers/net/can/grcan.c dev_err(&ofdev->dev, ofdev 1706 drivers/net/can/grcan.c static int grcan_remove(struct platform_device *ofdev) ofdev 1708 drivers/net/can/grcan.c struct net_device *dev = platform_get_drvdata(ofdev); ofdev 29 drivers/net/can/mscan/mpc5xxx_can.c u32 (*get_clock)(struct platform_device *ofdev, const char *clock_name, ofdev 31 drivers/net/can/mscan/mpc5xxx_can.c void (*put_clock)(struct platform_device *ofdev); ofdev 40 drivers/net/can/mscan/mpc5xxx_can.c static u32 mpc52xx_can_get_clock(struct platform_device *ofdev, ofdev 64 drivers/net/can/mscan/mpc5xxx_can.c freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); ofdev 74 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "can't get clock node!\n"); ofdev 80 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "can't map clock node!\n"); ofdev 97 drivers/net/can/mscan/mpc5xxx_can.c static u32 mpc52xx_can_get_clock(struct platform_device *ofdev, ofdev 105 drivers/net/can/mscan/mpc5xxx_can.c static u32 mpc512x_can_get_clock(struct platform_device *ofdev, ofdev 124 drivers/net/can/mscan/mpc5xxx_can.c np = ofdev->dev.of_node; ofdev 127 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, "device tree specs: clk src[%s] div[%d]\n", ofdev 154 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, "got a clk source spec[%d]\n", clk_from); ofdev 160 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, "no clk source spec, trying SYS\n"); ofdev 161 drivers/net/can/mscan/mpc5xxx_can.c clk_in = devm_clk_get(&ofdev->dev, "sys"); ofdev 171 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, ofdev 178 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, "no clk source spec, trying REF\n"); ofdev 179 drivers/net/can/mscan/mpc5xxx_can.c clk_in = devm_clk_get(&ofdev->dev, "ref"); ofdev 184 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, ofdev 196 drivers/net/can/mscan/mpc5xxx_can.c clk_can = devm_clk_get(&ofdev->dev, "ips"); ofdev 199 drivers/net/can/mscan/mpc5xxx_can.c priv = netdev_priv(dev_get_drvdata(&ofdev->dev)); ofdev 203 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, "clk from IPS, clksrc[%d] freq[%lu]\n", ofdev 208 drivers/net/can/mscan/mpc5xxx_can.c clk_can = devm_clk_get(&ofdev->dev, "mclk"); ofdev 211 drivers/net/can/mscan/mpc5xxx_can.c priv = netdev_priv(dev_get_drvdata(&ofdev->dev)); ofdev 214 drivers/net/can/mscan/mpc5xxx_can.c clk_in = devm_clk_get(&ofdev->dev, "sys"); ofdev 216 drivers/net/can/mscan/mpc5xxx_can.c clk_in = devm_clk_get(&ofdev->dev, "ref"); ofdev 225 drivers/net/can/mscan/mpc5xxx_can.c dev_dbg(&ofdev->dev, "clk from MCLK, clksrc[%d] freq[%lu]\n", ofdev 235 drivers/net/can/mscan/mpc5xxx_can.c clk_ipg = devm_clk_get(&ofdev->dev, "ipg"); ofdev 240 drivers/net/can/mscan/mpc5xxx_can.c priv = netdev_priv(dev_get_drvdata(&ofdev->dev)); ofdev 247 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "invalid clock source specification\n"); ofdev 252 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "cannot acquire or setup bitrate clock source\n"); ofdev 257 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "cannot acquire or setup register clock\n"); ofdev 262 drivers/net/can/mscan/mpc5xxx_can.c static void mpc512x_can_put_clock(struct platform_device *ofdev) ofdev 266 drivers/net/can/mscan/mpc5xxx_can.c priv = netdev_priv(dev_get_drvdata(&ofdev->dev)); ofdev 271 drivers/net/can/mscan/mpc5xxx_can.c static u32 mpc512x_can_get_clock(struct platform_device *ofdev, ofdev 280 drivers/net/can/mscan/mpc5xxx_can.c static int mpc5xxx_can_probe(struct platform_device *ofdev) ofdev 284 drivers/net/can/mscan/mpc5xxx_can.c struct device_node *np = ofdev->dev.of_node; ofdev 292 drivers/net/can/mscan/mpc5xxx_can.c match = of_match_device(mpc5xxx_can_table, &ofdev->dev); ofdev 299 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "couldn't ioremap\n"); ofdev 305 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "no irq found\n"); ofdev 313 drivers/net/can/mscan/mpc5xxx_can.c platform_set_drvdata(ofdev, dev); ofdev 314 drivers/net/can/mscan/mpc5xxx_can.c SET_NETDEV_DEV(dev, &ofdev->dev); ofdev 324 drivers/net/can/mscan/mpc5xxx_can.c priv->can.clock.freq = data->get_clock(ofdev, clock_name, ofdev 327 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "couldn't get MSCAN clock properties\n"); ofdev 333 drivers/net/can/mscan/mpc5xxx_can.c dev_err(&ofdev->dev, "registering %s failed (err=%d)\n", ofdev 338 drivers/net/can/mscan/mpc5xxx_can.c dev_info(&ofdev->dev, "MSCAN at 0x%p, irq %d, clock %d Hz\n", ofdev 353 drivers/net/can/mscan/mpc5xxx_can.c static int mpc5xxx_can_remove(struct platform_device *ofdev) ofdev 357 drivers/net/can/mscan/mpc5xxx_can.c struct net_device *dev = platform_get_drvdata(ofdev); ofdev 360 drivers/net/can/mscan/mpc5xxx_can.c match = of_match_device(mpc5xxx_can_table, &ofdev->dev); ofdev 365 drivers/net/can/mscan/mpc5xxx_can.c data->put_clock(ofdev); ofdev 375 drivers/net/can/mscan/mpc5xxx_can.c static int mpc5xxx_can_suspend(struct platform_device *ofdev, pm_message_t state) ofdev 377 drivers/net/can/mscan/mpc5xxx_can.c struct net_device *dev = platform_get_drvdata(ofdev); ofdev 386 drivers/net/can/mscan/mpc5xxx_can.c static int mpc5xxx_can_resume(struct platform_device *ofdev) ofdev 388 drivers/net/can/mscan/mpc5xxx_can.c struct net_device *dev = platform_get_drvdata(ofdev); ofdev 1342 drivers/net/ethernet/aeroflex/greth.c static int greth_of_probe(struct platform_device *ofdev) ofdev 1360 drivers/net/ethernet/aeroflex/greth.c greth->dev = &ofdev->dev; ofdev 1369 drivers/net/ethernet/aeroflex/greth.c greth->regs = of_ioremap(&ofdev->resource[0], 0, ofdev 1370 drivers/net/ethernet/aeroflex/greth.c resource_size(&ofdev->resource[0]), ofdev 1381 drivers/net/ethernet/aeroflex/greth.c greth->irq = ofdev->archdata.irqs[0]; ofdev 1456 drivers/net/ethernet/aeroflex/greth.c addr = of_get_mac_address(ofdev->dev.of_node); ofdev 1523 drivers/net/ethernet/aeroflex/greth.c of_iounmap(&ofdev->resource[0], greth->regs, resource_size(&ofdev->resource[0])); ofdev 1267 drivers/net/ethernet/apple/bmac.c SET_NETDEV_DEV(dev, &mdev->ofdev.dev); ofdev 153 drivers/net/ethernet/apple/mace.c SET_NETDEV_DEV(dev, &mdev->ofdev.dev); ofdev 919 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c static int fs_enet_probe(struct platform_device *ofdev) ofdev 932 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c match = of_match_device(fs_enet_match, &ofdev->dev); ofdev 941 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); ofdev 952 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); ofdev 953 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (!fpi->phy_node && of_phy_is_fixed_link(ofdev->dev.of_node)) { ofdev 954 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c err = of_phy_register_fixed_link(ofdev->dev.of_node); ofdev 961 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fpi->phy_node = of_node_get(ofdev->dev.of_node); ofdev 964 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc5125-fec")) { ofdev 965 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c phy_connection_type = of_get_property(ofdev->dev.of_node, ofdev 975 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c clk = devm_clk_get(&ofdev->dev, "per"); ofdev 995 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c SET_NETDEV_DEV(ndev, &ofdev->dev); ofdev 996 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c platform_set_drvdata(ofdev, ndev); ofdev 999 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep->dev = &ofdev->dev; ofdev 1016 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c mac_addr = of_get_mac_address(ofdev->dev.of_node); ofdev 1060 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (of_phy_is_fixed_link(ofdev->dev.of_node)) ofdev 1061 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c of_phy_deregister_fixed_link(ofdev->dev.of_node); ofdev 1067 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c static int fs_enet_remove(struct platform_device *ofdev) ofdev 1069 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c struct net_device *ndev = platform_get_drvdata(ofdev); ofdev 1080 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (of_phy_is_fixed_link(ofdev->dev.of_node)) ofdev 1081 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c of_phy_deregister_fixed_link(ofdev->dev.of_node); ofdev 88 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c struct platform_device *ofdev = to_platform_device(fep->dev); ofdev 92 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 96 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->fcc.fccp = of_iomap(ofdev->dev.of_node, 0); ofdev 100 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->fcc.ep = of_iomap(ofdev->dev.of_node, 1); ofdev 104 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->fcc.fcccp = of_iomap(ofdev->dev.of_node, 2); ofdev 94 drivers/net/ethernet/freescale/fs_enet/mac-fec.c struct platform_device *ofdev = to_platform_device(fep->dev); ofdev 96 drivers/net/ethernet/freescale/fs_enet/mac-fec.c fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 100 drivers/net/ethernet/freescale/fs_enet/mac-fec.c fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); ofdev 93 drivers/net/ethernet/freescale/fs_enet/mac-scc.c struct platform_device *ofdev = to_platform_device(fep->dev); ofdev 95 drivers/net/ethernet/freescale/fs_enet/mac-scc.c fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 99 drivers/net/ethernet/freescale/fs_enet/mac-scc.c fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); ofdev 103 drivers/net/ethernet/freescale/fs_enet/mac-scc.c fep->scc.ep = of_iomap(ofdev->dev.of_node, 1); ofdev 152 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c static int fs_enet_mdio_probe(struct platform_device *ofdev) ofdev 170 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node); ofdev 176 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c new_bus->parent = &ofdev->dev; ofdev 177 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c platform_set_drvdata(ofdev, new_bus); ofdev 179 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); ofdev 195 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c static int fs_enet_mdio_remove(struct platform_device *ofdev) ofdev 197 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c struct mii_bus *bus = platform_get_drvdata(ofdev); ofdev 99 drivers/net/ethernet/freescale/fs_enet/mii-fec.c static int fs_enet_mdio_probe(struct platform_device *ofdev) ofdev 108 drivers/net/ethernet/freescale/fs_enet/mii-fec.c match = of_match_device(fs_enet_mdio_fec_match, &ofdev->dev); ofdev 126 drivers/net/ethernet/freescale/fs_enet/mii-fec.c ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); ofdev 139 drivers/net/ethernet/freescale/fs_enet/mii-fec.c clock = get_bus_freq(ofdev->dev.of_node); ofdev 142 drivers/net/ethernet/freescale/fs_enet/mii-fec.c dev_warn(&ofdev->dev, "could not determine IPS clock\n"); ofdev 155 drivers/net/ethernet/freescale/fs_enet/mii-fec.c dev_err(&ofdev->dev, ofdev 170 drivers/net/ethernet/freescale/fs_enet/mii-fec.c new_bus->parent = &ofdev->dev; ofdev 171 drivers/net/ethernet/freescale/fs_enet/mii-fec.c platform_set_drvdata(ofdev, new_bus); ofdev 173 drivers/net/ethernet/freescale/fs_enet/mii-fec.c ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); ofdev 190 drivers/net/ethernet/freescale/fs_enet/mii-fec.c static int fs_enet_mdio_remove(struct platform_device *ofdev) ofdev 192 drivers/net/ethernet/freescale/fs_enet/mii-fec.c struct mii_bus *bus = platform_get_drvdata(ofdev); ofdev 639 drivers/net/ethernet/freescale/gianfar.c static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) ofdev 646 drivers/net/ethernet/freescale/gianfar.c struct device_node *np = ofdev->dev.of_node; ofdev 672 drivers/net/ethernet/freescale/gianfar.c dev_err(&ofdev->dev, "Invalid # of int groups(%d)\n", ofdev 954 drivers/net/ethernet/freescale/gianfar.c struct device *dev = &priv->ofdev->dev; ofdev 3302 drivers/net/ethernet/freescale/gianfar.c static int gfar_probe(struct platform_device *ofdev) ofdev 3304 drivers/net/ethernet/freescale/gianfar.c struct device_node *np = ofdev->dev.of_node; ofdev 3309 drivers/net/ethernet/freescale/gianfar.c err = gfar_of_init(ofdev, &dev); ofdev 3316 drivers/net/ethernet/freescale/gianfar.c priv->ofdev = ofdev; ofdev 3317 drivers/net/ethernet/freescale/gianfar.c priv->dev = &ofdev->dev; ofdev 3318 drivers/net/ethernet/freescale/gianfar.c SET_NETDEV_DEV(dev, &ofdev->dev); ofdev 3322 drivers/net/ethernet/freescale/gianfar.c platform_set_drvdata(ofdev, priv); ofdev 3424 drivers/net/ethernet/freescale/gianfar.c device_set_wakeup_capable(&ofdev->dev, priv->wol_supported); ofdev 3471 drivers/net/ethernet/freescale/gianfar.c static int gfar_remove(struct platform_device *ofdev) ofdev 3473 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = platform_get_drvdata(ofdev); ofdev 3474 drivers/net/ethernet/freescale/gianfar.c struct device_node *np = ofdev->dev.of_node; ofdev 1131 drivers/net/ethernet/freescale/gianfar.h struct platform_device *ofdev; ofdev 3559 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_suspend(struct platform_device *ofdev, pm_message_t state) ofdev 3561 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *ndev = platform_get_drvdata(ofdev); ofdev 3587 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_resume(struct platform_device *ofdev) ofdev 3589 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *ndev = platform_get_drvdata(ofdev); ofdev 3689 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_probe(struct platform_device* ofdev) ofdev 3691 drivers/net/ethernet/freescale/ucc_geth.c struct device *device = &ofdev->dev; ofdev 3692 drivers/net/ethernet/freescale/ucc_geth.c struct device_node *np = ofdev->dev.of_node; ofdev 3931 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_remove(struct platform_device* ofdev) ofdev 3933 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *dev = platform_get_drvdata(ofdev); ofdev 3935 drivers/net/ethernet/freescale/ucc_geth.c struct device_node *np = ofdev->dev.of_node; ofdev 380 drivers/net/ethernet/ibm/ehea/ehea.h struct platform_device *ofdev; ofdev 432 drivers/net/ethernet/ibm/ehea/ehea.h struct platform_device ofdev; /* Open Firmware Device */ ofdev 2872 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); ofdev 2880 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); ofdev 2881 drivers/net/ethernet/ibm/ehea/ehea_main.c of_node_put(port->ofdev.dev.of_node); ofdev 2889 drivers/net/ethernet/ibm/ehea/ehea_main.c port->ofdev.dev.of_node = of_node_get(dn); ofdev 2890 drivers/net/ethernet/ibm/ehea/ehea_main.c port->ofdev.dev.parent = &port->adapter->ofdev->dev; ofdev 2891 drivers/net/ethernet/ibm/ehea/ehea_main.c port->ofdev.dev.bus = &ibmebus_bus_type; ofdev 2893 drivers/net/ethernet/ibm/ehea/ehea_main.c dev_set_name(&port->ofdev.dev, "port%d", port_name_cnt++); ofdev 2894 drivers/net/ethernet/ibm/ehea/ehea_main.c port->ofdev.dev.release = logical_port_release; ofdev 2896 drivers/net/ethernet/ibm/ehea/ehea_main.c ret = of_device_register(&port->ofdev); ofdev 2902 drivers/net/ethernet/ibm/ehea/ehea_main.c ret = device_create_file(&port->ofdev.dev, &dev_attr_log_port_id); ofdev 2908 drivers/net/ethernet/ibm/ehea/ehea_main.c return &port->ofdev.dev; ofdev 2911 drivers/net/ethernet/ibm/ehea/ehea_main.c of_device_unregister(&port->ofdev); ofdev 2918 drivers/net/ethernet/ibm/ehea/ehea_main.c device_remove_file(&port->ofdev.dev, &dev_attr_log_port_id); ofdev 2919 drivers/net/ethernet/ibm/ehea/ehea_main.c of_device_unregister(&port->ofdev); ofdev 3065 drivers/net/ethernet/ibm/ehea/ehea_main.c lhea_dn = adapter->ofdev->dev.of_node; ofdev 3102 drivers/net/ethernet/ibm/ehea/ehea_main.c lhea_dn = adapter->ofdev->dev.of_node; ofdev 3385 drivers/net/ethernet/ibm/ehea/ehea_main.c adapter->ofdev = dev; ofdev 131 drivers/net/ethernet/ibm/emac/core.c printk(KERN_ERR "%pOF: %s\n", dev->ofdev->dev.of_node, error); ofdev 1081 drivers/net/ethernet/ibm/emac/core.c dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, ofdev 1184 drivers/net/ethernet/ibm/emac/core.c dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, ofdev 1473 drivers/net/ethernet/ibm/emac/core.c dev->tx_desc[slot].data_ptr = dma_map_single(&dev->ofdev->dev, ofdev 1544 drivers/net/ethernet/ibm/emac/core.c dma_map_single(&dev->ofdev->dev, skb->data, len, DMA_TO_DEVICE); ofdev 1558 drivers/net/ethernet/ibm/emac/core.c pd = skb_frag_dma_map(&dev->ofdev->dev, frag, 0, len, ofdev 1679 drivers/net/ethernet/ibm/emac/core.c dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, ofdev 2287 drivers/net/ethernet/ibm/emac/core.c dev->cell_index, dev->ofdev->dev.of_node); ofdev 2341 drivers/net/ethernet/ibm/emac/core.c struct platform_device *ofdev; ofdev 2380 drivers/net/ethernet/ibm/emac/core.c if (deps[i].ofdev == NULL) ofdev 2381 drivers/net/ethernet/ibm/emac/core.c deps[i].ofdev = of_find_device_by_node(deps[i].node); ofdev 2382 drivers/net/ethernet/ibm/emac/core.c if (deps[i].ofdev == NULL) ofdev 2385 drivers/net/ethernet/ibm/emac/core.c deps[i].drvdata = platform_get_drvdata(deps[i].ofdev); ofdev 2439 drivers/net/ethernet/ibm/emac/core.c of_dev_put(deps[i].ofdev); ofdev 2442 drivers/net/ethernet/ibm/emac/core.c dev->mal_dev = deps[EMAC_DEP_MAL_IDX].ofdev; ofdev 2443 drivers/net/ethernet/ibm/emac/core.c dev->zmii_dev = deps[EMAC_DEP_ZMII_IDX].ofdev; ofdev 2444 drivers/net/ethernet/ibm/emac/core.c dev->rgmii_dev = deps[EMAC_DEP_RGMII_IDX].ofdev; ofdev 2445 drivers/net/ethernet/ibm/emac/core.c dev->tah_dev = deps[EMAC_DEP_TAH_IDX].ofdev; ofdev 2446 drivers/net/ethernet/ibm/emac/core.c dev->mdio_dev = deps[EMAC_DEP_MDIO_IDX].ofdev; ofdev 2448 drivers/net/ethernet/ibm/emac/core.c of_dev_put(deps[EMAC_DEP_PREV_IDX].ofdev); ofdev 2547 drivers/net/ethernet/ibm/emac/core.c dev_err(&dev->ofdev->dev, "link update failed (%d).", res); ofdev 2594 drivers/net/ethernet/ibm/emac/core.c mii_np = of_get_child_by_name(dev->ofdev->dev.of_node, "mdio"); ofdev 2596 drivers/net/ethernet/ibm/emac/core.c dev_err(&dev->ofdev->dev, "no mdio definition found."); ofdev 2605 drivers/net/ethernet/ibm/emac/core.c dev->mii_bus = devm_mdiobus_alloc(&dev->ofdev->dev); ofdev 2617 drivers/net/ethernet/ibm/emac/core.c snprintf(dev->mii_bus->id, MII_BUS_ID_SIZE, "%s", dev->ofdev->name); ofdev 2620 drivers/net/ethernet/ibm/emac/core.c dev_err(&dev->ofdev->dev, "cannot register MDIO bus %s (%d)", ofdev 2632 drivers/net/ethernet/ibm/emac/core.c dev->phy.def = devm_kzalloc(&dev->ofdev->dev, sizeof(*dev->phy.def), ofdev 2640 drivers/net/ethernet/ibm/emac/core.c dev_err(&dev->ofdev->dev, "failed to connect to PHY.\n"); ofdev 2657 drivers/net/ethernet/ibm/emac/core.c struct device_node *np = dev->ofdev->dev.of_node; ofdev 2678 drivers/net/ethernet/ibm/emac/core.c struct device_node *np = dev->ofdev->dev.of_node; ofdev 2775 drivers/net/ethernet/ibm/emac/core.c dev_err(&dev->ofdev->dev, "failed to attach dt phy (%d).\n", ofdev 2850 drivers/net/ethernet/ibm/emac/core.c struct device_node *np = dev->ofdev->dev.of_node; ofdev 3033 drivers/net/ethernet/ibm/emac/core.c static int emac_probe(struct platform_device *ofdev) ofdev 3037 drivers/net/ethernet/ibm/emac/core.c struct device_node *np = ofdev->dev.of_node; ofdev 3061 drivers/net/ethernet/ibm/emac/core.c dev->ofdev = ofdev; ofdev 3063 drivers/net/ethernet/ibm/emac/core.c SET_NETDEV_DEV(ndev, &ofdev->dev); ofdev 3200 drivers/net/ethernet/ibm/emac/core.c platform_set_drvdata(ofdev, dev); ofdev 3255 drivers/net/ethernet/ibm/emac/core.c static int emac_remove(struct platform_device *ofdev) ofdev 3257 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = platform_get_drvdata(ofdev); ofdev 162 drivers/net/ethernet/ibm/emac/core.h struct platform_device *ofdev; ofdev 29 drivers/net/ethernet/ibm/emac/debug.h printk(KERN_DEBUG #name "%pOF: " fmt, d->ofdev->dev.of_node, ## arg) ofdev 514 drivers/net/ethernet/ibm/emac/mal.c static int mal_probe(struct platform_device *ofdev) ofdev 530 drivers/net/ethernet/ibm/emac/mal.c mal->ofdev = ofdev; ofdev 531 drivers/net/ethernet/ibm/emac/mal.c mal->version = of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal2") ? 2 : 1; ofdev 535 drivers/net/ethernet/ibm/emac/mal.c prop = of_get_property(ofdev->dev.of_node, "num-tx-chans", NULL); ofdev 545 drivers/net/ethernet/ibm/emac/mal.c prop = of_get_property(ofdev->dev.of_node, "num-rx-chans", NULL); ofdev 555 drivers/net/ethernet/ibm/emac/mal.c dcr_base = dcr_resource_start(ofdev->dev.of_node, 0); ofdev 562 drivers/net/ethernet/ibm/emac/mal.c mal->dcr_host = dcr_map(ofdev->dev.of_node, dcr_base, 0x100); ofdev 570 drivers/net/ethernet/ibm/emac/mal.c if (of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal-405ez")) { ofdev 577 drivers/net/ethernet/ibm/emac/mal.c ofdev->dev.of_node); ofdev 583 drivers/net/ethernet/ibm/emac/mal.c mal->txeob_irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); ofdev 584 drivers/net/ethernet/ibm/emac/mal.c mal->rxeob_irq = irq_of_parse_and_map(ofdev->dev.of_node, 1); ofdev 585 drivers/net/ethernet/ibm/emac/mal.c mal->serr_irq = irq_of_parse_and_map(ofdev->dev.of_node, 2); ofdev 590 drivers/net/ethernet/ibm/emac/mal.c mal->txde_irq = irq_of_parse_and_map(ofdev->dev.of_node, 3); ofdev 591 drivers/net/ethernet/ibm/emac/mal.c mal->rxde_irq = irq_of_parse_and_map(ofdev->dev.of_node, 4); ofdev 621 drivers/net/ethernet/ibm/emac/mal.c if (of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal-axon")) ofdev 634 drivers/net/ethernet/ibm/emac/mal.c mal->bd_virt = dma_alloc_coherent(&ofdev->dev, bd_size, &mal->bd_dma, ofdev 685 drivers/net/ethernet/ibm/emac/mal.c mal->version, ofdev->dev.of_node, ofdev 690 drivers/net/ethernet/ibm/emac/mal.c platform_set_drvdata(ofdev, mal); ofdev 703 drivers/net/ethernet/ibm/emac/mal.c dma_free_coherent(&ofdev->dev, bd_size, mal->bd_virt, mal->bd_dma); ofdev 712 drivers/net/ethernet/ibm/emac/mal.c static int mal_remove(struct platform_device *ofdev) ofdev 714 drivers/net/ethernet/ibm/emac/mal.c struct mal_instance *mal = platform_get_drvdata(ofdev); ofdev 735 drivers/net/ethernet/ibm/emac/mal.c dma_free_coherent(&ofdev->dev, ofdev 204 drivers/net/ethernet/ibm/emac/mal.h struct platform_device *ofdev; ofdev 78 drivers/net/ethernet/ibm/emac/rgmii.c int rgmii_attach(struct platform_device *ofdev, int input, int mode) ofdev 80 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 88 drivers/net/ethernet/ibm/emac/rgmii.c ofdev->dev.of_node); ofdev 98 drivers/net/ethernet/ibm/emac/rgmii.c ofdev->dev.of_node, input, phy_modes(mode)); ofdev 107 drivers/net/ethernet/ibm/emac/rgmii.c void rgmii_set_speed(struct platform_device *ofdev, int input, int speed) ofdev 109 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 131 drivers/net/ethernet/ibm/emac/rgmii.c void rgmii_get_mdio(struct platform_device *ofdev, int input) ofdev 133 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 152 drivers/net/ethernet/ibm/emac/rgmii.c void rgmii_put_mdio(struct platform_device *ofdev, int input) ofdev 154 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 173 drivers/net/ethernet/ibm/emac/rgmii.c void rgmii_detach(struct platform_device *ofdev, int input) ofdev 175 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 193 drivers/net/ethernet/ibm/emac/rgmii.c int rgmii_get_regs_len(struct platform_device *ofdev) ofdev 199 drivers/net/ethernet/ibm/emac/rgmii.c void *rgmii_dump_regs(struct platform_device *ofdev, void *buf) ofdev 201 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 215 drivers/net/ethernet/ibm/emac/rgmii.c static int rgmii_probe(struct platform_device *ofdev) ofdev 217 drivers/net/ethernet/ibm/emac/rgmii.c struct device_node *np = ofdev->dev.of_node; ofdev 228 drivers/net/ethernet/ibm/emac/rgmii.c dev->ofdev = ofdev; ofdev 245 drivers/net/ethernet/ibm/emac/rgmii.c if (of_get_property(ofdev->dev.of_node, "has-mdio", NULL)) ofdev 249 drivers/net/ethernet/ibm/emac/rgmii.c if (of_device_is_compatible(ofdev->dev.of_node, "ibm,rgmii-axon")) ofdev 260 drivers/net/ethernet/ibm/emac/rgmii.c ofdev->dev.of_node, ofdev 264 drivers/net/ethernet/ibm/emac/rgmii.c platform_set_drvdata(ofdev, dev); ofdev 274 drivers/net/ethernet/ibm/emac/rgmii.c static int rgmii_remove(struct platform_device *ofdev) ofdev 276 drivers/net/ethernet/ibm/emac/rgmii.c struct rgmii_instance *dev = platform_get_drvdata(ofdev); ofdev 50 drivers/net/ethernet/ibm/emac/rgmii.h struct platform_device *ofdev; ofdev 57 drivers/net/ethernet/ibm/emac/rgmii.h int rgmii_attach(struct platform_device *ofdev, int input, int mode); ofdev 58 drivers/net/ethernet/ibm/emac/rgmii.h void rgmii_detach(struct platform_device *ofdev, int input); ofdev 59 drivers/net/ethernet/ibm/emac/rgmii.h void rgmii_get_mdio(struct platform_device *ofdev, int input); ofdev 60 drivers/net/ethernet/ibm/emac/rgmii.h void rgmii_put_mdio(struct platform_device *ofdev, int input); ofdev 61 drivers/net/ethernet/ibm/emac/rgmii.h void rgmii_set_speed(struct platform_device *ofdev, int input, int speed); ofdev 62 drivers/net/ethernet/ibm/emac/rgmii.h int rgmii_get_regs_len(struct platform_device *ofdev); ofdev 63 drivers/net/ethernet/ibm/emac/rgmii.h void *rgmii_dump_regs(struct platform_device *ofdev, void *buf); ofdev 23 drivers/net/ethernet/ibm/emac/tah.c int tah_attach(struct platform_device *ofdev, int channel) ofdev 25 drivers/net/ethernet/ibm/emac/tah.c struct tah_instance *dev = platform_get_drvdata(ofdev); ofdev 35 drivers/net/ethernet/ibm/emac/tah.c void tah_detach(struct platform_device *ofdev, int channel) ofdev 37 drivers/net/ethernet/ibm/emac/tah.c struct tah_instance *dev = platform_get_drvdata(ofdev); ofdev 44 drivers/net/ethernet/ibm/emac/tah.c void tah_reset(struct platform_device *ofdev) ofdev 46 drivers/net/ethernet/ibm/emac/tah.c struct tah_instance *dev = platform_get_drvdata(ofdev); ofdev 57 drivers/net/ethernet/ibm/emac/tah.c printk(KERN_ERR "%pOF: reset timeout\n", ofdev->dev.of_node); ofdev 65 drivers/net/ethernet/ibm/emac/tah.c int tah_get_regs_len(struct platform_device *ofdev) ofdev 71 drivers/net/ethernet/ibm/emac/tah.c void *tah_dump_regs(struct platform_device *ofdev, void *buf) ofdev 73 drivers/net/ethernet/ibm/emac/tah.c struct tah_instance *dev = platform_get_drvdata(ofdev); ofdev 86 drivers/net/ethernet/ibm/emac/tah.c static int tah_probe(struct platform_device *ofdev) ofdev 88 drivers/net/ethernet/ibm/emac/tah.c struct device_node *np = ofdev->dev.of_node; ofdev 99 drivers/net/ethernet/ibm/emac/tah.c dev->ofdev = ofdev; ofdev 115 drivers/net/ethernet/ibm/emac/tah.c platform_set_drvdata(ofdev, dev); ofdev 118 drivers/net/ethernet/ibm/emac/tah.c tah_reset(ofdev); ofdev 120 drivers/net/ethernet/ibm/emac/tah.c printk(KERN_INFO "TAH %pOF initialized\n", ofdev->dev.of_node); ofdev 131 drivers/net/ethernet/ibm/emac/tah.c static int tah_remove(struct platform_device *ofdev) ofdev 133 drivers/net/ethernet/ibm/emac/tah.c struct tah_instance *dev = platform_get_drvdata(ofdev); ofdev 47 drivers/net/ethernet/ibm/emac/tah.h struct platform_device *ofdev; ofdev 73 drivers/net/ethernet/ibm/emac/tah.h int tah_attach(struct platform_device *ofdev, int channel); ofdev 74 drivers/net/ethernet/ibm/emac/tah.h void tah_detach(struct platform_device *ofdev, int channel); ofdev 75 drivers/net/ethernet/ibm/emac/tah.h void tah_reset(struct platform_device *ofdev); ofdev 76 drivers/net/ethernet/ibm/emac/tah.h int tah_get_regs_len(struct platform_device *ofdev); ofdev 77 drivers/net/ethernet/ibm/emac/tah.h void *tah_dump_regs(struct platform_device *ofdev, void *buf); ofdev 81 drivers/net/ethernet/ibm/emac/zmii.c int zmii_attach(struct platform_device *ofdev, int input, int *mode) ofdev 83 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 120 drivers/net/ethernet/ibm/emac/zmii.c ofdev->dev.of_node, ofdev 127 drivers/net/ethernet/ibm/emac/zmii.c ofdev->dev.of_node, *mode, input); ofdev 147 drivers/net/ethernet/ibm/emac/zmii.c void zmii_get_mdio(struct platform_device *ofdev, int input) ofdev 149 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 160 drivers/net/ethernet/ibm/emac/zmii.c void zmii_put_mdio(struct platform_device *ofdev, int input) ofdev 162 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 169 drivers/net/ethernet/ibm/emac/zmii.c void zmii_set_speed(struct platform_device *ofdev, int input, int speed) ofdev 171 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 190 drivers/net/ethernet/ibm/emac/zmii.c void zmii_detach(struct platform_device *ofdev, int input) ofdev 192 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 209 drivers/net/ethernet/ibm/emac/zmii.c int zmii_get_regs_len(struct platform_device *ofdev) ofdev 215 drivers/net/ethernet/ibm/emac/zmii.c void *zmii_dump_regs(struct platform_device *ofdev, void *buf) ofdev 217 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 230 drivers/net/ethernet/ibm/emac/zmii.c static int zmii_probe(struct platform_device *ofdev) ofdev 232 drivers/net/ethernet/ibm/emac/zmii.c struct device_node *np = ofdev->dev.of_node; ofdev 243 drivers/net/ethernet/ibm/emac/zmii.c dev->ofdev = ofdev; ofdev 266 drivers/net/ethernet/ibm/emac/zmii.c printk(KERN_INFO "ZMII %pOF initialized\n", ofdev->dev.of_node); ofdev 268 drivers/net/ethernet/ibm/emac/zmii.c platform_set_drvdata(ofdev, dev); ofdev 278 drivers/net/ethernet/ibm/emac/zmii.c static int zmii_remove(struct platform_device *ofdev) ofdev 280 drivers/net/ethernet/ibm/emac/zmii.c struct zmii_instance *dev = platform_get_drvdata(ofdev); ofdev 46 drivers/net/ethernet/ibm/emac/zmii.h struct platform_device *ofdev; ofdev 53 drivers/net/ethernet/ibm/emac/zmii.h int zmii_attach(struct platform_device *ofdev, int input, int *mode); ofdev 54 drivers/net/ethernet/ibm/emac/zmii.h void zmii_detach(struct platform_device *ofdev, int input); ofdev 55 drivers/net/ethernet/ibm/emac/zmii.h void zmii_get_mdio(struct platform_device *ofdev, int input); ofdev 56 drivers/net/ethernet/ibm/emac/zmii.h void zmii_put_mdio(struct platform_device *ofdev, int input); ofdev 57 drivers/net/ethernet/ibm/emac/zmii.h void zmii_set_speed(struct platform_device *ofdev, int input, int speed); ofdev 59 drivers/net/ethernet/ibm/emac/zmii.h void *zmii_dump_regs(struct platform_device *ofdev, void *buf); ofdev 1062 drivers/net/ethernet/xilinx/xilinx_emaclite.c static bool get_bool(struct platform_device *ofdev, const char *s) ofdev 1064 drivers/net/ethernet/xilinx/xilinx_emaclite.c u32 *p = (u32 *)of_get_property(ofdev->dev.of_node, s, NULL); ofdev 1067 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_warn(&ofdev->dev, "Parameter %s not found, defaulting to false\n", s); ofdev 1110 drivers/net/ethernet/xilinx/xilinx_emaclite.c static int xemaclite_of_probe(struct platform_device *ofdev) ofdev 1115 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct device *dev = &ofdev->dev; ofdev 1128 drivers/net/ethernet/xilinx/xilinx_emaclite.c SET_NETDEV_DEV(ndev, &ofdev->dev); ofdev 1134 drivers/net/ethernet/xilinx/xilinx_emaclite.c res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0); ofdev 1143 drivers/net/ethernet/xilinx/xilinx_emaclite.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); ofdev 1144 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->base_addr = devm_ioremap_resource(&ofdev->dev, res); ofdev 1156 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->tx_ping_pong = get_bool(ofdev, "xlnx,tx-ping-pong"); ofdev 1157 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->rx_ping_pong = get_bool(ofdev, "xlnx,rx-ping-pong"); ofdev 1158 drivers/net/ethernet/xilinx/xilinx_emaclite.c mac_address = of_get_mac_address(ofdev->dev.of_node); ofdev 1175 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); ofdev 1176 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_mdio_setup(lp, &ofdev->dev); ofdev 38 drivers/net/wireless/intersil/orinoco/airport.c struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); ofdev 66 drivers/net/wireless/intersil/orinoco/airport.c struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); ofdev 90 drivers/net/wireless/intersil/orinoco/airport.c struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); ofdev 161 drivers/net/wireless/intersil/orinoco/airport.c priv = alloc_orinocodev(sizeof(*card), &mdev->ofdev.dev, ofdev 56 drivers/of/device.c int of_device_add(struct platform_device *ofdev) ofdev 58 drivers/of/device.c BUG_ON(ofdev->dev.of_node == NULL); ofdev 62 drivers/of/device.c ofdev->name = dev_name(&ofdev->dev); ofdev 63 drivers/of/device.c ofdev->id = PLATFORM_DEVID_NONE; ofdev 70 drivers/of/device.c set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); ofdev 72 drivers/of/device.c return device_add(&ofdev->dev); ofdev 182 drivers/of/device.c void of_device_unregister(struct platform_device *ofdev) ofdev 184 drivers/of/device.c device_unregister(&ofdev->dev); ofdev 36 drivers/pcmcia/electra_cf.c struct platform_device *ofdev; ofdev 175 drivers/pcmcia/electra_cf.c static int electra_cf_probe(struct platform_device *ofdev) ofdev 177 drivers/pcmcia/electra_cf.c struct device *device = &ofdev->dev; ofdev 178 drivers/pcmcia/electra_cf.c struct device_node *np = ofdev->dev.of_node; ofdev 201 drivers/pcmcia/electra_cf.c cf->ofdev = ofdev; ofdev 280 drivers/pcmcia/electra_cf.c cf->socket.dev.parent = &ofdev->dev; ofdev 315 drivers/pcmcia/electra_cf.c device_init_wakeup(&ofdev->dev, 0); ofdev 321 drivers/pcmcia/electra_cf.c static int electra_cf_remove(struct platform_device *ofdev) ofdev 323 drivers/pcmcia/electra_cf.c struct device *device = &ofdev->dev; ofdev 490 drivers/scsi/mac53c94.c rc = scsi_add_host(host, &mdev->ofdev.dev); ofdev 1965 drivers/scsi/mesh.c if (scsi_add_host(mesh_host, &mdev->ofdev.dev)) ofdev 668 drivers/soc/fsl/qe/qe.c static int qe_resume(struct platform_device *ofdev) ofdev 675 drivers/soc/fsl/qe/qe.c static int qe_probe(struct platform_device *ofdev) ofdev 755 drivers/spi/spi-fsl-espi.c static int of_fsl_espi_probe(struct platform_device *ofdev) ofdev 757 drivers/spi/spi-fsl-espi.c struct device *dev = &ofdev->dev; ofdev 758 drivers/spi/spi-fsl-espi.c struct device_node *np = ofdev->dev.of_node; ofdev 113 drivers/spi/spi-fsl-lib.c int of_mpc8xxx_spi_probe(struct platform_device *ofdev) ofdev 115 drivers/spi/spi-fsl-lib.c struct device *dev = &ofdev->dev; ofdev 116 drivers/spi/spi-fsl-lib.c struct device_node *np = ofdev->dev.of_node; ofdev 122 drivers/spi/spi-fsl-lib.c pinfo = devm_kzalloc(&ofdev->dev, sizeof(*pinfo), GFP_KERNEL); ofdev 112 drivers/spi/spi-fsl-lib.h extern int of_mpc8xxx_spi_probe(struct platform_device *ofdev); ofdev 704 drivers/spi/spi-fsl-spi.c static int of_fsl_spi_probe(struct platform_device *ofdev) ofdev 706 drivers/spi/spi-fsl-spi.c struct device *dev = &ofdev->dev; ofdev 707 drivers/spi/spi-fsl-spi.c struct device_node *np = ofdev->dev.of_node; ofdev 713 drivers/spi/spi-fsl-spi.c ret = of_mpc8xxx_spi_probe(ofdev); ofdev 717 drivers/spi/spi-fsl-spi.c type = fsl_spi_get_type(&ofdev->dev); ofdev 750 drivers/spi/spi-fsl-spi.c irq = platform_get_irq(ofdev, 0); ofdev 768 drivers/spi/spi-fsl-spi.c static int of_fsl_spi_remove(struct platform_device *ofdev) ofdev 770 drivers/spi/spi-fsl-spi.c struct spi_master *master = platform_get_drvdata(ofdev); ofdev 54 drivers/tty/serial/8250/8250_of.c static int of_platform_serial_setup(struct platform_device *ofdev, ofdev 59 drivers/tty/serial/8250/8250_of.c struct device_node *np = ofdev->dev.of_node; ofdev 65 drivers/tty/serial/8250/8250_of.c pm_runtime_enable(&ofdev->dev); ofdev 66 drivers/tty/serial/8250/8250_of.c pm_runtime_get_sync(&ofdev->dev); ofdev 71 drivers/tty/serial/8250/8250_of.c info->clk = devm_clk_get(&ofdev->dev, NULL); ofdev 75 drivers/tty/serial/8250/8250_of.c dev_warn(&ofdev->dev, ofdev 92 drivers/tty/serial/8250/8250_of.c dev_warn(&ofdev->dev, "invalid address\n"); ofdev 125 drivers/tty/serial/8250/8250_of.c dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n", ofdev 163 drivers/tty/serial/8250/8250_of.c info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL); ofdev 179 drivers/tty/serial/8250/8250_of.c port->dev = &ofdev->dev; ofdev 200 drivers/tty/serial/8250/8250_of.c pm_runtime_put_sync(&ofdev->dev); ofdev 201 drivers/tty/serial/8250/8250_of.c pm_runtime_disable(&ofdev->dev); ofdev 208 drivers/tty/serial/8250/8250_of.c static int of_platform_serial_probe(struct platform_device *ofdev) ofdev 216 drivers/tty/serial/8250/8250_of.c port_type = (unsigned long)of_device_get_match_data(&ofdev->dev); ofdev 220 drivers/tty/serial/8250/8250_of.c if (of_property_read_bool(ofdev->dev.of_node, "used-by-rtas")) ofdev 228 drivers/tty/serial/8250/8250_of.c ret = of_platform_serial_setup(ofdev, port_type, &port8250.port, info); ofdev 236 drivers/tty/serial/8250/8250_of.c if ((of_property_read_u32(ofdev->dev.of_node, "tx-threshold", ofdev 241 drivers/tty/serial/8250/8250_of.c if (of_property_read_bool(ofdev->dev.of_node, "auto-flow-control")) ofdev 244 drivers/tty/serial/8250/8250_of.c if (of_property_read_u32(ofdev->dev.of_node, ofdev 255 drivers/tty/serial/8250/8250_of.c platform_set_drvdata(ofdev, info); ofdev 259 drivers/tty/serial/8250/8250_of.c pm_runtime_put_sync(&ofdev->dev); ofdev 260 drivers/tty/serial/8250/8250_of.c pm_runtime_disable(&ofdev->dev); ofdev 270 drivers/tty/serial/8250/8250_of.c static int of_platform_serial_remove(struct platform_device *ofdev) ofdev 272 drivers/tty/serial/8250/8250_of.c struct of_serial_info *info = platform_get_drvdata(ofdev); ofdev 277 drivers/tty/serial/8250/8250_of.c pm_runtime_put_sync(&ofdev->dev); ofdev 278 drivers/tty/serial/8250/8250_of.c pm_runtime_disable(&ofdev->dev); ofdev 1404 drivers/tty/serial/cpm_uart/cpm_uart_core.c static int cpm_uart_probe(struct platform_device *ofdev) ofdev 1415 drivers/tty/serial/cpm_uart/cpm_uart_core.c platform_set_drvdata(ofdev, pinfo); ofdev 1418 drivers/tty/serial/cpm_uart/cpm_uart_core.c pinfo->port.dev = &ofdev->dev; ofdev 1420 drivers/tty/serial/cpm_uart/cpm_uart_core.c ret = cpm_uart_init_port(ofdev->dev.of_node, pinfo); ofdev 1427 drivers/tty/serial/cpm_uart/cpm_uart_core.c static int cpm_uart_remove(struct platform_device *ofdev) ofdev 1429 drivers/tty/serial/cpm_uart/cpm_uart_core.c struct uart_cpm_port *pinfo = platform_get_drvdata(ofdev); ofdev 1552 drivers/tty/serial/pmac_zilog.c if (pmz_ports[i].node == mdev->ofdev.dev.of_node) ofdev 1560 drivers/tty/serial/pmac_zilog.c uap->port.dev = &mdev->ofdev.dev; ofdev 1561 drivers/tty/serial/pmac_zilog.c dev_set_drvdata(&mdev->ofdev.dev, uap); ofdev 1582 drivers/tty/serial/pmac_zilog.c struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); ofdev 1593 drivers/tty/serial/pmac_zilog.c dev_set_drvdata(&mdev->ofdev.dev, NULL); ofdev 1603 drivers/tty/serial/pmac_zilog.c struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); ofdev 1618 drivers/tty/serial/pmac_zilog.c struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); ofdev 1191 drivers/tty/serial/ucc_uart.c static int ucc_uart_probe(struct platform_device *ofdev) ofdev 1193 drivers/tty/serial/ucc_uart.c struct device_node *np = ofdev->dev.of_node; ofdev 1204 drivers/tty/serial/ucc_uart.c dev_dbg(&ofdev->dev, "using Soft-UART mode\n"); ofdev 1228 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "unknown CPU model\n"); ofdev 1234 drivers/tty/serial/ucc_uart.c dev_info(&ofdev->dev, "waiting for firmware %s\n", ofdev 1245 drivers/tty/serial/ucc_uart.c FW_ACTION_HOTPLUG, filename, &ofdev->dev, ofdev 1246 drivers/tty/serial/ucc_uart.c GFP_KERNEL, &ofdev->dev, uart_firmware_cont); ofdev 1248 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, ofdev 1258 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "can't allocate QE port structure\n"); ofdev 1265 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "missing 'reg' property in device tree\n"); ofdev 1269 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "invalid 'reg' property in device tree\n"); ofdev 1281 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "UCC is unspecified in " ofdev 1289 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "no support for UCC%u\n", *iprop); ofdev 1304 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "missing rx-clock-name in device tree\n"); ofdev 1312 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "rx-clock-name must be a BRG for UART\n"); ofdev 1323 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "missing tx-clock-name in device tree\n"); ofdev 1331 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "tx-clock-name must be a BRG for UART\n"); ofdev 1339 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "missing port-number in device tree\n"); ofdev 1345 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "port-number must be 0-%u\n", ofdev 1353 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "could not map IRQ for UCC%u\n", ofdev 1367 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "could not find 'qe' node\n"); ofdev 1375 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, ofdev 1391 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, ofdev 1399 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, ofdev 1408 drivers/tty/serial/ucc_uart.c qe_port->port.dev = &ofdev->dev; ofdev 1438 drivers/tty/serial/ucc_uart.c dev_err(&ofdev->dev, "could not add /dev/ttyQE%u\n", ofdev 1443 drivers/tty/serial/ucc_uart.c platform_set_drvdata(ofdev, qe_port); ofdev 1445 drivers/tty/serial/ucc_uart.c dev_info(&ofdev->dev, "UCC%u assigned to /dev/ttyQE%u\n", ofdev 1449 drivers/tty/serial/ucc_uart.c dev_dbg(&ofdev->dev, "mknod command is 'mknod /dev/ttyQE%u c %u %u'\n", ofdev 1461 drivers/tty/serial/ucc_uart.c static int ucc_uart_remove(struct platform_device *ofdev) ofdev 1463 drivers/tty/serial/ucc_uart.c struct uart_qe_port *qe_port = platform_get_drvdata(ofdev); ofdev 1465 drivers/tty/serial/ucc_uart.c dev_info(&ofdev->dev, "removing /dev/ttyQE%u\n", qe_port->port.line); ofdev 2326 drivers/usb/gadget/udc/fsl_qe_udc.c static struct qe_udc *qe_udc_config(struct platform_device *ofdev) ofdev 2329 drivers/usb/gadget/udc/fsl_qe_udc.c struct device_node *np = ofdev->dev.of_node; ofdev 2340 drivers/usb/gadget/udc/fsl_qe_udc.c udc->dev = &ofdev->dev; ofdev 2461 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_udc_probe(struct platform_device *ofdev) ofdev 2465 drivers/usb/gadget/udc/fsl_qe_udc.c struct device_node *np = ofdev->dev.of_node; ofdev 2471 drivers/usb/gadget/udc/fsl_qe_udc.c match = of_match_device(qe_udc_match, &ofdev->dev); ofdev 2480 drivers/usb/gadget/udc/fsl_qe_udc.c udc = qe_udc_config(ofdev); ofdev 2482 drivers/usb/gadget/udc/fsl_qe_udc.c dev_err(&ofdev->dev, "failed to initialize\n"); ofdev 2511 drivers/usb/gadget/udc/fsl_qe_udc.c udc->gadget.dev.parent = &ofdev->dev; ofdev 2529 drivers/usb/gadget/udc/fsl_qe_udc.c udc->nullbuf = devm_kzalloc(&ofdev->dev, 256, GFP_KERNEL); ofdev 2536 drivers/usb/gadget/udc/fsl_qe_udc.c udc->statusbuf = devm_kzalloc(&ofdev->dev, 2, GFP_KERNEL); ofdev 2573 drivers/usb/gadget/udc/fsl_qe_udc.c ret = usb_add_gadget_udc_release(&ofdev->dev, &udc->gadget, ofdev 2578 drivers/usb/gadget/udc/fsl_qe_udc.c platform_set_drvdata(ofdev, udc); ofdev 2624 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_udc_remove(struct platform_device *ofdev) ofdev 2626 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = platform_get_drvdata(ofdev); ofdev 560 drivers/usb/host/fhci-hcd.c static int of_fhci_probe(struct platform_device *ofdev) ofdev 562 drivers/usb/host/fhci-hcd.c struct device *dev = &ofdev->dev; ofdev 804 drivers/usb/host/fhci-hcd.c static int of_fhci_remove(struct platform_device *ofdev) ofdev 806 drivers/usb/host/fhci-hcd.c return fhci_remove(&ofdev->dev); ofdev 78 drivers/usb/host/fsl-mph-dr-of.c struct platform_device *ofdev, ofdev 83 drivers/usb/host/fsl-mph-dr-of.c const struct resource *res = ofdev->resource; ofdev 84 drivers/usb/host/fsl-mph-dr-of.c unsigned int num = ofdev->num_resources; ofdev 93 drivers/usb/host/fsl-mph-dr-of.c pdev->dev.parent = &ofdev->dev; ofdev 95 drivers/usb/host/fsl-mph-dr-of.c pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask; ofdev 98 drivers/usb/host/fsl-mph-dr-of.c pdev->dev.dma_mask = &ofdev->dev.coherent_dma_mask; ofdev 171 drivers/usb/host/fsl-mph-dr-of.c static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) ofdev 173 drivers/usb/host/fsl-mph-dr-of.c struct device_node *np = ofdev->dev.of_node; ofdev 185 drivers/usb/host/fsl-mph-dr-of.c match = of_match_device(fsl_usb2_mph_dr_of_match, &ofdev->dev); ofdev 241 drivers/usb/host/fsl-mph-dr-of.c dev_warn(&ofdev->dev, "Could not get controller version\n"); ofdev 249 drivers/usb/host/fsl-mph-dr-of.c usb_dev = fsl_usb2_device_register(ofdev, pdata, ofdev 252 drivers/usb/host/fsl-mph-dr-of.c dev_err(&ofdev->dev, "Can't register usb device\n"); ofdev 266 drivers/usb/host/fsl-mph-dr-of.c static int fsl_usb2_mph_dr_of_remove(struct platform_device *ofdev) ofdev 268 drivers/usb/host/fsl-mph-dr-of.c device_for_each_child(&ofdev->dev, NULL, __unregister_subdev); ofdev 1611 drivers/video/fbdev/fsl-diu-fb.c static int fsl_diu_suspend(struct platform_device *ofdev, pm_message_t state) ofdev 1615 drivers/video/fbdev/fsl-diu-fb.c data = dev_get_drvdata(&ofdev->dev); ofdev 1621 drivers/video/fbdev/fsl-diu-fb.c static int fsl_diu_resume(struct platform_device *ofdev) ofdev 1626 drivers/video/fbdev/fsl-diu-fb.c data = dev_get_drvdata(&ofdev->dev); ofdev 667 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c static int of_platform_mb862xx_probe(struct platform_device *ofdev) ofdev 669 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c struct device_node *np = ofdev->dev.of_node; ofdev 670 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c struct device *dev = &ofdev->dev; ofdev 782 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c static int of_platform_mb862xx_remove(struct platform_device *ofdev) ofdev 784 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); ofdev 802 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c device_remove_file(&ofdev->dev, &dev_attr_dispregs); ofdev 127 drivers/watchdog/mpc8xxx_wdt.c static int mpc8xxx_wdt_probe(struct platform_device *ofdev) ofdev 135 drivers/watchdog/mpc8xxx_wdt.c struct device *dev = &ofdev->dev; ofdev 148 drivers/watchdog/mpc8xxx_wdt.c ddata->base = devm_platform_ioremap_resource(ofdev, 0); ofdev 158 drivers/watchdog/mpc8xxx_wdt.c res = platform_get_resource(ofdev, IORESOURCE_MEM, 1); ofdev 211 drivers/watchdog/mpc8xxx_wdt.c platform_set_drvdata(ofdev, ddata); ofdev 33 include/linux/of_device.h extern int of_device_register(struct platform_device *ofdev); ofdev 34 include/linux/of_device.h extern void of_device_unregister(struct platform_device *ofdev); ofdev 1009 sound/aoa/fabrics/layout.c for_each_child_of_node(sdev->ofdev.dev.of_node, sound) { ofdev 1055 sound/aoa/fabrics/layout.c dev_set_drvdata(&sdev->ofdev.dev, ldev); ofdev 1071 sound/aoa/fabrics/layout.c err = aoa_fabric_register(&layout_fabric, &sdev->ofdev.dev); ofdev 1099 sound/aoa/fabrics/layout.c struct layout_dev *ldev = dev_get_drvdata(&sdev->ofdev.dev); ofdev 21 sound/aoa/soundbus/core.c tmp = get_device(&dev->ofdev.dev); ofdev 32 sound/aoa/soundbus/core.c put_device(&dev->ofdev.dev); ofdev 73 sound/aoa/soundbus/core.c of = &soundbus_dev->ofdev; ofdev 145 sound/aoa/soundbus/core.c !dev->ofdev.dev.of_node || ofdev 152 sound/aoa/soundbus/core.c dev_set_name(&dev->ofdev.dev, "soundbus:%x", ++devcount); ofdev 153 sound/aoa/soundbus/core.c dev->ofdev.dev.bus = &soundbus_bus_type; ofdev 154 sound/aoa/soundbus/core.c return of_device_register(&dev->ofdev); ofdev 160 sound/aoa/soundbus/core.c of_device_unregister(&dev->ofdev); ofdev 44 sound/aoa/soundbus/i2sbus/control.c np = i2sdev->sound.ofdev.dev.of_node; ofdev 75 sound/aoa/soundbus/i2sbus/core.c i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); ofdev 221 sound/aoa/soundbus/i2sbus/core.c dev->sound.ofdev.archdata.dma_mask = macio->ofdev.archdata.dma_mask; ofdev 222 sound/aoa/soundbus/i2sbus/core.c dev->sound.ofdev.dev.of_node = np; ofdev 223 sound/aoa/soundbus/i2sbus/core.c dev->sound.ofdev.dev.dma_mask = &dev->sound.ofdev.archdata.dma_mask; ofdev 224 sound/aoa/soundbus/i2sbus/core.c dev->sound.ofdev.dev.parent = &macio->ofdev.dev; ofdev 225 sound/aoa/soundbus/i2sbus/core.c dev->sound.ofdev.dev.release = i2sbus_release_dev; ofdev 344 sound/aoa/soundbus/i2sbus/core.c while ((np = of_get_next_child(dev->ofdev.dev.of_node, np))) { ofdev 357 sound/aoa/soundbus/i2sbus/core.c dev_set_drvdata(&dev->ofdev.dev, control); ofdev 364 sound/aoa/soundbus/i2sbus/core.c struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev); ofdev 376 sound/aoa/soundbus/i2sbus/core.c struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev); ofdev 400 sound/aoa/soundbus/i2sbus/core.c struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev); ofdev 990 sound/aoa/soundbus/i2sbus/pcm.c &dev->ofdev.dev; ofdev 1007 sound/aoa/soundbus/i2sbus/pcm.c &dev->ofdev.dev; ofdev 143 sound/aoa/soundbus/soundbus.h struct platform_device ofdev; ofdev 172 sound/aoa/soundbus/soundbus.h #define to_soundbus_device(d) container_of(d, struct soundbus_dev, ofdev.dev) ofdev 173 sound/aoa/soundbus/soundbus.h #define of_to_soundbus_device(d) container_of(d, struct soundbus_dev, ofdev) ofdev 12 sound/aoa/soundbus/sysfs.c struct platform_device *of = &sdev->ofdev; ofdev 33 sound/aoa/soundbus/sysfs.c struct platform_device *of = &sdev->ofdev; ofdev 43 sound/aoa/soundbus/sysfs.c struct platform_device *of = &sdev->ofdev;