Lines Matching refs:rdesc
326 struct regulator_desc *rdesc = &vctrl->desc; in vctrl_init_vtable() local
334 rdesc->n_voltages = n_voltages; in vctrl_init_vtable()
342 rdesc->n_voltages--; in vctrl_init_vtable()
345 if (rdesc->n_voltages == 0) { in vctrl_init_vtable()
350 vctrl->vtable = devm_kcalloc(&pdev->dev, rdesc->n_voltages, in vctrl_init_vtable()
371 sort(vctrl->vtable, rdesc->n_voltages, in vctrl_init_vtable()
376 for (i = rdesc->n_voltages - 1; i > 0; i--) { in vctrl_init_vtable()
447 struct regulator_desc *rdesc; in vctrl_probe() local
471 rdesc = &vctrl->desc; in vctrl_probe()
472 rdesc->name = "vctrl"; in vctrl_probe()
473 rdesc->type = REGULATOR_VOLTAGE; in vctrl_probe()
474 rdesc->owner = THIS_MODULE; in vctrl_probe()
475 rdesc->supply_name = "ctrl"; in vctrl_probe()
479 rdesc->continuous_voltage_range = true; in vctrl_probe()
480 rdesc->ops = &vctrl_ops_cont; in vctrl_probe()
482 rdesc->ops = &vctrl_ops_non_cont; in vctrl_probe()
485 init_data = of_get_regulator_init_data(&pdev->dev, np, rdesc); in vctrl_probe()
494 if (!rdesc->continuous_voltage_range) { in vctrl_probe()
510 vctrl->sel = rdesc->n_voltages - 1; in vctrl_probe()
514 for (i = 0; i < rdesc->n_voltages; i++) { in vctrl_probe()
526 vctrl->rdev = devm_regulator_register(&pdev->dev, rdesc, &cfg); in vctrl_probe()