/linux-2.6.39/arch/powerpc/sysdev/ |
D | msi_bitmap.c | 76 if (!bmp->of_node) in msi_bitmap_reserve_dt_hwirqs() 79 p = of_get_property(bmp->of_node, "msi-available-ranges", &len); in msi_bitmap_reserve_dt_hwirqs() 82 "found on %s\n", bmp->of_node->full_name); in msi_bitmap_reserve_dt_hwirqs() 88 " property on %s\n", bmp->of_node->full_name); in msi_bitmap_reserve_dt_hwirqs() 109 struct device_node *of_node) in msi_bitmap_alloc() argument 127 bmp->of_node = of_node_get(of_node); in msi_bitmap_alloc() 136 of_node_put(bmp->of_node); in msi_bitmap_free() 196 struct device_node of_node; in test_of_node() local 203 memset(&of_node, 0, sizeof(of_node)); in test_of_node() 204 kref_init(&of_node.kref); in test_of_node() [all …]
|
D | fsl_msi.c | 84 msi_data->irqhost->of_node); in fsl_msi_init_allocator() 285 virt_msir = irq_of_parse_and_map(dev->dev.of_node, irq_index); in fsl_msi_setup_hwirq() 335 msi->irqhost = irq_alloc_host(dev->dev.of_node, IRQ_HOST_MAP_LINEAR, in fsl_of_msi_probe() 345 err = of_address_to_resource(dev->dev.of_node, 0, &res); in fsl_of_msi_probe() 348 dev->dev.of_node->full_name); in fsl_of_msi_probe() 371 p = of_get_property(dev->dev.of_node, "msi-available-ranges", &len); in fsl_of_msi_probe() 386 __func__, dev->dev.of_node->full_name, in fsl_of_msi_probe()
|
/linux-2.6.39/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 if (add_uevent_var(env, "OF_NAME=%s", dev->of_node->name)) in of_device_uevent() 142 if (add_uevent_var(env, "OF_TYPE=%s", dev->of_node->type)) in of_device_uevent() [all …]
|
D | gpio.c | 193 mm_gc->gc.of_node = np; in of_mm_gpiochip_add() 215 if ((!chip->of_node) && (chip->dev)) in of_gpiochip_add() 216 chip->of_node = chip->dev->of_node; in of_gpiochip_add() 218 if (!chip->of_node) in of_gpiochip_add() 226 of_node_get(chip->of_node); in of_gpiochip_add() 231 if (chip->of_node) in of_gpiochip_remove() 232 of_node_put(chip->of_node); in of_gpiochip_remove() 238 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 | 30 if (!master->dev.of_node) in of_register_spi_devices() 33 for_each_child_of_node(master->dev.of_node, nc) { in of_register_spi_devices() 85 spi->dev.of_node = nc; in of_register_spi_devices()
|
/linux-2.6.39/arch/powerpc/kernel/ |
D | of_platform.c | 47 pr_info("Setting up PCI bus %s\n", dev->dev.of_node->full_name); in of_pci_phb_probe() 50 phb = pcibios_alloc_controller(dev->dev.of_node); in of_pci_phb_probe() 64 pci_process_bridge_OF_ranges(phb, dev->dev.of_node, 0); in of_pci_phb_probe() 71 if (dev->dev.of_node->child) in of_pci_phb_probe() 72 eeh_add_device_tree_early(dev->dev.of_node); in of_pci_phb_probe()
|
D | vio.c | 123 struct device_node *of_node; in vio_cmo_num_OF_devs() local 126 for_each_child_of_node(node_vroot, of_node) { in vio_cmo_num_OF_devs() 127 prop = of_find_property(of_node, "ibm,my-dma-window", in vio_cmo_num_OF_devs() 714 if (of_get_property(viodev->dev.of_node, in vio_cmo_bus_probe() 1060 dma_window = of_get_property(dev->dev.of_node, in vio_build_iommu_table() 1069 of_parse_dma_window(dev->dev.of_node, dma_window, in vio_build_iommu_table() 1098 of_device_is_compatible(dev->dev.of_node, in vio_match_device() 1194 iommu_free_table(tbl, dev->of_node ? in vio_dev_release() 1195 dev->of_node->full_name : dev_name(dev)); in vio_dev_release() 1196 of_node_put(dev->of_node); in vio_dev_release() [all …]
|
/linux-2.6.39/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 | 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()
|
D | xilinxfb.c | 431 p = (u32 *)of_get_property(op->dev.of_node, "xlnx,dcr-splb-slave-if", NULL); in xilinxfb_of_probe() 440 rc = of_address_to_resource(op->dev.of_node, 0, &res); in xilinxfb_of_probe() 450 start = dcr_resource_start(op->dev.of_node, 0); in xilinxfb_of_probe() 451 drvdata->dcr_len = dcr_resource_len(op->dev.of_node, 0); in xilinxfb_of_probe() 452 drvdata->dcr_host = dcr_map(op->dev.of_node, start, drvdata->dcr_len); in xilinxfb_of_probe() 460 prop = of_get_property(op->dev.of_node, "phys-size", &size); in xilinxfb_of_probe() 466 prop = of_get_property(op->dev.of_node, "resolution", &size); in xilinxfb_of_probe() 472 prop = of_get_property(op->dev.of_node, "virtual-resolution", &size); in xilinxfb_of_probe() 478 if (of_find_property(op->dev.of_node, "rotate-display", NULL)) in xilinxfb_of_probe()
|
/linux-2.6.39/arch/powerpc/platforms/powermac/ |
D | pfunc_base.c | 103 (gparent = of_get_next_child(macio->of_node, gparent)) != NULL;) in macio_gpio_init_one() 110 macio->of_node->full_name); in macio_gpio_init_one() 132 macio->of_node->full_name); in macio_gpio_init_one() 270 macio->of_node->full_name); in macio_mmio_init_one() 272 pmf_register_driver(macio->of_node, &macio_mmio_handlers, macio); in macio_mmio_init_one() 346 if (macio_chips[i].of_node) { in pmac_pfunc_base_install() 380 if (macio_chips[i].of_node) in pmac_pfunc_base_suspend() 381 pmf_do_functions(macio_chips[i].of_node, NULL, 0, in pmac_pfunc_base_suspend() 403 if (macio_chips[i].of_node) in pmac_pfunc_base_resume() 404 pmf_do_functions(macio_chips[i].of_node, NULL, 0, in pmac_pfunc_base_resume()
|
/linux-2.6.39/arch/sparc/kernel/ |
D | of_device_64.c | 326 bus = of_match_bus(p_op->dev.of_node); in build_device_resources() 327 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources() 329 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources() 343 op->dev.of_node->full_name, num_reg, PROMREG_MAX); in build_device_resources() 353 struct device_node *dp = op->dev.of_node; in build_device_resources() 354 struct device_node *pp = p_op->dev.of_node; in build_device_resources() 402 op->dev.of_node->full_name, index, in build_device_resources() 413 r->name = op->dev.of_node->name; in build_device_resources() 535 struct device_node *dp = op->dev.of_node; in build_one_device_irq() 580 op->dev.of_node->full_name, in build_one_device_irq() [all …]
|
D | of_device_32.c | 258 bus = of_match_bus(p_op->dev.of_node); in build_device_resources() 259 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources() 261 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources() 277 struct device_node *dp = op->dev.of_node; in build_device_resources() 278 struct device_node *pp = p_op->dev.of_node; in build_device_resources() 327 op->dev.of_node->full_name, index, in build_device_resources() 335 r->name = op->dev.of_node->name; in build_device_resources() 353 op->dev.of_node = dp; in scan_one_device()
|
D | pci_msi.c | 324 val = of_get_property(pbm->op->dev.of_node, "#msi-eqs", &len); in sparc64_pbm_msi_init() 347 val = of_get_property(pbm->op->dev.of_node, "msi-eq-size", &len); in sparc64_pbm_msi_init() 353 mqp = of_get_property(pbm->op->dev.of_node, in sparc64_pbm_msi_init() 356 mqp = of_get_property(pbm->op->dev.of_node, in sparc64_pbm_msi_init() 364 val = of_get_property(pbm->op->dev.of_node, "#msi", &len); in sparc64_pbm_msi_init() 369 mrng = of_get_property(pbm->op->dev.of_node, "msi-ranges", &len); in sparc64_pbm_msi_init() 374 val = of_get_property(pbm->op->dev.of_node, "msi-data-mask", &len); in sparc64_pbm_msi_init() 379 val = of_get_property(pbm->op->dev.of_node, "msix-data-width", &len); in sparc64_pbm_msi_init() 384 arng = of_get_property(pbm->op->dev.of_node, "msi-address-ranges", in sparc64_pbm_msi_init()
|
D | sbus.c | 66 regs = of_get_property(op->dev.of_node, "reg", NULL); in sbus_set_sbus64() 69 op->dev.of_node->full_name); in sbus_set_sbus64() 290 portid = of_getintprop_default(op->dev.of_node, "portid", -1); in sysio_ue_handler() 364 portid = of_getintprop_default(op->dev.of_node, "portid", -1); in sysio_ce_handler() 442 portid = of_getintprop_default(op->dev.of_node, "portid", -1); in sysio_sbus_error_handler() 499 portid = of_getintprop_default(op->dev.of_node, "portid", -1); in sysio_register_error_handlers() 540 struct device_node *dp = op->dev.of_node; in sbus_iommu_init() 592 portid = of_getintprop_default(op->dev.of_node, "portid", -1); in sbus_iommu_init()
|
/linux-2.6.39/sound/aoa/soundbus/ |
D | sysfs.c | 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \ 28 of->dev.of_node->name, of->dev.of_node->type); in modalias_show()
|
/linux-2.6.39/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()
|
/linux-2.6.39/arch/powerpc/platforms/cell/ |
D | spider-pic.c | 238 if (of_irq_map_one(pic->host->of_node, 0, &oirq) == 0) { in spider_find_cascade_and_node() 245 tmp = of_get_property(pic->host->of_node, "#interrupt-cells", NULL); in spider_find_cascade_and_node() 249 imap = of_get_property(pic->host->of_node, "interrupt-map", &imaplen); in spider_find_cascade_and_node() 289 static void __init spider_init_one(struct device_node *of_node, int chip, in spider_init_one() argument 301 pic->host = irq_alloc_host(of_node, IRQ_HOST_MAP_LINEAR, in spider_init_one() 328 pic->node_id, addr, of_node->full_name); in spider_init_one()
|
/linux-2.6.39/drivers/net/ibm_newemac/ |
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() 266 if (of_get_property(ofdev->dev.of_node, "has-mdio", NULL)) in rgmii_probe() 270 if (of_device_is_compatible(ofdev->dev.of_node, "ibm,rgmii-axon")) in rgmii_probe() 281 ofdev->dev.of_node->full_name, in rgmii_probe()
|
/linux-2.6.39/drivers/mtd/nand/ |
D | fsl_upm.c | 234 ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res); in fun_probe() 246 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset", in fun_probe() 255 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size); in fun_probe() 263 prop = of_get_property(ofdev->dev.of_node, in fun_probe() 279 rnb_gpio = of_get_gpio(ofdev->dev.of_node, i); in fun_probe() 295 prop = of_get_property(ofdev->dev.of_node, "chip-delay", NULL); in fun_probe() 301 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-wait-flags", &size); in fun_probe() 318 ret = fun_chip_init(fun, ofdev->dev.of_node, &io_res); in fun_probe()
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | msi_bitmap.h | 18 struct device_node *of_node; member 32 struct device_node *of_node);
|
/linux-2.6.39/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()
|