Lines Matching defs:drc
342 rc = of_property_read_u32(child, "ibm,my-drc-index",
360 struct of_drc_info drc;
365 info = of_find_property(parent, "ibm,drc-info", NULL);
371 /* First value of ibm,drc-info is number of drc-info records */
378 if (of_read_drc_info_cell(&info, &value, &drc))
381 if (strncmp(drc.drc_type, "CPU", 3))
384 if (drc_index > drc.last_drc_index)
387 index = drc.drc_index_start;
388 for (j = 0; j < drc.num_sequential_elems; j++) {
392 index += drc.sequential_inc;
404 if (of_find_property(parent, "ibm,drc-info", NULL))
407 /* Note that the format of the ibm,drc-indexes array is
409 * of drc values so we start looking at index = 1.
413 u32 drc;
415 rc = of_property_read_u32_index(parent, "ibm,drc-indexes",
416 index++, &drc);
421 if (drc == drc_index)
433 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index);
443 pr_warn("CPU with drc index %x already exists\n", drc_index);
449 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index);
455 pr_warn("Failed to acquire DRC, rc: %d, drc index: %x\n",
463 pr_warn("Failed call to configure-connector, drc index: %x\n",
477 pr_warn("Failed to attach node %pOFn, rc: %d, drc index: %x\n",
492 pr_warn("Failed to online cpu %pOFn, rc: %d, drc index: %x\n",
502 pr_debug("Successfully added CPU %pOFn, drc index: %x\n", dn,
511 pr_debug("Attempting to remove CPU %pOFn, drc index: %x\n",
522 pr_warn("Failed to release drc (%x) for CPU %pOFn, rc: %d\n",
541 pr_debug("Successfully removed CPU, drc index: %x\n", drc_index);
552 rc = of_property_read_u32(dn, "ibm,my-drc-index", &my_index);
570 pr_warn("Cannot find CPU (drc index %x) to remove\n",
600 rc = of_property_read_u32(dn, "ibm,my-drc-index",
603 pr_warn("Error occurred getting drc-index for %pOFn\n",
666 struct of_drc_info drc;
680 of_read_drc_info_cell(&info, &value, &drc);
681 if (strncmp(drc.drc_type, "CPU", 3))
684 drc_index = drc.drc_index_start;
685 for (j = 0; j < drc.num_sequential_elems; j++) {
694 drc_index += drc.sequential_inc;
708 /* Search the ibm,drc-indexes array for possible CPU drcs to
709 * add. Note that the format of the ibm,drc-indexes array is
711 * of drc values so we start looking at index = 1.
715 rc = of_property_read_u32_index(cpus, "ibm,drc-indexes",
752 info = of_find_property(parent, "ibm,drc-info", NULL);
853 rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index);