/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | rgmii.h | 50 struct platform_device *ofdev; member in struct:rgmii_instance 57 int rgmii_attach(struct platform_device *ofdev, int input, int mode); 58 void rgmii_detach(struct platform_device *ofdev, int input); 59 void rgmii_get_mdio(struct platform_device *ofdev, int input); 60 void rgmii_put_mdio(struct platform_device *ofdev, int input); 61 void rgmii_set_speed(struct platform_device *ofdev, int input, int speed); 62 int rgmii_get_regs_len(struct platform_device *ofdev); 63 void *rgmii_dump_regs(struct platform_device *ofdev, void *buf);
|
H A D | zmii.h | 46 struct platform_device *ofdev; member in struct:zmii_instance 53 int zmii_attach(struct platform_device *ofdev, int input, 55 void zmii_detach(struct platform_device *ofdev, int input); 56 void zmii_get_mdio(struct platform_device *ofdev, int input); 57 void zmii_put_mdio(struct platform_device *ofdev, int input); 58 void zmii_set_speed(struct platform_device *ofdev, int input, int speed); 60 void *zmii_dump_regs(struct platform_device *ofdev, void *buf);
|
H A D | tah.c | 25 int tah_attach(struct platform_device *ofdev, int channel) argument 27 struct tah_instance *dev = platform_get_drvdata(ofdev); 37 void tah_detach(struct platform_device *ofdev, int channel) argument 39 struct tah_instance *dev = platform_get_drvdata(ofdev); 46 void tah_reset(struct platform_device *ofdev) argument 48 struct tah_instance *dev = platform_get_drvdata(ofdev); 59 printk(KERN_ERR "%pOF: reset timeout\n", ofdev->dev.of_node); 67 int tah_get_regs_len(struct platform_device *ofdev) argument 73 void *tah_dump_regs(struct platform_device *ofdev, void *buf) argument 75 struct tah_instance *dev = platform_get_drvdata(ofdev); 88 tah_probe(struct platform_device *ofdev) argument 133 tah_remove(struct platform_device *ofdev) argument [all...] |
H A D | rgmii.c | 80 int rgmii_attach(struct platform_device *ofdev, int input, int mode) argument 82 struct rgmii_instance *dev = platform_get_drvdata(ofdev); 90 ofdev->dev.of_node); 100 ofdev->dev.of_node, input, phy_modes(mode)); 109 void rgmii_set_speed(struct platform_device *ofdev, int input, int speed) argument 111 struct rgmii_instance *dev = platform_get_drvdata(ofdev); 133 void rgmii_get_mdio(struct platform_device *ofdev, int input) argument 135 struct rgmii_instance *dev = platform_get_drvdata(ofdev); 154 void rgmii_put_mdio(struct platform_device *ofdev, int input) argument 156 struct rgmii_instance *dev = platform_get_drvdata(ofdev); 175 rgmii_detach(struct platform_device *ofdev, int input) argument 195 rgmii_get_regs_len(struct platform_device *ofdev) argument 201 rgmii_dump_regs(struct platform_device *ofdev, void *buf) argument 217 rgmii_probe(struct platform_device *ofdev) argument 276 rgmii_remove(struct platform_device *ofdev) argument [all...] |
H A D | tah.h | 47 struct platform_device *ofdev; member in struct:tah_instance 73 int tah_attach(struct platform_device *ofdev, int channel); 74 void tah_detach(struct platform_device *ofdev, int channel); 75 void tah_reset(struct platform_device *ofdev); 76 int tah_get_regs_len(struct platform_device *ofdev); 77 void *tah_dump_regs(struct platform_device *ofdev, void *buf);
|
H A D | zmii.c | 83 int zmii_attach(struct platform_device *ofdev, int input, argument 86 struct zmii_instance *dev = platform_get_drvdata(ofdev); 123 ofdev->dev.of_node, 130 ofdev->dev.of_node, *mode, input); 150 void zmii_get_mdio(struct platform_device *ofdev, int input) argument 152 struct zmii_instance *dev = platform_get_drvdata(ofdev); 163 void zmii_put_mdio(struct platform_device *ofdev, int input) argument 165 struct zmii_instance *dev = platform_get_drvdata(ofdev); 172 void zmii_set_speed(struct platform_device *ofdev, int input, int speed) argument 174 struct zmii_instance *dev = platform_get_drvdata(ofdev); 193 zmii_detach(struct platform_device *ofdev, int input) argument 212 zmii_get_regs_len(struct platform_device *ofdev) argument 218 zmii_dump_regs(struct platform_device *ofdev, void *buf) argument 233 zmii_probe(struct platform_device *ofdev) argument 281 zmii_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/net/can/mscan/ |
H A D | mpc5xxx_can.c | 33 u32 (*get_clock)(struct platform_device *ofdev, const char *clock_name, 35 void (*put_clock)(struct platform_device *ofdev); 44 static u32 mpc52xx_can_get_clock(struct platform_device *ofdev, argument 68 freq = mpc5xxx_get_bus_frequency(&ofdev->dev); 78 dev_err(&ofdev->dev, "can't get clock node!\n"); 84 dev_err(&ofdev->dev, "can't map clock node!\n"); 101 static u32 mpc52xx_can_get_clock(struct platform_device *ofdev, argument 109 static u32 mpc512x_can_get_clock(struct platform_device *ofdev, argument 128 np = ofdev->dev.of_node; 131 dev_dbg(&ofdev 266 mpc512x_can_put_clock(struct platform_device *ofdev) argument 275 mpc512x_can_get_clock(struct platform_device *ofdev, const char *clock_name, int *mscan_clksrc) argument 284 mpc5xxx_can_probe(struct platform_device *ofdev) argument 354 mpc5xxx_can_remove(struct platform_device *ofdev) argument 372 mpc5xxx_can_suspend(struct platform_device *ofdev, pm_message_t state) argument 383 mpc5xxx_can_resume(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/ata/ |
H A D | pata_of_platform.c | 22 static int pata_of_platform_probe(struct platform_device *ofdev) argument 25 struct device_node *dn = ofdev->dev.of_node; 37 dev_err(&ofdev->dev, "can't get IO address from " 44 dev_err(&ofdev->dev, "can't get CTL address from " 51 irq = platform_get_irq_optional(ofdev, 0); 63 dev_err(&ofdev->dev, "invalid pio-mode\n"); 67 dev_info(&ofdev->dev, "pio-mode unspecified, assuming PIO0\n"); 75 return __pata_platform_probe(&ofdev->dev, &io_res, &ctl_res, irq > 0 ? &irq_res : NULL,
|
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_of.c | 64 static int of_platform_serial_setup(struct platform_device *ofdev, argument 69 struct device *dev = &ofdev->dev; 77 pm_runtime_enable(&ofdev->dev); 78 pm_runtime_get_sync(&ofdev->dev); 86 port->dev = &ofdev->dev; 121 info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL); 161 pm_runtime_put_sync(&ofdev->dev); 162 pm_runtime_disable(&ofdev->dev); 169 static int of_platform_serial_probe(struct platform_device *ofdev) argument 178 of_device_is_compatible(ofdev 233 of_platform_serial_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | ndfc.c | 33 struct platform_device *ofdev; member in struct:ndfc_controller 158 mtd->dev.parent = &ndfc->ofdev->dev; 165 mtd->name = kasprintf(GFP_KERNEL, "%s.%pOFn", dev_name(&ndfc->ofdev->dev), 185 static int ndfc_probe(struct platform_device *ofdev) argument 194 reg = of_get_property(ofdev->dev.of_node, "reg", &len); 196 dev_err(&ofdev->dev, "unable read reg property (%d)\n", len); 202 dev_err(&ofdev->dev, "invalid CS number (%d)\n", cs); 210 ndfc->ofdev = ofdev; 211 dev_set_drvdata(&ofdev 244 ndfc_remove(struct platform_device *ofdev) argument [all...] |
H A D | fsl_upm.c | 163 static int fun_probe(struct platform_device *ofdev) argument 172 fun = devm_kzalloc(&ofdev->dev, sizeof(*fun), GFP_KERNEL); 176 fun->io_base = devm_platform_get_and_ioremap_resource(ofdev, 0, &io_res); 182 dev_err(&ofdev->dev, "can't find UPM\n"); 186 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset", 189 dev_err(&ofdev->dev, "can't get UPM address offset\n"); 194 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size); 196 dev_err(&ofdev->dev, "can't get UPM command offset\n"); 201 prop = of_get_property(ofdev->dev.of_node, 206 dev_err(&ofdev 238 fun_remove(struct platform_device *ofdev) argument [all...] |
H A D | socrates_nand.c | 137 static int socrates_nand_probe(struct platform_device *ofdev) argument 145 host = devm_kzalloc(&ofdev->dev, sizeof(*host), GFP_KERNEL); 149 host->io_base = of_iomap(ofdev->dev.of_node, 0); 151 dev_err(&ofdev->dev, "ioremap failed\n"); 157 host->dev = &ofdev->dev; 165 nand_set_flash_node(nand_chip, ofdev->dev.of_node); 167 mtd->dev.parent = &ofdev->dev; 185 dev_set_drvdata(&ofdev->dev, host); 205 static void socrates_nand_remove(struct platform_device *ofdev) argument 207 struct socrates_nand_host *host = dev_get_drvdata(&ofdev [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | leon_pci.h | 20 void leon_pci_init(struct platform_device *ofdev,
|
/linux-master/drivers/macintosh/ |
H A D | macio_asic.c | 55 tmp = get_device(&dev->ofdev.dev); 65 put_device(&dev->ofdev.dev); 243 dev->interrupt[index].name = dev_name(&dev->ofdev.dev); 251 struct device_node *np = dev->ofdev.dev.of_node; 292 struct device_node *np = dev->ofdev.dev.of_node; 307 res->name = dev_name(&dev->ofdev.dev); 320 struct device_node *np = dev->ofdev.dev.of_node; 330 res->name = dev_name(&dev->ofdev.dev); 343 index, dev_name(&dev->ofdev.dev)); 377 dev->ofdev [all...] |
H A D | macio_sysfs.c | 16 of = &to_macio_device (dev)->ofdev; 44 struct platform_device *ofdev; local 46 ofdev = to_platform_device(dev); 47 return sprintf(buf, "%pOF\n", ofdev->dev.of_node);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | macio.h | 43 struct platform_device ofdev; member in struct:macio_dev 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); 108 return dev_get_drvdata(&dev->ofdev.dev); 113 return mdev->ofdev.dev.of_node;
|
/linux-master/arch/powerpc/sysdev/ |
H A D | cpm_gpio.c | 20 static int cpm_gpio_probe(struct platform_device *ofdev) argument 22 struct device *dev = &ofdev->dev;
|
H A D | fsl_pmc.c | 59 static int pmc_probe(struct platform_device *ofdev) argument 61 pmc_regs = of_iomap(ofdev->dev.of_node, 0); 65 pmc_dev = &ofdev->dev;
|
/linux-master/sound/aoa/soundbus/ |
H A D | core.c | 23 tmp = get_device(&dev->ofdev.dev); 34 put_device(&dev->ofdev.dev); 75 of = &soundbus_dev->ofdev; 145 !dev->ofdev.dev.of_node || 152 dev_set_name(&dev->ofdev.dev, "soundbus:%x", ++devcount); 153 dev->ofdev.dev.bus = &soundbus_bus_type; 154 return of_device_register(&dev->ofdev); 160 of_device_unregister(&dev->ofdev);
|
H A D | sysfs.c | 12 struct platform_device *of = &sdev->ofdev; 27 struct platform_device *of = &sdev->ofdev; 37 struct platform_device *of = &sdev->ofdev;
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-cpm.c | 98 struct platform_device *ofdev; member in struct:cpm_i2c 425 struct platform_device *ofdev = cpm->ofdev; local 433 dev_dbg(&cpm->ofdev->dev, "cpm_i2c_setup()\n"); 437 cpm->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); 448 i2c_base = of_iomap(ofdev->dev.of_node, 1); 454 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm1-i2c")) { 471 } else if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm2-i2c")) { 486 cpm->i2c_reg = of_iomap(ofdev->dev.of_node, 0); 492 data = of_get_property(ofdev 633 cpm_i2c_probe(struct platform_device *ofdev) argument 679 cpm_i2c_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/usb/host/ |
H A D | fsl-mph-dr-of.c | 79 struct platform_device *ofdev, 84 const struct resource *res = ofdev->resource; 85 unsigned int num = ofdev->num_resources; 94 pdev->dev.parent = &ofdev->dev; 96 pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask; 99 pdev->dev.dma_mask = &ofdev->dev.coherent_dma_mask; 116 device_set_of_node_from_dev(&pdev->dev, &ofdev->dev); 177 static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) argument 179 struct device_node *np = ofdev->dev.of_node; 191 match = of_match_device(fsl_usb2_mph_dr_of_match, &ofdev 78 fsl_usb2_device_register( struct platform_device *ofdev, struct fsl_usb2_platform_data *pdata, const char *name, int id) argument 269 fsl_usb2_mph_dr_of_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mii-fec.c | 100 static int fs_enet_mdio_probe(struct platform_device *ofdev) argument 108 get_bus_freq = device_get_match_data(&ofdev->dev); 123 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); 136 clock = get_bus_freq(&ofdev->dev); 139 dev_warn(&ofdev->dev, "could not determine IPS clock\n"); 152 dev_err(&ofdev->dev, 167 new_bus->parent = &ofdev->dev; 168 platform_set_drvdata(ofdev, new_bus); 170 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); 187 static void fs_enet_mdio_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/input/serio/ |
H A D | apbps2.c | 130 static int apbps2_of_probe(struct platform_device *ofdev) argument 136 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); 138 dev_err(&ofdev->dev, "memory allocation failed\n"); 143 priv->regs = devm_platform_get_and_ioremap_resource(ofdev, 0, NULL); 151 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); 152 err = devm_request_irq(&ofdev->dev, irq, apbps2_isr, 155 dev_err(&ofdev->dev, "request IRQ%d failed\n", irq); 160 if (of_property_read_u32(ofdev->dev.of_node, "freq", &freq_hz)) { 161 dev_err(&ofdev->dev, "unable to get core frequency\n"); 181 dev_info(&ofdev [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | leon_pci_grpci1.c | 512 static int grpci1_of_probe(struct platform_device *ofdev) argument 522 dev_err(&ofdev->dev, "only one GRPCI1 supported\n"); 526 if (ofdev->num_resources < 3) { 527 dev_err(&ofdev->dev, "not enough APB/AHB resources\n"); 531 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); 533 dev_err(&ofdev->dev, "memory allocation failed\n"); 536 platform_set_drvdata(ofdev, priv); 537 priv->dev = &ofdev->dev; 540 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); 541 regs = devm_ioremap_resource(&ofdev [all...] |