/arch/sparc/kernel/ |
D | leon_pci_grpci1.c | 510 static int grpci1_of_probe(struct platform_device *ofdev) in grpci1_of_probe() argument 520 dev_err(&ofdev->dev, "only one GRPCI1 supported\n"); in grpci1_of_probe() 524 if (ofdev->num_resources < 3) { in grpci1_of_probe() 525 dev_err(&ofdev->dev, "not enough APB/AHB resources\n"); in grpci1_of_probe() 529 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); in grpci1_of_probe() 531 dev_err(&ofdev->dev, "memory allocation failed\n"); in grpci1_of_probe() 534 platform_set_drvdata(ofdev, priv); in grpci1_of_probe() 535 priv->dev = &ofdev->dev; in grpci1_of_probe() 538 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in grpci1_of_probe() 539 regs = devm_ioremap_resource(&ofdev->dev, res); in grpci1_of_probe() [all …]
|
D | leon_pci_grpci2.c | 682 static int grpci2_of_probe(struct platform_device *ofdev) in grpci2_of_probe() argument 695 if (ofdev->num_resources < 3) { in grpci2_of_probe() 701 regs = of_ioremap(&ofdev->resource[0], 0, in grpci2_of_probe() 702 resource_size(&ofdev->resource[0]), in grpci2_of_probe() 727 priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ in grpci2_of_probe() 736 tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); in grpci2_of_probe() 743 tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); in grpci2_of_probe() 750 tmp = of_get_property(ofdev->dev.of_node, "reset", &len); in grpci2_of_probe() 757 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe() 758 priv->pci_area_end = ofdev->resource[1].end+1; in grpci2_of_probe() [all …]
|
D | leon_pci.c | 24 void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info) in leon_pci_init() argument 35 root_bus = pci_scan_root_bus(&ofdev->dev, 0, info->ops, info, in leon_pci_init()
|
/arch/powerpc/include/asm/ |
D | macio.h | 41 struct platform_device ofdev; member 48 #define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) 49 #define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev) 101 dev_set_drvdata(&dev->ofdev.dev, data); in macio_set_drvdata() 106 return dev_get_drvdata(&dev->ofdev.dev); in macio_get_drvdata() 111 return mdev->ofdev.dev.of_node; in macio_get_of_node()
|
/arch/powerpc/sysdev/ |
D | fsl_pmc.c | 62 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument 64 pmc_regs = of_iomap(ofdev->dev.of_node, 0); in pmc_probe() 68 pmc_dev = &ofdev->dev; in pmc_probe()
|
D | fsl_msi.c | 311 static int fsl_of_msi_remove(struct platform_device *ofdev) in fsl_of_msi_remove() argument 313 struct fsl_msi *msi = platform_get_drvdata(ofdev); in fsl_of_msi_remove()
|
/arch/powerpc/platforms/83xx/ |
D | suspend.c | 324 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument 327 struct device_node *np = ofdev->dev.of_node; in pmc_probe() 332 match = of_match_device(pmc_match, &ofdev->dev); in pmc_probe() 343 pmc_dev = ofdev; in pmc_probe() 356 "pmc", ofdev); in pmc_probe() 403 free_irq(pmc_irq, ofdev); in pmc_probe() 408 static int pmc_remove(struct platform_device *ofdev) in pmc_remove() argument
|
/arch/powerpc/platforms/82xx/ |
D | ep8248e.c | 114 static int ep8248e_mdio_probe(struct platform_device *ofdev) in ep8248e_mdio_probe() argument 121 node = of_get_parent(ofdev->dev.of_node); in ep8248e_mdio_probe() 126 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); in ep8248e_mdio_probe() 141 bus->parent = &ofdev->dev; in ep8248e_mdio_probe() 144 ret = of_mdiobus_register(bus, ofdev->dev.of_node); in ep8248e_mdio_probe() 156 static int ep8248e_mdio_remove(struct platform_device *ofdev) in ep8248e_mdio_remove() argument
|
/arch/powerpc/platforms/52xx/ |
D | mpc52xx_gpt.c | 723 static int mpc52xx_gpt_probe(struct platform_device *ofdev) in mpc52xx_gpt_probe() argument 732 gpt->dev = &ofdev->dev; in mpc52xx_gpt_probe() 733 gpt->ipb_freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); in mpc52xx_gpt_probe() 734 gpt->regs = of_iomap(ofdev->dev.of_node, 0); in mpc52xx_gpt_probe() 740 dev_set_drvdata(&ofdev->dev, gpt); in mpc52xx_gpt_probe() 742 mpc52xx_gpt_gpio_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe() 743 mpc52xx_gpt_irq_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe() 750 if (of_get_property(ofdev->dev.of_node, "fsl,has-wdt", NULL) || in mpc52xx_gpt_probe() 751 of_get_property(ofdev->dev.of_node, "has-wdt", NULL)) { in mpc52xx_gpt_probe() 755 on_boot_wdt = of_get_property(ofdev->dev.of_node, in mpc52xx_gpt_probe() [all …]
|
/arch/sparc/include/asm/ |
D | leon_pci.h | 19 extern void leon_pci_init(struct platform_device *ofdev,
|
/arch/powerpc/platforms/pasemi/ |
D | gpio_mdio.c | 219 static int gpio_mdio_probe(struct platform_device *ofdev) in gpio_mdio_probe() argument 221 struct device *dev = &ofdev->dev; in gpio_mdio_probe() 222 struct device_node *np = ofdev->dev.of_node; in gpio_mdio_probe()
|
/arch/powerpc/kernel/ |
D | ibmebus.c | 387 struct platform_device *ofdev; in devspec_show() local 389 ofdev = to_platform_device(dev); in devspec_show() 390 return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name); in devspec_show() 396 struct platform_device *ofdev; in name_show() local 398 ofdev = to_platform_device(dev); in name_show() 399 return sprintf(buf, "%s\n", ofdev->dev.of_node->name); in name_show()
|
/arch/powerpc/platforms/512x/ |
D | clock.c | 686 struct platform_device *ofdev; in psc_clks_init() local 700 ofdev = of_find_device_by_node(np); in psc_clks_init() 701 clk->dev = &ofdev->dev; in psc_clks_init()
|
/arch/powerpc/sysdev/qe_lib/ |
D | qe.c | 676 static int qe_resume(struct platform_device *ofdev) in qe_resume() argument 683 static int qe_probe(struct platform_device *ofdev) in qe_probe() argument
|