Lines Matching refs:rdesc
321 struct regulator_desc *rdesc = &vctrl->desc; in vctrl_init_vtable() local
330 rdesc->n_voltages = n_voltages; in vctrl_init_vtable()
338 rdesc->n_voltages--; in vctrl_init_vtable()
343 if (rdesc->n_voltages == 0) { in vctrl_init_vtable()
348 vctrl->vtable = devm_kcalloc(&pdev->dev, rdesc->n_voltages, in vctrl_init_vtable()
369 sort(vctrl->vtable, rdesc->n_voltages, in vctrl_init_vtable()
374 for (i = rdesc->n_voltages - 1; i > 0; i--) { in vctrl_init_vtable()
449 struct regulator_desc *rdesc; in vctrl_probe() local
468 rdesc = &vctrl->desc; in vctrl_probe()
469 rdesc->name = "vctrl"; in vctrl_probe()
470 rdesc->type = REGULATOR_VOLTAGE; in vctrl_probe()
471 rdesc->owner = THIS_MODULE; in vctrl_probe()
475 rdesc->continuous_voltage_range = true; in vctrl_probe()
476 rdesc->ops = &vctrl_ops_cont; in vctrl_probe()
478 rdesc->ops = &vctrl_ops_non_cont; in vctrl_probe()
481 init_data = of_get_regulator_init_data(&pdev->dev, np, rdesc); in vctrl_probe()
490 if (!rdesc->continuous_voltage_range) { in vctrl_probe()
505 vctrl->sel = rdesc->n_voltages - 1; in vctrl_probe()
509 for (i = 0; i < rdesc->n_voltages; i++) { in vctrl_probe()
518 vctrl->rdev = devm_regulator_register(&pdev->dev, rdesc, &cfg); in vctrl_probe()