Lines Matching refs:dn
31 struct device_node *dn; in pmem_drc_add_node() local
43 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
44 if (!dn) { in pmem_drc_add_node()
51 rc = dlpar_attach_node(dn, pmem_node); in pmem_drc_add_node()
54 dn, rc, drc_index); in pmem_drc_add_node()
57 dlpar_free_cc_nodes(dn); in pmem_drc_add_node()
62 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
69 struct device_node *dn; in pmem_drc_remove_node() local
73 for_each_child_of_node(pmem_node, dn) { in pmem_drc_remove_node()
74 if (of_property_read_u32(dn, "ibm,my-drc-index", &index)) in pmem_drc_remove_node()
80 if (!dn) { in pmem_drc_remove_node()
85 pr_debug("Attempting to remove %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_remove_node()
88 rc = dlpar_detach_node(dn); in pmem_drc_remove_node()
95 drc_index, dn, rc); in pmem_drc_remove_node()
96 dlpar_attach_node(dn, pmem_node); in pmem_drc_remove_node()