Lines Matching full:drc
433 rc = of_property_read_u32(child, "ibm,my-drc-index", in dlpar_cpu_exists()
451 struct of_drc_info drc; in drc_info_valid_index() local
456 info = of_find_property(parent, "ibm,drc-info", NULL); in drc_info_valid_index()
462 /* First value of ibm,drc-info is number of drc-info records */ in drc_info_valid_index()
469 if (of_read_drc_info_cell(&info, &value, &drc)) in drc_info_valid_index()
472 if (strncmp(drc.drc_type, "CPU", 3)) in drc_info_valid_index()
475 if (drc_index > drc.last_drc_index) in drc_info_valid_index()
478 index = drc.drc_index_start; in drc_info_valid_index()
479 for (j = 0; j < drc.num_sequential_elems; j++) { in drc_info_valid_index()
483 index += drc.sequential_inc; in drc_info_valid_index()
495 if (of_find_property(parent, "ibm,drc-info", NULL)) in valid_cpu_drc_index()
498 /* Note that the format of the ibm,drc-indexes array is in valid_cpu_drc_index()
500 * of drc values so we start looking at index = 1. in valid_cpu_drc_index()
504 u32 drc; in valid_cpu_drc_index() local
506 rc = of_property_read_u32_index(parent, "ibm,drc-indexes", in valid_cpu_drc_index()
507 index++, &drc); in valid_cpu_drc_index()
512 if (drc == drc_index) in valid_cpu_drc_index()
545 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add()
555 pr_warn("CPU with drc index %x already exists\n", drc_index); in dlpar_cpu_add()
561 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index); in dlpar_cpu_add()
567 pr_warn("Failed to acquire DRC, rc: %d, drc index: %x\n", in dlpar_cpu_add()
575 pr_warn("Failed call to configure-connector, drc index: %x\n", in dlpar_cpu_add()
589 pr_warn("Failed to attach node %pOFn, rc: %d, drc index: %x\n", in dlpar_cpu_add()
604 pr_warn("Failed to online cpu %pOFn, rc: %d, drc index: %x\n", in dlpar_cpu_add()
614 pr_debug("Successfully added CPU %pOFn, drc index: %x\n", dn, in dlpar_cpu_add()
677 pr_debug("Attempting to remove CPU %pOFn, drc index: %x\n", in dlpar_cpu_remove()
688 pr_warn("Failed to release drc (%x) for CPU %pOFn, rc: %d\n", in dlpar_cpu_remove()
707 pr_debug("Successfully removed CPU, drc index: %x\n", drc_index); in dlpar_cpu_remove()
718 rc = of_property_read_u32(dn, "ibm,my-drc-index", &my_index); in cpu_drc_index_to_dn()
736 pr_warn("Cannot find CPU (drc index %x) to remove\n", in dlpar_cpu_remove_by_index()
812 rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index); in dlpar_cpu_release()