Searched refs:regulators (Results 1 - 25 of 106) sorted by last modified time

12345

/linux-master/include/linux/
H A Dpm_opp.h51 struct regulator **regulators, unsigned int count);
656 /* config-regulators helpers */
/linux-master/drivers/regulator/
H A Dpfuze100-regulator.c78 struct regulator_dev *regulators[PFUZE100_MAX_REGULATOR]; member in struct:pfuze_chip
522 parent = of_get_child_by_name(np, "regulators");
524 dev_err(dev, "regulators node not found\n");
732 /* use the right regulators after identify the right device */
806 * Allow SW regulators to turn off. Checking it trough a flag is
828 pfuze_chip->regulators[i] =
830 if (IS_ERR(pfuze_chip->regulators[i])) {
833 return PTR_ERR(pfuze_chip->regulators[i]);
H A Daxp20x-regulator.c2 * AXP20x regulators driver.
357 .regulators_node = of_match_ptr("regulators"), \
379 .regulators_node = of_match_ptr("regulators"), \
398 .regulators_node = of_match_ptr("regulators"), \
412 .regulators_node = of_match_ptr("regulators"), \
427 .regulators_node = of_match_ptr("regulators"), \
711 .regulators_node = of_match_ptr("regulators"),
1374 struct device_node *np, *regulators; local
1382 regulators = of_get_child_by_name(np, "regulators");
1532 const struct regulator_desc *regulators; local
[all...]
H A Dmax8997-regulator.c836 static struct regulator_desc regulators[] = { variable in typeref:struct:regulator_desc
889 regulators_np = of_get_child_by_name(pmic_np, "regulators");
891 dev_err(&pdev->dev, "could not find regulators sub-node\n");
895 /* count the number of regulators to be supported in pmic */
906 pdata->regulators = rdata;
908 for (i = 0; i < ARRAY_SIZE(regulators); i++)
909 if (of_node_name_eq(reg_np, regulators[i].name))
912 if (i == ARRAY_SIZE(regulators)) {
921 &regulators[i]);
1126 int id = pdata->regulators[
[all...]
H A Dmax8998.c513 static const struct regulator_desc regulators[] = { variable in typeref:struct:regulator_desc
552 regulators_np = of_get_child_by_name(pmic_np, "regulators");
554 dev_err(iodev->dev, "could not find regulators sub-node\n");
558 /* count the number of regulators to be supported in pmic */
569 pdata->regulators = rdata;
570 for (i = 0; i < ARRAY_SIZE(regulators); ++i) {
572 regulators[i].name);
576 rdata->id = regulators[i].id;
579 &regulators[i]);
583 pdata->num_regulators = rdata - pdata->regulators;
[all...]
H A Dlp87565-regulator.c34 .regulators_node = "regulators", \
60 static const struct lp87565_regulator regulators[]; variable in typeref:struct:lp87565_regulator
101 ret = regmap_update_bits(rdev->regmap, regulators[id].ctrl2_reg,
133 static const struct lp87565_regulator regulators[] = { variable in typeref:struct:lp87565_regulator
219 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc,
H A Dlp873x-regulator.c23 .regulators_node = of_match_ptr("regulators"),\
48 static const struct lp873x_regulator regulators[]; variable in typeref:struct:lp873x_regulator
95 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg,
134 static const struct lp873x_regulator regulators[] = { variable in typeref:struct:lp873x_regulator
169 for (i = 0; i < ARRAY_SIZE(regulators); i++) {
170 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc,
H A Dda9055-regulator.c335 .regulators_node = of_match_ptr("regulators"),\
365 .regulators_node = of_match_ptr("regulators"),\
533 config.init_data = pdata->regulators[pdev->id];
H A Drk808-regulator.c82 .regulators_node = of_match_ptr("regulators"), \
106 .regulators_node = of_match_ptr("regulators"), \
135 .regulators_node = of_match_ptr("regulators"),\
172 .regulators_node = of_match_ptr("regulators"), \
962 .regulators_node = of_match_ptr("regulators"),
978 .regulators_node = of_match_ptr("regulators"),
994 .regulators_node = of_match_ptr("regulators"),
1130 .regulators_node = of_match_ptr("regulators"),
1150 .regulators_node = of_match_ptr("regulators"),
1170 .regulators_node = of_match_ptr("regulators"),
1669 const struct regulator_desc *regulators; local
[all...]
H A Dmax5970-regulator.c3 * Device driver for regulators in MAX5970 and MAX5978 IC
370 .regulators_node = of_match_ptr("regulators"), \
380 static const struct regulator_desc regulators[] = { variable in typeref:struct:regulator_desc
610 &regulators[i], &config);
613 regulators[i].name);
/linux-master/drivers/of/
H A Dproperty.c1257 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
/linux-master/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_core.c2635 /* vdd-vddio power regulators */
2636 static const char * const regulators[] = { "vdd", "vddio" }; local
2639 err = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(regulators),
2640 regulators);
2642 return dev_err_probe(dev, err, "failed to enable regulators\n");
/linux-master/drivers/iio/adc/
H A Dad4130.c266 struct regulator_bulk_data regulators[4]; member in struct:ad4130_state
1384 return regulator_get_voltage(st->regulators[2].consumer);
1386 return regulator_get_voltage(st->regulators[3].consumer);
1388 return regulator_get_voltage(st->regulators[0].consumer);
1679 avdd_uv = regulator_get_voltage(st->regulators[0].consumer);
1935 regulator_bulk_disable(ARRAY_SIZE(st->regulators), st->regulators);
1976 st->regulators[0].supply = "avdd";
1977 st->regulators[1].supply = "iovdd";
1978 st->regulators[
[all...]
/linux-master/drivers/media/i2c/
H A Dmt9p031.c130 struct regulator_bulk_data regulators[3]; member in struct:mt9p031
320 ret = regulator_bulk_enable(ARRAY_SIZE(mt9p031->regulators),
321 mt9p031->regulators);
329 regulator_bulk_disable(ARRAY_SIZE(mt9p031->regulators),
330 mt9p031->regulators);
356 regulator_bulk_disable(ARRAY_SIZE(mt9p031->regulators),
357 mt9p031->regulators);
1132 mt9p031->regulators[0].supply = "vdd";
1133 mt9p031->regulators[1].supply = "vdd_io";
1134 mt9p031->regulators[
[all...]
/linux-master/include/linux/mfd/
H A Dmax8997.h167 struct max8997_regulator_data *regulators; member in struct:max8997_platform_data
H A Dmax8998.h59 * @regulators: array of defined regulators
60 * @num_regulators: number of regulators used
84 struct max8998_regulator_data *regulators; member in struct:max8998_platform_data
/linux-master/include/linux/mfd/da9055/
H A Dpdata.h22 struct regulator_init_data *regulators[DA9055_MAX_REGULATORS]; member in struct:da9055_pdata
/linux-master/drivers/video/fbdev/
H A Dsimplefb.c90 struct regulator **regulators; member in struct:simplefb_par
337 * that any regulators needed by the display hardware that the bootloader
342 * regulators.
373 par->regulators = devm_kcalloc(&pdev->dev, count,
375 if (!par->regulators)
378 /* Get all the regulators */
396 par->regulators[i++] = regulator;
408 /* Enable all the regulators */
410 ret = regulator_enable(par->regulators[i]);
415 devm_regulator_put(par->regulators[
[all...]
/linux-master/drivers/opp/
H A Dcore.c316 if (!opp_table->regulators)
349 reg = opp_table->regulators[i];
1008 struct regulator **regulators, unsigned int count)
1010 struct regulator *reg = regulators[0];
1015 dev_err(dev, "multiple regulators are not supported\n");
1025 * some boot-enabled regulators.
1171 if (opp_table->regulators)
1172 regulator_disable(opp_table->regulators[0]);
1235 opp_table->regulators,
1255 opp_table->regulators,
1006 _opp_config_regulator_single(struct device *dev, struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, struct regulator **regulators, unsigned int count) argument
[all...]
/linux-master/drivers/mfd/
H A Drohm-bd9576.c138 struct mfd_cell *regulators; local
140 regulators = &bd9576_mfd_cells[BD957X_REGULATOR_CELL];
141 regulators->resources = bd9576_regulator_irqs;
142 regulators->num_resources = ARRAY_SIZE(bd9576_regulator_irqs);
H A Dmc13xxx-core.c470 &pdata->regulators, sizeof(pdata->regulators));
/linux-master/drivers/media/i2c/ccs/
H A Dccs-core.c1557 sensor->regulators);
1685 sensor->regulators);
1712 sensor->regulators);
3233 sensor->regulators = devm_kcalloc(&client->dev,
3235 sizeof(*sensor->regulators),
3237 if (!sensor->regulators)
3241 sensor->regulators[i].supply = ccs_regulators[i];
3244 sensor->regulators);
3246 dev_err(&client->dev, "could not get regulators\n");
/linux-master/drivers/leds/
H A Dleds-aw2013.c65 struct regulator_bulk_data regulators[2]; member in struct:aw2013
109 ret = regulator_bulk_disable(ARRAY_SIZE(chip->regulators),
110 chip->regulators);
113 "Failed to disable regulators: %d\n", ret);
127 ret = regulator_bulk_enable(ARRAY_SIZE(chip->regulators),
128 chip->regulators);
131 "Failed to enable regulators: %d\n", ret);
353 chip->regulators[0].supply = "vcc";
354 chip->regulators[1].supply = "vio";
356 ARRAY_SIZE(chip->regulators),
[all...]
/linux-master/drivers/misc/lis3lv02d/
H A Dlis3lv02d_i2c.c35 ret = regulator_bulk_disable(ARRAY_SIZE(lis3->regulators),
36 lis3->regulators);
38 ret = regulator_bulk_enable(ARRAY_SIZE(lis3->regulators),
39 lis3->regulators);
140 lis3_dev.regulators[0].supply = reg_vdd;
141 lis3_dev.regulators[1].supply = reg_vdd_io;
143 ARRAY_SIZE(lis3_dev.regulators),
144 lis3_dev.regulators);
172 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators),
173 lis3_dev.regulators);
[all...]
/linux-master/drivers/input/touchscreen/
H A Datmel_mxt_ts.c316 struct regulator_bulk_data regulators[2]; member in struct:mxt_data
3270 data->regulators[0].supply = "vdda";
3271 data->regulators[1].supply = "vdd";
3272 error = devm_regulator_bulk_get(&client->dev, ARRAY_SIZE(data->regulators),
3273 data->regulators);
3276 dev_err(&client->dev, "Failed to get regulators %d\n",
3308 error = regulator_bulk_enable(ARRAY_SIZE(data->regulators),
3309 data->regulators);
3311 dev_err(&client->dev, "failed to enable regulators: %d\n",
3364 regulator_bulk_disable(ARRAY_SIZE(data->regulators),
[all...]

Completed in 360 milliseconds

12345