Lines Matching full:drc
442 rc = of_property_read_u32(child, "ibm,my-drc-index", in dlpar_cpu_exists()
460 struct of_drc_info drc; in drc_info_valid_index() local
465 info = of_find_property(parent, "ibm,drc-info", NULL); in drc_info_valid_index()
471 /* First value of ibm,drc-info is number of drc-info records */ in drc_info_valid_index()
478 if (of_read_drc_info_cell(&info, &value, &drc)) in drc_info_valid_index()
481 if (strncmp(drc.drc_type, "CPU", 3)) in drc_info_valid_index()
484 if (drc_index > drc.last_drc_index) in drc_info_valid_index()
487 index = drc.drc_index_start; in drc_info_valid_index()
488 for (j = 0; j < drc.num_sequential_elems; j++) { in drc_info_valid_index()
492 index += drc.sequential_inc; in drc_info_valid_index()
504 if (of_property_present(parent, "ibm,drc-info")) in valid_cpu_drc_index()
507 /* Note that the format of the ibm,drc-indexes array is in valid_cpu_drc_index()
509 * of drc values so we start looking at index = 1. in valid_cpu_drc_index()
513 u32 drc; in valid_cpu_drc_index() local
515 rc = of_property_read_u32_index(parent, "ibm,drc-indexes", in valid_cpu_drc_index()
516 index++, &drc); in valid_cpu_drc_index()
521 if (drc == drc_index) in valid_cpu_drc_index()
554 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add()
564 pr_warn("CPU with drc index %x already exists\n", drc_index); in dlpar_cpu_add()
570 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index); in dlpar_cpu_add()
576 pr_warn("Failed to acquire DRC, rc: %d, drc index: %x\n", in dlpar_cpu_add()
584 pr_warn("Failed call to configure-connector, drc index: %x\n", in dlpar_cpu_add()
598 pr_warn("Failed to attach node %pOFn, rc: %d, drc index: %x\n", in dlpar_cpu_add()
613 pr_warn("Failed to online cpu %pOFn, rc: %d, drc index: %x\n", in dlpar_cpu_add()
623 pr_debug("Successfully added CPU %pOFn, drc index: %x\n", dn, in dlpar_cpu_add()
686 pr_debug("Attempting to remove CPU %pOFn, drc index: %x\n", in dlpar_cpu_remove()
697 pr_warn("Failed to release drc (%x) for CPU %pOFn, rc: %d\n", in dlpar_cpu_remove()
716 pr_debug("Successfully removed CPU, drc index: %x\n", drc_index); in dlpar_cpu_remove()
727 rc = of_property_read_u32(dn, "ibm,my-drc-index", &my_index); in cpu_drc_index_to_dn()
745 pr_warn("Cannot find CPU (drc index %x) to remove\n", in dlpar_cpu_remove_by_index()
821 rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index); in dlpar_cpu_release()