/drivers/video/backlight/ |
D | as3711_bl.c | 59 struct as3711_bl_supply *supply = to_supply(data); in as3711_set_brightness_auto_i() local 60 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i() 61 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_set_brightness_auto_i() 89 static int as3711_bl_su2_reset(struct as3711_bl_supply *supply) in as3711_bl_su2_reset() argument 91 struct as3711 *as3711 = supply->as3711; in as3711_bl_su2_reset() 93 3, supply->pdata->su2_fbprot); in as3711_bl_su2_reset() 110 struct as3711_bl_supply *supply = to_supply(data); in as3711_bl_update_status() local 111 struct as3711 *as3711 = supply->as3711; in as3711_bl_update_status() 128 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_bl_update_status() 140 ret = as3711_bl_su2_reset(supply); in as3711_bl_update_status() [all …]
|
D | lp855x_bl.c | 77 struct regulator *supply; /* regulator for VDD input */ member 431 lp->supply = devm_regulator_get(lp->dev, "power"); in lp855x_probe() 432 if (IS_ERR(lp->supply)) { in lp855x_probe() 433 if (PTR_ERR(lp->supply) == -EPROBE_DEFER) in lp855x_probe() 435 lp->supply = NULL; in lp855x_probe() 451 if (lp->supply) { in lp855x_probe() 452 ret = regulator_enable(lp->supply); in lp855x_probe() 504 if (lp->supply) in lp855x_remove() 505 regulator_disable(lp->supply); in lp855x_remove()
|
/drivers/power/avs/ |
D | rockchip-io-domain.c | 83 static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply, in rockchip_iodomain_write() argument 86 struct rockchip_iodomain *iod = supply->iod; in rockchip_iodomain_write() 92 val <<= supply->idx; in rockchip_iodomain_write() 95 val |= (BIT(supply->idx) << 16); in rockchip_iodomain_write() 108 struct rockchip_iodomain_supply *supply = in rockchip_iodomain_notify() local 137 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify() 140 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV); in rockchip_iodomain_notify() 146 ret = rockchip_iodomain_write(supply, uV); in rockchip_iodomain_notify() 150 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV); in rockchip_iodomain_notify() 463 struct rockchip_iodomain_supply *supply = &iod->supplies[i]; in rockchip_iodomain_probe() local [all …]
|
/drivers/regulator/ |
D | wm8994-regulator.c | 32 struct regulator_consumer_supply supply; member 106 { .supply = "AVDD1" }, 107 { .supply = "DCVDD" }, 141 ldo->supply = wm8994_ldo_consumer[id]; in wm8994_ldo_probe() 142 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe() 158 ldo->supply.dev_name, ldo->supply.supply); in wm8994_ldo_probe() 161 ldo->init_data.consumer_supplies = &ldo->supply; in wm8994_ldo_probe()
|
D | max8907-regulator.c | 49 #define REG_LDO(ids, supply, base, min, max, step) \ argument 52 .supply_name = supply, \ 66 #define REG_FIXED(ids, supply, voltage) \ argument 69 .supply_name = supply, \ 78 #define REG_OUT5V(ids, supply, base, voltage) \ argument 81 .supply_name = supply, \ 92 #define REG_BBAT(ids, supply, base, min, max, step) \ argument 95 .supply_name = supply, \ 107 #define LDO_750_50(id, supply, base) REG_LDO(id, supply, (base), \ argument 109 #define LDO_650_25(id, supply, base) REG_LDO(id, supply, (base), \ argument
|
D | core.c | 71 const char *supply; member 150 if (rdev && rdev->supply) in rdev_get_supply() 151 return rdev->supply->rdev; in rdev_get_supply() 174 struct regulator *supply; in regulator_unlock_supply() local 178 supply = rdev->supply; in regulator_unlock_supply() 180 if (!rdev->supply) in regulator_unlock_supply() 183 rdev = supply->rdev; in regulator_unlock_supply() 196 static struct device_node *of_get_regulator(struct device *dev, const char *supply) in of_get_regulator() argument 201 dev_dbg(dev, "Looking up %s-supply from device tree\n", supply); in of_get_regulator() 203 snprintf(prop_name, 32, "%s-supply", supply); in of_get_regulator() [all …]
|
D | arizona-micsupp.c | 42 struct regulator_consumer_supply supply; member 224 init_data->consumer_supplies = &micsupp->supply; in arizona_micsupp_of_get_pdata() 244 micsupp->init_data.consumer_supplies = &micsupp->supply; in arizona_micsupp_common_init() 245 micsupp->supply.supply = "MICVDD"; in arizona_micsupp_common_init() 246 micsupp->supply.dev_name = dev_name(micsupp->dev); in arizona_micsupp_common_init()
|
D | arizona-ldo1.c | 38 struct regulator_consumer_supply supply; member 220 init_data->consumer_supplies = &ldo1->supply; in arizona_ldo1_of_get_pdata() 249 ldo1->supply.supply = "DCVDD"; in arizona_ldo1_common_init() 250 ldo1->init_data.consumer_supplies = &ldo1->supply; in arizona_ldo1_common_init() 251 ldo1->supply.dev_name = dev_name(parent_dev); in arizona_ldo1_common_init()
|
/drivers/soc/imx/ |
D | gpc.c | 51 struct regulator *supply; member 91 if (pd->supply) in imx6_pm_domain_power_off() 92 regulator_disable(pd->supply); in imx6_pm_domain_power_off() 103 if (pd->supply) { in imx6_pm_domain_power_on() 104 ret = regulator_enable(pd->supply); in imx6_pm_domain_power_on() 176 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt() 177 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt() 178 if (PTR_ERR(domain->supply) == -ENODEV) in imx_pgc_parse_dt() 179 domain->supply = NULL; in imx_pgc_parse_dt() 181 return PTR_ERR(domain->supply); in imx_pgc_parse_dt() [all …]
|
/drivers/leds/ |
D | leds-regulator.c | 33 static inline int led_regulator_get_max_brightness(struct regulator *supply) in led_regulator_get_max_brightness() argument 36 int voltage = regulator_list_voltage(supply, 0); in led_regulator_get_max_brightness() 45 ret = regulator_set_voltage(supply, voltage, voltage); in led_regulator_get_max_brightness() 49 return regulator_count_voltages(supply); in led_regulator_get_max_brightness() 52 static int led_regulator_get_voltage(struct regulator *supply, in led_regulator_get_voltage() argument 58 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage()
|
/drivers/gpu/drm/panel/ |
D | panel-panasonic-vvx10f034n00.c | 45 struct regulator *supply; member 99 regulator_disable(wuxga_nt->supply); in wuxga_nt_panel_unprepare() 128 ret = regulator_enable(wuxga_nt->supply); in wuxga_nt_panel_prepare() 149 regulator_disable(wuxga_nt->supply); in wuxga_nt_panel_prepare() 229 wuxga_nt->supply = devm_regulator_get(dev, "power"); in wuxga_nt_panel_add() 230 if (IS_ERR(wuxga_nt->supply)) in wuxga_nt_panel_add() 231 return PTR_ERR(wuxga_nt->supply); in wuxga_nt_panel_add()
|
D | panel-innolux-p079zca.c | 28 struct regulator *supply; member 80 err = regulator_disable(innolux->supply); in innolux_panel_unprepare() 99 err = regulator_enable(innolux->supply); in innolux_panel_prepare() 136 regulator_err = regulator_disable(innolux->supply); in innolux_panel_prepare() 222 innolux->supply = devm_regulator_get(dev, "power"); in innolux_panel_add() 223 if (IS_ERR(innolux->supply)) in innolux_panel_add() 224 return PTR_ERR(innolux->supply); in innolux_panel_add()
|
D | panel-sharp-ls043t1le01.c | 39 struct regulator *supply; member 144 regulator_disable(sharp_nt->supply); in sharp_nt_panel_unprepare() 161 ret = regulator_enable(sharp_nt->supply); in sharp_nt_panel_prepare() 193 regulator_disable(sharp_nt->supply); in sharp_nt_panel_prepare() 267 sharp_nt->supply = devm_regulator_get(dev, "avdd"); in sharp_nt_panel_add() 268 if (IS_ERR(sharp_nt->supply)) in sharp_nt_panel_add() 269 return PTR_ERR(sharp_nt->supply); in sharp_nt_panel_add()
|
D | panel-sharp-lq101r1sx01.c | 29 struct regulator *supply; member 129 regulator_disable(sharp->supply); in sharp_panel_unprepare() 179 err = regulator_enable(sharp->supply); in sharp_panel_prepare() 255 regulator_disable(sharp->supply); in sharp_panel_prepare() 332 sharp->supply = devm_regulator_get(&sharp->link1->dev, "power"); in sharp_panel_add() 333 if (IS_ERR(sharp->supply)) in sharp_panel_add() 334 return PTR_ERR(sharp->supply); in sharp_panel_add()
|
/drivers/power/supply/ |
D | axp20x_ac_power.c | 34 struct power_supply *supply; member 43 power_supply_changed(power->supply); in axp20x_ac_power_irq() 204 power->supply = devm_power_supply_register(&pdev->dev, in axp20x_ac_power_probe() 207 if (IS_ERR(power->supply)) in axp20x_ac_power_probe() 208 return PTR_ERR(power->supply); in axp20x_ac_power_probe()
|
D | axp20x_usb_power.c | 51 struct power_supply *supply; member 61 power_supply_changed(power->supply); in axp20x_usb_power_irq() 395 power->supply = devm_power_supply_register(&pdev->dev, usb_power_desc, in axp20x_usb_power_probe() 397 if (IS_ERR(power->supply)) in axp20x_usb_power_probe() 398 return PTR_ERR(power->supply); in axp20x_usb_power_probe()
|
D | ltc2941-battery-gauge.c | 66 struct power_supply *supply; /* Supply pointer */ member 384 power_supply_changed(info->supply); in ltc294x_update() 410 power_supply_unregister(info->supply); in ltc294x_i2c_remove() 514 info->supply = power_supply_register(&client->dev, &info->supply_desc, in ltc294x_i2c_probe() 516 if (IS_ERR(info->supply)) { in ltc294x_i2c_probe() 518 return PTR_ERR(info->supply); in ltc294x_i2c_probe()
|
/drivers/pci/host/ |
D | pci-tegra.c | 1672 snprintf(property, 32, "%s-supply", supplies[i].supply); in of_regulator_bulk_available() 1709 pcie->supplies[0].supply = "pex-clk"; in tegra_pcie_get_legacy_regulators() 1710 pcie->supplies[1].supply = "vdd"; in tegra_pcie_get_legacy_regulators() 1713 pcie->supplies[2].supply = "avdd"; in tegra_pcie_get_legacy_regulators() 1742 pcie->supplies[i++].supply = "avdd-pll-uerefe"; in tegra_pcie_get_regulators() 1743 pcie->supplies[i++].supply = "hvddio-pex"; in tegra_pcie_get_regulators() 1744 pcie->supplies[i++].supply = "dvddio-pex"; in tegra_pcie_get_regulators() 1745 pcie->supplies[i++].supply = "dvdd-pex-pll"; in tegra_pcie_get_regulators() 1746 pcie->supplies[i++].supply = "hvdd-pex-pll-e"; in tegra_pcie_get_regulators() 1747 pcie->supplies[i++].supply = "vddio-pex-ctl"; in tegra_pcie_get_regulators() [all …]
|
/drivers/soc/mediatek/ |
D | mtk-scpsys.c | 122 struct regulator *supply; member 186 if (scpd->supply) { in scpsys_power_on() 187 ret = regulator_enable(scpd->supply); in scpsys_power_on() 270 if (scpd->supply) in scpsys_power_on() 271 regulator_disable(scpd->supply); in scpsys_power_on() 353 if (scpd->supply) in scpsys_power_off() 354 regulator_disable(scpd->supply); in scpsys_power_off() 431 scpd->supply = devm_regulator_get_optional(&pdev->dev, data->name); in init_scp() 432 if (IS_ERR(scpd->supply)) { in init_scp() 433 if (PTR_ERR(scpd->supply) == -ENODEV) in init_scp() [all …]
|
/drivers/pcmcia/ |
D | sa1111_badge4.c | 64 const char *supply, in complain_about_jumpering() argument 70 whom, supply, in complain_about_jumpering() 72 supply, in complain_about_jumpering()
|
/drivers/ata/ |
D | ahci_tegra.c | 346 tegra->supplies[0].supply = "avdd"; in tegra_ahci_probe() 347 tegra->supplies[1].supply = "hvdd"; in tegra_ahci_probe() 348 tegra->supplies[2].supply = "vddio"; in tegra_ahci_probe() 349 tegra->supplies[3].supply = "target-5v"; in tegra_ahci_probe() 350 tegra->supplies[4].supply = "target-12v"; in tegra_ahci_probe()
|
/drivers/mmc/core/ |
D | core.c | 1248 int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask() argument 1256 count = regulator_count_voltages(supply); in mmc_regulator_get_ocrmask() 1261 vdd_uV = regulator_list_voltage(supply, i); in mmc_regulator_get_ocrmask() 1270 vdd_uV = regulator_get_voltage(supply); in mmc_regulator_get_ocrmask() 1295 struct regulator *supply, in mmc_regulator_set_ocr() argument 1304 result = regulator_set_voltage(supply, min_uV, max_uV); in mmc_regulator_set_ocr() 1306 result = regulator_enable(supply); in mmc_regulator_set_ocr() 1311 result = regulator_disable(supply); in mmc_regulator_set_ocr() 1361 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc() 1366 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc() [all …]
|
/drivers/staging/greybus/ |
D | power_supply.c | 54 struct gb_power_supply *supply; member 864 if (!supplies->supply) in _gb_power_supplies_release() 869 _gb_power_supply_release(&supplies->supply[i]); in _gb_power_supplies_release() 870 kfree(supplies->supply); in _gb_power_supplies_release() 896 struct gb_power_supply *gbpsy = &supplies->supply[id]; in gb_power_supply_config() 947 supplies->supply = kcalloc(supplies->supplies_count, in gb_power_supplies_setup() 951 if (!supplies->supply) { in gb_power_supplies_setup() 978 ret = gb_power_supply_enable(&supplies->supply[i]); in gb_power_supplies_register() 1020 !supplies->supply[psy_id].registered) { in gb_supplies_request_handler() 1033 gbpsy = &supplies->supply[psy_id]; in gb_supplies_request_handler()
|
/drivers/phy/tegra/ |
D | xusb.h | 198 struct regulator *supply; member 273 struct regulator *supply; member 290 struct regulator *supply; member 312 struct regulator *supply; member
|
/drivers/remoteproc/ |
D | qcom_q6v5_pil.c | 102 const char *supply; member 168 for (i = 0; reg_res[i].supply; i++) { in q6v5_regulator_init() 169 regs[i].reg = devm_regulator_get(dev, reg_res[i].supply); in q6v5_regulator_init() 174 reg_res[i].supply); in q6v5_regulator_init() 1076 .supply = "mx", 1080 .supply = "cx", 1084 .supply = "pll", 1105 .supply = "mx", 1109 .supply = "cx", 1113 .supply = "pll", [all …]
|