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