/drivers/regulator/ |
D | Makefile | 14 obj-$(CONFIG_REGULATOR_88PM800) += 88pm800-regulator.o 16 obj-$(CONFIG_REGULATOR_CROS_EC) += cros-ec-regulator.o 17 obj-$(CONFIG_REGULATOR_CPCAP) += cpcap-regulator.o 18 obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o 21 obj-$(CONFIG_REGULATOR_ACT8865) += act8865-regulator.o 22 obj-$(CONFIG_REGULATOR_ACT8945A) += act8945a-regulator.o 24 obj-$(CONFIG_REGULATOR_ANATOP) += anatop-regulator.o 27 obj-$(CONFIG_REGULATOR_ARM_SCMI) += scmi-regulator.o 28 obj-$(CONFIG_REGULATOR_AS3711) += as3711-regulator.o 29 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o [all …]
|
D | da9055-regulator.c | 84 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_buck_get_mode() local 85 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode() 88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode() 110 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_buck_set_mode() local 111 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode() 126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode() 132 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_ldo_get_mode() local 133 struct da9055_regulator_info *info = regulator->info; in da9055_ldo_get_mode() 136 ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); in da9055_ldo_get_mode() 148 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_ldo_set_mode() local [all …]
|
D | devres.c | 19 regulator_put(*(struct regulator **)res); in devm_regulator_release() 22 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get() 25 struct regulator **ptr, *regulator; in _devm_regulator_get() local 31 regulator = _regulator_get(dev, id, get_type); in _devm_regulator_get() 32 if (!IS_ERR(regulator)) { in _devm_regulator_get() 33 *ptr = regulator; in _devm_regulator_get() 39 return regulator; in _devm_regulator_get() 51 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get() 66 struct regulator *devm_regulator_get_exclusive(struct device *dev, in devm_regulator_get_exclusive() 82 struct regulator *devm_regulator_get_optional(struct device *dev, in devm_regulator_get_optional() [all …]
|
D | da9052-regulator.c | 85 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_dcdc_get_current_limit() local 89 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2); in da9052_dcdc_get_current_limit() 102 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_get_current_limit() 113 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_dcdc_set_current_limit() local 119 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_set_current_limit() 139 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit() 144 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit() 153 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_list_voltage() local 154 struct da9052_regulator_info *info = regulator->info; in da9052_list_voltage() 158 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) in da9052_list_voltage() [all …]
|
D | Kconfig | 14 The intention is to allow systems to dynamically control regulator 34 tristate "Fixed voltage regulator support" 41 tristate "Virtual regulator consumer support" 44 current regulator API which provides sysfs controls for 51 tristate "Userspace regulator consumer support" 72 This driver supports Marvell 88PM800 voltage regulator chips. 82 This driver supports 88PM8607 voltage regulator chips. 85 tristate "Active-semi act8865 voltage regulator" 91 regulator via I2C bus. 94 tristate "Active-semi ACT8945A voltage regulator" [all …]
|
D | core.c | 67 struct regulator_dev *regulator; member 96 static int _regulator_disable(struct regulator *regulator); 105 static struct regulator *create_regulator(struct regulator_dev *rdev, 108 static void destroy_regulator(struct regulator *regulator); 109 static void _regulator_put(struct regulator *regulator); 540 struct regulator *regulator; in regulator_check_consumers() local 543 list_for_each_entry(regulator, &rdev->consumer_list, list) { in regulator_check_consumers() 544 voltage = ®ulator->voltage[state]; in regulator_check_consumers() 852 struct regulator *regulator; in regulator_total_uA_show() local 856 list_for_each_entry(regulator, &rdev->consumer_list, list) { in regulator_total_uA_show() [all …]
|
D | virtual.c | 19 struct regulator *regulator; member 37 ret = regulator_set_voltage(data->regulator, in update_voltage_constraints() 48 ret = regulator_enable(data->regulator); in update_voltage_constraints() 58 ret = regulator_disable(data->regulator); in update_voltage_constraints() 76 ret = regulator_set_current_limit(data->regulator, in update_current_limit_constraints() 88 ret = regulator_enable(data->regulator); in update_current_limit_constraints() 98 ret = regulator_disable(data->regulator); in update_current_limit_constraints() 255 ret = regulator_set_mode(data->regulator, mode); in set_mode() 297 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe() 298 if (IS_ERR(drvdata->regulator)) { in regulator_virtual_probe() [all …]
|
D | cpcap-regulator.c | 171 struct cpcap_regulator *regulator = rdev_get_drvdata(rdev); in cpcap_regulator_enable() local 179 error = regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_enable() 180 regulator->assign_mask, in cpcap_regulator_enable() 181 regulator->assign_mask); in cpcap_regulator_enable() 195 struct cpcap_regulator *regulator = rdev_get_drvdata(rdev); in cpcap_regulator_disable() local 199 error = regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_disable() 200 regulator->assign_mask, 0); in cpcap_regulator_disable() 207 regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_disable() 208 regulator->assign_mask, in cpcap_regulator_disable() 209 regulator->assign_mask); in cpcap_regulator_disable() [all …]
|
D | wm831x-dcdc.c | 52 struct regulator_dev *regulator; member 181 regulator_notifier_call_chain(dcdc->regulator, in wm831x_dcdc_uv_irq() 192 regulator_notifier_call_chain(dcdc->regulator, in wm831x_dcdc_oc_irq() 465 dcdc->regulator = devm_regulator_register(&pdev->dev, &dcdc->desc, in wm831x_buckv_probe() 467 if (IS_ERR(dcdc->regulator)) { in wm831x_buckv_probe() 468 ret = PTR_ERR(dcdc->regulator); in wm831x_buckv_probe() 603 dcdc->regulator = devm_regulator_register(&pdev->dev, &dcdc->desc, in wm831x_buckp_probe() 605 if (IS_ERR(dcdc->regulator)) { in wm831x_buckp_probe() 606 ret = PTR_ERR(dcdc->regulator); in wm831x_buckp_probe() 720 dcdc->regulator = devm_regulator_register(&pdev->dev, &dcdc->desc, in wm831x_boostp_probe() [all …]
|
/drivers/misc/ |
D | hisi_hikey_usb.c | 40 struct regulator *regulator; member 60 if (!hisi_hikey_usb->regulator) in hub_power_ctrl() 63 status = regulator_is_enabled(hisi_hikey_usb->regulator); in hub_power_ctrl() 68 ret = regulator_enable(hisi_hikey_usb->regulator); in hub_power_ctrl() 70 ret = regulator_disable(hisi_hikey_usb->regulator); in hub_power_ctrl() 153 struct regulator *regulator; in hisi_hikey_usb_parse_kirin970() local 155 regulator = devm_regulator_get(&pdev->dev, "hub-vdd"); in hisi_hikey_usb_parse_kirin970() 156 if (IS_ERR(regulator)) { in hisi_hikey_usb_parse_kirin970() 157 if (PTR_ERR(regulator) == -EPROBE_DEFER) { in hisi_hikey_usb_parse_kirin970() 160 return PTR_ERR(regulator); in hisi_hikey_usb_parse_kirin970() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-sunxi.c | 24 struct regulator *regulator; member 35 if (gmac->regulator) { in sun7i_gmac_init() 36 ret = regulator_enable(gmac->regulator); in sun7i_gmac_init() 54 if (ret && gmac->regulator) in sun7i_gmac_init() 55 regulator_disable(gmac->regulator); in sun7i_gmac_init() 71 if (gmac->regulator) in sun7i_gmac_exit() 72 regulator_disable(gmac->regulator); in sun7i_gmac_exit() 135 gmac->regulator = devm_regulator_get_optional(dev, "phy"); in sun7i_gmac_probe() 136 if (IS_ERR(gmac->regulator)) { in sun7i_gmac_probe() 137 if (PTR_ERR(gmac->regulator) == -EPROBE_DEFER) { in sun7i_gmac_probe() [all …]
|
/drivers/net/mdio/ |
D | mdio-sun4i.c | 33 struct regulator *regulator; member 114 data->regulator = devm_regulator_get(&pdev->dev, "phy"); in sun4i_mdio_probe() 115 if (IS_ERR(data->regulator)) { in sun4i_mdio_probe() 116 if (PTR_ERR(data->regulator) == -EPROBE_DEFER) { in sun4i_mdio_probe() 122 data->regulator = NULL; in sun4i_mdio_probe() 124 ret = regulator_enable(data->regulator); in sun4i_mdio_probe() 138 if (data->regulator) in sun4i_mdio_probe() 139 regulator_disable(data->regulator); in sun4i_mdio_probe() 151 if (data->regulator) in sun4i_mdio_remove() 152 regulator_disable(data->regulator); in sun4i_mdio_remove()
|
/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 31 struct regulator *regulator; member 162 priv->regulator = devm_regulator_get_optional(dev, "phy"); in emac_rockchip_probe() 163 if (IS_ERR(priv->regulator)) { in emac_rockchip_probe() 164 if (PTR_ERR(priv->regulator) == -EPROBE_DEFER) { in emac_rockchip_probe() 169 priv->regulator = NULL; in emac_rockchip_probe() 172 if (priv->regulator) { in emac_rockchip_probe() 173 err = regulator_enable(priv->regulator); in emac_rockchip_probe() 238 if (priv->regulator) in emac_rockchip_probe() 239 regulator_disable(priv->regulator); in emac_rockchip_probe() 257 if (priv->regulator) in emac_rockchip_remove() [all …]
|
/drivers/mmc/core/ |
D | regulator.c | 61 static int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask() 107 struct regulator *supply, in mmc_regulator_set_ocr() 135 static int mmc_regulator_set_voltage_if_supported(struct regulator *regulator, in mmc_regulator_set_voltage_if_supported() argument 145 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV)) in mmc_regulator_set_voltage_if_supported() 152 current_uV = regulator_get_voltage(regulator); in mmc_regulator_set_voltage_if_supported() 156 return regulator_set_voltage_triplet(regulator, min_uV, target_uV, in mmc_regulator_set_voltage_if_supported() 228 static inline int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask()
|
/drivers/input/misc/ |
D | drv2665.c | 58 struct regulator *regulator; member 169 haptics->regulator = devm_regulator_get(&client->dev, "vbat"); in drv2665_probe() 170 if (IS_ERR(haptics->regulator)) { in drv2665_probe() 171 error = PTR_ERR(haptics->regulator); in drv2665_probe() 238 regulator_disable(haptics->regulator); in drv2665_suspend() 242 ret = regulator_disable(haptics->regulator); in drv2665_suspend() 263 ret = regulator_enable(haptics->regulator); in drv2665_resume() 273 regulator_disable(haptics->regulator); in drv2665_resume()
|
D | max8997_haptic.c | 36 struct regulator *regulator; member 170 error = regulator_enable(chip->regulator); in max8997_haptic_enable() 180 regulator_disable(chip->regulator); in max8997_haptic_enable() 200 regulator_disable(chip->regulator); in max8997_haptic_disable() 310 chip->regulator = regulator_get(&pdev->dev, "inmotor"); in max8997_haptic_probe() 311 if (IS_ERR(chip->regulator)) { in max8997_haptic_probe() 312 error = PTR_ERR(chip->regulator); in max8997_haptic_probe() 349 regulator_put(chip->regulator); in max8997_haptic_probe() 365 regulator_put(chip->regulator); in max8997_haptic_remove()
|
D | regulator-haptic.c | 23 struct regulator *regulator; member 42 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle() 43 regulator_disable(haptic->regulator); in regulator_haptic_toggle() 67 error = regulator_set_voltage(haptic->regulator, in regulator_haptic_set_voltage() 171 haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic"); in regulator_haptic_probe() 172 if (IS_ERR(haptic->regulator)) { in regulator_haptic_probe() 174 return PTR_ERR(haptic->regulator); in regulator_haptic_probe()
|
D | drv2667.c | 105 struct regulator *regulator; member 344 haptics->regulator = devm_regulator_get(&client->dev, "vbat"); in drv2667_probe() 345 if (IS_ERR(haptics->regulator)) { in drv2667_probe() 346 error = PTR_ERR(haptics->regulator); in drv2667_probe() 413 regulator_disable(haptics->regulator); in drv2667_suspend() 417 ret = regulator_disable(haptics->regulator); in drv2667_suspend() 438 ret = regulator_enable(haptics->regulator); in drv2667_resume() 448 regulator_disable(haptics->regulator); in drv2667_resume()
|
/drivers/hwmon/ |
D | adc128d818.c | 61 struct regulator *regulator; member 411 if (data->regulator) in adc128_init_client() 433 struct regulator *regulator; in adc128_probe() local 443 regulator = devm_regulator_get_optional(dev, "vref"); in adc128_probe() 444 if (!IS_ERR(regulator)) { in adc128_probe() 445 data->regulator = regulator; in adc128_probe() 446 err = regulator_enable(regulator); in adc128_probe() 449 vref = regulator_get_voltage(regulator); in adc128_probe() 493 if (data->regulator) in adc128_probe() 494 regulator_disable(data->regulator); in adc128_probe() [all …]
|
/drivers/media/rc/ |
D | ir-spi.c | 31 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()
|
/drivers/leds/ |
D | leds-lp8860.c | 104 struct regulator *regulator; member 244 if (led->regulator) { in lp8860_init() 245 ret = regulator_enable(led->regulator); in lp8860_init() 300 if (led->regulator) { in lp8860_init() 301 ret = regulator_disable(led->regulator); in lp8860_init() 403 led->regulator = devm_regulator_get(&client->dev, "vled"); in lp8860_probe() 404 if (IS_ERR(led->regulator)) in lp8860_probe() 405 led->regulator = NULL; in lp8860_probe() 456 if (led->regulator) { in lp8860_remove() 457 ret = regulator_disable(led->regulator); in lp8860_remove()
|
D | leds-lm3692x.c | 115 struct regulator *regulator; member 177 if (led->regulator) { in lm3692x_leds_enable() 178 ret = regulator_enable(led->regulator); in lm3692x_leds_enable() 287 if (led->regulator) { in lm3692x_leds_enable() 288 reg_ret = regulator_disable(led->regulator); in lm3692x_leds_enable() 314 if (led->regulator) { in lm3692x_leds_disable() 315 ret = regulator_disable(led->regulator); in lm3692x_leds_disable() 394 led->regulator = devm_regulator_get_optional(&led->client->dev, "vled"); in lm3692x_probe_dt() 395 if (IS_ERR(led->regulator)) { in lm3692x_probe_dt() 396 ret = PTR_ERR(led->regulator); in lm3692x_probe_dt() [all …]
|
D | leds-ktd2692.c | 80 struct regulator *regulator; member 265 ret = regulator_disable(led->regulator); in regulator_disable_action() 294 led->regulator = devm_regulator_get(dev, "vin"); in ktd2692_parse_dt() 295 if (IS_ERR(led->regulator)) in ktd2692_parse_dt() 296 led->regulator = NULL; in ktd2692_parse_dt() 298 if (led->regulator) { in ktd2692_parse_dt() 299 ret = regulator_enable(led->regulator); in ktd2692_parse_dt()
|
/drivers/gpu/drm/bridge/ |
D | tc358762.c | 65 struct regulator *regulator; member 142 ret = regulator_disable(ctx->regulator); in tc358762_post_disable() 152 ret = regulator_enable(ctx->regulator); in tc358762_pre_enable() 201 ctx->regulator = devm_regulator_get(ctx->dev, "vddc"); in tc358762_configure_regulators() 202 if (IS_ERR(ctx->regulator)) in tc358762_configure_regulators() 203 return PTR_ERR(ctx->regulator); in tc358762_configure_regulators()
|
/drivers/media/platform/qcom/camss/ |
D | camss.c | 36 .regulator = { NULL }, 48 .regulator = { NULL }, 62 .regulator = { "vdda" }, 79 .regulator = { "vdda" }, 109 .regulator = { NULL }, 131 .regulator = { NULL }, 143 .regulator = { NULL }, 155 .regulator = { NULL }, 169 .regulator = { "vdda" }, 186 .regulator = { "vdda" }, [all …]
|