/drivers/pci/ |
D | of.c | 20 if (!dev->bus->dev.of_node) in pci_set_of_node() 22 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, in pci_set_of_node() 28 of_node_put(dev->dev.of_node); in pci_release_of_node() 29 dev->dev.of_node = NULL; in pci_release_of_node() 35 bus->dev.of_node = pcibios_get_phb_of_node(bus); in pci_set_bus_of_node() 37 bus->dev.of_node = of_node_get(bus->self->dev.of_node); in pci_set_bus_of_node() 42 of_node_put(bus->dev.of_node); in pci_release_bus_of_node() 43 bus->dev.of_node = NULL; in pci_release_bus_of_node() 56 if (bus->bridge->of_node) in pcibios_get_phb_of_node() 57 return of_node_get(bus->bridge->of_node); in pcibios_get_phb_of_node() [all …]
|
/drivers/of/ |
D | device.c | 23 if ((!matches) || (!dev->of_node)) in of_match_device() 25 return of_match_node(matches, dev->of_node); in of_match_device() 52 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add() 63 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add() 88 csize = snprintf(str, len, "of:N%sT%s", dev->of_node->name, in of_device_get_modalias() 89 dev->of_node->type); in of_device_get_modalias() 92 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_get_modalias() 136 if ((!dev) || (!dev->of_node)) in of_device_uevent() 139 add_uevent_var(env, "OF_NAME=%s", dev->of_node->name); in of_device_uevent() 140 add_uevent_var(env, "OF_FULLNAME=%s", dev->of_node->full_name); in of_device_uevent() [all …]
|
D | gpio.c | 191 mm_gc->gc.of_node = np; in of_mm_gpiochip_add() 211 if ((!chip->of_node) && (chip->dev)) in of_gpiochip_add() 212 chip->of_node = chip->dev->of_node; in of_gpiochip_add() 214 if (!chip->of_node) in of_gpiochip_add() 222 of_node_get(chip->of_node); in of_gpiochip_add() 227 if (chip->of_node) in of_gpiochip_remove() 228 of_node_put(chip->of_node); in of_gpiochip_remove() 234 return chip->of_node == data; in of_gpiochip_is_match()
|
D | of_i2c.c | 27 if (!adap->dev.of_node) in of_i2c_register_devices() 32 for_each_child_of_node(adap->dev.of_node, node) { in of_i2c_register_devices() 61 info.of_node = of_node_get(node); in of_i2c_register_devices() 80 return dev->of_node == data; in of_dev_node_match()
|
D | of_spi.c | 31 if (!master->dev.of_node) in of_register_spi_devices() 34 for_each_child_of_node(master->dev.of_node, nc) { in of_register_spi_devices() 86 spi->dev.of_node = nc; in of_register_spi_devices()
|
D | of_mdio.c | 90 phy->dev.of_node = child; in of_mdiobus_register() 111 return dev->of_node == phy_np; in of_phy_match() 177 net_np = dev->dev.parent->of_node; in of_phy_connect_fixed_link()
|
/drivers/video/ |
D | sunxvr1000.c | 18 struct device_node *of_node; member 30 gp->width = of_getintprop_default(gp->of_node, "width", 0); in gfb_get_props() 31 gp->height = of_getintprop_default(gp->of_node, "height", 0); in gfb_get_props() 32 gp->depth = of_getintprop_default(gp->of_node, "depth", 32); in gfb_get_props() 36 gp->of_node->full_name); in gfb_get_props() 116 struct device_node *dp = op->dev.of_node; in gfb_probe() 130 gp->of_node = dp; in gfb_probe()
|
D | sunxvr500.c | 40 struct device_node *of_node; member 56 ep->width = of_getintprop_default(ep->of_node, "width", 0); in e3d_get_props() 57 ep->height = of_getintprop_default(ep->of_node, "height", 0); in e3d_get_props() 58 ep->depth = of_getintprop_default(ep->of_node, "depth", 8); in e3d_get_props() 244 struct device_node *of_node; in e3d_pci_register() local 251 of_node = pci_device_to_OF_node(pdev); in e3d_pci_register() 252 if (!of_node) { in e3d_pci_register() 258 device_type = of_get_property(of_node, "device_type", NULL); in e3d_pci_register() 283 ep->of_node = of_node; in e3d_pci_register()
|
D | xilinxfb.c | 430 p = (u32 *)of_get_property(op->dev.of_node, "xlnx,dcr-splb-slave-if", NULL); in xilinxfb_of_probe() 439 rc = of_address_to_resource(op->dev.of_node, 0, &res); in xilinxfb_of_probe() 449 start = dcr_resource_start(op->dev.of_node, 0); in xilinxfb_of_probe() 450 drvdata->dcr_len = dcr_resource_len(op->dev.of_node, 0); in xilinxfb_of_probe() 451 drvdata->dcr_host = dcr_map(op->dev.of_node, start, drvdata->dcr_len); in xilinxfb_of_probe() 459 prop = of_get_property(op->dev.of_node, "phys-size", &size); in xilinxfb_of_probe() 465 prop = of_get_property(op->dev.of_node, "resolution", &size); in xilinxfb_of_probe() 471 prop = of_get_property(op->dev.of_node, "virtual-resolution", &size); in xilinxfb_of_probe() 477 if (of_find_property(op->dev.of_node, "rotate-display", NULL)) in xilinxfb_of_probe()
|
D | sunxvr2500.c | 22 struct device_node *of_node; member 34 sp->width = of_getintprop_default(sp->of_node, "width", 0); in s3d_get_props() 35 sp->height = of_getintprop_default(sp->of_node, "height", 0); in s3d_get_props() 36 sp->depth = of_getintprop_default(sp->of_node, "depth", 8); in s3d_get_props() 142 sp->of_node = pci_device_to_OF_node(pdev); in s3d_pci_register() 143 if (!sp->of_node) { in s3d_pci_register()
|
/drivers/mtd/nand/ |
D | gpio.c | 189 if (!of_property_read_u32(dev->of_node, "bank-width", &val)) { in gpio_nand_get_config_of() 198 plat->gpio_rdy = of_get_gpio(dev->of_node, 0); in gpio_nand_get_config_of() 199 plat->gpio_nce = of_get_gpio(dev->of_node, 1); in gpio_nand_get_config_of() 200 plat->gpio_ale = of_get_gpio(dev->of_node, 2); in gpio_nand_get_config_of() 201 plat->gpio_cle = of_get_gpio(dev->of_node, 3); in gpio_nand_get_config_of() 202 plat->gpio_nwp = of_get_gpio(dev->of_node, 4); in gpio_nand_get_config_of() 204 if (!of_property_read_u32(dev->of_node, "chip-delay", &val)) in gpio_nand_get_config_of() 215 if (!r || of_property_read_u64(pdev->dev.of_node, in gpio_nand_get_io_sync_of() 325 if (!dev->dev.of_node && !dev->dev.platform_data) in gpio_nand_probe() 415 ppdata.of_node = dev->dev.of_node; in gpio_nand_probe()
|
D | fsl_upm.c | 195 ppdata.of_node = flash_np; in fun_chip_init() 218 ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res); in fun_probe() 230 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset", in fun_probe() 239 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size); in fun_probe() 247 prop = of_get_property(ofdev->dev.of_node, in fun_probe() 263 rnb_gpio = of_get_gpio(ofdev->dev.of_node, i); in fun_probe() 279 prop = of_get_property(ofdev->dev.of_node, "chip-delay", NULL); in fun_probe() 285 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-wait-flags", &size); in fun_probe() 302 ret = fun_chip_init(fun, ofdev->dev.of_node, &io_res); in fun_probe()
|
D | ndfc.c | 192 ppdata.of_node = flash_np; in ndfc_chip_init() 221 reg = of_get_property(ofdev->dev.of_node, "reg", &len); in ndfc_probe() 241 ndfc->ndfcbase = of_iomap(ofdev->dev.of_node, 0); in ndfc_probe() 250 reg = of_get_property(ofdev->dev.of_node, "ccr", NULL); in ndfc_probe() 257 reg = of_get_property(ofdev->dev.of_node, "bank-settings", NULL); in ndfc_probe() 263 err = ndfc_chip_init(ndfc, ofdev->dev.of_node); in ndfc_probe()
|
/drivers/net/ethernet/ibm/emac/ |
D | mal.c | 540 mal->version = of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal2") ? 2 : 1; in mal_probe() 544 prop = of_get_property(ofdev->dev.of_node, "num-tx-chans", NULL); in mal_probe() 554 prop = of_get_property(ofdev->dev.of_node, "num-rx-chans", NULL); in mal_probe() 564 dcr_base = dcr_resource_start(ofdev->dev.of_node, 0); in mal_probe() 571 mal->dcr_host = dcr_map(ofdev->dev.of_node, dcr_base, 0x100); in mal_probe() 579 if (of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal-405ez")) { in mal_probe() 586 ofdev->dev.of_node->full_name); in mal_probe() 592 mal->txeob_irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in mal_probe() 593 mal->rxeob_irq = irq_of_parse_and_map(ofdev->dev.of_node, 1); in mal_probe() 594 mal->serr_irq = irq_of_parse_and_map(ofdev->dev.of_node, 2); in mal_probe() [all …]
|
D | rgmii.c | 106 ofdev->dev.of_node->full_name); in rgmii_attach() 116 ofdev->dev.of_node->full_name, input, rgmii_mode_name(mode)); in rgmii_attach() 233 struct device_node *np = ofdev->dev.of_node; in rgmii_probe() 263 if (of_get_property(ofdev->dev.of_node, "has-mdio", NULL)) in rgmii_probe() 267 if (of_device_is_compatible(ofdev->dev.of_node, "ibm,rgmii-axon")) in rgmii_probe() 278 ofdev->dev.of_node->full_name, in rgmii_probe()
|
/drivers/i2c/busses/ |
D | i2c-cpm.c | 443 cpm->irq = of_irq_to_resource(ofdev->dev.of_node, 0, NULL); in cpm_i2c_setup() 454 i2c_base = of_iomap(ofdev->dev.of_node, 1); in cpm_i2c_setup() 460 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm1-i2c")) { in cpm_i2c_setup() 477 } else if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm2-i2c")) { in cpm_i2c_setup() 492 cpm->i2c_reg = of_iomap(ofdev->dev.of_node, 0); in cpm_i2c_setup() 498 data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); in cpm_i2c_setup() 505 data = of_get_property(ofdev->dev.of_node, "linux,i2c-class", &len); in cpm_i2c_setup() 509 data = of_get_property(ofdev->dev.of_node, "clock-frequency", &len); in cpm_i2c_setup() 654 cpm->adap.dev.of_node = of_node_get(ofdev->dev.of_node); in cpm_i2c_probe() 664 data = of_get_property(ofdev->dev.of_node, "linux,i2c-index", &len); in cpm_i2c_probe()
|
D | i2c-mpc.c | 620 i2c->base = of_iomap(op->dev.of_node, 0); in fsl_i2c_probe() 627 i2c->irq = irq_of_parse_and_map(op->dev.of_node, 0); in fsl_i2c_probe() 637 if (of_get_property(op->dev.of_node, "fsl,preserve-clocking", NULL)) { in fsl_i2c_probe() 640 prop = of_get_property(op->dev.of_node, "clock-frequency", in fsl_i2c_probe() 648 data->setup(op->dev.of_node, i2c, clock, data->prescaler); in fsl_i2c_probe() 651 if (of_get_property(op->dev.of_node, "dfsrr", NULL)) in fsl_i2c_probe() 652 mpc_i2c_setup_8xxx(op->dev.of_node, i2c, clock, 0); in fsl_i2c_probe() 655 prop = of_get_property(op->dev.of_node, "fsl,timeout", &plen); in fsl_i2c_probe() 668 i2c->adap.dev.of_node = of_node_get(op->dev.of_node); in fsl_i2c_probe()
|
/drivers/power/ |
D | sbs-battery.c | 618 struct device_node *of_node = client->dev.of_node; in sbs_of_populate_pdata() local 625 if (!of_node) in sbs_of_populate_pdata() 635 if (!of_get_property(of_node, "sbs,i2c-retry-count", NULL) && in sbs_of_populate_pdata() 636 !of_get_property(of_node, "sbs,poll-retry-count", NULL) && in sbs_of_populate_pdata() 637 !of_get_property(of_node, "sbs,battery-detect-gpios", NULL)) in sbs_of_populate_pdata() 645 rc = of_property_read_u32(of_node, "sbs,i2c-retry-count", &prop); in sbs_of_populate_pdata() 649 rc = of_property_read_u32(of_node, "sbs,poll-retry-count", &prop); in sbs_of_populate_pdata() 653 if (!of_get_property(of_node, "sbs,battery-detect-gpios", NULL)) { in sbs_of_populate_pdata() 658 pdata->battery_detect = of_get_named_gpio_flags(of_node, in sbs_of_populate_pdata()
|
/drivers/macintosh/ |
D | macio_sysfs.c | 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \ 24 compat = of_get_property(of->dev.of_node, "compatible", &cplen); in compatible_show() 58 return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name); in devspec_show()
|
/drivers/tty/hvc/ |
D | hvc_opal.c | 173 if (of_device_is_compatible(dev->dev.of_node, "ibm,opal-console-raw")) { in hvc_opal_probe() 176 } else if (of_device_is_compatible(dev->dev.of_node, in hvc_opal_probe() 182 dev->dev.of_node->full_name); in hvc_opal_probe() 186 reg = of_get_property(dev->dev.of_node, "reg", NULL); in hvc_opal_probe() 207 dev->dev.of_node->full_name, termno); in hvc_opal_probe() 213 dev->dev.of_node->full_name, in hvc_opal_probe()
|
/drivers/misc/ |
D | atmel_tclib.c | 53 if (tc->pdev->dev.of_node) { in atmel_tc_alloc() 54 if (of_alias_get_id(tc->pdev->dev.of_node, "tcb") in atmel_tc_alloc() 166 if (pdev->dev.of_node) { in tc_probe() 168 match = of_match_node(atmel_tcb_dt_ids, pdev->dev.of_node); in tc_probe()
|
/drivers/spi/ |
D | spi-mpc52xx.c | 404 regs = of_iomap(op->dev.of_node, 0); in mpc52xx_spi_probe() 440 master->dev.of_node = op->dev.of_node; in mpc52xx_spi_probe() 447 ms->irq0 = irq_of_parse_and_map(op->dev.of_node, 0); in mpc52xx_spi_probe() 448 ms->irq1 = irq_of_parse_and_map(op->dev.of_node, 1); in mpc52xx_spi_probe() 450 ms->ipb_freq = mpc5xxx_get_bus_frequency(op->dev.of_node); in mpc52xx_spi_probe() 451 ms->gpio_cs_count = of_gpio_count(op->dev.of_node); in mpc52xx_spi_probe() 462 gpio_cs = of_get_gpio(op->dev.of_node, i); in mpc52xx_spi_probe()
|
/drivers/macintosh/ams/ |
D | ams-core.c | 138 prop = of_get_property(ams_info.of_node, "orientation", NULL); in ams_sensor_attach() 145 result = pmf_register_irq_client(ams_info.of_node, in ams_sensor_attach() 155 result = pmf_register_irq_client(ams_info.of_node, in ams_sensor_attach() 162 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); in ams_sensor_attach()
|
/drivers/scsi/ |
D | sun_esp.c | 128 dp = op->dev.of_node; in esp_get_scsi_id() 137 esp->scsi_id = of_getintprop_default(espdma->dev.of_node, in esp_get_scsi_id() 150 dp = op->dev.of_node; in esp_get_differential() 163 dp = op->dev.of_node; in esp_get_clock_params() 175 struct device_node *dma_dp = dma_of->dev.of_node; in esp_get_bursts() 180 dp = op->dev.of_node; in esp_get_bursts() 568 struct device_node *dp = op->dev.of_node; in esp_sbus_probe() 577 dma_node = op->dev.of_node; in esp_sbus_probe()
|
/drivers/net/can/mscan/ |
D | mpc5xxx_can.c | 76 freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); in mpc52xx_can_get_clock() 155 pval = of_get_property(ofdev->dev.of_node, "reg", &plen); in mpc512x_can_get_clock() 171 freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); in mpc512x_can_get_clock() 175 pval = of_get_property(ofdev->dev.of_node, in mpc512x_can_get_clock() 255 struct device_node *np = ofdev->dev.of_node; in mpc5xxx_can_probe()
|