/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-irqchip.c | 176 struct device_node *dn, *opal_node; in opal_event_init() local 193 dn = of_find_compatible_node(NULL, NULL, "ibm,opal-event"); in opal_event_init() 194 opal_event_irqchip.domain = irq_domain_add_linear(dn, MAX_NUM_EVENTS, in opal_event_init() 196 of_node_put(dn); in opal_event_init()
|
H A D | opal-core.c | 303 struct device_node *dn; in create_opalcore() local 339 dn = of_find_node_by_name(NULL, "ibm,opal"); in create_opalcore() 340 if (dn) { in create_opalcore() 341 ret = of_property_read_u64(dn, "opal-base-address", in create_opalcore() 344 ret |= of_property_read_u64(dn, "opal-boot-address", in create_opalcore() 348 if (!dn || ret) in create_opalcore() 351 of_node_put(dn); in create_opalcore()
|
/openbmc/linux/arch/powerpc/platforms/powermac/ |
H A D | pci.c | 232 struct device_node *busdn, *dn; in u3_ht_skip_device() local 245 busdn = hose->dn; in u3_ht_skip_device() 246 for (dn = busdn->child; dn; dn = dn->sibling) in u3_ht_skip_device() 247 if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn) in u3_ht_skip_device() 249 if (dn == NULL) in u3_ht_skip_device() 257 if (k2_skiplist[i] == dn) in u3_ht_skip_device() 689 hose->mem_resources[cur].name = hose->dn->full_name; in parse_region_decode() 704 struct device_node *np = hose->dn; in setup_u3_ht() 894 np = hose->dn; in pmac_pci_root_bridge_prepare()
|
/openbmc/linux/drivers/usb/host/ |
H A D | uhci-grlib.c | 92 struct device_node *dn = op->dev.of_node; in uhci_hcd_grlib_probe() local 104 rv = of_address_to_resource(dn, 0, &res); in uhci_hcd_grlib_probe() 118 irq = irq_of_parse_and_map(dn, 0); in uhci_hcd_grlib_probe()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-of.c | 840 if (!of_property_read_bool(rd->dn, "gpio-hog")) in of_gpio_notify() 843 if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) in of_gpio_notify() 846 chip = of_find_gpiochip_by_node(rd->dn->parent); in of_gpio_notify() 850 ret = of_gpiochip_add_hog(chip, rd->dn); in of_gpio_notify() 853 rd->dn); in of_gpio_notify() 854 of_node_clear_flag(rd->dn, OF_POPULATED); in of_gpio_notify() 860 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_gpio_notify() 863 chip = of_find_gpiochip_by_node(rd->dn->parent); in of_gpio_notify() 867 of_gpiochip_remove_hog(chip, rd->dn); in of_gpio_notify() 868 of_node_clear_flag(rd->dn, OF_POPULATED); in of_gpio_notify()
|
/openbmc/linux/fs/ceph/ |
H A D | export.c | 366 struct dentry *dn; in ceph_get_parent() local 373 dn = ERR_PTR(-EINVAL); in ceph_get_parent() 378 dn = ERR_CAST(dir); in ceph_get_parent() 389 dn = ERR_CAST(snapdir); in ceph_get_parent() 398 dn = d_obtain_root(dir); in ceph_get_parent() 400 dn = d_obtain_alias(dir); in ceph_get_parent() 402 dn = __get_parent(child->d_sb, child, 0); in ceph_get_parent() 406 child, ceph_vinop(inode), (long)PTR_ERR_OR_ZERO(dn)); in ceph_get_parent() 407 return dn; in ceph_get_parent()
|
/openbmc/linux/drivers/of/ |
H A D | platform.c | 766 if (!of_node_check_flag(rd->dn->parent, OF_POPULATED_BUS)) in of_platform_notify() 770 if (of_node_check_flag(rd->dn, OF_POPULATED)) in of_platform_notify() 777 rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; in of_platform_notify() 779 pdev_parent = of_find_device_by_node(rd->dn->parent); in of_platform_notify() 780 pdev = of_platform_device_create(rd->dn, NULL, in of_platform_notify() 786 __func__, rd->dn); in of_platform_notify() 795 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_platform_notify() 799 pdev = of_find_device_by_node(rd->dn); in of_platform_notify()
|
/openbmc/linux/include/net/caif/ |
H A D | caif_layer.h | 150 struct cflayer *dn; member 247 #define layer_set_dn(layr, below) ((layr)->dn = (struct cflayer *)(below))
|
/openbmc/linux/arch/powerpc/platforms/4xx/ |
H A D | pci.c | 70 !of_device_is_compatible(hose->dn, "ibm,plb-pcix") && in fixup_ppc4xx_pci_bridge() 71 !of_device_is_compatible(hose->dn, "ibm,plb-pci")) in fixup_ppc4xx_pci_bridge() 99 int pna = of_n_addr_cells(hose->dn); in ppc4xx_parse_dma_ranges() 109 ranges = of_get_property(hose->dn, "dma-ranges", &rlen); in ppc4xx_parse_dma_ranges() 133 hose->dn, in ppc4xx_parse_dma_ranges() 166 hose->dn, size, (u64)total_memory); in ppc4xx_parse_dma_ranges() 184 hose->dn); in ppc4xx_parse_dma_ranges() 293 hose->dn); in ppc4xx_configure_pci_PMMs() 423 hose->dn); in ppc4xx_setup_one_pcix_POM() 492 hose->dn); in ppc4xx_configure_pcix_POMs() [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | brcmstb_gisb.c | 401 struct device_node *dn = pdev->dev.of_node; in brcmstb_gisb_arb_probe() local 423 of_id = of_match_node(brcmstb_gisb_arb_of_match, dn); in brcmstb_gisb_arb_probe() 429 gdev->big_endian = of_device_is_big_endian(dn); in brcmstb_gisb_arb_probe() 453 if (of_property_read_u32(dn, "brcm,gisb-arb-master-mask", in brcmstb_gisb_arb_probe() 460 num_masters = of_property_count_strings(dn, in brcmstb_gisb_arb_probe() 470 of_property_read_string_index(dn, in brcmstb_gisb_arb_probe()
|
/openbmc/linux/net/caif/ |
H A D | cfdbgl.c | 54 return layr->dn->transmit(layr->dn, pkt); in cfdbgl_transmit()
|
H A D | cfvidl.c | 64 return layr->dn->transmit(layr->dn, pkt); in cfvidl_transmit()
|
H A D | cfrfml.c | 210 return rfml->serv.layer.dn->transmit(rfml->serv.layer.dn, pkt); in cfrfml_transmit_segment() 222 caif_assert(layr->dn != NULL); in cfrfml_transmit() 223 caif_assert(layr->dn->transmit != NULL); in cfrfml_transmit()
|
/openbmc/linux/drivers/net/dsa/ |
H A D | bcm_sf2.c | 555 struct device_node *dn) in bcm_sf2_identify_ports() argument 566 for_each_available_child_of_node(dn, port) { in bcm_sf2_identify_ports() 610 struct device_node *dn, *child; in bcm_sf2_mdio_register() local 624 priv->master_mii_dn = dn; in bcm_sf2_mdio_register() 638 priv->slave_mii_bus->dev.of_node = dn; in bcm_sf2_mdio_register() 686 if (err && dn) in bcm_sf2_mdio_register() 696 of_node_put(dn); in bcm_sf2_mdio_register() 1421 of_node_get(dn); in bcm_sf2_sw_probe() 1422 ports = of_find_node_by_name(dn, "ports"); in bcm_sf2_sw_probe() 1428 priv->irq0 = irq_of_parse_and_map(dn, 0); in bcm_sf2_sw_probe() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | smp.c | 625 struct device_node *dn; in of_parse_and_init_cpus() local 627 for_each_of_cpu_node(dn) { in of_parse_and_init_cpus() 628 u64 hwid = of_get_cpu_hwid(dn, 0); in of_parse_and_init_cpus() 635 dn); in of_parse_and_init_cpus() 648 dn); in of_parse_and_init_cpus() 653 early_map_cpu_to_node(0, of_node_to_nid(dn)); in of_parse_and_init_cpus() 670 early_map_cpu_to_node(cpu_count, of_node_to_nid(dn)); in of_parse_and_init_cpus()
|
/openbmc/linux/drivers/mtd/nand/ |
H A D | ecc.c | 430 struct device_node *dn = nanddev_get_of_node(nand); in of_get_nand_ecc_user_config() local 433 nand->ecc.user_conf.engine_type = of_get_nand_ecc_engine_type(dn); in of_get_nand_ecc_user_config() 434 nand->ecc.user_conf.algo = of_get_nand_ecc_algo(dn); in of_get_nand_ecc_user_config() 435 nand->ecc.user_conf.placement = of_get_nand_ecc_placement(dn); in of_get_nand_ecc_user_config() 437 strength = of_get_nand_ecc_strength(dn); in of_get_nand_ecc_user_config() 441 size = of_get_nand_ecc_step_size(dn); in of_get_nand_ecc_user_config() 445 if (of_property_read_bool(dn, "nand-ecc-maximize")) in of_get_nand_ecc_user_config()
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | spu_manage.c | 403 struct device_node *dn; in of_has_vicinity() local 405 for_each_node_by_type(dn, "spe") { in of_has_vicinity() 406 if (of_property_present(dn, "vicinity")) { in of_has_vicinity() 407 of_node_put(dn); in of_has_vicinity() 414 static struct spu *__init devnode_spu(int cbe, struct device_node *dn) in devnode_spu() argument 419 if (spu_devnode(spu) == dn) in devnode_spu()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | rtas_pci.c | 36 static inline int config_access_valid(struct pci_dn *dn, int where) in config_access_valid() argument 40 if (where < 4096 && dn->pci_ext_config_space) in config_access_valid() 230 struct device_node *dev = phb->dn; in rtas_setup_phb()
|
/openbmc/linux/drivers/net/mdio/ |
H A D | of_mdio.c | 358 struct device_node *dn; in of_phy_is_fixed_link() local 363 dn = of_get_child_by_name(np, "fixed-link"); in of_phy_is_fixed_link() 364 if (dn) { in of_phy_is_fixed_link() 365 of_node_put(dn); in of_phy_is_fixed_link()
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-cti-platform.c | 45 struct device_node *dn; in of_cti_get_cpu_at_node() local 50 dn = of_parse_phandle(node, "cpu", 0); in of_cti_get_cpu_at_node() 52 if (!dn) in of_cti_get_cpu_at_node() 54 cpu = of_cpu_node_to_id(dn); in of_cti_get_cpu_at_node() 55 of_node_put(dn); in of_cti_get_cpu_at_node()
|
/openbmc/linux/net/dsa/ |
H A D | port.c | 1685 err = of_get_phy_mode(dp->dn, &mode); in dsa_port_phylink_create() 1761 struct device_node *dn = dp->dn; in dsa_shared_port_fixed_link_register_of() local 1768 err = of_phy_register_fixed_link(dn); in dsa_shared_port_fixed_link_register_of() 1776 phydev = of_phy_find_device(dn); in dsa_shared_port_fixed_link_register_of() 1778 err = of_get_phy_mode(dn, &mode); in dsa_shared_port_fixed_link_register_of() 1796 struct device_node *port_dn = dp->dn; in dsa_shared_port_phylink_register() 1937 struct device_node *dn = dp->dn, *phy_np; in dsa_shared_port_validate_of() local 1944 if (of_get_phy_mode(dn, &mode)) { in dsa_shared_port_validate_of() 1954 if (of_phy_is_fixed_link(dn)) in dsa_shared_port_validate_of() 2003 if (of_phy_is_fixed_link(dp->dn)) in dsa_shared_port_link_register_of() [all …]
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | base.c | 99 int cxl_update_properties(struct device_node *dn, in cxl_update_properties() argument 102 return of_update_property(dn, new_prop); in cxl_update_properties()
|
/openbmc/linux/drivers/usb/mtu3/ |
H A D | mtu3_dr.h | 18 struct device_node *dn); 36 struct ssusb_mtk *ssusb, struct device_node *dn) in ssusb_wakeup_of_property_parse() argument
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | pnv-pci.h | 62 struct device_node *dn; member 74 extern struct pnv_php_slot *pnv_php_find_slot(struct device_node *dn);
|
/openbmc/linux/scripts/ |
H A D | decode_stacktrace.sh | 108 for dn in {/usr/lib/debug,}/lib/modules/$release ; do 109 if [ -e "$dn" ] ; then 110 modpath="$dn"
|