Lines Matching refs:vcount
498 int supplies = opp_table->regulator_count, vcount, icount, ret, i, j;
537 vcount = of_property_count_u32_elems(opp->np, name);
538 if (vcount < 0) {
539 dev_err(dev, "%s: Invalid %s property (%d)\n", __func__, name, vcount);
540 return vcount;
544 if (vcount != supplies && vcount != supplies * REGULATOR_COUNT_MUL) {
545 dev_err(dev, "%s: Invalid number of elements in %s property (%d) with supplies (%d)\n", __func__, name, vcount,
550 microvolt = kmalloc_array(vcount, sizeof(*microvolt), GFP_KERNEL);
555 ret = of_property_read_u32_array(opp->np, name, microvolt, vcount);
607 if (vcount == supplies) {