Home
last modified time | relevance | path

Searched refs:supply (Results 1 – 25 of 235) sorted by relevance

12345678910

/drivers/mmc/core/
Dregulator.c61 static int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask() argument
69 count = regulator_count_voltages(supply); in mmc_regulator_get_ocrmask()
74 vdd_uV = regulator_list_voltage(supply, i); in mmc_regulator_get_ocrmask()
83 vdd_uV = regulator_get_voltage(supply); in mmc_regulator_get_ocrmask()
107 struct regulator *supply, in mmc_regulator_set_ocr() argument
116 result = regulator_set_voltage(supply, min_uV, max_uV); in mmc_regulator_set_ocr()
118 result = regulator_enable(supply); in mmc_regulator_set_ocr()
123 result = regulator_disable(supply); in mmc_regulator_set_ocr()
185 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc()
190 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
[all …]
/drivers/soc/rockchip/
Dio-domain.c71 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
79 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
82 static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) in rk3568_iodomain_write() argument
84 struct rockchip_iodomain *iod = supply->iod; in rk3568_iodomain_write()
89 switch (supply->idx) { in rk3568_iodomain_write()
93 b = supply->idx; in rk3568_iodomain_write()
95 b = supply->idx + 4; in rk3568_iodomain_write()
109 b = supply->idx - 1; in rk3568_iodomain_write()
123 static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply, in rockchip_iodomain_write() argument
126 struct rockchip_iodomain *iod = supply->iod; in rockchip_iodomain_write()
[all …]
/drivers/video/backlight/
Das3711_bl.c54 struct as3711_bl_supply *supply = to_supply(data); in as3711_set_brightness_auto_i() local
55 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i()
56 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_set_brightness_auto_i()
84 static int as3711_bl_su2_reset(struct as3711_bl_supply *supply) in as3711_bl_su2_reset() argument
86 struct as3711 *as3711 = supply->as3711; in as3711_bl_su2_reset()
88 3, supply->pdata->su2_fbprot); in as3711_bl_su2_reset()
105 struct as3711_bl_supply *supply = to_supply(data); in as3711_bl_update_status() local
106 struct as3711 *as3711 = supply->as3711; in as3711_bl_update_status()
116 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_bl_update_status()
128 ret = as3711_bl_su2_reset(supply); in as3711_bl_update_status()
[all …]
Dlp855x_bl.c73 struct regulator *supply; /* regulator for VDD input */ member
427 lp->supply = devm_regulator_get(lp->dev, "power"); in lp855x_probe()
428 if (IS_ERR(lp->supply)) { in lp855x_probe()
429 if (PTR_ERR(lp->supply) == -EPROBE_DEFER) in lp855x_probe()
431 lp->supply = NULL; in lp855x_probe()
447 if (lp->supply) { in lp855x_probe()
448 ret = regulator_enable(lp->supply); in lp855x_probe()
498 if (lp->supply) in lp855x_probe()
499 regulator_disable(lp->supply); in lp855x_probe()
512 if (lp->supply) in lp855x_remove()
[all …]
/drivers/regulator/
Dwm8994-regulator.c27 struct regulator_consumer_supply supply; member
130 { .supply = "AVDD1" },
131 { .supply = "DCVDD" },
166 ldo->supply = wm8994_ldo_consumer[id]; in wm8994_ldo_probe()
167 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
189 ldo->supply.dev_name, ldo->supply.supply); in wm8994_ldo_probe()
192 ldo->init_data.consumer_supplies = &ldo->supply; in wm8994_ldo_probe()
Dmax8907-regulator.c46 #define REG_LDO(ids, supply, base, min, max, step) \ argument
49 .supply_name = supply, \
63 #define REG_FIXED(ids, supply, voltage) \ argument
66 .supply_name = supply, \
75 #define REG_OUT5V(ids, supply, base, voltage) \ argument
78 .supply_name = supply, \
89 #define REG_BBAT(ids, supply, base, min, max, step) \ argument
92 .supply_name = supply, \
104 #define LDO_750_50(id, supply, base) REG_LDO(id, supply, (base), \ argument
106 #define LDO_650_25(id, supply, base) REG_LDO(id, supply, (base), \ argument
Dcore.c55 const char *supply; member
289 if (rdev->supply->rdev == c_rdev) in regulator_supply_is_couple()
308 if (c_rdev->supply && !regulator_supply_is_couple(c_rdev)) { in regulator_unlock_recursive()
309 supply_rdev = c_rdev->supply->rdev; in regulator_unlock_recursive()
349 if (c_rdev->supply && !regulator_supply_is_couple(c_rdev)) { in regulator_lock_recursive()
350 err = regulator_lock_recursive(c_rdev->supply->rdev, in regulator_lock_recursive()
470 static struct device_node *of_get_regulator(struct device *dev, const char *supply) in of_get_regulator() argument
475 dev_dbg(dev, "Looking up %s-supply from device tree\n", supply); in of_get_regulator()
477 snprintf(prop_name, 64, "%s-supply", supply); in of_get_regulator()
1037 if (rdev->supply) in drms_uA_update()
[all …]
Dvctrl-regulator.c86 if (!rdev->supply) in vctrl_get_voltage()
89 ctrl_uV = regulator_get_voltage_rdev(rdev->supply->rdev); in vctrl_get_voltage()
103 if (!rdev->supply) in vctrl_set_voltage()
106 orig_ctrl_uV = regulator_get_voltage_rdev(rdev->supply->rdev); in vctrl_set_voltage()
111 return regulator_set_voltage_rdev(rdev->supply->rdev, in vctrl_set_voltage()
129 ret = regulator_set_voltage_rdev(rdev->supply->rdev, in vctrl_set_voltage()
146 regulator_set_voltage_rdev(rdev->supply->rdev, orig_ctrl_uV, orig_ctrl_uV, in vctrl_set_voltage()
166 if (!rdev->supply) in vctrl_set_voltage_sel()
174 ret = regulator_set_voltage_rdev(rdev->supply->rdev, in vctrl_set_voltage_sel()
193 ret = regulator_set_voltage_rdev(rdev->supply->rdev, in vctrl_set_voltage_sel()
[all …]
/drivers/gpu/drm/panel/
Dpanel-lvds.c36 struct regulator *supply; member
56 if (lvds->supply) in panel_lvds_unprepare()
57 regulator_disable(lvds->supply); in panel_lvds_unprepare()
66 if (lvds->supply) { in panel_lvds_prepare()
69 err = regulator_enable(lvds->supply); in panel_lvds_prepare()
191 lvds->supply = devm_regulator_get_optional(lvds->dev, "power"); in panel_lvds_probe()
192 if (IS_ERR(lvds->supply)) { in panel_lvds_probe()
193 ret = PTR_ERR(lvds->supply); in panel_lvds_probe()
202 lvds->supply = NULL; in panel_lvds_probe()
Dpanel-tdo-tl070wsh30.c25 struct regulator *supply; member
45 err = regulator_enable(tdo_tl070wsh30->supply); in tdo_tl070wsh30_panel_prepare()
62 regulator_disable(tdo_tl070wsh30->supply); in tdo_tl070wsh30_panel_prepare()
71 regulator_disable(tdo_tl070wsh30->supply); in tdo_tl070wsh30_panel_prepare()
104 regulator_disable(tdo_tl070wsh30->supply); in tdo_tl070wsh30_panel_unprepare()
165 tdo_tl070wsh30->supply = devm_regulator_get(dev, "power"); in tdo_tl070wsh30_panel_add()
166 if (IS_ERR(tdo_tl070wsh30->supply)) in tdo_tl070wsh30_panel_add()
167 return PTR_ERR(tdo_tl070wsh30->supply); in tdo_tl070wsh30_panel_add()
Dpanel-panasonic-vvx10f034n00.c33 struct regulator *supply; member
75 regulator_disable(wuxga_nt->supply); in wuxga_nt_panel_unprepare()
104 ret = regulator_enable(wuxga_nt->supply); in wuxga_nt_panel_prepare()
125 regulator_disable(wuxga_nt->supply); in wuxga_nt_panel_prepare()
198 wuxga_nt->supply = devm_regulator_get(dev, "power"); in wuxga_nt_panel_add()
199 if (IS_ERR(wuxga_nt->supply)) in wuxga_nt_panel_add()
200 return PTR_ERR(wuxga_nt->supply); in wuxga_nt_panel_add()
Dpanel-innolux-ej030na.c36 struct regulator *supply; member
93 err = regulator_enable(priv->supply); in ej030na_prepare()
117 regulator_disable(priv->supply); in ej030na_prepare()
126 regulator_disable(priv->supply); in ej030na_unprepare()
200 priv->supply = devm_regulator_get(dev, "power"); in ej030na_probe()
201 if (IS_ERR(priv->supply)) { in ej030na_probe()
203 return PTR_ERR(priv->supply); in ej030na_probe()
Dpanel-kingdisplay-kd097d04.c24 struct regulator *supply; member
219 err = regulator_disable(kingdisplay->supply); in kingdisplay_panel_unprepare()
239 err = regulator_enable(kingdisplay->supply); in kingdisplay_panel_prepare()
285 regulator_err = regulator_disable(kingdisplay->supply); in kingdisplay_panel_prepare()
359 kingdisplay->supply = devm_regulator_get(dev, "power"); in kingdisplay_panel_add()
360 if (IS_ERR(kingdisplay->supply)) in kingdisplay_panel_add()
361 return PTR_ERR(kingdisplay->supply); in kingdisplay_panel_add()
Dpanel-sharp-ls043t1le01.c27 struct regulator *supply; member
127 regulator_disable(sharp_nt->supply); in sharp_nt_panel_unprepare()
144 ret = regulator_enable(sharp_nt->supply); in sharp_nt_panel_prepare()
176 regulator_disable(sharp_nt->supply); in sharp_nt_panel_prepare()
244 sharp_nt->supply = devm_regulator_get(dev, "avdd"); in sharp_nt_panel_add()
245 if (IS_ERR(sharp_nt->supply)) in sharp_nt_panel_add()
246 return PTR_ERR(sharp_nt->supply); in sharp_nt_panel_add()
Dpanel-samsung-s6d16d0.c20 struct regulator *supply; member
63 regulator_disable(s6->supply); in s6d16d0_unprepare()
74 ret = regulator_enable(s6->supply); in s6d16d0_prepare()
189 s6->supply = devm_regulator_get(dev, "vdd1"); in s6d16d0_probe()
190 if (IS_ERR(s6->supply)) in s6d16d0_probe()
191 return PTR_ERR(s6->supply); in s6d16d0_probe()
Dpanel-osd-osd101t2587-53ts.c22 struct regulator *supply; member
57 regulator_disable(osd101t2587->supply); in osd101t2587_panel_unprepare()
71 ret = regulator_enable(osd101t2587->supply); in osd101t2587_panel_prepare()
156 osd101t2587->supply = devm_regulator_get(dev, "power"); in osd101t2587_panel_add()
157 if (IS_ERR(osd101t2587->supply)) in osd101t2587_panel_add()
158 return PTR_ERR(osd101t2587->supply); in osd101t2587_panel_add()
Dpanel-ronbo-rb070d30.c30 struct regulator *supply; member
50 ret = regulator_enable(ctx->supply); in rb070d30_panel_prepare()
70 regulator_disable(ctx->supply); in rb070d30_panel_unprepare()
150 ctx->supply = devm_regulator_get(&dsi->dev, "vcc-lcd"); in rb070d30_panel_dsi_probe()
151 if (IS_ERR(ctx->supply)) in rb070d30_panel_dsi_probe()
152 return PTR_ERR(ctx->supply); in rb070d30_panel_dsi_probe()
Dpanel-khadas-ts050.c25 struct regulator *supply; member
592 err = regulator_enable(khadas_ts050->supply); in khadas_ts050_panel_prepare()
660 regulator_disable(khadas_ts050->supply); in khadas_ts050_panel_prepare()
684 err = regulator_disable(khadas_ts050->supply); in khadas_ts050_panel_unprepare()
775 khadas_ts050->supply = devm_regulator_get(dev, "power"); in khadas_ts050_panel_add()
776 if (IS_ERR(khadas_ts050->supply)) in khadas_ts050_panel_add()
777 return dev_err_probe(dev, PTR_ERR(khadas_ts050->supply), in khadas_ts050_panel_add()
Dpanel-novatek-nt39016.c60 struct regulator *supply; member
124 err = regulator_enable(panel->supply); in nt39016_prepare()
152 regulator_disable(panel->supply); in nt39016_prepare()
162 regulator_disable(panel->supply); in nt39016_unprepare()
260 panel->supply = devm_regulator_get(dev, "power"); in nt39016_probe()
261 if (IS_ERR(panel->supply)) { in nt39016_probe()
263 return PTR_ERR(panel->supply); in nt39016_probe()
Dpanel-abt-y030xx067a.c127 struct regulator *supply; member
167 err = regulator_enable(priv->supply); in y030xx067a_prepare()
191 regulator_disable(priv->supply); in y030xx067a_prepare()
200 regulator_disable(priv->supply); in y030xx067a_unprepare()
274 priv->supply = devm_regulator_get(dev, "power"); in y030xx067a_probe()
275 if (IS_ERR(priv->supply)) { in y030xx067a_probe()
277 return PTR_ERR(priv->supply); in y030xx067a_probe()
/drivers/soc/imx/
Dgpc.c45 struct regulator *supply; member
81 if (pd->supply) in imx6_pm_domain_power_off()
82 regulator_disable(pd->supply); in imx6_pm_domain_power_off()
93 if (pd->supply) { in imx6_pm_domain_power_on()
94 ret = regulator_enable(pd->supply); in imx6_pm_domain_power_on()
167 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt()
168 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt()
169 if (PTR_ERR(domain->supply) == -ENODEV) in imx_pgc_parse_dt()
170 domain->supply = NULL; in imx_pgc_parse_dt()
172 return PTR_ERR(domain->supply); in imx_pgc_parse_dt()
[all …]
/drivers/opp/
Dti-opp-supply.c217 struct dev_pm_opp_supply *supply, in _opp_set_voltage() argument
227 vdd_uv = supply->u_volt; in _opp_set_voltage()
240 uv_max = supply->u_volt_max; in _opp_set_voltage()
243 vdd_uv < supply->u_volt_min || in _opp_set_voltage()
244 supply->u_volt_min > uv_max) { in _opp_set_voltage()
247 supply->u_volt_min, vdd_uv, uv_max); in _opp_set_voltage()
252 vdd_uv, supply->u_volt_min, in _opp_set_voltage()
256 supply->u_volt_min, in _opp_set_voltage()
261 reg_name, vdd_uv, supply->u_volt_min, in _opp_set_voltage()
/drivers/leds/
Dleds-regulator.c29 static inline int led_regulator_get_max_brightness(struct regulator *supply) in led_regulator_get_max_brightness() argument
32 int voltage = regulator_list_voltage(supply, 0); in led_regulator_get_max_brightness()
41 ret = regulator_set_voltage(supply, voltage, voltage); in led_regulator_get_max_brightness()
45 return regulator_count_voltages(supply); in led_regulator_get_max_brightness()
48 static int led_regulator_get_voltage(struct regulator *supply, in led_regulator_get_voltage() argument
54 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage()
/drivers/soc/mediatek/
Dmtk-pm-domains.c45 struct regulator *supply; member
193 static int scpsys_regulator_enable(struct regulator *supply) in scpsys_regulator_enable() argument
195 return supply ? regulator_enable(supply) : 0; in scpsys_regulator_enable()
198 static int scpsys_regulator_disable(struct regulator *supply) in scpsys_regulator_disable() argument
200 return supply ? regulator_disable(supply) : 0; in scpsys_regulator_disable()
210 ret = scpsys_regulator_enable(pd->supply); in scpsys_power_on()
253 scpsys_regulator_disable(pd->supply); in scpsys_power_on()
289 scpsys_regulator_disable(pd->supply); in scpsys_power_off()
342 pd->supply = devm_regulator_get(scpsys->dev, "domain"); in scpsys_add_one_domain()
344 if (IS_ERR(pd->supply)) { in scpsys_add_one_domain()
[all …]
/drivers/power/supply/
Daxp20x_ac_power.c44 struct power_supply *supply; member
56 power_supply_changed(power->supply); in axp20x_ac_power_irq()
297 if (device_may_wakeup(&power->supply->dev)) in axp20x_ac_power_suspend()
310 if (device_may_wakeup(&power->supply->dev)) in axp20x_ac_power_resume()
371 power->supply = devm_power_supply_register(&pdev->dev, in axp20x_ac_power_probe()
374 if (IS_ERR(power->supply)) in axp20x_ac_power_probe()
375 return PTR_ERR(power->supply); in axp20x_ac_power_probe()

12345678910