| /drivers/regulator/ |
| A D | Makefile | 15 obj-$(CONFIG_REGULATOR_88PM800) += 88pm800-regulator.o 17 obj-$(CONFIG_REGULATOR_88PM886) += 88pm886-regulator.o 18 obj-$(CONFIG_REGULATOR_CROS_EC) += cros-ec-regulator.o 19 obj-$(CONFIG_REGULATOR_CPCAP) += cpcap-regulator.o 26 obj-$(CONFIG_REGULATOR_ANATOP) += anatop-regulator.o 29 obj-$(CONFIG_REGULATOR_ARM_SCMI) += scmi-regulator.o 30 obj-$(CONFIG_REGULATOR_AS3711) += as3711-regulator.o 54 obj-$(CONFIG_REGULATOR_GPIO) += gpio-regulator.o 133 obj-$(CONFIG_REGULATOR_PWM) += pwm-regulator.o 136 obj-$(CONFIG_REGULATOR_PCAP) += pcap-regulator.o [all …]
|
| A D | da9055-regulator.c | 270 if (regulator->reg_rselect == NO_GPIO) in da9055_suspend_enable() 511 struct da9055_regulator *regulator; in da9055_regulator_probe() local 518 if (!regulator) in da9055_regulator_probe() 522 if (regulator->info == NULL) { in da9055_regulator_probe() 527 regulator->da9055 = da9055; in da9055_regulator_probe() 529 config.driver_data = regulator; in da9055_regulator_probe() 540 ®ulator->info->reg_desc, in da9055_regulator_probe() 542 if (IS_ERR(regulator->rdev)) { in da9055_regulator_probe() 544 regulator->info->reg_desc.name); in da9055_regulator_probe() 545 return PTR_ERR(regulator->rdev); in da9055_regulator_probe() [all …]
|
| A D | devres.c | 25 struct regulator **ptr, *regulator; in _devm_regulator_get() local 33 *ptr = regulator; in _devm_regulator_get() 39 return regulator; in _devm_regulator_get() 75 struct regulator *r = (struct regulator *)d; in regulator_action_disable() 225 void devm_regulator_put(struct regulator *regulator) in devm_regulator_put() argument 370 struct regulator *regulator = consumers[0].consumer; in devm_regulator_bulk_put() local 616 struct regulator *regulator; member 646 int devm_regulator_register_notifier(struct regulator *regulator, in devm_regulator_register_notifier() argument 658 match->regulator = regulator; in devm_regulator_register_notifier() 690 match.regulator = regulator; in devm_regulator_unregister_notifier() [all …]
|
| A D | da9052-regulator.c | 102 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_get_current_limit() 397 struct da9052_regulator *regulator; in da9052_regulator_probe() local 403 if (!regulator) in da9052_regulator_probe() 408 regulator->da9052 = da9052; in da9052_regulator_probe() 410 regulator->info = find_regulator_info(regulator->da9052->chip_id, in da9052_regulator_probe() 412 if (regulator->info == NULL) { in da9052_regulator_probe() 418 config.driver_data = regulator; in da9052_regulator_probe() 424 ®ulator->info->reg_desc, in da9052_regulator_probe() 426 if (IS_ERR(regulator->rdev)) { in da9052_regulator_probe() 428 regulator->info->reg_desc.name); in da9052_regulator_probe() [all …]
|
| A D | Kconfig | 107 regulator via I2C bus. 150 regulator driver. 431 regulator. The regulator is a programmable power management IC 593 regulator via I2C bus. The provided regulator is suitable 776 The regulator include 15 LDOs, BUCK and BUCK BOOST regulator. 993 regulator driver. 1019 "pf8x00-regulator". 1088 "qcom_rpm-regulator". 1110 "qcom_smd-regulator". 1605 regulator chips. [all …]
|
| A D | core.c | 87 static int _regulator_disable(struct regulator *regulator); 100 static void destroy_regulator(struct regulator *regulator); 101 static void _regulator_put(struct regulator *regulator); 462 struct regulator *regulator; in regulator_check_consumers() local 776 struct regulator *regulator; in requested_microamps_show() local 1875 struct regulator *regulator; in create_regulator() local 2203 struct regulator *regulator; in _regulator_get_common() local 2468 void regulator_put(struct regulator *regulator) in regulator_put() argument 2966 int regulator_enable(struct regulator *regulator) in regulator_enable() argument 3162 struct regulator *regulator; in regulator_disable_work() local [all …]
|
| A D | virtual.c | 20 struct regulator *regulator; member 38 ret = regulator_set_voltage(data->regulator, in update_voltage_constraints() 49 ret = regulator_enable(data->regulator); in update_voltage_constraints() 59 ret = regulator_disable(data->regulator); in update_voltage_constraints() 77 ret = regulator_set_current_limit(data->regulator, in update_current_limit_constraints() 89 ret = regulator_enable(data->regulator); in update_current_limit_constraints() 99 ret = regulator_disable(data->regulator); in update_current_limit_constraints() 256 ret = regulator_set_mode(data->regulator, mode); in set_mode() 328 if (IS_ERR(drvdata->regulator)) in regulator_virtual_probe() 341 drvdata->mode = regulator_get_mode(drvdata->regulator); in regulator_virtual_probe() [all …]
|
| A D | cpcap-regulator.c | 172 regulator->assign_mask, in cpcap_regulator_enable() 173 regulator->assign_mask); in cpcap_regulator_enable() 192 regulator->assign_mask, 0); in cpcap_regulator_disable() 199 regmap_update_bits(rdev->regmap, regulator->assign_reg, in cpcap_regulator_disable() 200 regulator->assign_mask, in cpcap_regulator_disable() 201 regulator->assign_mask); in cpcap_regulator_disable() 531 if (!regulator->rdesc.name) in cpcap_regulator_probe() 534 if (regulator->rdesc.volt_table == unknown_val_tbl) in cpcap_regulator_probe() 537 config.driver_data = (void *)regulator; in cpcap_regulator_probe() 539 ®ulator->rdesc, in cpcap_regulator_probe() [all …]
|
| /drivers/platform/x86/intel/int3472/ |
| A D | clk_and_regulator.c | 195 struct int3472_gpio_regulator *regulator; in skl_int3472_register_regulator() local 210 string_upper(regulator->supply_name_upper, supply_name); in skl_int3472_register_regulator() 218 regulator->supply_map[j].supply = supply; in skl_int3472_register_regulator() 223 regulator->supply_map[j].supply = supply; in skl_int3472_register_regulator() 224 regulator->supply_map[j].dev_name = second_sensor; in skl_int3472_register_regulator() 230 init_data.consumer_supplies = regulator->supply_map; in skl_int3472_register_regulator() 233 snprintf(regulator->regulator_name, sizeof(regulator->regulator_name), "%s-%s", in skl_int3472_register_regulator() 236 regulator->rdesc = INT3472_REGULATOR(regulator->regulator_name, in skl_int3472_register_regulator() 244 regulator->rdev = regulator_register(int3472->dev, ®ulator->rdesc, &cfg); in skl_int3472_register_regulator() 245 if (IS_ERR(regulator->rdev)) in skl_int3472_register_regulator() [all …]
|
| /drivers/net/ethernet/stmicro/stmmac/ |
| A 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() 128 gmac->regulator = devm_regulator_get_optional(dev, "phy"); in sun7i_gmac_probe() 129 if (IS_ERR(gmac->regulator)) { in sun7i_gmac_probe() 130 if (PTR_ERR(gmac->regulator) == -EPROBE_DEFER) in sun7i_gmac_probe() [all …]
|
| /drivers/net/mdio/ |
| A 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/ |
| A 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() 256 if (priv->regulator) in emac_rockchip_remove() [all …]
|
| /drivers/misc/ |
| A D | hisi_hikey_usb.c | 38 struct regulator *regulator; member 55 if (!hisi_hikey_usb->regulator) in hub_power_ctrl() 58 status = regulator_is_enabled(hisi_hikey_usb->regulator); in hub_power_ctrl() 63 ret = regulator_enable(hisi_hikey_usb->regulator); in hub_power_ctrl() 65 ret = regulator_disable(hisi_hikey_usb->regulator); in hub_power_ctrl() 221 hisi_hikey_usb->regulator = devm_regulator_get(dev, "hub-vdd"); in hisi_hikey_usb_probe() 222 if (IS_ERR(hisi_hikey_usb->regulator)) { in hisi_hikey_usb_probe() 223 if (PTR_ERR(hisi_hikey_usb->regulator) == -EPROBE_DEFER) { in hisi_hikey_usb_probe() 225 return PTR_ERR(hisi_hikey_usb->regulator); in hisi_hikey_usb_probe() 228 PTR_ERR(hisi_hikey_usb->regulator)); in hisi_hikey_usb_probe() [all …]
|
| /drivers/hwmon/ |
| A D | sy7636a-hwmon.c | 69 struct regulator *regulator; in sy7636a_sensor_probe() local 76 regulator = devm_regulator_get(&pdev->dev, "vcom"); in sy7636a_sensor_probe() 77 if (IS_ERR(regulator)) in sy7636a_sensor_probe() 78 return PTR_ERR(regulator); in sy7636a_sensor_probe() 80 err = regulator_enable(regulator); in sy7636a_sensor_probe()
|
| /drivers/input/misc/ |
| A D | drv2665.c | 58 struct regulator *regulator; member 168 haptics->regulator = devm_regulator_get(&client->dev, "vbat"); in drv2665_probe() 169 if (IS_ERR(haptics->regulator)) { in drv2665_probe() 170 error = PTR_ERR(haptics->regulator); in drv2665_probe() 237 regulator_disable(haptics->regulator); in drv2665_suspend() 241 error = regulator_disable(haptics->regulator); in drv2665_suspend() 262 error = regulator_enable(haptics->regulator); in drv2665_resume() 272 regulator_disable(haptics->regulator); in drv2665_resume()
|
| A D | regulator-haptic.c | 24 struct regulator *regulator; member 43 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle() 44 regulator_disable(haptic->regulator); in regulator_haptic_toggle() 68 error = regulator_set_voltage(haptic->regulator, in regulator_haptic_set_voltage() 170 haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic"); in regulator_haptic_probe() 171 if (IS_ERR(haptic->regulator)) { in regulator_haptic_probe() 173 return PTR_ERR(haptic->regulator); in regulator_haptic_probe()
|
| A D | max8997_haptic.c | 36 struct regulator *regulator; member 152 error = regulator_enable(chip->regulator); in max8997_haptic_enable() 178 regulator_disable(chip->regulator); in max8997_haptic_enable() 195 regulator_disable(chip->regulator); in max8997_haptic_disable() 297 chip->regulator = regulator_get(&pdev->dev, "inmotor"); in max8997_haptic_probe() 298 if (IS_ERR(chip->regulator)) { in max8997_haptic_probe() 299 error = PTR_ERR(chip->regulator); in max8997_haptic_probe() 336 regulator_put(chip->regulator); in max8997_haptic_probe() 352 regulator_put(chip->regulator); in max8997_haptic_remove()
|
| A D | drv2667.c | 107 struct regulator *regulator; member 345 haptics->regulator = devm_regulator_get(&client->dev, "vbat"); in drv2667_probe() 346 if (IS_ERR(haptics->regulator)) { in drv2667_probe() 347 error = PTR_ERR(haptics->regulator); in drv2667_probe() 414 regulator_disable(haptics->regulator); in drv2667_suspend() 418 error = regulator_disable(haptics->regulator); in drv2667_suspend() 439 error = regulator_enable(haptics->regulator); in drv2667_resume() 449 regulator_disable(haptics->regulator); in drv2667_resume()
|
| /drivers/mmc/core/ |
| A 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() 138 static int mmc_regulator_set_voltage_if_supported(struct regulator *regulator, in mmc_regulator_set_voltage_if_supported() argument 148 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV)) in mmc_regulator_set_voltage_if_supported() 155 current_uV = regulator_get_voltage(regulator); in mmc_regulator_set_voltage_if_supported() 159 return regulator_set_voltage_triplet(regulator, min_uV, target_uV, in mmc_regulator_set_voltage_if_supported() 258 static inline int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask()
|
| /drivers/media/rc/ |
| A D | ir-spi.c | 35 struct regulator *regulator; member 79 ret = regulator_enable(idata->regulator); in ir_spi_tx() 87 regulator_disable(idata->regulator); in ir_spi_tx() 139 idata->regulator = devm_regulator_get(dev, "irda_regulator"); in ir_spi_probe() 140 if (IS_ERR(idata->regulator)) in ir_spi_probe() 141 return PTR_ERR(idata->regulator); in ir_spi_probe()
|
| /drivers/leds/ |
| A D | leds-lm3692x.c | 114 struct regulator *regulator; member 176 if (led->regulator) { in lm3692x_leds_enable() 177 ret = regulator_enable(led->regulator); in lm3692x_leds_enable() 286 if (led->regulator) { in lm3692x_leds_enable() 287 reg_ret = regulator_disable(led->regulator); in lm3692x_leds_enable() 313 if (led->regulator) { in lm3692x_leds_disable() 314 ret = regulator_disable(led->regulator); in lm3692x_leds_disable() 393 led->regulator = devm_regulator_get_optional(&led->client->dev, "vled"); in lm3692x_probe_dt() 394 if (IS_ERR(led->regulator)) { in lm3692x_probe_dt() 395 ret = PTR_ERR(led->regulator); in lm3692x_probe_dt() [all …]
|
| /drivers/iio/health/ |
| A D | afe4403.c | 75 struct regulator *regulator; member 350 struct regulator *regulator = data; in afe4403_regulator_disable() local 352 regulator_disable(regulator); in afe4403_regulator_disable() 429 ret = regulator_disable(afe->regulator); in afe4403_suspend() 444 ret = regulator_enable(afe->regulator); in afe4403_resume() 493 afe->regulator = devm_regulator_get(afe->dev, "tx_sup"); in afe4403_probe() 494 if (IS_ERR(afe->regulator)) in afe4403_probe() 495 return dev_err_probe(afe->dev, PTR_ERR(afe->regulator), in afe4403_probe() 498 ret = regulator_enable(afe->regulator); in afe4403_probe() 503 ret = devm_add_action_or_reset(afe->dev, afe4403_regulator_disable, afe->regulator); in afe4403_probe()
|
| A D | afe4404.c | 92 struct regulator *regulator; member 353 struct regulator *regulator = data; in afe4404_regulator_disable() local 355 regulator_disable(regulator); in afe4404_regulator_disable() 437 ret = regulator_disable(afe->regulator); in afe4404_suspend() 452 ret = regulator_enable(afe->regulator); in afe4404_resume() 500 afe->regulator = devm_regulator_get(afe->dev, "tx_sup"); in afe4404_probe() 501 if (IS_ERR(afe->regulator)) in afe4404_probe() 502 return dev_err_probe(afe->dev, PTR_ERR(afe->regulator), in afe4404_probe() 505 ret = regulator_enable(afe->regulator); in afe4404_probe() 510 ret = devm_add_action_or_reset(afe->dev, afe4404_regulator_disable, afe->regulator); in afe4404_probe()
|
| /drivers/leds/flash/ |
| A D | leds-ktd2692.c | 80 struct regulator *regulator; member 203 ret = regulator_disable(led->regulator); in regulator_disable_action() 226 led->regulator = devm_regulator_get(dev, "vin"); in ktd2692_parse_dt() 227 if (IS_ERR(led->regulator)) in ktd2692_parse_dt() 228 led->regulator = NULL; in ktd2692_parse_dt() 230 if (led->regulator) { in ktd2692_parse_dt() 231 ret = regulator_enable(led->regulator); in ktd2692_parse_dt()
|
| /drivers/gpu/drm/bridge/ |
| A D | tc358762.c | 74 struct regulator *regulator; member 170 ret = regulator_disable(ctx->regulator); in tc358762_post_disable() 181 ret = regulator_enable(ctx->regulator); in tc358762_pre_enable() 255 ctx->regulator = devm_regulator_get(ctx->dev, "vddc"); in tc358762_configure_regulators() 256 if (IS_ERR(ctx->regulator)) in tc358762_configure_regulators() 257 return PTR_ERR(ctx->regulator); in tc358762_configure_regulators()
|