Home
last modified time | relevance | path

Searched refs:regulators (Results 1 – 25 of 106) sorted by relevance

12345

/drivers/media/platform/qcom/camss/
A Dcamss.c40 .regulators = {},
57 .regulators = {},
132 .regulators = {},
242 .regulators = {},
268 .regulators = {},
314 .regulators = {},
331 .regulators = {},
348 .regulators = {},
469 .regulators = {},
494 .regulators = {},
[all …]
/drivers/regulator/
A DKconfig21 regulators.
38 managed regulators and simple non-configurable regulators.
250 and LDO regulators.
262 and LDO regulators.
295 and LDO regulators.
308 tristate "ChromeOS EC regulators"
985 regulators.
1396 regulators.
1433 regulators and switches. The STPMIC1 regulators supply power to
1607 voltage regulators.
[all …]
A Ds5m8767.c522 pdata->regulators = rdata; in s5m8767_pmic_dt_parse_pdata()
529 if (i == ARRAY_SIZE(regulators)) { in s5m8767_pmic_dt_parse_pdata()
552 &regulators[i]); in s5m8767_pmic_dt_parse_pdata()
856 regulators[id].n_voltages = in s5m8767_pmic_probe()
858 regulators[id].min_uV = desc->min; in s5m8767_pmic_probe()
859 regulators[id].uV_step = desc->step; in s5m8767_pmic_probe()
860 regulators[id].vsel_reg = in s5m8767_pmic_probe()
863 regulators[id].vsel_mask = 0x3f; in s5m8767_pmic_probe()
865 regulators[id].vsel_mask = 0xff; in s5m8767_pmic_probe()
873 regulators[id].enable_reg = enable_reg; in s5m8767_pmic_probe()
[all …]
A Dwm8400-regulator.c115 static const struct regulator_desc regulators[] = { variable
204 struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); in wm8400_regulator_probe()
213 rdev = devm_regulator_register(&pdev->dev, &regulators[pdev->id], in wm8400_regulator_probe()
247 if (wm8400->regulators[reg].name) in wm8400_register_regulator()
252 wm8400->regulators[reg].name = "wm8400-regulator"; in wm8400_register_regulator()
253 wm8400->regulators[reg].id = reg; in wm8400_register_regulator()
254 wm8400->regulators[reg].dev.parent = dev; in wm8400_register_regulator()
255 wm8400->regulators[reg].dev.platform_data = initdata; in wm8400_register_regulator()
257 return platform_device_register(&wm8400->regulators[reg]); in wm8400_register_regulator()
A Daxp20x-regulator.c1399 if (!regulators) { in axp20x_regulator_parse_dt()
1407 of_node_put(regulators); in axp20x_regulator_parse_dt()
1573 regulators = axp20x_regulators; in axp20x_regulator_probe()
1578 regulators = axp22x_regulators; in axp20x_regulator_probe()
1589 regulators = axp717_regulators; in axp20x_regulator_probe()
1593 regulators = axp803_regulators; in axp20x_regulator_probe()
1599 regulators = axp806_regulators; in axp20x_regulator_probe()
1660 *new_desc = regulators[i]; in axp20x_regulator_probe()
1673 *new_desc = regulators[i]; in axp20x_regulator_probe()
1685 *new_desc = regulators[i]; in axp20x_regulator_probe()
[all …]
A Dmax8998.c569 pdata->regulators = rdata; in max8998_pmic_dt_parse_pdata()
570 for (i = 0; i < ARRAY_SIZE(regulators); ++i) { in max8998_pmic_dt_parse_pdata()
572 regulators[i].name); in max8998_pmic_dt_parse_pdata()
576 rdata->id = regulators[i].id; in max8998_pmic_dt_parse_pdata()
579 &regulators[i]); in max8998_pmic_dt_parse_pdata()
701 while (regulators[index].min_uV + in max8998_pmic_probe()
702 regulators[index].uV_step * i in max8998_pmic_probe()
720 while (regulators[index].min_uV + in max8998_pmic_probe()
721 regulators[index].uV_step * i in max8998_pmic_probe()
737 config.of_node = pdata->regulators[i].reg_node; in max8998_pmic_probe()
[all …]
A Drn5t618-regulator.c104 const struct regulator_desc *regulators; in rn5t618_regulator_probe() local
110 regulators = rn5t567_regulators; in rn5t618_regulator_probe()
114 regulators = rn5t618_regulators; in rn5t618_regulator_probe()
118 regulators = rc5t619_regulators; in rn5t618_regulator_probe()
130 &regulators[i], in rn5t618_regulator_probe()
134 regulators[i].name); in rn5t618_regulator_probe()
A Dda9062-regulator.c891 struct da9062_regulators *regulators = data; in da9062_ldo_lim_event() local
905 regl = &regulators->regulator[i]; in da9062_ldo_lim_event()
923 struct da9062_regulators *regulators; in da9062_regulator_probe() local
945 regulators = devm_kzalloc(&pdev->dev, struct_size(regulators, regulator, in da9062_regulator_probe()
947 if (!regulators) in da9062_regulator_probe()
950 regulators->n_regulators = max_regulators; in da9062_regulator_probe()
951 platform_set_drvdata(pdev, regulators); in da9062_regulator_probe()
955 regl = &regulators->regulator[n]; in da9062_regulator_probe()
1016 if (regulators->irq_ldo_lim < 0) in da9062_regulator_probe()
1022 "LDO_LIM", regulators); in da9062_regulator_probe()
[all …]
A Dhi655x-regulator.c150 static const struct hi655x_regulator regulators[] = { variable
184 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in hi655x_regulator_probe()
185 config.driver_data = (void *) &regulators[i]; in hi655x_regulator_probe()
188 &regulators[i].rdesc, in hi655x_regulator_probe()
192 regulators[i].rdesc.name); in hi655x_regulator_probe()
A Dlp873x-regulator.c48 static const struct lp873x_regulator regulators[]; variable
95 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
134 static const struct lp873x_regulator regulators[] = { variable
169 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in lp873x_regulator_probe()
170 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in lp873x_regulator_probe()
A Dtps65086-regulator.c307 struct tps65086_regulator *regulators = tps->reg_config->config; in tps65086_of_parse_cb() local
316 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb()
318 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb()
324 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb()
326 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb()
337 regulators[desc->id].decay_reg, in tps65086_of_parse_cb()
338 regulators[desc->id].decay_mask, in tps65086_of_parse_cb()
339 regulators[desc->id].decay_mask); in tps65086_of_parse_cb()
/drivers/input/keyboard/
A Dcypress-sf.c25 struct regulator_bulk_data regulators[2]; member
68 regulator_bulk_disable(ARRAY_SIZE(touchkey->regulators), in cypress_sf_disable_regulators()
69 touchkey->regulators); in cypress_sf_disable_regulators()
84 touchkey->regulators[0].supply = "vdd"; in cypress_sf_probe()
85 touchkey->regulators[1].supply = "avdd"; in cypress_sf_probe()
88 ARRAY_SIZE(touchkey->regulators), in cypress_sf_probe()
89 touchkey->regulators); in cypress_sf_probe()
124 error = regulator_bulk_enable(ARRAY_SIZE(touchkey->regulators), in cypress_sf_probe()
125 touchkey->regulators); in cypress_sf_probe()
180 touchkey->regulators); in cypress_sf_suspend()
[all …]
A Dtm2-touchkey.c50 struct regulator_bulk_data regulators[3]; member
114 error = regulator_bulk_enable(ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_power_enable()
115 touchkey->regulators); in tm2_touchkey_power_enable()
129 regulator_bulk_disable(ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_power_disable()
130 touchkey->regulators); in tm2_touchkey_power_disable()
205 touchkey->regulators[0].supply = "vcc"; in tm2_touchkey_probe()
206 touchkey->regulators[1].supply = "vdd"; in tm2_touchkey_probe()
207 touchkey->regulators[2].supply = "vddio"; in tm2_touchkey_probe()
209 ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_probe()
210 touchkey->regulators); in tm2_touchkey_probe()
[all …]
/drivers/input/touchscreen/
A Dnovatek-nvt-ts.c60 struct regulator_bulk_data regulators[2]; member
150 error = regulator_bulk_enable(ARRAY_SIZE(data->regulators), data->regulators); in nvt_ts_start()
168 regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators); in nvt_ts_stop()
225 data->regulators[0].supply = "vcc"; in nvt_ts_probe()
226 data->regulators[1].supply = "iovcc"; in nvt_ts_probe()
227 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(data->regulators), data->regulators); in nvt_ts_probe()
233 error = regulator_bulk_enable(ARRAY_SIZE(data->regulators), data->regulators); in nvt_ts_probe()
242 regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators); in nvt_ts_probe()
252 regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators); in nvt_ts_probe()
A Dcy8ctma140.c49 struct regulator_bulk_data regulators[2]; member
175 error = regulator_bulk_enable(ARRAY_SIZE(ts->regulators), in cy8ctma140_power_up()
176 ts->regulators); in cy8ctma140_power_up()
189 regulator_bulk_disable(ARRAY_SIZE(ts->regulators), in cy8ctma140_power_down()
190 ts->regulators); in cy8ctma140_power_down()
257 ts->regulators[0].supply = "vcpin"; in cy8ctma140_probe()
258 ts->regulators[1].supply = "vdd"; in cy8ctma140_probe()
259 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(ts->regulators), in cy8ctma140_probe()
260 ts->regulators); in cy8ctma140_probe()
A Ds6sy761.c103 struct regulator_bulk_data regulators[2]; member
297 ret = regulator_bulk_enable(ARRAY_SIZE(sdata->regulators), in s6sy761_power_on()
298 sdata->regulators); in s6sy761_power_on()
385 regulator_bulk_disable(ARRAY_SIZE(sdata->regulators), in s6sy761_power_off()
386 sdata->regulators); in s6sy761_power_off()
407 sdata->regulators[S6SY761_REGULATOR_VDD].supply = "vdd"; in s6sy761_probe()
408 sdata->regulators[S6SY761_REGULATOR_AVDD].supply = "avdd"; in s6sy761_probe()
410 ARRAY_SIZE(sdata->regulators), in s6sy761_probe()
411 sdata->regulators); in s6sy761_probe()
/drivers/misc/lis3lv02d/
A Dlis3lv02d_i2c.c36 lis3->regulators); in lis3_reg_ctrl()
38 ret = regulator_bulk_enable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
39 lis3->regulators); in lis3_reg_ctrl()
140 lis3_dev.regulators[0].supply = reg_vdd; in lis3lv02d_i2c_probe()
141 lis3_dev.regulators[1].supply = reg_vdd_io; in lis3lv02d_i2c_probe()
143 ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe()
144 lis3_dev.regulators); in lis3lv02d_i2c_probe()
172 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe()
173 lis3_dev.regulators); in lis3lv02d_i2c_probe()
191 regulator_bulk_free(ARRAY_SIZE(lis3->regulators), in lis3lv02d_i2c_remove()
[all …]
/drivers/leds/
A Dleds-aw2013.c65 struct regulator_bulk_data regulators[2]; member
110 chip->regulators); in aw2013_chip_disable()
128 chip->regulators); in aw2013_chip_enable()
359 chip->regulators[0].supply = "vcc"; in aw2013_probe()
360 chip->regulators[1].supply = "vio"; in aw2013_probe()
362 ARRAY_SIZE(chip->regulators), in aw2013_probe()
363 chip->regulators); in aw2013_probe()
372 chip->regulators); in aw2013_probe()
402 chip->regulators); in aw2013_probe()
414 regulator_bulk_disable(ARRAY_SIZE(chip->regulators), in aw2013_probe()
[all …]
/drivers/gpu/drm/panel/
A Dpanel-samsung-db7430.c62 struct regulator_bulk_data regulators[2]; member
95 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators), in db7430_power_on()
96 db->regulators); in db7430_power_on()
168 return regulator_bulk_disable(ARRAY_SIZE(db->regulators), in db7430_power_off()
169 db->regulators); in db7430_power_off()
281 db->regulators[0].supply = "vci"; in db7430_probe()
282 db->regulators[1].supply = "vccio"; in db7430_probe()
284 ARRAY_SIZE(db->regulators), in db7430_probe()
285 db->regulators); in db7430_probe()
A Dpanel-samsung-s6d27a1.c47 struct regulator_bulk_data regulators[2]; member
104 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->regulators), in s6d27a1_power_on()
105 ctx->regulators); in s6d27a1_power_on()
167 return regulator_bulk_disable(ARRAY_SIZE(ctx->regulators), in s6d27a1_power_off()
168 ctx->regulators); in s6d27a1_power_off()
262 ctx->regulators[0].supply = "vci"; in s6d27a1_probe()
263 ctx->regulators[1].supply = "vccio"; in s6d27a1_probe()
265 ARRAY_SIZE(ctx->regulators), in s6d27a1_probe()
266 ctx->regulators); in s6d27a1_probe()
A Dpanel-widechips-ws2401.c75 struct regulator_bulk_data regulators[2]; member
134 ret = regulator_bulk_enable(ARRAY_SIZE(ws->regulators), in ws2401_power_on()
135 ws->regulators); in ws2401_power_on()
227 return regulator_bulk_disable(ARRAY_SIZE(ws->regulators), in ws2401_power_off()
228 ws->regulators); in ws2401_power_off()
361 ws->regulators[0].supply = "vci"; in ws2401_probe()
362 ws->regulators[1].supply = "vccio"; in ws2401_probe()
364 ARRAY_SIZE(ws->regulators), in ws2401_probe()
365 ws->regulators); in ws2401_probe()
/drivers/leds/rgb/
A Dleds-ktd202x.c98 struct regulator_bulk_data regulators[2]; member
115 ret = regulator_bulk_disable(ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_chip_disable()
132 ret = regulator_bulk_enable(ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_chip_enable()
563 chip->regulators[0].supply = "vin"; in ktd202x_probe()
564 chip->regulators[1].supply = "vio"; in ktd202x_probe()
565 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_probe()
571 ret = regulator_bulk_enable(ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_probe()
579 regulator_bulk_disable(ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_probe()
583 ret = regulator_bulk_disable(ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_probe()
/drivers/mfd/
A Drohm-bd9576.c138 struct mfd_cell *regulators; in bd957x_i2c_probe() local
140 regulators = &bd9576_mfd_cells[BD957X_REGULATOR_CELL]; in bd957x_i2c_probe()
141 regulators->resources = bd9576_regulator_irqs; in bd957x_i2c_probe()
142 regulators->num_resources = ARRAY_SIZE(bd9576_regulator_irqs); in bd957x_i2c_probe()
/drivers/gpu/drm/sysfb/
A Dsimpledrm.c219 struct regulator **regulators; member
364 if (sdev->regulators[i]) { in simpledrm_device_release_regulators()
365 regulator_disable(sdev->regulators[i]); in simpledrm_device_release_regulators()
366 regulator_put(sdev->regulators[i]); in simpledrm_device_release_regulators()
395 sdev->regulators = drmm_kzalloc(dev, in simpledrm_device_init_regulators()
396 count * sizeof(sdev->regulators[0]), in simpledrm_device_init_regulators()
398 if (!sdev->regulators) in simpledrm_device_init_regulators()
429 sdev->regulators[i++] = regulator; in simpledrm_device_init_regulators()
440 if (sdev->regulators[i]) { in simpledrm_device_init_regulators()
441 regulator_disable(sdev->regulators[i]); in simpledrm_device_init_regulators()
[all …]
/drivers/video/fbdev/
A Dsimplefb.c90 struct regulator **regulators; member
364 par->regulators = devm_kcalloc(&pdev->dev, count, in simplefb_regulators_get()
366 if (!par->regulators) in simplefb_regulators_get()
387 par->regulators[i++] = regulator; in simplefb_regulators_get()
401 ret = regulator_enable(par->regulators[i]); in simplefb_regulators_enable()
406 devm_regulator_put(par->regulators[i]); in simplefb_regulators_enable()
407 par->regulators[i] = NULL; in simplefb_regulators_enable()
417 if (!par->regulators || !par->regulators_enabled) in simplefb_regulators_destroy()
421 if (par->regulators[i]) in simplefb_regulators_destroy()
422 regulator_disable(par->regulators[i]); in simplefb_regulators_destroy()

Completed in 780 milliseconds

12345