Lines Matching refs:drc_index
29 static ssize_t pmem_drc_add_node(u32 drc_index) in pmem_drc_add_node() argument
34 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node()
36 rc = dlpar_acquire_drc(drc_index); in pmem_drc_add_node()
39 rc, drc_index); in pmem_drc_add_node()
43 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
45 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node()
46 dlpar_release_drc(drc_index); in pmem_drc_add_node()
54 dn, rc, drc_index); in pmem_drc_add_node()
56 if (dlpar_release_drc(drc_index)) in pmem_drc_add_node()
62 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
67 static ssize_t pmem_drc_remove_node(u32 drc_index) in pmem_drc_remove_node() argument
76 if (index == drc_index) in pmem_drc_remove_node()
81 pr_err("Attempting to remove unused DRC index %x\n", drc_index); in pmem_drc_remove_node()
85 pr_debug("Attempting to remove %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_remove_node()
92 rc = dlpar_release_drc(drc_index); in pmem_drc_remove_node()
95 drc_index, dn, rc); in pmem_drc_remove_node()
100 pr_info("Successfully removed PMEM with drc index: %x\n", drc_index); in pmem_drc_remove_node()
107 u32 drc_index; in dlpar_hp_pmem() local
124 drc_index = hp_elog->_drc_u.drc_index; in dlpar_hp_pmem()
129 rc = pmem_drc_add_node(drc_index); in dlpar_hp_pmem()
131 rc = pmem_drc_remove_node(drc_index); in dlpar_hp_pmem()