Lines Matching refs:dn
32 struct device_node *dn; in pmem_drc_add_node() local
44 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
45 if (!dn) { in pmem_drc_add_node()
52 rc = dlpar_attach_node(dn, pmem_node); in pmem_drc_add_node()
55 dn, rc, drc_index); in pmem_drc_add_node()
58 dlpar_free_cc_nodes(dn); in pmem_drc_add_node()
63 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
70 struct device_node *dn; in pmem_drc_remove_node() local
74 for_each_child_of_node(pmem_node, dn) { in pmem_drc_remove_node()
75 if (of_property_read_u32(dn, "ibm,my-drc-index", &index)) in pmem_drc_remove_node()
81 if (!dn) { in pmem_drc_remove_node()
86 pr_debug("Attempting to remove %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_remove_node()
89 rc = dlpar_detach_node(dn); in pmem_drc_remove_node()
96 drc_index, dn, rc); in pmem_drc_remove_node()
97 dlpar_attach_node(dn, pmem_node); in pmem_drc_remove_node()