Lines Matching refs:drc
445 rc = of_property_read_u32(child, "ibm,my-drc-index",
463 struct of_drc_info drc;
468 info = of_find_property(parent, "ibm,drc-info", NULL);
474 /* First value of ibm,drc-info is number of drc-info records */
481 if (of_read_drc_info_cell(&info, &value, &drc))
484 if (strncmp(drc.drc_type, "CPU", 3))
487 if (drc_index > drc.last_drc_index)
490 index = drc.drc_index_start;
491 for (j = 0; j < drc.num_sequential_elems; j++) {
495 index += drc.sequential_inc;
507 if (of_property_present(parent, "ibm,drc-info"))
510 /* Note that the format of the ibm,drc-indexes array is
512 * of drc values so we start looking at index = 1.
516 u32 drc;
518 rc = of_property_read_u32_index(parent, "ibm,drc-indexes",
519 index++, &drc);
524 if (drc == drc_index)
557 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index);
567 pr_warn("CPU with drc index %x already exists\n", drc_index);
573 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index);
579 pr_warn("Failed to acquire DRC, rc: %d, drc index: %x\n",
587 pr_warn("Failed call to configure-connector, drc index: %x\n",
601 pr_warn("Failed to attach node %pOFn, rc: %d, drc index: %x\n",
616 pr_warn("Failed to online cpu %pOFn, rc: %d, drc index: %x\n",
626 pr_debug("Successfully added CPU %pOFn, drc index: %x\n", dn,
689 pr_debug("Attempting to remove CPU %pOFn, drc index: %x\n",
700 pr_warn("Failed to release drc (%x) for CPU %pOFn, rc: %d\n",
719 pr_debug("Successfully removed CPU, drc index: %x\n", drc_index);
730 rc = of_property_read_u32(dn, "ibm,my-drc-index", &my_index);
748 pr_warn("Cannot find CPU (drc index %x) to remove\n",
824 rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index);