/drivers/regulator/ |
D | Kconfig | 9 and current regulators within the Linux kernel. It's intended to 16 to both voltage regulators (where voltage output is controllable) and 21 regulators. 36 This driver provides support for fixed voltage regulators, 38 managed regulators and simple non-configurable regulators. 60 tristate "Marvell 88PG86X voltage regulators" 64 This driver supports Marvell 88PG867 and 88PG868 voltage regulators. 69 tristate "Marvell 88PM800 Power regulators" 79 tristate "Marvell 88PM8607 Power regulators" 99 and four low-dropout linear regulators, along with a ActivePath [all …]
|
D | tps65086-regulator.c | 125 static struct tps65086_regulator regulators[] = { variable 177 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb() 179 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb() 185 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb() 187 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb() 198 regulators[desc->id].decay_reg, in tps65086_of_parse_cb() 199 regulators[desc->id].decay_mask, in tps65086_of_parse_cb() 200 regulators[desc->id].decay_mask); in tps65086_of_parse_cb() 224 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in tps65086_regulator_probe() 225 rdev = devm_regulator_register(&pdev->dev, ®ulators[i].desc, in tps65086_regulator_probe()
|
D | s5m8767.c | 384 static struct regulator_desc regulators[] = { variable 560 pdata->regulators = rdata; in s5m8767_pmic_dt_parse_pdata() 563 for (i = 0; i < ARRAY_SIZE(regulators); i++) in s5m8767_pmic_dt_parse_pdata() 564 if (of_node_name_eq(reg_np, regulators[i].name)) in s5m8767_pmic_dt_parse_pdata() 567 if (i == ARRAY_SIZE(regulators)) { in s5m8767_pmic_dt_parse_pdata() 591 ®ulators[i]); in s5m8767_pmic_dt_parse_pdata() 926 unsigned int id = pdata->regulators[i].id; in s5m8767_pmic_probe() 930 BUILD_BUG_ON(ARRAY_SIZE(regulators) != ARRAY_SIZE(reg_voltage_map)); in s5m8767_pmic_probe() 931 if (WARN_ON_ONCE(id >= ARRAY_SIZE(regulators))) in s5m8767_pmic_probe() 936 regulators[id].n_voltages = in s5m8767_pmic_probe() [all …]
|
D | wm8400-regulator.c | 115 static 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, ®ulators[pdev->id], in wm8400_regulator_probe() 246 if (wm8400->regulators[reg].name) in wm8400_register_regulator() 251 wm8400->regulators[reg].name = "wm8400-regulator"; in wm8400_register_regulator() 252 wm8400->regulators[reg].id = reg; in wm8400_register_regulator() 253 wm8400->regulators[reg].dev.parent = dev; in wm8400_register_regulator() 254 wm8400->regulators[reg].dev.platform_data = initdata; in wm8400_register_regulator() 256 return platform_device_register(&wm8400->regulators[reg]); in wm8400_register_regulator()
|
D | axp20x-regulator.c | 1072 struct device_node *np, *regulators; in axp20x_regulator_parse_dt() local 1080 regulators = of_get_child_by_name(np, "regulators"); in axp20x_regulator_parse_dt() 1081 if (!regulators) { in axp20x_regulator_parse_dt() 1084 of_property_read_u32(regulators, "x-powers,dcdc-freq", &dcdcfreq); in axp20x_regulator_parse_dt() 1089 of_node_put(regulators); in axp20x_regulator_parse_dt() 1210 const struct regulator_desc *regulators; in axp20x_regulator_probe() local 1225 regulators = axp20x_regulators; in axp20x_regulator_probe() 1230 regulators = axp22x_regulators; in axp20x_regulator_probe() 1236 regulators = axp803_regulators; in axp20x_regulator_probe() 1242 regulators = axp806_regulators; in axp20x_regulator_probe() [all …]
|
D | max8998.c | 512 static const struct regulator_desc regulators[] = { variable 598 pdata->regulators = rdata; in max8998_pmic_dt_parse_pdata() 599 for (i = 0; i < ARRAY_SIZE(regulators); ++i) { in max8998_pmic_dt_parse_pdata() 601 regulators[i].name); in max8998_pmic_dt_parse_pdata() 605 rdata->id = regulators[i].id; in max8998_pmic_dt_parse_pdata() 608 ®ulators[i]); in max8998_pmic_dt_parse_pdata() 612 pdata->num_regulators = rdata - pdata->regulators; in max8998_pmic_dt_parse_pdata() 733 while (regulators[index].min_uV + in max8998_pmic_probe() 734 regulators[index].uV_step * i in max8998_pmic_probe() 763 while (regulators[index].min_uV + in max8998_pmic_probe() [all …]
|
D | rn5t618-regulator.c | 104 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 ®ulators[i], in rn5t618_regulator_probe() 134 regulators[i].name); in rn5t618_regulator_probe()
|
D | lp873x-regulator.c | 55 static const struct lp873x_regulator regulators[]; variable 102 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay() 141 static const struct lp873x_regulator regulators[] = { variable 176 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in lp873x_regulator_probe() 177 rdev = devm_regulator_register(&pdev->dev, ®ulators[i].desc, in lp873x_regulator_probe()
|
D | hi655x-regulator.c | 150 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 *) ®ulators[i]; in hi655x_regulator_probe() 188 ®ulators[i].rdesc, in hi655x_regulator_probe() 192 regulators[i].rdesc.name); in hi655x_regulator_probe()
|
D | da9063-regulator.c | 690 struct da9063_regulators *regulators = data; in da9063_ldo_lim_event() local 691 struct da9063 *hw = regulators->regulator[0].hw; in da9063_ldo_lim_event() 699 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9063_ldo_lim_event() 700 regl = ®ulators->regulator[i]; in da9063_ldo_lim_event() 813 struct da9063_regulators *regulators; in da9063_regulator_probe() local 858 regulators = devm_kzalloc(&pdev->dev, struct_size(regulators, in da9063_regulator_probe() 860 if (!regulators) in da9063_regulator_probe() 863 regulators->n_regulators = n_regulators; in da9063_regulator_probe() 864 platform_set_drvdata(pdev, regulators); in da9063_regulator_probe() 869 while (n < regulators->n_regulators) { in da9063_regulator_probe() [all …]
|
D | da9062-regulator.c | 891 struct da9062_regulators *regulators = data; in da9062_ldo_lim_event() local 892 struct da9062 *hw = regulators->regulator[0].hw; in da9062_ldo_lim_event() 904 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9062_ldo_lim_event() 905 regl = ®ulators->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() 953 for (n = 0; n < regulators->n_regulators; n++) { in da9062_regulator_probe() [all …]
|
D | max77693-regulator.c | 232 const struct regulator_desc *regulators; in max77693_pmic_probe() local 241 regulators = max77693_supported_regulators; in max77693_pmic_probe() 246 regulators = max77843_supported_regulators; in max77693_pmic_probe() 259 regulators[i].id); in max77693_pmic_probe() 262 ®ulators[i], &config); in max77693_pmic_probe()
|
/drivers/misc/lis3lv02d/ |
D | lis3lv02d_i2c.c | 35 ret = regulator_bulk_disable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl() 36 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() 141 lis3_dev.regulators[0].supply = reg_vdd; in lis3lv02d_i2c_probe() 142 lis3_dev.regulators[1].supply = reg_vdd_io; in lis3lv02d_i2c_probe() 144 ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe() 145 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() [all …]
|
/drivers/input/keyboard/ |
D | tm2-touchkey.c | 51 struct regulator_bulk_data regulators[3]; member 115 error = regulator_bulk_enable(ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_power_enable() 116 touchkey->regulators); in tm2_touchkey_power_enable() 130 regulator_bulk_disable(ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_power_disable() 131 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/gpu/drm/panel/ |
D | panel-samsung-db7430.c | 66 struct regulator_bulk_data regulators[2]; member 99 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators), in db7430_power_on() 100 db->regulators); in db7430_power_on() 172 return regulator_bulk_disable(ARRAY_SIZE(db->regulators), in db7430_power_off() 173 db->regulators); in db7430_power_off() 283 db->regulators[0].supply = "vci"; in db7430_probe() 284 db->regulators[1].supply = "vccio"; in db7430_probe() 286 ARRAY_SIZE(db->regulators), in db7430_probe() 287 db->regulators); in db7430_probe()
|
D | panel-widechips-ws2401.c | 75 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() 359 ws->regulators[0].supply = "vci"; in ws2401_probe() 360 ws->regulators[1].supply = "vccio"; in ws2401_probe() 362 ARRAY_SIZE(ws->regulators), in ws2401_probe() 363 ws->regulators); in ws2401_probe()
|
/drivers/input/touchscreen/ |
D | cy8ctma140.c | 49 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() 258 ts->regulators[0].supply = "vcpin"; in cy8ctma140_probe() 259 ts->regulators[1].supply = "vdd"; in cy8ctma140_probe() 260 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(ts->regulators), in cy8ctma140_probe() 261 ts->regulators); in cy8ctma140_probe()
|
D | s6sy761.c | 103 struct regulator_bulk_data regulators[2]; member 300 ret = regulator_bulk_enable(ARRAY_SIZE(sdata->regulators), in s6sy761_power_on() 301 sdata->regulators); in s6sy761_power_on() 388 regulator_bulk_disable(ARRAY_SIZE(sdata->regulators), in s6sy761_power_off() 389 sdata->regulators); in s6sy761_power_off() 411 sdata->regulators[S6SY761_REGULATOR_VDD].supply = "vdd"; in s6sy761_probe() 412 sdata->regulators[S6SY761_REGULATOR_AVDD].supply = "avdd"; in s6sy761_probe() 414 ARRAY_SIZE(sdata->regulators), in s6sy761_probe() 415 sdata->regulators); in s6sy761_probe()
|
D | silead.c | 70 struct regulator_bulk_data regulators[2]; member 494 regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators); in silead_disable_regulator() 529 data->regulators[0].supply = "vddio"; in silead_ts_probe() 530 data->regulators[1].supply = "avdd"; in silead_ts_probe() 531 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(data->regulators), in silead_ts_probe() 532 data->regulators); in silead_ts_probe() 540 error = regulator_bulk_enable(ARRAY_SIZE(data->regulators), in silead_ts_probe() 541 data->regulators); in silead_ts_probe()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_device.c | 88 pfdev->regulators = devm_kcalloc(pfdev->dev, pfdev->comp->num_supplies, in panfrost_regulator_init() 89 sizeof(*pfdev->regulators), in panfrost_regulator_init() 91 if (!pfdev->regulators) in panfrost_regulator_init() 95 pfdev->regulators[i].supply = pfdev->comp->supply_names[i]; in panfrost_regulator_init() 99 pfdev->regulators); in panfrost_regulator_init() 108 pfdev->regulators); in panfrost_regulator_init() 119 if (!pfdev->regulators) in panfrost_regulator_fini() 122 regulator_bulk_disable(pfdev->comp->num_supplies, pfdev->regulators); in panfrost_regulator_fini()
|
/drivers/video/fbdev/ |
D | simplefb.c | 188 struct regulator **regulators; member 340 par->regulators = devm_kcalloc(&pdev->dev, count, in simplefb_regulators_get() 342 if (!par->regulators) in simplefb_regulators_get() 363 par->regulators[i++] = regulator; in simplefb_regulators_get() 377 ret = regulator_enable(par->regulators[i]); in simplefb_regulators_enable() 382 devm_regulator_put(par->regulators[i]); in simplefb_regulators_enable() 383 par->regulators[i] = NULL; in simplefb_regulators_enable() 393 if (!par->regulators || !par->regulators_enabled) in simplefb_regulators_destroy() 397 if (par->regulators[i]) in simplefb_regulators_destroy() 398 regulator_disable(par->regulators[i]); in simplefb_regulators_destroy()
|
/drivers/iio/accel/ |
D | bma400_core.c | 57 struct regulator_bulk_data regulators[BMA400_NUM_REGULATORS]; member 581 data->regulators[BMA400_VDD_REGULATOR].supply = "vdd"; in bma400_init() 582 data->regulators[BMA400_VDDIO_REGULATOR].supply = "vddio"; in bma400_init() 584 ARRAY_SIZE(data->regulators), in bma400_init() 585 data->regulators); in bma400_init() 594 ret = regulator_bulk_enable(ARRAY_SIZE(data->regulators), in bma400_init() 595 data->regulators); in bma400_init() 644 regulator_bulk_disable(ARRAY_SIZE(data->regulators), in bma400_init() 645 data->regulators); in bma400_init() 841 regulator_bulk_disable(ARRAY_SIZE(data->regulators), in bma400_remove() [all …]
|
/drivers/mfd/ |
D | rohm-bd9576.c | 140 struct mfd_cell *regulators; in bd957x_i2c_probe() local 142 regulators = &bd9576_mfd_cells[BD957X_REGULATOR_CELL]; in bd957x_i2c_probe() 143 regulators->resources = bd9576_regulator_irqs; in bd957x_i2c_probe() 144 regulators->num_resources = ARRAY_SIZE(bd9576_regulator_irqs); in bd957x_i2c_probe()
|
/drivers/gpu/drm/tiny/ |
D | simpledrm.c | 210 struct regulator **regulators; member 362 if (sdev->regulators[i]) { in simpledrm_device_release_regulators() 363 regulator_disable(sdev->regulators[i]); in simpledrm_device_release_regulators() 364 regulator_put(sdev->regulators[i]); in simpledrm_device_release_regulators() 393 sdev->regulators = drmm_kzalloc(dev, in simpledrm_device_init_regulators() 394 count * sizeof(sdev->regulators[0]), in simpledrm_device_init_regulators() 396 if (!sdev->regulators) in simpledrm_device_init_regulators() 427 sdev->regulators[i++] = regulator; in simpledrm_device_init_regulators() 438 if (sdev->regulators[i]) { in simpledrm_device_init_regulators() 439 regulator_disable(sdev->regulators[i]); in simpledrm_device_init_regulators() [all …]
|
/drivers/opp/ |
D | core.c | 245 if (!opp_table->regulators) in dev_pm_opp_get_max_volt_latency() 278 reg = opp_table->regulators[i]; in dev_pm_opp_get_max_volt_latency() 756 struct regulator *reg = opp_table->regulators[0]; in _generic_set_opp_regulator() 857 data->regulators = opp_table->regulators; in _set_opp_custom() 986 if (opp_table->regulators) in _disable_opp_table() 987 regulator_disable(opp_table->regulators[0]); in _disable_opp_table() 1043 } else if (opp_table->regulators) { in _set_opp() 1613 if (!opp_table->regulators) in _opp_supported_by_regulators() 1617 reg = opp_table->regulators[i]; in _opp_supported_by_regulators() 1986 if (opp_table->regulators) in dev_pm_opp_set_regulators() [all …]
|