/openbmc/linux/drivers/pci/hotplug/ |
H A D | rpaphp_pci.c | 78 struct pci_controller *phb = PCI_DN(slot->dn)->phb; in __rpaphp_get_sensor_state() 87 pdn = list_first_entry_or_null(&PCI_DN(phb->dn)->child_list, in __rpaphp_get_sensor_state() 158 bus = pci_find_bus_by_node(slot->dn); in rpaphp_enable_slot() 160 err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn); in rpaphp_enable_slot() 172 if (!slot->dn->child) { in rpaphp_enable_slot() 179 pseries_eeh_init_edev_recursive(PCI_DN(slot->dn)); in rpaphp_enable_slot() 189 dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn); in rpaphp_enable_slot()
|
H A D | rpaphp_slot.c | 25 of_node_put(slot->dn); in dealloc_slot_struct() 30 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() argument 41 slot->dn = of_node_get(dn); in alloc_slot_struct() 91 __func__, slot->dn, slot->index, slot->name, in rpaphp_register_slot() 100 for_each_child_of_node(slot->dn, child) { in rpaphp_register_slot()
|
/openbmc/linux/arch/mips/bmips/ |
H A D | irq.c | 29 struct device_node *dn; in arch_init_irq() local 32 dn = of_find_matching_node(NULL, smp_intc_dt_match); in arch_init_irq() 33 if (dn) in arch_init_irq() 34 of_node_put(dn); in arch_init_irq()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | drmem.c | 358 static int init_drmem_lmb_size(struct device_node *dn) in init_drmem_lmb_size() argument 366 prop = of_get_property(dn, "ibm,lmb-size", &len); in init_drmem_lmb_size() 393 int walk_drmem_lmbs(struct device_node *dn, void *data, in walk_drmem_lmbs() argument 408 if (init_drmem_lmb_size(dn)) in walk_drmem_lmbs() 411 usm = of_get_usable_memory(dn); in walk_drmem_lmbs() 413 prop = of_get_property(dn, "ibm,dynamic-memory", NULL); in walk_drmem_lmbs() 490 struct device_node *dn; in drmem_init() local 494 if (!dn) { in drmem_init() 499 if (init_drmem_lmb_size(dn)) { in drmem_init() 500 of_node_put(dn); in drmem_init() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | rng.c | 30 struct device_node *dn; in pseries_rng_init() local 32 dn = of_find_compatible_node(NULL, NULL, "ibm,random"); in pseries_rng_init() 33 if (!dn) in pseries_rng_init() 36 of_node_put(dn); in pseries_rng_init()
|
H A D | pci.c | 24 struct device_node *dn; 29 dn = pci_device_to_OF_node(dev); 30 if (dn) { 31 const char *loc_code = of_get_property(dn, "ibm,loc-code", 153 struct device_node *dn = pci_device_to_OF_node(pdev); in pseries_pci_sriov_enable() local 155 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); in pseries_pci_sriov_enable() 289 struct device_node *dn, *pdn; in pseries_root_bridge_prepare() local 300 dn = pcibios_get_phb_of_node(bus); in pseries_root_bridge_prepare() 301 if (!dn) in pseries_root_bridge_prepare() 304 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { in pseries_root_bridge_prepare()
|
/openbmc/linux/fs/ceph/ |
H A D | inode.c | 1462 dn, d_count(dn), in splice_dentry() 1465 dput(dn); in splice_dentry() 1470 dn, d_inode(dn), ceph_vinop(d_inode(dn))); in splice_dentry() 1579 dn, d_inode(dn)); in ceph_fill_trace() 1665 dn, dn); in ceph_fill_trace() 1677 dn, dn); in ceph_fill_trace() 1723 dn, d_inode(dn), ceph_vinop(d_inode(dn)), in ceph_fill_trace() 1956 if (!dn) { in ceph_readdir_prepopulate() 1975 dn, d_inode(dn)); in ceph_readdir_prepopulate() 1987 dput(dn); in ceph_readdir_prepopulate() [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | imx-weim.c | 314 of_id = of_match_node(weim_id_table, rd->dn->parent); in of_weim_notify() 320 pdev = of_find_device_by_node(rd->dn->parent); in of_weim_notify() 323 __func__, rd->dn->parent); in of_weim_notify() 328 if (weim_timing_setup(&pdev->dev, rd->dn, devtype)) in of_weim_notify() 330 "Failed to setup timing for '%pOF'\n", rd->dn); in of_weim_notify() 332 if (!of_node_check_flag(rd->dn, OF_POPULATED)) { in of_weim_notify() 338 rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; in of_weim_notify() 342 rd->dn); in of_weim_notify() 351 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_weim_notify() 358 pdev = of_find_device_by_node(rd->dn); in of_weim_notify() [all …]
|
H A D | arm-cci.c | 110 struct device_node *dn; member 161 static int __cci_ace_get_port(struct device_node *dn, int type) in __cci_ace_get_port() argument 167 cci_portn = of_parse_phandle(dn, "cci-control-port", 0); in __cci_ace_get_port() 170 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port() 176 int cci_ace_get_port(struct device_node *dn) in cci_ace_get_port() argument 178 return __cci_ace_get_port(dn, ACE_LITE_PORT); in cci_ace_get_port() 388 int notrace __cci_control_port_by_device(struct device_node *dn, bool enable) in __cci_control_port_by_device() argument 392 if (!dn) in __cci_control_port_by_device() 395 port = __cci_ace_get_port(dn, ACE_LITE_PORT); in __cci_control_port_by_device() 397 dn)) in __cci_control_port_by_device() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | cpu_ops.c | 60 struct device_node *dn = of_get_cpu_node(cpu, NULL); in cpu_read_enable_method() local 62 if (!dn) { in cpu_read_enable_method() 68 enable_method = of_get_property(dn, "enable-method", NULL); in cpu_read_enable_method() 77 dn); in cpu_read_enable_method() 79 of_node_put(dn); in cpu_read_enable_method()
|
H A D | smp_spin_table.c | 45 struct device_node *dn; in smp_spin_table_cpu_init() local 48 dn = of_get_cpu_node(cpu, NULL); in smp_spin_table_cpu_init() 49 if (!dn) in smp_spin_table_cpu_init() 55 ret = of_property_read_u64(dn, "cpu-release-addr", in smp_spin_table_cpu_init() 61 of_node_put(dn); in smp_spin_table_cpu_init()
|
/openbmc/linux/net/caif/ |
H A D | cfsrvl.c | 99 caif_assert(layr->dn != NULL); in cfservl_modemcmd() 100 caif_assert(layr->dn->transmit != NULL); in cfservl_modemcmd() 125 return layr->dn->transmit(layr->dn, pkt); in cfservl_modemcmd() 146 return layr->dn->transmit(layr->dn, pkt); in cfservl_modemcmd() 201 if (adap_layer == NULL || adap_layer->dn == NULL) in caif_free_client() 203 servl = container_obj(adap_layer->dn); in caif_free_client() 214 if (WARN_ON(adapt_layer == NULL || adapt_layer->dn == NULL)) in caif_client_register_refcnt() 216 service = container_of(adapt_layer->dn, struct cfsrvl, layer); in caif_client_register_refcnt()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | pci_32.c | 117 struct device_node *dn; in pcibios_make_OF_bus_map() local 133 struct device_node* node = hose->dn; in pcibios_make_OF_bus_map() 139 dn = of_find_node_by_path("/"); in pcibios_make_OF_bus_map() 140 map_prop = of_find_property(dn, "pci-OF-bus-map", NULL); in pcibios_make_OF_bus_map() 145 of_node_put(dn); in pcibios_make_OF_bus_map() 214 struct device_node *dn; in pci_create_OF_bus_map() local 221 dn = of_find_node_by_path("/"); in pci_create_OF_bus_map() 222 if (dn) { in pci_create_OF_bus_map() 227 of_add_property(dn, of_prop); in pci_create_OF_bus_map() 228 of_node_put(dn); in pci_create_OF_bus_map()
|
/openbmc/linux/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmmii.c | 303 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe() local 348 if (dn) { in bcmgenet_mii_probe() 490 if (dn) in bcmgenet_mii_register() 491 id = of_alias_get_id(dn, "eth"); in bcmgenet_mii_register() 502 if (dn) in bcmgenet_mii_register() 563 ret = of_phy_register_fixed_link(dn); in bcmgenet_mii_of_init() 567 priv->phy_dn = of_node_get(dn); in bcmgenet_mii_of_init() 577 phydev = of_phy_find_device(dn); in bcmgenet_mii_of_init() 644 if (dn) in bcmgenet_mii_bus_init() 677 if (of_phy_is_fixed_link(dn)) in bcmgenet_mii_exit() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | device_sysfs.c | 47 return dn->handle ? acpi_object_path(dn->handle, buf) : 0; in data_node_show_path() 78 complete(&dn->kobj_done); in acpi_data_node_release() 91 struct acpi_data_node *dn; in acpi_expose_nondev_subnodes() local 96 list_for_each_entry(dn, list, sibling) { in acpi_expose_nondev_subnodes() 99 init_completion(&dn->kobj_done); in acpi_expose_nondev_subnodes() 101 kobj, "%s", dn->name); in acpi_expose_nondev_subnodes() 103 acpi_expose_nondev_subnodes(&dn->kobj, &dn->data); in acpi_expose_nondev_subnodes() 104 else if (dn->handle) in acpi_expose_nondev_subnodes() 112 struct acpi_data_node *dn; in acpi_hide_nondev_subnodes() local 118 acpi_hide_nondev_subnodes(&dn->data); in acpi_hide_nondev_subnodes() [all …]
|
/openbmc/linux/drivers/i2c/ |
H A D | i2c-core-of.c | 172 adap = of_find_i2c_adapter_by_node(rd->dn->parent); in of_i2c_notify() 176 if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { in of_i2c_notify() 185 rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; in of_i2c_notify() 186 client = of_i2c_register_device(adap, rd->dn); in of_i2c_notify() 189 rd->dn); in of_i2c_notify() 191 of_node_clear_flag(rd->dn, OF_POPULATED); in of_i2c_notify() 198 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_i2c_notify() 202 client = of_find_i2c_device_by_node(rd->dn); in of_i2c_notify()
|
/openbmc/linux/drivers/soc/bcm/brcmstb/pm/ |
H A D | pm-mips.c | 358 static inline void __iomem *brcmstb_ioremap_node(struct device_node *dn, in brcmstb_ioremap_node() argument 361 return of_io_request_and_map(dn, index, dn->full_name); in brcmstb_ioremap_node() 367 struct device_node *dn; in brcmstb_ioremap_match() local 370 dn = of_find_matching_node_and_match(NULL, matches, &match); in brcmstb_ioremap_match() 371 if (!dn) in brcmstb_ioremap_match() 377 return brcmstb_ioremap_node(dn, index); in brcmstb_ioremap_match() 382 struct device_node *dn; in brcmstb_pm_init() local 404 for_each_matching_node(dn, ddr_phy_dt_ids) { in brcmstb_pm_init() 408 of_node_put(dn); in brcmstb_pm_init() 411 base = brcmstb_ioremap_node(dn, 0); in brcmstb_pm_init() [all …]
|
/openbmc/linux/include/linux/ |
H A D | arm-cci.h | 25 extern int cci_ace_get_port(struct device_node *dn); 27 extern int __cci_control_port_by_device(struct device_node *dn, bool enable); 30 static inline int cci_ace_get_port(struct device_node *dn) in cci_ace_get_port() argument 35 static inline int __cci_control_port_by_device(struct device_node *dn, in __cci_control_port_by_device() argument
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | setup.c | 98 if (!of_device_is_compatible(hose->dn, "pciex")) in cell_fixup_pcie_rootcomplex() 102 s = of_get_property(hose->dn, "model", NULL); in cell_fixup_pcie_rootcomplex() 127 np = phb->dn; in cell_setup_phb() 188 struct device_node *dn; in mpic_init_IRQ() local 191 for_each_node_by_name(dn, "interrupt-controller") { in mpic_init_IRQ() 192 if (!of_device_is_compatible(dn, "CBEA,platform-open-pic")) in mpic_init_IRQ() 198 mpic = mpic_alloc(dn, 0, MPIC_SECONDARY | MPIC_NO_RESET, in mpic_init_IRQ()
|
H A D | interrupt.c | 296 struct device_node *dn; in setup_iic() local 302 for_each_node_by_name(dn, "interrupt-controller") { in setup_iic() 303 if (!of_device_is_compatible(dn, in setup_iic() 306 np = of_get_property(dn, "ibm,interrupt-server-ranges", NULL); in setup_iic() 309 of_node_put(dn); in setup_iic() 312 if (of_address_to_resource(dn, 0, &r0) || in setup_iic() 313 of_address_to_resource(dn, 1, &r1)) { in setup_iic() 315 of_node_put(dn); in setup_iic() 319 init_one_iic(np[0], r0.start, dn); in setup_iic() 320 init_one_iic(np[1], r1.start, dn); in setup_iic()
|
/openbmc/linux/drivers/usb/host/ |
H A D | ohci-ppc-of.c | 87 struct device_node *dn = op->dev.of_node; in ohci_hcd_ppc_of_probe() local 101 of_device_is_compatible(dn, "ohci-bigendian") || in ohci_hcd_ppc_of_probe() 102 of_device_is_compatible(dn, "ohci-be"); in ohci_hcd_ppc_of_probe() 106 rv = of_address_to_resource(dn, 0, &res); in ohci_hcd_ppc_of_probe() 123 irq = irq_of_parse_and_map(dn, 0); in ohci_hcd_ppc_of_probe() 134 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) in ohci_hcd_ppc_of_probe() 136 if (of_device_is_compatible(dn, "mpc5200-ohci")) in ohci_hcd_ppc_of_probe()
|
/openbmc/linux/arch/arm/mach-tegra/ |
H A D | irq.c | 69 struct device_node *dn; in tegra114_gic_cpu_pm_registration() local 71 dn = of_find_matching_node(NULL, tegra114_dt_gic_match); in tegra114_gic_cpu_pm_registration() 72 if (!dn) in tegra114_gic_cpu_pm_registration() 75 tegra_gic_cpu_base = of_iomap(dn, 1); in tegra114_gic_cpu_pm_registration()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_proto_dccp.c | 391 struct nf_dccp_net *dn; in dccp_new() local 398 dn = nf_dccp_pernet(net); in dccp_new() 399 if (dn->dccp_loose == 0) { in dccp_new() 732 struct nf_dccp_net *dn = nf_dccp_pernet(net); in dccp_timeout_nlattr_to_obj() local 737 timeouts = dn->dccp_timeout; in dccp_timeout_nlattr_to_obj() 741 timeouts[i] = dn->dccp_timeout[i]; in dccp_timeout_nlattr_to_obj() 784 struct nf_dccp_net *dn = nf_dccp_pernet(net); in nf_conntrack_dccp_init_net() local 787 dn->dccp_loose = 1; in nf_conntrack_dccp_init_net() 792 dn->dccp_timeout[CT_DCCP_CLOSEREQ] = 64 * HZ; in nf_conntrack_dccp_init_net() 793 dn->dccp_timeout[CT_DCCP_CLOSING] = 64 * HZ; in nf_conntrack_dccp_init_net() [all …]
|
/openbmc/linux/drivers/clk/mvebu/ |
H A D | ap-cpu-clk.c | 233 struct device_node *dn, *np = dev->of_node; in ap_cpu_clock_probe() local 254 for_each_of_cpu_node(dn) { in ap_cpu_clock_probe() 257 cpu = of_get_cpu_hwid(dn, 0); in ap_cpu_clock_probe() 259 of_node_put(dn); in ap_cpu_clock_probe() 266 of_node_put(dn); in ap_cpu_clock_probe() 285 for_each_of_cpu_node(dn) { in ap_cpu_clock_probe() 292 cpu = of_get_cpu_hwid(dn, 0); in ap_cpu_clock_probe() 294 of_node_put(dn); in ap_cpu_clock_probe() 308 of_node_put(dn); in ap_cpu_clock_probe() 328 of_node_put(dn); in ap_cpu_clock_probe()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | vas.c | 52 struct device_node *dn = pdev->dev.of_node; in init_vas_instance() local 59 rc = of_property_read_u32(dn, "ibm,vas-id", &vasid); in init_vas_instance() 65 rc = of_property_read_u32(dn, "ibm,chip-id", &chipid); in init_vas_instance() 138 if (cpu_to_chip_id(cpu) == of_get_ibm_chip_id(dn)) in init_vas_instance() 235 struct device_node *dn; in vas_init() local 239 for_each_compatible_node(dn, NULL, "ibm,vas") { in vas_init() 240 of_platform_device_create(dn, NULL, NULL); in vas_init()
|