Home
last modified time | relevance | path

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

/arch/sparc/kernel/
Dleon_pci_grpci1.c510 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 …]
Dleon_pci_grpci2.c683 static int grpci2_of_probe(struct platform_device *ofdev) in grpci2_of_probe() argument
696 if (ofdev->num_resources < 3) { in grpci2_of_probe()
702 regs = of_ioremap(&ofdev->resource[0], 0, in grpci2_of_probe()
703 resource_size(&ofdev->resource[0]), in grpci2_of_probe()
728 priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ in grpci2_of_probe()
737 tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); in grpci2_of_probe()
744 tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); in grpci2_of_probe()
751 tmp = of_get_property(ofdev->dev.of_node, "reset", &len); in grpci2_of_probe()
758 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe()
759 priv->pci_area_end = ofdev->resource[1].end+1; in grpci2_of_probe()
[all …]
Dleon_pci.c24 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/
Dmacio.h41 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/
Dfsl_pmc.c63 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument
65 pmc_regs = of_iomap(ofdev->dev.of_node, 0); in pmc_probe()
69 pmc_dev = &ofdev->dev; in pmc_probe()
Dfsl_msi.c312 static int fsl_of_msi_remove(struct platform_device *ofdev) in fsl_of_msi_remove() argument
314 struct fsl_msi *msi = platform_get_drvdata(ofdev); in fsl_of_msi_remove()
/arch/powerpc/platforms/83xx/
Dsuspend.c325 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument
328 struct device_node *np = ofdev->dev.of_node; in pmc_probe()
333 match = of_match_device(pmc_match, &ofdev->dev); in pmc_probe()
344 pmc_dev = ofdev; in pmc_probe()
357 "pmc", ofdev); in pmc_probe()
404 free_irq(pmc_irq, ofdev); in pmc_probe()
409 static int pmc_remove(struct platform_device *ofdev) in pmc_remove() argument
/arch/powerpc/platforms/82xx/
Dep8248e.c114 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/
Dmpc52xx_gpt.c723 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/
Dleon_pci.h19 void leon_pci_init(struct platform_device *ofdev,
/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c220 static int gpio_mdio_probe(struct platform_device *ofdev) in gpio_mdio_probe() argument
222 struct device *dev = &ofdev->dev; in gpio_mdio_probe()
223 struct device_node *np = ofdev->dev.of_node; in gpio_mdio_probe()
/arch/powerpc/kernel/
Dibmebus.c387 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/sysdev/qe_lib/
Dqe.c676 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