Lines Matching refs:rdesc
313 struct regulator_desc *rdesc = &vctrl->desc; in vctrl_init_vtable() local
322 rdesc->n_voltages = n_voltages; in vctrl_init_vtable()
330 rdesc->n_voltages--; in vctrl_init_vtable()
333 if (rdesc->n_voltages == 0) { in vctrl_init_vtable()
338 vctrl->vtable = devm_kcalloc(&pdev->dev, rdesc->n_voltages, in vctrl_init_vtable()
359 sort(vctrl->vtable, rdesc->n_voltages, in vctrl_init_vtable()
364 for (i = rdesc->n_voltages - 1; i > 0; i--) { in vctrl_init_vtable()
439 struct regulator_desc *rdesc; in vctrl_probe() local
458 rdesc = &vctrl->desc; in vctrl_probe()
459 rdesc->name = "vctrl"; in vctrl_probe()
460 rdesc->type = REGULATOR_VOLTAGE; in vctrl_probe()
461 rdesc->owner = THIS_MODULE; in vctrl_probe()
465 rdesc->continuous_voltage_range = true; in vctrl_probe()
466 rdesc->ops = &vctrl_ops_cont; in vctrl_probe()
468 rdesc->ops = &vctrl_ops_non_cont; in vctrl_probe()
471 init_data = of_get_regulator_init_data(&pdev->dev, np, rdesc); in vctrl_probe()
480 if (!rdesc->continuous_voltage_range) { in vctrl_probe()
495 vctrl->sel = rdesc->n_voltages - 1; in vctrl_probe()
499 for (i = 0; i < rdesc->n_voltages; i++) { in vctrl_probe()
508 vctrl->rdev = devm_regulator_register(&pdev->dev, rdesc, &cfg); in vctrl_probe()