/drivers/of/ |
D | device.c | 54 struct of_device *ofdev; in devspec_show() local 56 ofdev = to_of_device(dev); in devspec_show() 57 return sprintf(buf, "%s\n", ofdev->node->full_name); in devspec_show() 63 struct of_device *ofdev; in name_show() local 65 ofdev = to_of_device(dev); in name_show() 66 return sprintf(buf, "%s\n", ofdev->node->name); in name_show() 72 struct of_device *ofdev = to_of_device(dev); in modalias_show() local 75 len = of_device_get_modalias(ofdev, buf, PAGE_SIZE - 2); in modalias_show() 97 struct of_device *ofdev; in of_release_dev() local 99 ofdev = to_of_device(dev); in of_release_dev() [all …]
|
/drivers/net/ibm_newemac/ |
D | tah.c | 26 int __devinit tah_attach(struct of_device *ofdev, int channel) in tah_attach() argument 28 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_attach() 38 void tah_detach(struct of_device *ofdev, int channel) in tah_detach() argument 40 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_detach() 47 void tah_reset(struct of_device *ofdev) in tah_reset() argument 49 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_reset() 60 printk(KERN_ERR "%s: reset timeout\n", ofdev->node->full_name); in tah_reset() 68 int tah_get_regs_len(struct of_device *ofdev) in tah_get_regs_len() argument 74 void *tah_dump_regs(struct of_device *ofdev, void *buf) in tah_dump_regs() argument 76 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_dump_regs() [all …]
|
D | rgmii.c | 95 int __devinit rgmii_attach(struct of_device *ofdev, int input, int mode) in rgmii_attach() argument 97 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); in rgmii_attach() 105 ofdev->node->full_name); in rgmii_attach() 115 ofdev->node->full_name, input, rgmii_mode_name(mode)); in rgmii_attach() 124 void rgmii_set_speed(struct of_device *ofdev, int input, int speed) in rgmii_set_speed() argument 126 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); in rgmii_set_speed() 146 void rgmii_get_mdio(struct of_device *ofdev, int input) in rgmii_get_mdio() argument 148 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); in rgmii_get_mdio() 167 void rgmii_put_mdio(struct of_device *ofdev, int input) in rgmii_put_mdio() argument 169 struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); in rgmii_put_mdio() [all …]
|
D | zmii.c | 84 int __devinit zmii_attach(struct of_device *ofdev, int input, int *mode) in zmii_attach() argument 86 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); in zmii_attach() 123 ofdev->node->full_name, zmii_mode_name(dev->mode)); in zmii_attach() 129 ofdev->node->full_name, *mode, input); in zmii_attach() 149 void zmii_get_mdio(struct of_device *ofdev, int input) in zmii_get_mdio() argument 151 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); in zmii_get_mdio() 162 void zmii_put_mdio(struct of_device *ofdev, int input) in zmii_put_mdio() argument 164 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); in zmii_put_mdio() 171 void zmii_set_speed(struct of_device *ofdev, int input, int speed) in zmii_set_speed() argument 173 struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); in zmii_set_speed() [all …]
|
D | rgmii.h | 54 struct of_device *ofdev; member 61 extern int rgmii_attach(struct of_device *ofdev, int input, int mode); 62 extern void rgmii_detach(struct of_device *ofdev, int input); 63 extern void rgmii_get_mdio(struct of_device *ofdev, int input); 64 extern void rgmii_put_mdio(struct of_device *ofdev, int input); 65 extern void rgmii_set_speed(struct of_device *ofdev, int input, int speed); 66 extern int rgmii_get_regs_len(struct of_device *ofdev); 67 extern void *rgmii_dump_regs(struct of_device *ofdev, void *buf);
|
D | zmii.h | 51 struct of_device *ofdev; member 58 extern int zmii_attach(struct of_device *ofdev, int input, int *mode); 59 extern void zmii_detach(struct of_device *ofdev, int input); 60 extern void zmii_get_mdio(struct of_device *ofdev, int input); 61 extern void zmii_put_mdio(struct of_device *ofdev, int input); 62 extern void zmii_set_speed(struct of_device *ofdev, int input, int speed); 64 extern void *zmii_dump_regs(struct of_device *ofdev, void *buf);
|
D | tah.h | 51 struct of_device *ofdev; member 77 extern int tah_attach(struct of_device *ofdev, int channel); 78 extern void tah_detach(struct of_device *ofdev, int channel); 79 extern void tah_reset(struct of_device *ofdev); 80 extern int tah_get_regs_len(struct of_device *ofdev); 81 extern void *tah_dump_regs(struct of_device *ofdev, void *buf);
|
D | mal.c | 519 static int __devinit mal_probe(struct of_device *ofdev, in mal_probe() argument 539 mal->ofdev = ofdev; in mal_probe() 540 mal->version = of_device_is_compatible(ofdev->node, "ibm,mcmal2") ? 2 : 1; in mal_probe() 544 prop = of_get_property(ofdev->node, "num-tx-chans", NULL); in mal_probe() 554 prop = of_get_property(ofdev->node, "num-rx-chans", NULL); in mal_probe() 564 dcr_base = dcr_resource_start(ofdev->node, 0); in mal_probe() 571 mal->dcr_host = dcr_map(ofdev->node, dcr_base, 0x100); in mal_probe() 579 if (of_device_is_compatible(ofdev->node, "ibm,mcmal-405ez")) { in mal_probe() 586 ofdev->node->full_name); in mal_probe() 592 mal->txeob_irq = irq_of_parse_and_map(ofdev->node, 0); in mal_probe() [all …]
|
/drivers/mtd/nand/ |
D | fsl_upm.c | 182 static int __devinit fun_probe(struct of_device *ofdev, in fun_probe() argument 195 ret = of_address_to_resource(ofdev->node, 0, &io_res); in fun_probe() 197 dev_err(&ofdev->dev, "can't get IO base\n"); in fun_probe() 203 dev_err(&ofdev->dev, "can't find UPM\n"); in fun_probe() 207 prop = of_get_property(ofdev->node, "fsl,upm-addr-offset", &size); in fun_probe() 209 dev_err(&ofdev->dev, "can't get UPM address offset\n"); in fun_probe() 215 prop = of_get_property(ofdev->node, "fsl,upm-cmd-offset", &size); in fun_probe() 217 dev_err(&ofdev->dev, "can't get UPM command offset\n"); in fun_probe() 223 fun->rnb_gpio = of_get_gpio(ofdev->node, 0); in fun_probe() 225 ret = gpio_request(fun->rnb_gpio, dev_name(&ofdev->dev)); in fun_probe() [all …]
|
D | ndfc.c | 37 struct of_device *ofdev; member 190 ndfc->ofdev->dev.bus_id, flash_np->name); in ndfc_chip_init() 207 ret = of_mtd_parse_partitions(&ndfc->ofdev->dev, flash_np, in ndfc_chip_init() 227 static int __devinit ndfc_probe(struct of_device *ofdev, in ndfc_probe() argument 237 ndfc->ofdev = ofdev; in ndfc_probe() 238 dev_set_drvdata(&ofdev->dev, ndfc); in ndfc_probe() 241 reg = of_get_property(ofdev->node, "reg", &len); in ndfc_probe() 243 dev_err(&ofdev->dev, "unable read reg property (%d)\n", len); in ndfc_probe() 248 ndfc->ndfcbase = of_iomap(ofdev->node, 0); in ndfc_probe() 250 dev_err(&ofdev->dev, "failed to get memory\n"); in ndfc_probe() [all …]
|
/drivers/macintosh/ |
D | macio_asic.c | 49 return of_match_device(matches, &macio_dev->ofdev) != NULL; in macio_bus_match() 58 tmp = get_device(&dev->ofdev.dev); in macio_dev_get() 68 put_device(&dev->ofdev.dev); in macio_dev_put() 87 match = of_match_device(drv->match_table, &macio_dev->ofdev); in macio_device_probe() 243 dev->interrupt[index].name = dev_name(&dev->ofdev.dev); in macio_create_fixup_irq() 251 struct device_node *np = dev->ofdev.node; in macio_add_missing_resources() 292 struct device_node *np = dev->ofdev.node; in macio_setup_interrupts() 306 res->name = dev_name(&dev->ofdev.dev); in macio_setup_interrupts() 319 struct device_node *np = dev->ofdev.node; in macio_setup_resources() 328 res->name = dev_name(&dev->ofdev.dev); in macio_setup_resources() [all …]
|
D | macio_sysfs.c | 12 return sprintf (buf, format_string, mdev->ofdev.node->field); \ 23 of = &to_macio_device (dev)->ofdev; in compatible_show() 44 struct of_device *ofdev = to_of_device(dev); in modalias_show() local 47 len = of_device_get_modalias(ofdev, buf, PAGE_SIZE - 2); in modalias_show() 58 struct of_device *ofdev; in devspec_show() local 60 ofdev = to_of_device(dev); in devspec_show() 61 return sprintf(buf, "%s\n", ofdev->node->full_name); in devspec_show()
|
D | rack-meter.c | 377 while ((i2s = of_get_next_child(mdev->ofdev.node, i2s)) != NULL) in rackmeter_probe() 407 dev_set_drvdata(&mdev->ofdev.dev, rm); in rackmeter_probe() 414 mdev->ofdev.node->full_name); in rackmeter_probe() 421 mdev->ofdev.node->full_name); in rackmeter_probe() 433 mdev->ofdev.node->full_name); in rackmeter_probe() 521 dev_set_drvdata(&mdev->ofdev.dev, NULL); in rackmeter_probe() 527 struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); in rackmeter_remove() 533 dev_set_drvdata(&mdev->ofdev.dev, NULL); in rackmeter_remove() 566 struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); in rackmeter_shutdown()
|
/drivers/serial/ |
D | of_serial.c | 29 static int __devinit of_platform_serial_setup(struct of_device *ofdev, in of_platform_serial_setup() argument 33 struct device_node *np = ofdev->node; in of_platform_serial_setup() 42 dev_warn(&ofdev->dev, "no clock-frequency property set\n"); in of_platform_serial_setup() 48 dev_warn(&ofdev->dev, "invalid address\n"); in of_platform_serial_setup() 71 port->dev = &ofdev->dev; in of_platform_serial_setup() 82 static int __devinit of_platform_serial_probe(struct of_device *ofdev, in of_platform_serial_probe() argument 90 if (of_find_property(ofdev->node, "used-by-rtas", NULL)) in of_platform_serial_probe() 98 ret = of_platform_serial_setup(ofdev, port_type, &port); in of_platform_serial_probe() 116 dev_info(&ofdev->dev, "Unknown serial port found, ignored\n"); in of_platform_serial_probe() 125 ofdev->dev.driver_data = info; in of_platform_serial_probe() [all …]
|
D | ucc_uart.c | 1185 static int ucc_uart_probe(struct of_device *ofdev, in ucc_uart_probe() argument 1188 struct device_node *np = ofdev->node; in ucc_uart_probe() 1199 dev_dbg(&ofdev->dev, "using Soft-UART mode\n"); in ucc_uart_probe() 1223 dev_err(&ofdev->dev, "unknown CPU model\n"); in ucc_uart_probe() 1229 dev_info(&ofdev->dev, "waiting for firmware %s\n", in ucc_uart_probe() 1240 FW_ACTION_HOTPLUG, filename, &ofdev->dev, in ucc_uart_probe() 1241 &ofdev->dev, uart_firmware_cont); in ucc_uart_probe() 1243 dev_err(&ofdev->dev, in ucc_uart_probe() 1253 dev_err(&ofdev->dev, "can't allocate QE port structure\n"); in ucc_uart_probe() 1260 dev_err(&ofdev->dev, "missing 'reg' property in device tree\n"); in ucc_uart_probe() [all …]
|
/drivers/ata/ |
D | pata_of_platform.c | 17 static int __devinit pata_of_platform_probe(struct of_device *ofdev, in pata_of_platform_probe() argument 21 struct device_node *dn = ofdev->node; in pata_of_platform_probe() 32 dev_err(&ofdev->dev, "can't get IO address from " in pata_of_platform_probe() 47 dev_err(&ofdev->dev, "can't get CTL address from " in pata_of_platform_probe() 67 dev_err(&ofdev->dev, "invalid pio-mode\n"); in pata_of_platform_probe() 71 dev_info(&ofdev->dev, "pio-mode unspecified, assuming PIO0\n"); in pata_of_platform_probe() 77 return __pata_platform_probe(&ofdev->dev, &io_res, &ctl_res, &irq_res, in pata_of_platform_probe() 81 static int __devexit pata_of_platform_remove(struct of_device *ofdev) in pata_of_platform_remove() argument 83 return __pata_platform_remove(&ofdev->dev); in pata_of_platform_remove()
|
/drivers/spi/ |
D | xilinx_spi.c | 301 static int __init xilinx_spi_of_probe(struct of_device *ofdev, in xilinx_spi_of_probe() argument 316 master = spi_alloc_master(&ofdev->dev, sizeof(struct xilinx_spi)); in xilinx_spi_of_probe() 322 dev_set_drvdata(&ofdev->dev, master); in xilinx_spi_of_probe() 324 rc = of_address_to_resource(ofdev->node, 0, r_mem); in xilinx_spi_of_probe() 326 dev_warn(&ofdev->dev, "invalid address\n"); in xilinx_spi_of_probe() 330 rc = of_irq_to_resource(ofdev->node, 0, r_irq); in xilinx_spi_of_probe() 332 dev_warn(&ofdev->dev, "no IRQ found\n"); in xilinx_spi_of_probe() 349 dev_warn(&ofdev->dev, "memory request failure\n"); in xilinx_spi_of_probe() 356 dev_warn(&ofdev->dev, "ioremap failure\n"); in xilinx_spi_of_probe() 365 prop = of_get_property(ofdev->node, "xlnx,num-ss-bits", &len); in xilinx_spi_of_probe() [all …]
|
/drivers/i2c/busses/ |
D | i2c-cpm.c | 108 struct of_device *ofdev; member 431 struct of_device *ofdev = cpm->ofdev; in cpm_i2c_setup() local 439 dev_dbg(&cpm->ofdev->dev, "cpm_i2c_setup()\n"); in cpm_i2c_setup() 443 cpm->irq = of_irq_to_resource(ofdev->node, 0, NULL); in cpm_i2c_setup() 454 i2c_base = of_iomap(ofdev->node, 1); in cpm_i2c_setup() 460 if (of_device_is_compatible(ofdev->node, "fsl,cpm1-i2c")) { in cpm_i2c_setup() 477 } else if (of_device_is_compatible(ofdev->node, "fsl,cpm2-i2c")) { in cpm_i2c_setup() 492 cpm->i2c_reg = of_iomap(ofdev->node, 0); in cpm_i2c_setup() 498 data = of_get_property(ofdev->node, "fsl,cpm-command", &len); in cpm_i2c_setup() 505 data = of_get_property(ofdev->node, "linux,i2c-class", &len); in cpm_i2c_setup() [all …]
|
D | i2c-ibm_iic.c | 663 static int __devinit iic_request_irq(struct of_device *ofdev, in iic_request_irq() argument 666 struct device_node *np = ofdev->node; in iic_request_irq() 674 dev_err(&ofdev->dev, "irq_of_parse_and_map failed\n"); in iic_request_irq() 683 dev_err(&ofdev->dev, "request_irq %d failed\n", irq); in iic_request_irq() 694 static int __devinit iic_probe(struct of_device *ofdev, in iic_probe() argument 697 struct device_node *np = ofdev->node; in iic_probe() 705 dev_err(&ofdev->dev, "failed to allocate device data\n"); in iic_probe() 709 dev_set_drvdata(&ofdev->dev, dev); in iic_probe() 713 dev_err(&ofdev->dev, "failed to iomap device\n"); in iic_probe() 720 dev->irq = iic_request_irq(ofdev, dev); in iic_probe() [all …]
|
/drivers/net/fs_enet/ |
D | mii-fec.c | 122 static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, in fs_enet_mdio_probe() argument 145 ret = of_address_to_resource(ofdev->node, 0, &res); in fs_enet_mdio_probe() 171 while ((np = of_get_next_child(ofdev->node, np))) in fs_enet_mdio_probe() 175 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe() 176 dev_set_drvdata(&ofdev->dev, new_bus); in fs_enet_mdio_probe() 185 dev_set_drvdata(&ofdev->dev, NULL); in fs_enet_mdio_probe() 198 static int fs_enet_mdio_remove(struct of_device *ofdev) in fs_enet_mdio_remove() argument 200 struct mii_bus *bus = dev_get_drvdata(&ofdev->dev); in fs_enet_mdio_remove() 204 dev_set_drvdata(&ofdev->dev, NULL); in fs_enet_mdio_remove()
|
D | mii-bitbang.c | 169 static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, in fs_enet_mdio_probe() argument 190 ret = fs_mii_bitbang_init(new_bus, ofdev->node); in fs_enet_mdio_probe() 202 while ((np = of_get_next_child(ofdev->node, np))) in fs_enet_mdio_probe() 206 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe() 207 dev_set_drvdata(&ofdev->dev, new_bus); in fs_enet_mdio_probe() 216 dev_set_drvdata(&ofdev->dev, NULL); in fs_enet_mdio_probe() 228 static int fs_enet_mdio_remove(struct of_device *ofdev) in fs_enet_mdio_remove() argument 230 struct mii_bus *bus = dev_get_drvdata(&ofdev->dev); in fs_enet_mdio_remove() 234 dev_set_drvdata(&ofdev->dev, NULL); in fs_enet_mdio_remove()
|
/drivers/pcmcia/ |
D | electra_cf.c | 46 struct of_device *ofdev; member 183 static int __devinit electra_cf_probe(struct of_device *ofdev, in electra_cf_probe() argument 186 struct device *device = &ofdev->dev; in electra_cf_probe() 187 struct device_node *np = ofdev->node; in electra_cf_probe() 210 cf->ofdev = ofdev; in electra_cf_probe() 287 cf->socket.dev.parent = &ofdev->dev; in electra_cf_probe() 321 device_init_wakeup(&ofdev->dev, 0); in electra_cf_probe() 327 static int __devexit electra_cf_remove(struct of_device *ofdev) in electra_cf_remove() argument 329 struct device *device = &ofdev->dev; in electra_cf_remove()
|
/drivers/net/phy/ |
D | mdio-gpio.c | 200 static int __devinit mdio_ofgpio_probe(struct of_device *ofdev, in mdio_ofgpio_probe() argument 210 pdata->mdc = of_get_gpio(ofdev->node, 0); in mdio_ofgpio_probe() 211 pdata->mdio = of_get_gpio(ofdev->node, 1); in mdio_ofgpio_probe() 216 while ((np = of_get_next_child(ofdev->node, np))) in mdio_ofgpio_probe() 220 return mdio_gpio_bus_init(&ofdev->dev, pdata, pdata->mdc); in mdio_ofgpio_probe() 227 static int __devexit mdio_ofgpio_remove(struct of_device *ofdev) in mdio_ofgpio_remove() argument 229 mdio_gpio_bus_destroy(&ofdev->dev); in mdio_ofgpio_remove() 230 kfree(ofdev->dev.platform_data); in mdio_ofgpio_remove()
|
/drivers/net/ |
D | gianfar_mii.c | 221 static int gfar_mdio_probe(struct of_device *ofdev, in gfar_mdio_probe() argument 229 struct device_node *np = ofdev->node; in gfar_mdio_probe() 237 device_init_wakeup(&ofdev->dev, 1); in gfar_mdio_probe() 263 new_bus->parent = &ofdev->dev; in gfar_mdio_probe() 264 dev_set_drvdata(&ofdev->dev, new_bus); in gfar_mdio_probe() 332 static int gfar_mdio_remove(struct of_device *ofdev) in gfar_mdio_remove() argument 334 struct mii_bus *bus = dev_get_drvdata(&ofdev->dev); in gfar_mdio_remove() 338 dev_set_drvdata(&ofdev->dev, NULL); in gfar_mdio_remove()
|
D | ucc_geth_mii.c | 134 static int uec_mdio_probe(struct of_device *ofdev, const struct of_device_id *match) in uec_mdio_probe() argument 136 struct device *device = &ofdev->dev; in uec_mdio_probe() 137 struct device_node *np = ofdev->node, *tempnp = NULL; in uec_mdio_probe() 242 static int uec_mdio_remove(struct of_device *ofdev) in uec_mdio_remove() argument 244 struct device *device = &ofdev->dev; in uec_mdio_remove()
|