Home
last modified time | relevance | path

Searched refs:ofdev (Results 1 – 13 of 13) sorted by relevance

/arch/sparc/kernel/
A Dleon_pci_grpci1.c526 if (ofdev->num_resources < 3) { in grpci1_of_probe()
533 dev_err(&ofdev->dev, "memory allocation failed\n"); in grpci1_of_probe()
536 platform_set_drvdata(ofdev, priv); in grpci1_of_probe()
537 priv->dev = &ofdev->dev; in grpci1_of_probe()
541 regs = devm_ioremap_resource(&ofdev->dev, res); in grpci1_of_probe()
551 dev_err(&ofdev->dev, "not in host system slot\n"); in grpci1_of_probe()
574 priv->pci_area = ofdev->resource[1].start; in grpci1_of_probe()
575 priv->pci_area_end = ofdev->resource[1].end+1; in grpci1_of_probe()
576 priv->pci_io = ofdev->resource[2].start; in grpci1_of_probe()
660 err = devm_request_irq(&ofdev->dev, priv->irq_err, in grpci1_of_probe()
[all …]
A Dleon_pci_grpci2.c699 if (ofdev->num_resources < 3) { in grpci2_of_probe()
705 regs = of_ioremap(&ofdev->resource[0], 0, in grpci2_of_probe()
706 resource_size(&ofdev->resource[0]), in grpci2_of_probe()
760 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe()
762 priv->pci_io = ofdev->resource[2].start; in grpci2_of_probe()
828 priv->virq_dma = ofdev->archdata.irqs[1]; in grpci2_of_probe()
844 priv->irq_map[i] = ofdev->archdata.irqs[i]; in grpci2_of_probe()
848 priv->virq_dma = ofdev->archdata.irqs[4]; in grpci2_of_probe()
873 leon_pci_init(ofdev, &priv->info); in grpci2_of_probe()
887 of_iounmap(&ofdev->resource[0], regs, in grpci2_of_probe()
[all …]
A Dleon_pci.c26 void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info) in leon_pci_init() argument
44 bridge->dev.parent = &ofdev->dev; in leon_pci_init()
/arch/powerpc/include/asm/
A Dmacio.h43 struct platform_device ofdev; member
50 #define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev)
51 #define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev)
103 dev_set_drvdata(&dev->ofdev.dev, data); in macio_set_drvdata()
108 return dev_get_drvdata(&dev->ofdev.dev); in macio_get_drvdata()
113 return mdev->ofdev.dev.of_node; in macio_get_of_node()
/arch/powerpc/sysdev/
A Dfsl_pmc.c59 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument
61 pmc_regs = of_iomap(ofdev->dev.of_node, 0); in pmc_probe()
65 pmc_dev = &ofdev->dev; in pmc_probe()
A Dcpm_gpio.c20 static int cpm_gpio_probe(struct platform_device *ofdev) in cpm_gpio_probe() argument
22 struct device *dev = &ofdev->dev; in cpm_gpio_probe()
A Dfsl_msi.c323 static void fsl_of_msi_remove(struct platform_device *ofdev) in fsl_of_msi_remove() argument
325 struct fsl_msi *msi = platform_get_drvdata(ofdev); in fsl_of_msi_remove()
/arch/powerpc/platforms/82xx/
A Dep8248e.c109 static int ep8248e_mdio_probe(struct platform_device *ofdev) in ep8248e_mdio_probe() argument
116 node = of_get_parent(ofdev->dev.of_node); in ep8248e_mdio_probe()
121 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); in ep8248e_mdio_probe()
130 bus->parent = &ofdev->dev; in ep8248e_mdio_probe()
133 ret = of_mdiobus_register(bus, ofdev->dev.of_node); in ep8248e_mdio_probe()
/arch/powerpc/platforms/52xx/
A Dmpc52xx_gpt.c713 static int mpc52xx_gpt_probe(struct platform_device *ofdev) in mpc52xx_gpt_probe() argument
717 gpt = devm_kzalloc(&ofdev->dev, sizeof *gpt, GFP_KERNEL); in mpc52xx_gpt_probe()
722 gpt->dev = &ofdev->dev; in mpc52xx_gpt_probe()
723 gpt->ipb_freq = mpc5xxx_get_bus_frequency(&ofdev->dev); in mpc52xx_gpt_probe()
724 gpt->regs = of_iomap(ofdev->dev.of_node, 0); in mpc52xx_gpt_probe()
728 dev_set_drvdata(&ofdev->dev, gpt); in mpc52xx_gpt_probe()
731 mpc52xx_gpt_irq_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe()
738 if (of_property_read_bool(ofdev->dev.of_node, "fsl,has-wdt") || in mpc52xx_gpt_probe()
739 of_property_read_bool(ofdev->dev.of_node, "has-wdt")) { in mpc52xx_gpt_probe()
743 on_boot_wdt = of_get_property(ofdev->dev.of_node, in mpc52xx_gpt_probe()
/arch/powerpc/platforms/83xx/
A Dsuspend.c344 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument
346 struct device_node *np = ofdev->dev.of_node; in pmc_probe()
351 type = of_device_get_match_data(&ofdev->dev); in pmc_probe()
372 "pmc", ofdev); in pmc_probe()
419 free_irq(pmc_irq, ofdev); in pmc_probe()
/arch/powerpc/platforms/pseries/
A Dibmebus.c398 struct platform_device *ofdev; in devspec_show() local
400 ofdev = to_platform_device(dev); in devspec_show()
401 return sprintf(buf, "%pOF\n", ofdev->dev.of_node); in devspec_show()
408 struct platform_device *ofdev; in name_show() local
410 ofdev = to_platform_device(dev); in name_show()
411 return sprintf(buf, "%pOFn\n", ofdev->dev.of_node); in name_show()
/arch/sparc/include/asm/
A Dleon_pci.h20 void leon_pci_init(struct platform_device *ofdev,
/arch/powerpc/platforms/pasemi/
A Dgpio_mdio.c207 static int gpio_mdio_probe(struct platform_device *ofdev) in gpio_mdio_probe() argument
209 struct device *dev = &ofdev->dev; in gpio_mdio_probe()
210 struct device_node *np = ofdev->dev.of_node; in gpio_mdio_probe()

Completed in 22 milliseconds