Lines Matching full:dn

372  * @dn:                      Memory node.
377 static int add_usable_mem_property(void *fdt, struct device_node *dn, in add_usable_mem_property() argument
385 of_node_get(dn); in add_usable_mem_property()
387 if (snprintf(path, NODE_PATH_LEN, "%pOF", dn) > (NODE_PATH_LEN - 1)) { in add_usable_mem_property()
389 NODE_PATH_LEN, dn); in add_usable_mem_property()
413 ret = of_property_read_reg(dn, i, &base, &size); in add_usable_mem_property()
441 of_node_put(dn); in add_usable_mem_property()
458 struct device_node *dn; in update_usable_mem_fdt() local
482 dn = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in update_usable_mem_fdt()
483 if (dn) { in update_usable_mem_fdt()
484 ret = walk_drmem_lmbs(dn, &um_info, kdump_setup_usable_lmb); in update_usable_mem_fdt()
485 of_node_put(dn); in update_usable_mem_fdt()
505 for_each_node_by_type(dn, "memory") { in update_usable_mem_fdt()
506 ret = add_usable_mem_property(fdt, dn, &um_info); in update_usable_mem_fdt()
509 dn->full_name); in update_usable_mem_fdt()
510 of_node_put(dn); in update_usable_mem_fdt()
703 struct device_node *dn = NULL; in setup_purgatory_ppc64() local
735 dn = of_find_node_by_path("/ibm,opal"); in setup_purgatory_ppc64()
736 if (dn) { in setup_purgatory_ppc64()
739 of_property_read_u64(dn, "opal-base-address", &val); in setup_purgatory_ppc64()
745 of_property_read_u64(dn, "opal-entry-address", &val); in setup_purgatory_ppc64()
752 of_node_put(dn); in setup_purgatory_ppc64()
765 struct device_node *dn; in cpu_node_size() local
775 dn = of_find_node_by_type(NULL, "cpu"); in cpu_node_size()
776 if (WARN_ON_ONCE(!dn)) { in cpu_node_size()
785 size += strlen(dn->name) + 5; in cpu_node_size()
786 for_each_property_of_node(dn, pp) { in cpu_node_size()
791 of_node_put(dn); in cpu_node_size()
842 struct device_node *dn; in kexec_extra_fdt_size_ppc64() local
851 for_each_node_by_type(dn, "cpu") { in kexec_extra_fdt_size_ppc64()
866 static int copy_property(void *fdt, int node_offset, const struct device_node *dn, in copy_property() argument
872 prop = of_get_property(dn, propname, &len); in copy_property()
885 struct device_node *dn; in update_pci_dma_nodes() local
892 for_each_node_with_property(dn, dmapropname) { in update_pci_dma_nodes()
893 pci_offset = fdt_subnode_offset(fdt, root_offset, of_node_full_name(dn)); in update_pci_dma_nodes()
897 ret = copy_property(fdt, pci_offset, dn, "ibm,dma-window"); in update_pci_dma_nodes()
899 of_node_put(dn); in update_pci_dma_nodes()
902 ret = copy_property(fdt, pci_offset, dn, dmapropname); in update_pci_dma_nodes()
904 of_node_put(dn); in update_pci_dma_nodes()