Home
last modified time | relevance | path

Searched refs:dn (Results 1 – 25 of 84) sorted by relevance

1234

/arch/powerpc/platforms/cell/
Daxon_msi.c82 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic);
84 static inline void axon_msi_debug_setup(struct device_node *dn, in axon_msi_debug_setup() argument
157 struct device_node *dn, *tmp; in find_msi_translator() local
161 dn = of_node_get(pci_device_to_OF_node(dev)); in find_msi_translator()
162 if (!dn) { in find_msi_translator()
167 for (; dn; dn = of_get_next_parent(dn)) { in find_msi_translator()
168 ph = of_get_property(dn, "msi-translator", NULL); in find_msi_translator()
179 tmp = dn; in find_msi_translator()
180 dn = of_find_node_by_phandle(*ph); in find_msi_translator()
182 if (!dn) { in find_msi_translator()
[all …]
Dsetup.c103 if (!of_device_is_compatible(hose->dn, "pciex")) in cell_fixup_pcie_rootcomplex()
107 s = of_get_property(hose->dn, "model", NULL); in cell_fixup_pcie_rootcomplex()
132 np = phb->dn; in cell_setup_phb()
192 struct device_node *dn; in mpic_init_IRQ() local
195 for (dn = NULL; in mpic_init_IRQ()
196 (dn = of_find_node_by_name(dn, "interrupt-controller"));) { in mpic_init_IRQ()
197 if (!of_device_is_compatible(dn, "CBEA,platform-open-pic")) in mpic_init_IRQ()
203 mpic = mpic_alloc(dn, 0, MPIC_SECONDARY | MPIC_NO_RESET, in mpic_init_IRQ()
Dinterrupt.c312 struct device_node *dn; in setup_iic() local
318 for (dn = NULL; in setup_iic()
319 (dn = of_find_node_by_name(dn,"interrupt-controller")) != NULL;) { in setup_iic()
320 if (!of_device_is_compatible(dn, in setup_iic()
323 np = of_get_property(dn, "ibm,interrupt-server-ranges", NULL); in setup_iic()
326 of_node_put(dn); in setup_iic()
329 if (of_address_to_resource(dn, 0, &r0) || in setup_iic()
330 of_address_to_resource(dn, 1, &r1)) { in setup_iic()
332 of_node_put(dn); in setup_iic()
336 init_one_iic(np[0], r0.start, dn); in setup_iic()
[all …]
/arch/powerpc/kernel/
Dpci_dn.c46 struct device_node *dn; in pci_bus_to_pdn() local
65 dn = pci_bus_to_OF_node(pbus); in pci_bus_to_pdn()
66 pdn = dn ? PCI_DN(dn) : NULL; in pci_bus_to_pdn()
74 struct device_node *dn = NULL; in pci_get_pdn_by_devfn() local
84 dn = pci_device_to_OF_node(pdev); in pci_get_pdn_by_devfn()
90 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn_by_devfn()
110 struct device_node *dn; in pci_get_pdn() local
118 dn = pci_device_to_OF_node(pdev); in pci_get_pdn()
119 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn()
295 struct device_node *dn) in pci_add_device_node_info() argument
[all …]
Dpci-hotplug.c25 struct device_node *dn) in find_bus_among_children() argument
30 if (pci_bus_to_OF_node(bus) == dn) in find_bus_among_children()
34 child = find_bus_among_children(tmp, dn); in find_bus_among_children()
42 struct pci_bus *pci_find_bus_by_node(struct device_node *dn) in pci_find_bus_by_node() argument
44 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node()
49 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node()
110 struct device_node *dn = pci_bus_to_OF_node(bus); in pci_hp_add_devices() local
112 eeh_add_device_tree_early(PCI_DN(dn)); in pci_hp_add_devices()
122 of_rescan_bus(dn, bus); in pci_hp_add_devices()
124 dn->child && PCI_DN(dn->child)) { in pci_hp_add_devices()
[all …]
Dprom_parse.c11 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, in of_parse_dma_window() argument
22 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window()
24 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window()
26 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window()
31 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window()
32 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window()
Dpci_32.c116 struct device_node *dn; in pcibios_make_OF_bus_map() local
132 struct device_node* node = hose->dn; in pcibios_make_OF_bus_map()
138 dn = of_find_node_by_path("/"); in pcibios_make_OF_bus_map()
139 map_prop = of_find_property(dn, "pci-OF-bus-map", NULL); in pcibios_make_OF_bus_map()
144 of_node_put(dn); in pcibios_make_OF_bus_map()
203 struct device_node *dn; in pci_create_OF_bus_map() local
206 dn = of_find_node_by_path("/"); in pci_create_OF_bus_map()
207 if (dn) { in pci_create_OF_bus_map()
212 of_add_property(dn, of_prop); in pci_create_OF_bus_map()
213 of_node_put(dn); in pci_create_OF_bus_map()
/arch/powerpc/platforms/pseries/
Ddlpar.c85 struct device_node *dn; in dlpar_parse_cc_node() local
94 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node()
95 if (!dn) in dlpar_parse_cc_node()
99 dn->full_name = kasprintf(GFP_KERNEL, "%s/%s", path, name); in dlpar_parse_cc_node()
100 if (!dn->full_name) { in dlpar_parse_cc_node()
101 kfree(dn); in dlpar_parse_cc_node()
105 of_node_set_flag(dn, OF_DYNAMIC); in dlpar_parse_cc_node()
106 of_node_init(dn); in dlpar_parse_cc_node()
108 return dn; in dlpar_parse_cc_node()
111 static void dlpar_free_one_cc_node(struct device_node *dn) in dlpar_free_one_cc_node() argument
[all …]
Dhotplug-cpu.c345 static int dlpar_online_cpu(struct device_node *dn) in dlpar_online_cpu() argument
353 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); in dlpar_online_cpu()
435 struct device_node *dn, *parent; in dlpar_cpu_add() local
466 dn = dlpar_configure_connector(cpu_to_be32(drc_index), parent); in dlpar_cpu_add()
467 if (!dn) { in dlpar_cpu_add()
475 rc = dlpar_attach_node(dn, parent); in dlpar_cpu_add()
483 dn->name, rc, drc_index); in dlpar_cpu_add()
487 dlpar_free_cc_nodes(dn); in dlpar_cpu_add()
492 rc = dlpar_online_cpu(dn); in dlpar_cpu_add()
496 dn->name, rc, drc_index); in dlpar_cpu_add()
[all …]
Dmsi.c134 struct device_node *dn; in check_req() local
138 dn = pci_device_to_OF_node(pdev); in check_req()
140 p = of_get_property(dn, prop_name, NULL); in check_req()
142 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req()
173 struct device_node *dn; in find_pe_total_msi() local
176 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi()
177 while (dn) { in find_pe_total_msi()
178 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in find_pe_total_msi()
181 dn); in find_pe_total_msi()
183 return dn; in find_pe_total_msi()
[all …]
Dmobility.c63 struct device_node *dn; in delete_dt_node() local
65 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in delete_dt_node()
66 if (!dn) in delete_dt_node()
69 dlpar_detach_node(dn); in delete_dt_node()
70 of_node_put(dn); in delete_dt_node()
74 static int update_dt_property(struct device_node *dn, struct property **prop, in update_dt_property() argument
127 of_update_property(dn, new_prop); in update_dt_property()
137 struct device_node *dn; in update_dt_node() local
154 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in update_dt_node()
155 if (!dn) { in update_dt_node()
[all …]
Dpci_dlpar.c37 struct pci_controller *init_phb_dynamic(struct device_node *dn) in init_phb_dynamic() argument
41 pr_debug("PCI: Initializing new hotplug PHB %pOF\n", dn); in init_phb_dynamic()
43 phb = pcibios_alloc_controller(dn); in init_phb_dynamic()
47 pci_process_bridge_OF_ranges(phb, dn, 0); in init_phb_dynamic()
55 if (dn->child) in init_phb_dynamic()
56 eeh_add_device_tree_early(PCI_DN(dn)); in init_phb_dynamic()
Diommu.c517 struct device_node *dn, in iommu_table_setparms() argument
524 node = phb->dn; in iommu_table_setparms()
530 "missing tce entries !\n", dn); in iommu_table_setparms()
567 struct device_node *dn, in iommu_table_setparms_lpar() argument
574 of_parse_dma_window(dn, dma_window, &tbl->it_index, &offset, &size); in iommu_table_setparms_lpar()
596 struct device_node *dn; in pci_dma_bus_setup_pSeries() local
603 dn = pci_bus_to_OF_node(bus); in pci_dma_bus_setup_pSeries()
605 pr_debug("pci_dma_bus_setup_pSeries: setting up bus %pOF\n", dn); in pci_dma_bus_setup_pSeries()
613 pci = PCI_DN(dn); in pci_dma_bus_setup_pSeries()
620 while (isa_dn && isa_dn != dn) in pci_dma_bus_setup_pSeries()
[all …]
Dpci.c37 struct device_node *dn;
42 dn = pci_device_to_OF_node(dev);
43 if (dn) {
44 const char *loc_code = of_get_property(dn, "ibm,loc-code",
115 struct device_node *dn, *pdn; in pseries_root_bridge_prepare() local
126 dn = pcibios_get_phb_of_node(bus); in pseries_root_bridge_prepare()
127 if (!dn) in pseries_root_bridge_prepare()
130 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { in pseries_root_bridge_prepare()
Dpseries_energy.c40 struct device_node *dn = NULL; in cpu_to_drc_index() local
46 dn = of_find_node_by_path("/cpus"); in cpu_to_drc_index()
47 if (dn == NULL) in cpu_to_drc_index()
49 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in cpu_to_drc_index()
64 of_node_put(dn); in cpu_to_drc_index()
73 struct device_node *dn = NULL; in drc_index_to_cpu() local
78 dn = of_find_node_by_path("/cpus"); in drc_index_to_cpu()
79 if (dn == NULL) in drc_index_to_cpu()
81 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in drc_index_to_cpu()
98 of_node_put(dn); in drc_index_to_cpu()
Drng.c33 struct device_node *dn; in rng_init() local
35 dn = of_find_compatible_node(NULL, NULL, "ibm,random"); in rng_init()
36 if (!dn) in rng_init()
/arch/powerpc/platforms/powernv/
Drng.c122 struct device_node *dn) in rng_init_per_cpu() argument
126 chip_id = of_get_ibm_chip_id(dn); in rng_init_per_cpu()
128 pr_warn("No ibm,chip-id found for %pOF.\n", dn); in rng_init_per_cpu()
138 static __init int rng_create(struct device_node *dn) in rng_create() argument
148 if (of_address_to_resource(dn, 0, &res)) { in rng_create()
155 rng->regs = of_iomap(dn, 0); in rng_create()
164 rng_init_per_cpu(rng, dn); in rng_create()
175 struct device_node *dn; in rng_init() local
178 for_each_compatible_node(dn, NULL, "ibm,power-rng") { in rng_init()
179 rc = rng_create(dn); in rng_init()
[all …]
Dvas.c32 struct device_node *dn = pdev->dev.of_node; in init_vas_instance() local
34 rc = of_property_read_u32(dn, "ibm,vas-id", &vasid); in init_vas_instance()
135 struct device_node *dn; in vas_init() local
139 for_each_compatible_node(dn, NULL, "ibm,vas") { in vas_init()
140 of_platform_device_create(dn, NULL, NULL); in vas_init()
/arch/arm/mach-bcm/
Dbcm63xx_smp.c111 struct device_node *dn; in bcm63138_smp_boot_secondary() local
115 dn = of_find_matching_node(NULL, bcm63138_bootlut_ids); in bcm63138_smp_boot_secondary()
116 if (!dn) { in bcm63138_smp_boot_secondary()
121 bootlut_base = of_iomap(dn, 0); in bcm63138_smp_boot_secondary()
122 of_node_put(dn); in bcm63138_smp_boot_secondary()
130 dn = of_get_cpu_node(cpu, NULL); in bcm63138_smp_boot_secondary()
131 if (!dn) { in bcm63138_smp_boot_secondary()
144 ret = bcm63xx_pmb_power_on_cpu(dn); in bcm63138_smp_boot_secondary()
/arch/x86/kernel/
Ddevicetree.c124 struct device_node *dn; in dtb_setup_hpet() local
128 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet"); in dtb_setup_hpet()
129 if (!dn) in dtb_setup_hpet()
131 ret = of_address_to_resource(dn, 0, &r); in dtb_setup_hpet()
143 struct device_node *dn; in dtb_lapic_setup() local
147 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-lapic"); in dtb_lapic_setup()
148 if (!dn) in dtb_lapic_setup()
151 ret = of_address_to_resource(dn, 0, &r); in dtb_lapic_setup()
231 static void __init dtb_add_ioapic(struct device_node *dn) in dtb_add_ioapic() argument
238 .dev = dn, in dtb_add_ioapic()
[all …]
/arch/mips/bmips/
Dirq.c31 struct device_node *dn; in arch_init_irq() local
34 dn = of_find_matching_node(NULL, smp_intc_dt_match); in arch_init_irq()
35 if (dn) in arch_init_irq()
36 of_node_put(dn); in arch_init_irq()
/arch/powerpc/sysdev/
Dscom.c100 struct device_node *dn; member
121 map = scom_map(ent->dn, reg, reg_cnt); in scom_debug_read()
158 map = scom_map(ent->dn, reg, reg_cnt); in scom_debug_write()
185 static int scom_debug_init_one(struct dentry *root, struct device_node *dn, in scom_debug_init_one() argument
195 ent->dn = of_node_get(dn); in scom_debug_init_one()
197 ent->path.data = (void*)kasprintf(GFP_KERNEL, "%pOF", dn); in scom_debug_init_one()
202 of_node_put(dn); in scom_debug_init_one()
216 struct device_node *dn; in scom_debug_init() local
225 for_each_node_with_property(dn, "scom-controller") { in scom_debug_init()
226 int id = of_get_ibm_chip_id(dn); in scom_debug_init()
[all …]
/arch/arm64/kernel/
Dsmp_spin_table.c56 struct device_node *dn; in smp_spin_table_cpu_init() local
59 dn = of_get_cpu_node(cpu, NULL); in smp_spin_table_cpu_init()
60 if (!dn) in smp_spin_table_cpu_init()
66 ret = of_property_read_u64(dn, "cpu-release-addr", in smp_spin_table_cpu_init()
72 of_node_put(dn); in smp_spin_table_cpu_init()
Dcpu_ops.c69 struct device_node *dn = of_get_cpu_node(cpu, NULL); in cpu_read_enable_method() local
71 if (!dn) { in cpu_read_enable_method()
77 enable_method = of_get_property(dn, "enable-method", NULL); in cpu_read_enable_method()
86 dn); in cpu_read_enable_method()
88 of_node_put(dn); in cpu_read_enable_method()
/arch/arm/mach-tegra/
Dirq.c77 struct device_node *dn; in tegra114_gic_cpu_pm_registration() local
79 dn = of_find_matching_node(NULL, tegra114_dt_gic_match); in tegra114_gic_cpu_pm_registration()
80 if (!dn) in tegra114_gic_cpu_pm_registration()
83 tegra_gic_cpu_base = of_iomap(dn, 1); in tegra114_gic_cpu_pm_registration()

1234