vref_reg 30 drivers/iio/adc/max11100.c struct regulator *vref_reg; vref_reg 86 drivers/iio/adc/max11100.c vref_uv = regulator_get_voltage(state->vref_reg); vref_reg 126 drivers/iio/adc/max11100.c state->vref_reg = devm_regulator_get(&spi->dev, "vref"); vref_reg 127 drivers/iio/adc/max11100.c if (IS_ERR(state->vref_reg)) vref_reg 128 drivers/iio/adc/max11100.c return PTR_ERR(state->vref_reg); vref_reg 130 drivers/iio/adc/max11100.c ret = regulator_enable(state->vref_reg); vref_reg 141 drivers/iio/adc/max11100.c regulator_disable(state->vref_reg); vref_reg 152 drivers/iio/adc/max11100.c regulator_disable(state->vref_reg); vref_reg 107 drivers/iio/dac/ad5064.c struct regulator_bulk_data vref_reg[AD5064_MAX_VREFS]; vref_reg 312 drivers/iio/dac/ad5064.c return regulator_get_voltage(st->vref_reg[i].consumer); vref_reg 818 drivers/iio/dac/ad5064.c st->vref_reg[i].supply = ad5064_vref_name(st, i); vref_reg 822 drivers/iio/dac/ad5064.c st->vref_reg); vref_reg 829 drivers/iio/dac/ad5064.c st->vref_reg[0].consumer = devm_regulator_get_optional(dev, "vref"); vref_reg 830 drivers/iio/dac/ad5064.c if (!IS_ERR(st->vref_reg[0].consumer)) vref_reg 833 drivers/iio/dac/ad5064.c ret = PTR_ERR(st->vref_reg[0].consumer); vref_reg 872 drivers/iio/dac/ad5064.c ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); vref_reg 899 drivers/iio/dac/ad5064.c regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); vref_reg 912 drivers/iio/dac/ad5064.c regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); vref_reg 76 drivers/iio/dac/ad5360.c struct regulator_bulk_data vref_reg[3]; vref_reg 187 drivers/iio/dac/ad5360.c return regulator_get_voltage(st->vref_reg[i].consumer); vref_reg 489 drivers/iio/dac/ad5360.c st->vref_reg[i].supply = ad5360_vref_name[i]; vref_reg 492 drivers/iio/dac/ad5360.c st->vref_reg); vref_reg 498 drivers/iio/dac/ad5360.c ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); vref_reg 513 drivers/iio/dac/ad5360.c regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); vref_reg 529 drivers/iio/dac/ad5360.c regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); vref_reg 59 drivers/iio/dac/ad5380.c struct regulator *vref_reg; vref_reg 402 drivers/iio/dac/ad5380.c st->vref_reg = devm_regulator_get(dev, "vref"); vref_reg 403 drivers/iio/dac/ad5380.c if (!IS_ERR(st->vref_reg)) { vref_reg 404 drivers/iio/dac/ad5380.c ret = regulator_enable(st->vref_reg); vref_reg 411 drivers/iio/dac/ad5380.c ret = regulator_get_voltage(st->vref_reg); vref_reg 436 drivers/iio/dac/ad5380.c if (!IS_ERR(st->vref_reg)) vref_reg 437 drivers/iio/dac/ad5380.c regulator_disable(st->vref_reg); vref_reg 453 drivers/iio/dac/ad5380.c if (!IS_ERR(st->vref_reg)) { vref_reg 454 drivers/iio/dac/ad5380.c regulator_disable(st->vref_reg); vref_reg 63 drivers/iio/dac/ad5449.c struct regulator_bulk_data vref_reg[AD5449_MAX_VREFS]; vref_reg 152 drivers/iio/dac/ad5449.c reg = &st->vref_reg[chan->channel]; vref_reg 287 drivers/iio/dac/ad5449.c st->vref_reg[i].supply = ad5449_vref_name(st, i); vref_reg 290 drivers/iio/dac/ad5449.c st->vref_reg); vref_reg 294 drivers/iio/dac/ad5449.c ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); vref_reg 325 drivers/iio/dac/ad5449.c regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); vref_reg 337 drivers/iio/dac/ad5449.c regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); vref_reg 64 drivers/iio/dac/ad5761.c struct regulator *vref_reg; vref_reg 293 drivers/iio/dac/ad5761.c st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); vref_reg 294 drivers/iio/dac/ad5761.c if (PTR_ERR(st->vref_reg) == -ENODEV) { vref_reg 307 drivers/iio/dac/ad5761.c if (IS_ERR(st->vref_reg)) { vref_reg 310 drivers/iio/dac/ad5761.c return PTR_ERR(st->vref_reg); vref_reg 313 drivers/iio/dac/ad5761.c ret = regulator_enable(st->vref_reg); vref_reg 320 drivers/iio/dac/ad5761.c ret = regulator_get_voltage(st->vref_reg); vref_reg 340 drivers/iio/dac/ad5761.c regulator_disable(st->vref_reg); vref_reg 341 drivers/iio/dac/ad5761.c st->vref_reg = NULL; vref_reg 388 drivers/iio/dac/ad5761.c if (!IS_ERR_OR_NULL(st->vref_reg)) vref_reg 389 drivers/iio/dac/ad5761.c regulator_disable(st->vref_reg); vref_reg 401 drivers/iio/dac/ad5761.c if (!IS_ERR_OR_NULL(st->vref_reg)) vref_reg 402 drivers/iio/dac/ad5761.c regulator_disable(st->vref_reg); vref_reg 55 drivers/iio/dac/ad5764.c struct regulator_bulk_data vref_reg[2]; vref_reg 217 drivers/iio/dac/ad5764.c return regulator_get_voltage(st->vref_reg[channel / 2].consumer); vref_reg 299 drivers/iio/dac/ad5764.c st->vref_reg[0].supply = "vrefAB"; vref_reg 300 drivers/iio/dac/ad5764.c st->vref_reg[1].supply = "vrefCD"; vref_reg 303 drivers/iio/dac/ad5764.c ARRAY_SIZE(st->vref_reg), st->vref_reg); vref_reg 310 drivers/iio/dac/ad5764.c ret = regulator_bulk_enable(ARRAY_SIZE(st->vref_reg), vref_reg 311 drivers/iio/dac/ad5764.c st->vref_reg); vref_reg 329 drivers/iio/dac/ad5764.c regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); vref_reg 341 drivers/iio/dac/ad5764.c regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); vref_reg 42 drivers/iio/dac/ad7303.c struct regulator *vref_reg; vref_reg 103 drivers/iio/dac/ad7303.c return regulator_get_voltage(st->vref_reg); vref_reg 234 drivers/iio/dac/ad7303.c st->vref_reg = devm_regulator_get(&spi->dev, "REF"); vref_reg 235 drivers/iio/dac/ad7303.c if (IS_ERR(st->vref_reg)) { vref_reg 236 drivers/iio/dac/ad7303.c ret = PTR_ERR(st->vref_reg); vref_reg 240 drivers/iio/dac/ad7303.c ret = regulator_enable(st->vref_reg); vref_reg 261 drivers/iio/dac/ad7303.c if (st->vref_reg) vref_reg 262 drivers/iio/dac/ad7303.c regulator_disable(st->vref_reg); vref_reg 275 drivers/iio/dac/ad7303.c if (st->vref_reg) vref_reg 276 drivers/iio/dac/ad7303.c regulator_disable(st->vref_reg); vref_reg 42 drivers/iio/dac/ltc1660.c struct regulator *vref_reg; vref_reg 60 drivers/iio/dac/ltc1660.c *val = regulator_get_voltage(priv->vref_reg); vref_reg 174 drivers/iio/dac/ltc1660.c priv->vref_reg = devm_regulator_get(&spi->dev, "vref"); vref_reg 175 drivers/iio/dac/ltc1660.c if (IS_ERR(priv->vref_reg)) { vref_reg 177 drivers/iio/dac/ltc1660.c return PTR_ERR(priv->vref_reg); vref_reg 180 drivers/iio/dac/ltc1660.c ret = regulator_enable(priv->vref_reg); vref_reg 206 drivers/iio/dac/ltc1660.c regulator_disable(priv->vref_reg); vref_reg 217 drivers/iio/dac/ltc1660.c regulator_disable(priv->vref_reg); vref_reg 50 drivers/iio/dac/ltc2632.c struct regulator *vref_reg; vref_reg 249 drivers/iio/dac/ltc2632.c st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); vref_reg 250 drivers/iio/dac/ltc2632.c if (PTR_ERR(st->vref_reg) == -ENODEV) { vref_reg 252 drivers/iio/dac/ltc2632.c st->vref_reg = NULL; vref_reg 263 drivers/iio/dac/ltc2632.c } else if (IS_ERR(st->vref_reg)) { vref_reg 266 drivers/iio/dac/ltc2632.c return PTR_ERR(st->vref_reg); vref_reg 269 drivers/iio/dac/ltc2632.c ret = regulator_enable(st->vref_reg); vref_reg 276 drivers/iio/dac/ltc2632.c st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; vref_reg 306 drivers/iio/dac/ltc2632.c if (st->vref_reg) vref_reg 307 drivers/iio/dac/ltc2632.c regulator_disable(st->vref_reg); vref_reg 35 drivers/iio/dac/max5821.c struct regulator *vref_reg; vref_reg 319 drivers/iio/dac/max5821.c data->vref_reg = devm_regulator_get(&client->dev, "vref"); vref_reg 320 drivers/iio/dac/max5821.c if (IS_ERR(data->vref_reg)) { vref_reg 321 drivers/iio/dac/max5821.c ret = PTR_ERR(data->vref_reg); vref_reg 327 drivers/iio/dac/max5821.c ret = regulator_enable(data->vref_reg); vref_reg 334 drivers/iio/dac/max5821.c ret = regulator_get_voltage(data->vref_reg); vref_reg 353 drivers/iio/dac/max5821.c regulator_disable(data->vref_reg); vref_reg 366 drivers/iio/dac/max5821.c regulator_disable(data->vref_reg); vref_reg 42 drivers/iio/dac/mcp4725.c struct regulator *vref_reg; vref_reg 322 drivers/iio/dac/mcp4725.c ret = regulator_get_voltage(data->vref_reg); vref_reg 445 drivers/iio/dac/mcp4725.c data->vref_reg = devm_regulator_get(&client->dev, "vref"); vref_reg 446 drivers/iio/dac/mcp4725.c if (IS_ERR(data->vref_reg)) { vref_reg 447 drivers/iio/dac/mcp4725.c err = PTR_ERR(data->vref_reg); vref_reg 451 drivers/iio/dac/mcp4725.c err = regulator_enable(data->vref_reg); vref_reg 493 drivers/iio/dac/mcp4725.c if (data->vref_reg) vref_reg 494 drivers/iio/dac/mcp4725.c regulator_disable(data->vref_reg); vref_reg 509 drivers/iio/dac/mcp4725.c if (data->vref_reg) vref_reg 510 drivers/iio/dac/mcp4725.c regulator_disable(data->vref_reg); vref_reg 31 drivers/iio/dac/mcp4922.c struct regulator *vref_reg; vref_reg 132 drivers/iio/dac/mcp4922.c state->vref_reg = devm_regulator_get(&spi->dev, "vref"); vref_reg 133 drivers/iio/dac/mcp4922.c if (IS_ERR(state->vref_reg)) { vref_reg 135 drivers/iio/dac/mcp4922.c return PTR_ERR(state->vref_reg); vref_reg 138 drivers/iio/dac/mcp4922.c ret = regulator_enable(state->vref_reg); vref_reg 145 drivers/iio/dac/mcp4922.c ret = regulator_get_voltage(state->vref_reg); vref_reg 172 drivers/iio/dac/mcp4922.c regulator_disable(state->vref_reg); vref_reg 184 drivers/iio/dac/mcp4922.c regulator_disable(state->vref_reg);