Home
last modified time | relevance | path

Searched refs:regulator (Results 1 – 25 of 156) sorted by relevance

1234567

/linux-4.19.296/include/linux/regulator/
Dconsumer.h157 struct regulator;
173 struct regulator *consumer;
182 struct regulator *__must_check regulator_get(struct device *dev,
184 struct regulator *__must_check devm_regulator_get(struct device *dev,
186 struct regulator *__must_check regulator_get_exclusive(struct device *dev,
188 struct regulator *__must_check devm_regulator_get_exclusive(struct device *dev,
190 struct regulator *__must_check regulator_get_optional(struct device *dev,
192 struct regulator *__must_check devm_regulator_get_optional(struct device *dev,
194 void regulator_put(struct regulator *regulator);
195 void devm_regulator_put(struct regulator *regulator);
[all …]
/linux-4.19.296/drivers/regulator/
DMakefile14 obj-$(CONFIG_REGULATOR_88PM800) += 88pm800-regulator.o
16 obj-$(CONFIG_REGULATOR_CPCAP) += cpcap-regulator.o
17 obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o
20 obj-$(CONFIG_REGULATOR_ACT8865) += act8865-regulator.o
21 obj-$(CONFIG_REGULATOR_ACT8945A) += act8945a-regulator.o
23 obj-$(CONFIG_REGULATOR_ANATOP) += anatop-regulator.o
26 obj-$(CONFIG_REGULATOR_AS3711) += as3711-regulator.o
27 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
28 obj-$(CONFIG_REGULATOR_AXP20X) += axp20x-regulator.o
29 obj-$(CONFIG_REGULATOR_BCM590XX) += bcm590xx-regulator.o
[all …]
Dda9055-regulator.c88 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_buck_get_mode() local
89 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode()
92 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode()
114 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_buck_set_mode() local
115 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode()
130 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode()
136 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_ldo_get_mode() local
137 struct da9055_regulator_info *info = regulator->info; in da9055_ldo_get_mode()
140 ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); in da9055_ldo_get_mode()
152 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_ldo_set_mode() local
[all …]
Ddevres.c24 regulator_put(*(struct regulator **)res); in devm_regulator_release()
27 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get()
30 struct regulator **ptr, *regulator; in _devm_regulator_get() local
36 regulator = _regulator_get(dev, id, get_type); in _devm_regulator_get()
37 if (!IS_ERR(regulator)) { in _devm_regulator_get()
38 *ptr = regulator; in _devm_regulator_get()
44 return regulator; in _devm_regulator_get()
56 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get()
71 struct regulator *devm_regulator_get_exclusive(struct device *dev, in devm_regulator_get_exclusive()
87 struct regulator *devm_regulator_get_optional(struct device *dev, in devm_regulator_get_optional()
[all …]
Dda9052-regulator.c93 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_dcdc_get_current_limit() local
97 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2); in da9052_dcdc_get_current_limit()
110 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_get_current_limit()
121 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_dcdc_set_current_limit() local
127 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_set_current_limit()
147 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit()
152 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit()
161 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_list_voltage() local
162 struct da9052_regulator_info *info = regulator->info; in da9052_list_voltage()
166 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) in da9052_list_voltage()
[all …]
Dcore.c70 struct regulator_dev *regulator; member
108 static struct regulator *create_regulator(struct regulator_dev *rdev,
111 static void _regulator_put(struct regulator *regulator);
217 struct regulator *supply; in regulator_unlock_supply()
295 struct regulator *regulator; in regulator_check_consumers() local
298 list_for_each_entry(regulator, &rdev->consumer_list, list) { in regulator_check_consumers()
299 voltage = &regulator->voltage[state]; in regulator_check_consumers()
576 struct regulator *regulator; in regulator_total_uA_show() local
580 list_for_each_entry(regulator, &rdev->consumer_list, list) in regulator_total_uA_show()
581 uA += regulator->uA_load; in regulator_total_uA_show()
[all …]
DKconfig12 The intention is to allow systems to dynamically control regulator
32 tristate "Fixed voltage regulator support"
39 tristate "Virtual regulator consumer support"
42 current regulator API which provides sysfs controls for
49 tristate "Userspace regulator consumer support"
70 This driver supports Marvell 88PM800 voltage regulator chips.
80 This driver supports 88PM8607 voltage regulator chips.
83 tristate "Active-semi act8865 voltage regulator"
88 regulator via I2C bus.
91 tristate "Active-semi ACT8945A voltage regulator"
[all …]
Dhi655x-regulator.c82 struct hi655x_regulator *regulator = rdev_get_drvdata(rdev); in hi655x_is_enabled() local
84 regmap_read(rdev->regmap, regulator->status_reg, &value); in hi655x_is_enabled()
85 return (value & BIT(regulator->ctrl_mask)); in hi655x_is_enabled()
92 struct hi655x_regulator *regulator = rdev_get_drvdata(rdev); in hi655x_disable() local
94 ret = regmap_write(rdev->regmap, regulator->disable_reg, in hi655x_disable()
95 BIT(regulator->ctrl_mask)); in hi655x_disable()
184 struct hi655x_regulator *regulator; in hi655x_regulator_probe() local
195 regulator = devm_kzalloc(&pdev->dev, sizeof(*regulator), GFP_KERNEL); in hi655x_regulator_probe()
196 if (!regulator) in hi655x_regulator_probe()
199 platform_set_drvdata(pdev, regulator); in hi655x_regulator_probe()
[all …]
Dvirtual.c23 struct regulator *regulator; member
41 ret = regulator_set_voltage(data->regulator, in update_voltage_constraints()
52 ret = regulator_enable(data->regulator); in update_voltage_constraints()
62 ret = regulator_disable(data->regulator); in update_voltage_constraints()
80 ret = regulator_set_current_limit(data->regulator, in update_current_limit_constraints()
92 ret = regulator_enable(data->regulator); in update_current_limit_constraints()
102 ret = regulator_disable(data->regulator); in update_current_limit_constraints()
259 ret = regulator_set_mode(data->regulator, mode); in set_mode()
301 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe()
302 if (IS_ERR(drvdata->regulator)) { in regulator_virtual_probe()
[all …]
Dcpcap-regulator.c173 struct cpcap_regulator *regulator = rdev_get_drvdata(rdev); in cpcap_regulator_enable() local
181 error = regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_enable()
182 regulator->assign_mask, in cpcap_regulator_enable()
183 regulator->assign_mask); in cpcap_regulator_enable()
197 struct cpcap_regulator *regulator = rdev_get_drvdata(rdev); in cpcap_regulator_disable() local
201 error = regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_disable()
202 regulator->assign_mask, 0); in cpcap_regulator_disable()
209 ignore = regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_disable()
210 regulator->assign_mask, in cpcap_regulator_disable()
211 regulator->assign_mask); in cpcap_regulator_disable()
[all …]
Drt5033-regulator.c94 struct regulator_dev *regulator; in rt5033_regulator_probe() local
98 regulator = devm_regulator_register(&pdev->dev, in rt5033_regulator_probe()
100 if (IS_ERR(regulator)) { in rt5033_regulator_probe()
101 ret = PTR_ERR(regulator); in rt5033_regulator_probe()
Dfan53555.c87 struct regulator_init_data *regulator; member
359 pdata->regulator = of_get_regulator_init_data(dev, np, desc); in fan53555_parse_dt()
403 if (!pdata || !pdata->regulator) { in fan53555_regulator_probe()
408 di->regulator = pdata->regulator; in fan53555_regulator_probe()
414 if (!di->regulator->constraints.ramp_delay) { in fan53555_regulator_probe()
418 di->regulator->constraints.ramp_delay in fan53555_regulator_probe()
456 config.init_data = di->regulator; in fan53555_regulator_probe()
Dtps6105x-regulator.c78 tps6105x->regulator = devm_regulator_register(&pdev->dev, in tps6105x_regulator_probe()
81 if (IS_ERR(tps6105x->regulator)) { in tps6105x_regulator_probe()
82 ret = PTR_ERR(tps6105x->regulator); in tps6105x_regulator_probe()
Dmax8649.c156 struct regulator_dev *regulator; in max8649_regulator_probe() local
231 config.init_data = pdata->regulator; in max8649_regulator_probe()
235 regulator = devm_regulator_register(&client->dev, &dcdc_desc, in max8649_regulator_probe()
237 if (IS_ERR(regulator)) { in max8649_regulator_probe()
240 return PTR_ERR(regulator); in max8649_regulator_probe()
Dwm831x-isink.c35 struct regulator_dev *regulator; member
143 regulator_notifier_call_chain(isink->regulator, in wm831x_isink_irq()
195 isink->regulator = devm_regulator_register(&pdev->dev, &isink->desc, in wm831x_isink_probe()
197 if (IS_ERR(isink->regulator)) { in wm831x_isink_probe()
198 ret = PTR_ERR(isink->regulator); in wm831x_isink_probe()
Dwm8994-regulator.c30 struct regulator_dev *regulator; member
168 ldo->regulator = devm_regulator_register(&pdev->dev, in wm8994_ldo_probe()
171 if (IS_ERR(ldo->regulator)) { in wm8994_ldo_probe()
172 ret = PTR_ERR(ldo->regulator); in wm8994_ldo_probe()
Dwm831x-dcdc.c57 struct regulator_dev *regulator; member
186 regulator_notifier_call_chain(dcdc->regulator, in wm831x_dcdc_uv_irq()
197 regulator_notifier_call_chain(dcdc->regulator, in wm831x_dcdc_oc_irq()
524 dcdc->regulator = devm_regulator_register(&pdev->dev, &dcdc->desc, in wm831x_buckv_probe()
526 if (IS_ERR(dcdc->regulator)) { in wm831x_buckv_probe()
527 ret = PTR_ERR(dcdc->regulator); in wm831x_buckv_probe()
662 dcdc->regulator = devm_regulator_register(&pdev->dev, &dcdc->desc, in wm831x_buckp_probe()
664 if (IS_ERR(dcdc->regulator)) { in wm831x_buckp_probe()
665 ret = PTR_ERR(dcdc->regulator); in wm831x_buckp_probe()
779 dcdc->regulator = devm_regulator_register(&pdev->dev, &dcdc->desc, in wm831x_boostp_probe()
[all …]
Dwm831x-ldo.c43 struct regulator_dev *regulator; member
54 regulator_notifier_call_chain(ldo->regulator, in wm831x_ldo_uv_irq()
278 ldo->regulator = devm_regulator_register(&pdev->dev, &ldo->desc, in wm831x_gp_ldo_probe()
280 if (IS_ERR(ldo->regulator)) { in wm831x_gp_ldo_probe()
281 ret = PTR_ERR(ldo->regulator); in wm831x_gp_ldo_probe()
488 ldo->regulator = devm_regulator_register(&pdev->dev, &ldo->desc, in wm831x_aldo_probe()
490 if (IS_ERR(ldo->regulator)) { in wm831x_aldo_probe()
491 ret = PTR_ERR(ldo->regulator); in wm831x_aldo_probe()
632 ldo->regulator = devm_regulator_register(&pdev->dev, &ldo->desc, in wm831x_alive_ldo_probe()
634 if (IS_ERR(ldo->regulator)) { in wm831x_alive_ldo_probe()
[all …]
/linux-4.19.296/drivers/media/rc/
Dir-spi.c31 struct regulator *regulator; member
70 ret = regulator_enable(idata->regulator); in ir_spi_tx()
78 regulator_disable(idata->regulator); in ir_spi_tx()
122 idata->regulator = devm_regulator_get(&spi->dev, "irda_regulator"); in ir_spi_probe()
123 if (IS_ERR(idata->regulator)) in ir_spi_probe()
124 return PTR_ERR(idata->regulator); in ir_spi_probe()
/linux-4.19.296/include/linux/platform_data/
Dusb-omap.h48 struct regulator *regulator[OMAP3_HS_USB_PORTS]; member
61 struct regulator *regulator[OMAP3_HS_USB_PORTS]; member
/linux-4.19.296/include/linux/mmc/
Dhost.h258 struct regulator;
262 struct regulator *vmmc; /* Card power supply */
263 struct regulator *vqmmc; /* Optional Vccq supply */
513 int mmc_regulator_get_ocrmask(struct regulator *supply);
515 struct regulator *supply,
519 static inline int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask()
525 struct regulator *supply, in mmc_regulator_set_ocr()
/linux-4.19.296/drivers/iio/health/
Dafe4403.c81 struct regulator *regulator; member
437 ret = regulator_disable(afe->regulator); in afe4403_suspend()
452 ret = regulator_enable(afe->regulator); in afe4403_resume()
500 afe->regulator = devm_regulator_get(afe->dev, "tx_sup"); in afe4403_probe()
501 if (IS_ERR(afe->regulator)) { in afe4403_probe()
503 return PTR_ERR(afe->regulator); in afe4403_probe()
505 ret = regulator_enable(afe->regulator); in afe4403_probe()
586 regulator_disable(afe->regulator); in afe4403_probe()
604 ret = regulator_disable(afe->regulator); in afe4403_remove()
Dafe4404.c100 struct regulator *regulator; member
443 ret = regulator_disable(afe->regulator); in afe4404_suspend()
458 ret = regulator_enable(afe->regulator); in afe4404_resume()
506 afe->regulator = devm_regulator_get(afe->dev, "tx_sup"); in afe4404_probe()
507 if (IS_ERR(afe->regulator)) { in afe4404_probe()
509 return PTR_ERR(afe->regulator); in afe4404_probe()
511 ret = regulator_enable(afe->regulator); in afe4404_probe()
592 regulator_disable(afe->regulator); in afe4404_probe()
610 ret = regulator_disable(afe->regulator); in afe4404_remove()
/linux-4.19.296/include/drm/tinydrm/
Dmipi-dbi.h19 struct regulator;
55 struct regulator *regulator; member
/linux-4.19.296/include/linux/mfd/
Dstmpe.h14 struct regulator;
109 struct regulator *vcc;
110 struct regulator *vio;

1234567