vref 62 drivers/hwmon/adc128d818.c int vref; /* Reference voltage in mV */ vref 158 drivers/hwmon/adc128d818.c val = DIV_ROUND_CLOSEST(data->in[index][nr] * data->vref, 4095); vref 437 drivers/hwmon/adc128d818.c int err, vref; vref 450 drivers/hwmon/adc128d818.c vref = regulator_get_voltage(regulator); vref 451 drivers/hwmon/adc128d818.c if (vref < 0) { vref 452 drivers/hwmon/adc128d818.c err = vref; vref 455 drivers/hwmon/adc128d818.c data->vref = DIV_ROUND_CLOSEST(vref, 1000); vref 457 drivers/hwmon/adc128d818.c data->vref = 2560; /* 2.56V, in mV */ vref 970 drivers/hwmon/fschmd.c int i, mult[3] = { 0 }, offset[3] = { 0 }, vref = 0, found = 0; vref 1019 drivers/hwmon/fschmd.c vref = dmi_data[i + 1] | (dmi_data[i + 2] << 8); vref 1041 drivers/hwmon/fschmd.c dmi_vref = vref; vref 30 drivers/hwmon/smm665.c static int vref = SMM665_VREF_ADC_X1000; vref 31 drivers/hwmon/smm665.c module_param(vref, int, 0); vref 32 drivers/hwmon/smm665.c MODULE_PARM_DESC(vref, "Reference voltage in mV"); vref 116 drivers/hwmon/smm665.c #define SMM665_VMON_ADC_TO_VOLTS(adc) ((adc) * vref / 256) vref 119 drivers/hwmon/smm665.c #define SMM665_12VIN_ADC_TO_VOLTS(adc) ((adc) * vref * 3 / 256) vref 122 drivers/hwmon/smm665.c #define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512) vref 127 drivers/iio/adc/ad7124.c struct regulator *vref[4]; vref 334 drivers/iio/adc/ad7124.c unsigned int res, gain, full_scale, vref; vref 351 drivers/iio/adc/ad7124.c vref = st->channel_config[chan->address].vref_mv * 1000000LL; vref 352 drivers/iio/adc/ad7124.c res = DIV_ROUND_CLOSEST(vref, full_scale); vref 416 drivers/iio/adc/ad7124.c if (IS_ERR(st->vref[refsel])) { vref 420 drivers/iio/adc/ad7124.c return PTR_ERR(st->vref[refsel]); vref 423 drivers/iio/adc/ad7124.c regulator_get_voltage(st->vref[refsel]); vref 596 drivers/iio/adc/ad7124.c for (i = 0; i < ARRAY_SIZE(st->vref); i++) { vref 600 drivers/iio/adc/ad7124.c st->vref[i] = devm_regulator_get_optional(&spi->dev, vref 602 drivers/iio/adc/ad7124.c if (PTR_ERR(st->vref[i]) == -ENODEV) vref 604 drivers/iio/adc/ad7124.c else if (IS_ERR(st->vref[i])) vref 605 drivers/iio/adc/ad7124.c return PTR_ERR(st->vref[i]); vref 607 drivers/iio/adc/ad7124.c ret = regulator_enable(st->vref[i]); vref 647 drivers/iio/adc/ad7124.c for (i = ARRAY_SIZE(st->vref) - 1; i >= 0; i--) { vref 648 drivers/iio/adc/ad7124.c if (!IS_ERR_OR_NULL(st->vref[i])) vref 649 drivers/iio/adc/ad7124.c regulator_disable(st->vref[i]); vref 665 drivers/iio/adc/ad7124.c for (i = ARRAY_SIZE(st->vref) - 1; i >= 0; i--) { vref 666 drivers/iio/adc/ad7124.c if (!IS_ERR_OR_NULL(st->vref[i])) vref 667 drivers/iio/adc/ad7124.c regulator_disable(st->vref[i]); vref 380 drivers/iio/adc/ad7291.c int vref; vref 382 drivers/iio/adc/ad7291.c vref = regulator_get_voltage(chip->reg); vref 383 drivers/iio/adc/ad7291.c if (vref < 0) vref 384 drivers/iio/adc/ad7291.c return vref; vref 385 drivers/iio/adc/ad7291.c *val = vref / 1000; vref 217 drivers/iio/adc/ad7298.c int vref; vref 220 drivers/iio/adc/ad7298.c vref = regulator_get_voltage(st->reg); vref 221 drivers/iio/adc/ad7298.c if (vref < 0) vref 222 drivers/iio/adc/ad7298.c return vref; vref 224 drivers/iio/adc/ad7298.c return vref / 1000; vref 132 drivers/iio/adc/ad7766.c struct regulator *vref = ad7766->reg[AD7766_SUPPLY_VREF].consumer; vref 137 drivers/iio/adc/ad7766.c scale_uv = regulator_get_voltage(vref); vref 156 drivers/iio/adc/ad7768-1.c struct regulator *vref; vref 378 drivers/iio/adc/ad7768-1.c scale_uv = regulator_get_voltage(st->vref); vref 531 drivers/iio/adc/ad7768-1.c regulator_disable(st->vref); vref 554 drivers/iio/adc/ad7768-1.c st->vref = devm_regulator_get(&spi->dev, "vref"); vref 555 drivers/iio/adc/ad7768-1.c if (IS_ERR(st->vref)) vref 556 drivers/iio/adc/ad7768-1.c return PTR_ERR(st->vref); vref 558 drivers/iio/adc/ad7768-1.c ret = regulator_enable(st->vref); vref 147 drivers/iio/adc/ad7780.c unsigned long long vref; vref 158 drivers/iio/adc/ad7780.c vref = st->int_vref_mv * 1000000LL; vref 160 drivers/iio/adc/ad7780.c gain = DIV_ROUND_CLOSEST_ULL(vref, full_scale); vref 210 drivers/iio/adc/ad7923.c int vref; vref 212 drivers/iio/adc/ad7923.c vref = regulator_get_voltage(st->reg); vref 213 drivers/iio/adc/ad7923.c if (vref < 0) vref 214 drivers/iio/adc/ad7923.c return vref; vref 216 drivers/iio/adc/ad7923.c vref /= 1000; vref 219 drivers/iio/adc/ad7923.c vref *= 2; vref 221 drivers/iio/adc/ad7923.c return vref; vref 51 drivers/iio/adc/ad7949.c struct regulator *vref; vref 181 drivers/iio/adc/ad7949.c ret = regulator_get_voltage(ad7949_adc->vref); vref 262 drivers/iio/adc/ad7949.c ad7949_adc->vref = devm_regulator_get(dev, "vref"); vref 263 drivers/iio/adc/ad7949.c if (IS_ERR(ad7949_adc->vref)) { vref 265 drivers/iio/adc/ad7949.c return PTR_ERR(ad7949_adc->vref); vref 268 drivers/iio/adc/ad7949.c ret = regulator_enable(ad7949_adc->vref); vref 292 drivers/iio/adc/ad7949.c regulator_disable(ad7949_adc->vref); vref 304 drivers/iio/adc/ad7949.c regulator_disable(ad7949_adc->vref); vref 127 drivers/iio/adc/ad799x.c struct regulator *vref; vref 293 drivers/iio/adc/ad799x.c ret = regulator_get_voltage(st->vref); vref 791 drivers/iio/adc/ad799x.c st->vref = devm_regulator_get(&client->dev, "vref"); vref 792 drivers/iio/adc/ad799x.c if (IS_ERR(st->vref)) { vref 793 drivers/iio/adc/ad799x.c ret = PTR_ERR(st->vref); vref 796 drivers/iio/adc/ad799x.c ret = regulator_enable(st->vref); vref 845 drivers/iio/adc/ad799x.c regulator_disable(st->vref); vref 860 drivers/iio/adc/ad799x.c regulator_disable(st->vref); vref 389 drivers/iio/adc/at91-sama5d2_adc.c struct regulator *vref; vref 1758 drivers/iio/adc/at91-sama5d2_adc.c st->vref = devm_regulator_get(&pdev->dev, "vref"); vref 1759 drivers/iio/adc/at91-sama5d2_adc.c if (IS_ERR(st->vref)) vref 1760 drivers/iio/adc/at91-sama5d2_adc.c return PTR_ERR(st->vref); vref 1771 drivers/iio/adc/at91-sama5d2_adc.c ret = regulator_enable(st->vref); vref 1775 drivers/iio/adc/at91-sama5d2_adc.c st->vref_uv = regulator_get_voltage(st->vref); vref 1832 drivers/iio/adc/at91-sama5d2_adc.c regulator_disable(st->vref); vref 1849 drivers/iio/adc/at91-sama5d2_adc.c regulator_disable(st->vref); vref 1869 drivers/iio/adc/at91-sama5d2_adc.c regulator_disable(st->vref); vref 1889 drivers/iio/adc/at91-sama5d2_adc.c ret = regulator_enable(st->vref); vref 1917 drivers/iio/adc/at91-sama5d2_adc.c regulator_disable(st->vref); vref 975 drivers/iio/adc/at91_adc.c st->vref_mv = pdata->vref; vref 41 drivers/iio/adc/fsl-imx25-gcq.c struct regulator *vref[4]; vref 193 drivers/iio/adc/fsl-imx25-gcq.c priv->vref[MX25_ADC_REFP_INT] = NULL; vref 194 drivers/iio/adc/fsl-imx25-gcq.c priv->vref[MX25_ADC_REFP_EXT] = vref 196 drivers/iio/adc/fsl-imx25-gcq.c priv->vref[MX25_ADC_REFP_XP] = vref 198 drivers/iio/adc/fsl-imx25-gcq.c priv->vref[MX25_ADC_REFP_YP] = vref 227 drivers/iio/adc/fsl-imx25-gcq.c if (IS_ERR(priv->vref[refp])) { vref 231 drivers/iio/adc/fsl-imx25-gcq.c return PTR_ERR(priv->vref[refp]); vref 234 drivers/iio/adc/fsl-imx25-gcq.c regulator_get_voltage(priv->vref[refp]); vref 282 drivers/iio/adc/fsl-imx25-gcq.c if (!IS_ERR_OR_NULL(priv->vref[i])) vref 283 drivers/iio/adc/fsl-imx25-gcq.c devm_regulator_put(priv->vref[i]); vref 284 drivers/iio/adc/fsl-imx25-gcq.c priv->vref[i] = NULL; vref 326 drivers/iio/adc/fsl-imx25-gcq.c if (!priv->vref[i]) vref 329 drivers/iio/adc/fsl-imx25-gcq.c ret = regulator_enable(priv->vref[i]); vref 379 drivers/iio/adc/fsl-imx25-gcq.c if (priv->vref[i]) vref 380 drivers/iio/adc/fsl-imx25-gcq.c regulator_disable(priv->vref[i]); vref 395 drivers/iio/adc/fsl-imx25-gcq.c if (priv->vref[i]) vref 396 drivers/iio/adc/fsl-imx25-gcq.c regulator_disable(priv->vref[i]); vref 116 drivers/iio/adc/imx7d_adc.c struct regulator *vref; vref 318 drivers/iio/adc/imx7d_adc.c info->vref_uv = regulator_get_voltage(info->vref); vref 434 drivers/iio/adc/imx7d_adc.c ret = regulator_enable(info->vref); vref 446 drivers/iio/adc/imx7d_adc.c regulator_disable(info->vref); vref 463 drivers/iio/adc/imx7d_adc.c regulator_disable(info->vref); vref 505 drivers/iio/adc/imx7d_adc.c info->vref = devm_regulator_get(dev, "vref"); vref 506 drivers/iio/adc/imx7d_adc.c if (IS_ERR(info->vref)) { vref 507 drivers/iio/adc/imx7d_adc.c ret = PTR_ERR(info->vref); vref 43 drivers/iio/adc/lpc18xx_adc.c struct regulator *vref; vref 105 drivers/iio/adc/lpc18xx_adc.c *val = regulator_get_voltage(adc->vref) / 1000; vref 150 drivers/iio/adc/lpc18xx_adc.c adc->vref = devm_regulator_get(&pdev->dev, "vref"); vref 151 drivers/iio/adc/lpc18xx_adc.c if (IS_ERR(adc->vref)) { vref 153 drivers/iio/adc/lpc18xx_adc.c return PTR_ERR(adc->vref); vref 163 drivers/iio/adc/lpc18xx_adc.c ret = regulator_enable(adc->vref); vref 191 drivers/iio/adc/lpc18xx_adc.c regulator_disable(adc->vref); vref 204 drivers/iio/adc/lpc18xx_adc.c regulator_disable(adc->vref); vref 50 drivers/iio/adc/lpc32xx_adc.c struct regulator *vref; vref 87 drivers/iio/adc/lpc32xx_adc.c *val = regulator_get_voltage(st->vref) / 1000; vref 185 drivers/iio/adc/lpc32xx_adc.c st->vref = devm_regulator_get(&pdev->dev, "vref"); vref 186 drivers/iio/adc/lpc32xx_adc.c if (IS_ERR(st->vref)) { vref 182 drivers/iio/adc/max1363.c struct regulator *vref; vref 1432 drivers/iio/adc/max1363.c if (st->vref) vref 1576 drivers/iio/adc/max1363.c struct regulator *vref; vref 1609 drivers/iio/adc/max1363.c vref = devm_regulator_get_optional(&client->dev, "vref"); vref 1610 drivers/iio/adc/max1363.c if (!IS_ERR(vref)) { vref 1613 drivers/iio/adc/max1363.c ret = regulator_enable(vref); vref 1616 drivers/iio/adc/max1363.c st->vref = vref; vref 1617 drivers/iio/adc/max1363.c vref_uv = regulator_get_voltage(vref); vref 1679 drivers/iio/adc/max1363.c if (st->vref) vref 1680 drivers/iio/adc/max1363.c regulator_disable(st->vref); vref 1694 drivers/iio/adc/max1363.c if (st->vref) vref 1695 drivers/iio/adc/max1363.c regulator_disable(st->vref); vref 52 drivers/iio/adc/mcp3911.c struct regulator *vref; vref 127 drivers/iio/adc/mcp3911.c if (adc->vref) { vref 128 drivers/iio/adc/mcp3911.c ret = regulator_get_voltage(adc->vref); vref 221 drivers/iio/adc/mcp3911.c if (adc->vref) { vref 255 drivers/iio/adc/mcp3911.c adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref"); vref 256 drivers/iio/adc/mcp3911.c if (IS_ERR(adc->vref)) { vref 257 drivers/iio/adc/mcp3911.c if (PTR_ERR(adc->vref) == -ENODEV) { vref 258 drivers/iio/adc/mcp3911.c adc->vref = NULL; vref 262 drivers/iio/adc/mcp3911.c PTR_ERR(adc->vref)); vref 263 drivers/iio/adc/mcp3911.c return PTR_ERR(adc->vref); vref 267 drivers/iio/adc/mcp3911.c ret = regulator_enable(adc->vref); vref 317 drivers/iio/adc/mcp3911.c if (adc->vref) vref 318 drivers/iio/adc/mcp3911.c regulator_disable(adc->vref); vref 331 drivers/iio/adc/mcp3911.c if (adc->vref) vref 332 drivers/iio/adc/mcp3911.c regulator_disable(adc->vref); vref 269 drivers/iio/adc/meson_saradc.c struct regulator *vref; vref 606 drivers/iio/adc/meson_saradc.c ret = regulator_get_voltage(priv->vref); vref 937 drivers/iio/adc/meson_saradc.c ret = regulator_enable(priv->vref); vref 978 drivers/iio/adc/meson_saradc.c regulator_disable(priv->vref); vref 1003 drivers/iio/adc/meson_saradc.c regulator_disable(priv->vref); vref 1275 drivers/iio/adc/meson_saradc.c priv->vref = devm_regulator_get(&pdev->dev, "vref"); vref 1276 drivers/iio/adc/meson_saradc.c if (IS_ERR(priv->vref)) { vref 1278 drivers/iio/adc/meson_saradc.c return PTR_ERR(priv->vref); vref 25 drivers/iio/adc/npcm_adc.c struct regulator *vref; vref 152 drivers/iio/adc/npcm_adc.c if (!IS_ERR(info->vref)) { vref 153 drivers/iio/adc/npcm_adc.c vref_uv = regulator_get_voltage(info->vref); vref 240 drivers/iio/adc/npcm_adc.c info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); vref 241 drivers/iio/adc/npcm_adc.c if (!IS_ERR(info->vref)) { vref 242 drivers/iio/adc/npcm_adc.c ret = regulator_enable(info->vref); vref 255 drivers/iio/adc/npcm_adc.c if (PTR_ERR(info->vref) != -ENODEV) { vref 256 drivers/iio/adc/npcm_adc.c ret = PTR_ERR(info->vref); vref 296 drivers/iio/adc/npcm_adc.c if (!IS_ERR(info->vref)) vref 297 drivers/iio/adc/npcm_adc.c regulator_disable(info->vref); vref 314 drivers/iio/adc/npcm_adc.c if (!IS_ERR(info->vref)) vref 315 drivers/iio/adc/npcm_adc.c regulator_disable(info->vref); vref 405 drivers/iio/adc/qcom-pm8xxx-xoadc.c struct regulator *vref; vref 918 drivers/iio/adc/qcom-pm8xxx-xoadc.c adc->vref = devm_regulator_get(dev, "xoadc-ref"); vref 919 drivers/iio/adc/qcom-pm8xxx-xoadc.c if (IS_ERR(adc->vref)) { vref 921 drivers/iio/adc/qcom-pm8xxx-xoadc.c return PTR_ERR(adc->vref); vref 923 drivers/iio/adc/qcom-pm8xxx-xoadc.c ret = regulator_enable(adc->vref); vref 959 drivers/iio/adc/qcom-pm8xxx-xoadc.c regulator_disable(adc->vref); vref 971 drivers/iio/adc/qcom-pm8xxx-xoadc.c regulator_disable(adc->vref); vref 68 drivers/iio/adc/rcar-gyroadc.c struct regulator *vref[8]; vref 186 drivers/iio/adc/rcar-gyroadc.c unsigned int vref; vref 194 drivers/iio/adc/rcar-gyroadc.c consumer = priv->vref[0]; vref 196 drivers/iio/adc/rcar-gyroadc.c consumer = priv->vref[chan->channel]; vref 231 drivers/iio/adc/rcar-gyroadc.c vref = regulator_get_voltage(consumer); vref 232 drivers/iio/adc/rcar-gyroadc.c *val = vref / 1000; vref 327 drivers/iio/adc/rcar-gyroadc.c struct regulator *vref; vref 399 drivers/iio/adc/rcar-gyroadc.c vref = devm_regulator_get(dev, "vref"); vref 401 drivers/iio/adc/rcar-gyroadc.c if (IS_ERR(vref)) { vref 404 drivers/iio/adc/rcar-gyroadc.c return PTR_ERR(vref); vref 407 drivers/iio/adc/rcar-gyroadc.c priv->vref[reg] = vref; vref 446 drivers/iio/adc/rcar-gyroadc.c if (!priv->vref[i]) vref 449 drivers/iio/adc/rcar-gyroadc.c regulator_disable(priv->vref[i]); vref 461 drivers/iio/adc/rcar-gyroadc.c if (!priv->vref[i]) vref 464 drivers/iio/adc/rcar-gyroadc.c ret = regulator_enable(priv->vref[i]); vref 48 drivers/iio/adc/rockchip_saradc.c struct regulator *vref; vref 87 drivers/iio/adc/rockchip_saradc.c ret = regulator_get_voltage(info->vref); vref 269 drivers/iio/adc/rockchip_saradc.c info->vref = devm_regulator_get(&pdev->dev, "vref"); vref 270 drivers/iio/adc/rockchip_saradc.c if (IS_ERR(info->vref)) { vref 272 drivers/iio/adc/rockchip_saradc.c PTR_ERR(info->vref)); vref 273 drivers/iio/adc/rockchip_saradc.c return PTR_ERR(info->vref); vref 289 drivers/iio/adc/rockchip_saradc.c ret = regulator_enable(info->vref); vref 329 drivers/iio/adc/rockchip_saradc.c regulator_disable(info->vref); vref 341 drivers/iio/adc/rockchip_saradc.c regulator_disable(info->vref); vref 354 drivers/iio/adc/rockchip_saradc.c regulator_disable(info->vref); vref 365 drivers/iio/adc/rockchip_saradc.c ret = regulator_enable(info->vref); vref 103 drivers/iio/adc/stm32-adc-core.c struct regulator *vref; vref 517 drivers/iio/adc/stm32-adc-core.c ret = regulator_enable(priv->vref); vref 547 drivers/iio/adc/stm32-adc-core.c regulator_disable(priv->vref); vref 567 drivers/iio/adc/stm32-adc-core.c regulator_disable(priv->vref); vref 675 drivers/iio/adc/stm32-adc-core.c priv->vref = devm_regulator_get(&pdev->dev, "vref"); vref 676 drivers/iio/adc/stm32-adc-core.c if (IS_ERR(priv->vref)) { vref 677 drivers/iio/adc/stm32-adc-core.c ret = PTR_ERR(priv->vref); vref 716 drivers/iio/adc/stm32-adc-core.c ret = regulator_get_voltage(priv->vref); vref 349 drivers/iio/adc/ti-ads7950.c int vref; vref 352 drivers/iio/adc/ti-ads7950.c vref = st->vref_mv; vref 354 drivers/iio/adc/ti-ads7950.c vref = regulator_get_voltage(st->reg); vref 355 drivers/iio/adc/ti-ads7950.c if (vref < 0) vref 356 drivers/iio/adc/ti-ads7950.c return vref; vref 358 drivers/iio/adc/ti-ads7950.c vref /= 1000; vref 362 drivers/iio/adc/ti-ads7950.c vref *= 2; vref 364 drivers/iio/adc/ti-ads7950.c return vref; vref 111 drivers/iio/adc/ti-tlc4541.c int vref; vref 113 drivers/iio/adc/ti-tlc4541.c vref = regulator_get_voltage(st->reg); vref 114 drivers/iio/adc/ti-tlc4541.c if (vref < 0) vref 115 drivers/iio/adc/ti-tlc4541.c return vref; vref 117 drivers/iio/adc/ti-tlc4541.c vref /= 1000; vref 119 drivers/iio/adc/ti-tlc4541.c return vref; vref 162 drivers/iio/adc/vf610_adc.c struct regulator *vref; vref 842 drivers/iio/adc/vf610_adc.c info->vref = devm_regulator_get(&pdev->dev, "vref"); vref 843 drivers/iio/adc/vf610_adc.c if (IS_ERR(info->vref)) vref 844 drivers/iio/adc/vf610_adc.c return PTR_ERR(info->vref); vref 846 drivers/iio/adc/vf610_adc.c ret = regulator_enable(info->vref); vref 850 drivers/iio/adc/vf610_adc.c info->vref_uv = regulator_get_voltage(info->vref); vref 902 drivers/iio/adc/vf610_adc.c regulator_disable(info->vref); vref 914 drivers/iio/adc/vf610_adc.c regulator_disable(info->vref); vref 933 drivers/iio/adc/vf610_adc.c regulator_disable(info->vref); vref 944 drivers/iio/adc/vf610_adc.c ret = regulator_enable(info->vref); vref 957 drivers/iio/adc/vf610_adc.c regulator_disable(info->vref); vref 450 drivers/iio/dac/ad5064.c #define LTC2631_INFO(vref, pchannels, nchannels) \ vref 453 drivers/iio/dac/ad5064.c .internal_vref = vref, \ vref 791 drivers/iio/dac/ad5064.c unsigned int vref) vref 793 drivers/iio/dac/ad5064.c return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref]; vref 60 drivers/iio/dac/ad5380.c int vref; vref 226 drivers/iio/dac/ad5380.c *val = 2 * st->vref; vref 415 drivers/iio/dac/ad5380.c st->vref = ret / 1000; vref 417 drivers/iio/dac/ad5380.c st->vref = st->chip_info->int_vref; vref 67 drivers/iio/dac/ad5761.c int vref; vref 216 drivers/iio/dac/ad5761.c *val = st->vref * ad5761_range_params[st->range].m; vref 303 drivers/iio/dac/ad5761.c st->vref = chip_info->int_vref; vref 334 drivers/iio/dac/ad5761.c st->vref = ret / 1000; vref 225 drivers/iio/dac/ad5764.c int vref; vref 252 drivers/iio/dac/ad5764.c vref = ad5764_get_channel_vref(st, chan->channel); vref 253 drivers/iio/dac/ad5764.c if (vref < 0) vref 254 drivers/iio/dac/ad5764.c return vref; vref 256 drivers/iio/dac/ad5764.c *val = vref * 4 / 1000; vref 38 drivers/iio/dac/dpot-dac.c struct regulator *vref; vref 70 drivers/iio/dac/dpot-dac.c tmp *= regulator_get_voltage(dac->vref) / 1000; vref 83 drivers/iio/dac/dpot-dac.c *val *= regulator_get_voltage(dac->vref) / 1000; vref 186 drivers/iio/dac/dpot-dac.c dac->vref = devm_regulator_get(dev, "vref"); vref 187 drivers/iio/dac/dpot-dac.c if (IS_ERR(dac->vref)) { vref 188 drivers/iio/dac/dpot-dac.c if (PTR_ERR(dac->vref) != -EPROBE_DEFER) vref 190 drivers/iio/dac/dpot-dac.c return PTR_ERR(dac->vref); vref 214 drivers/iio/dac/dpot-dac.c ret = regulator_enable(dac->vref); vref 229 drivers/iio/dac/dpot-dac.c regulator_disable(dac->vref); vref 239 drivers/iio/dac/dpot-dac.c regulator_disable(dac->vref); vref 34 drivers/iio/dac/lpc18xx_dac.c struct regulator *vref; vref 65 drivers/iio/dac/lpc18xx_dac.c *val = regulator_get_voltage(dac->vref) / 1000; vref 131 drivers/iio/dac/lpc18xx_dac.c dac->vref = devm_regulator_get(&pdev->dev, "vref"); vref 132 drivers/iio/dac/lpc18xx_dac.c if (IS_ERR(dac->vref)) { vref 134 drivers/iio/dac/lpc18xx_dac.c return PTR_ERR(dac->vref); vref 144 drivers/iio/dac/lpc18xx_dac.c ret = regulator_enable(dac->vref); vref 170 drivers/iio/dac/lpc18xx_dac.c regulator_disable(dac->vref); vref 183 drivers/iio/dac/lpc18xx_dac.c regulator_disable(dac->vref); vref 29 drivers/iio/dac/stm32-dac-core.c struct regulator *vref; vref 82 drivers/iio/dac/stm32-dac-core.c priv->vref = devm_regulator_get(dev, "vref"); vref 83 drivers/iio/dac/stm32-dac-core.c if (IS_ERR(priv->vref)) { vref 84 drivers/iio/dac/stm32-dac-core.c ret = PTR_ERR(priv->vref); vref 89 drivers/iio/dac/stm32-dac-core.c ret = regulator_enable(priv->vref); vref 95 drivers/iio/dac/stm32-dac-core.c ret = regulator_get_voltage(priv->vref); vref 147 drivers/iio/dac/stm32-dac-core.c regulator_disable(priv->vref); vref 159 drivers/iio/dac/stm32-dac-core.c regulator_disable(priv->vref); vref 50 drivers/iio/dac/ti-dac082s085.c struct regulator *vref; vref 199 drivers/iio/dac/ti-dac082s085.c ret = regulator_get_voltage(ti_dac->vref); vref 288 drivers/iio/dac/ti-dac082s085.c ti_dac->vref = devm_regulator_get(dev, "vref"); vref 289 drivers/iio/dac/ti-dac082s085.c if (IS_ERR(ti_dac->vref)) vref 290 drivers/iio/dac/ti-dac082s085.c return PTR_ERR(ti_dac->vref); vref 292 drivers/iio/dac/ti-dac082s085.c ret = regulator_enable(ti_dac->vref); vref 312 drivers/iio/dac/ti-dac082s085.c regulator_disable(ti_dac->vref); vref 323 drivers/iio/dac/ti-dac082s085.c regulator_disable(ti_dac->vref); vref 48 drivers/iio/dac/ti-dac5571.c struct regulator *vref; vref 251 drivers/iio/dac/ti-dac5571.c ret = regulator_get_voltage(data->vref); vref 335 drivers/iio/dac/ti-dac5571.c data->vref = devm_regulator_get(dev, "vref"); vref 336 drivers/iio/dac/ti-dac5571.c if (IS_ERR(data->vref)) vref 337 drivers/iio/dac/ti-dac5571.c return PTR_ERR(data->vref); vref 339 drivers/iio/dac/ti-dac5571.c ret = regulator_enable(data->vref); vref 373 drivers/iio/dac/ti-dac5571.c regulator_disable(data->vref); vref 383 drivers/iio/dac/ti-dac5571.c regulator_disable(data->vref); vref 49 drivers/iio/dac/ti-dac7311.c struct regulator *vref; vref 179 drivers/iio/dac/ti-dac7311.c ret = regulator_get_voltage(ti_dac->vref); vref 270 drivers/iio/dac/ti-dac7311.c ti_dac->vref = devm_regulator_get(dev, "vref"); vref 271 drivers/iio/dac/ti-dac7311.c if (IS_ERR(ti_dac->vref)) { vref 273 drivers/iio/dac/ti-dac7311.c return PTR_ERR(ti_dac->vref); vref 276 drivers/iio/dac/ti-dac7311.c ret = regulator_enable(ti_dac->vref); vref 294 drivers/iio/dac/ti-dac7311.c regulator_disable(ti_dac->vref); vref 305 drivers/iio/dac/ti-dac7311.c regulator_disable(ti_dac->vref); vref 132 drivers/iio/pressure/zpa2326.c struct regulator *vref; vref 335 drivers/iio/pressure/zpa2326.c err = regulator_enable(private->vref); vref 341 drivers/iio/pressure/zpa2326.c goto vref; vref 359 drivers/iio/pressure/zpa2326.c vref: vref 360 drivers/iio/pressure/zpa2326.c regulator_disable(private->vref); vref 379 drivers/iio/pressure/zpa2326.c regulator_disable(private->vref); vref 1629 drivers/iio/pressure/zpa2326.c priv->vref = devm_regulator_get(parent, "vref"); vref 1630 drivers/iio/pressure/zpa2326.c if (IS_ERR(priv->vref)) vref 1631 drivers/iio/pressure/zpa2326.c return PTR_ERR(priv->vref); vref 91 drivers/input/keyboard/sun4i-lradc-keys.c u32 vref; vref 113 drivers/input/keyboard/sun4i-lradc-keys.c voltage = val * lradc->vref / 63; vref 143 drivers/input/keyboard/sun4i-lradc-keys.c lradc->vref = regulator_get_voltage(lradc->vref_supply) * vref 182 drivers/input/touchscreen/ads7846.c #define READ_12BIT_DFR(x, adc, vref) (ADS_START | ADS_A2A1A0_d_ ## x \ vref 184 drivers/input/touchscreen/ads7846.c (adc ? ADS_PD10_ADC_ON : 0) | (vref ? ADS_PD10_REF_ON : 0)) vref 186 drivers/input/touchscreen/ads7846.c #define READ_Y(vref) (READ_12BIT_DFR(y, 1, vref)) vref 187 drivers/input/touchscreen/ads7846.c #define READ_Z1(vref) (READ_12BIT_DFR(z1, 1, vref)) vref 188 drivers/input/touchscreen/ads7846.c #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref)) vref 190 drivers/input/touchscreen/ads7846.c #define READ_X(vref) (READ_12BIT_DFR(x, 1, vref)) vref 978 drivers/input/touchscreen/ads7846.c int vref = pdata->keep_vref_on; vref 987 drivers/input/touchscreen/ads7846.c vref = 0; vref 995 drivers/input/touchscreen/ads7846.c packet->read_y_cmd[0] = READ_Y(vref); vref 1004 drivers/input/touchscreen/ads7846.c packet->read_y = READ_Y(vref); vref 1041 drivers/input/touchscreen/ads7846.c packet->read_x_cmd[0] = READ_X(vref); vref 1051 drivers/input/touchscreen/ads7846.c packet->read_x = READ_X(vref); vref 1085 drivers/input/touchscreen/ads7846.c packet->read_z1 = READ_Z1(vref); vref 1116 drivers/input/touchscreen/ads7846.c packet->read_z2 = READ_Z2(vref); vref 184 drivers/mfd/wm8350-core.c int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) vref 191 drivers/mfd/wm8350-core.c && (scale != 0 || vref != 0)) vref 200 drivers/mfd/wm8350-core.c if (scale || vref) { vref 202 drivers/mfd/wm8350-core.c reg |= vref << 12; vref 169 include/linux/mfd/wm8350/comparator.h int vref); vref 44 include/linux/platform_data/at91_adc.h u16 vref; vref 3899 sound/pci/hda/hda_codec.c unsigned int vcap, vref; vref 3902 sound/pci/hda/hda_codec.c vref = val & AC_PINCTL_VREFEN; vref 3904 sound/pci/hda/hda_codec.c if (vref == cap_lists[i][0] && vref 3907 sound/pci/hda/hda_codec.c vref = AC_PINCTL_VREF_HIZ; vref 3909 sound/pci/hda/hda_codec.c vref = cap_lists[i + 1][0]; vref 3913 sound/pci/hda/hda_codec.c val |= vref; vref 345 sound/pci/hda/hda_proc.c unsigned int vref = vref 348 sound/pci/hda/hda_proc.c if (vref & AC_PINCAP_VREF_HIZ) vref 350 sound/pci/hda/hda_proc.c if (vref & AC_PINCAP_VREF_50) vref 352 sound/pci/hda/hda_proc.c if (vref & AC_PINCAP_VREF_GRD) vref 354 sound/pci/hda/hda_proc.c if (vref & AC_PINCAP_VREF_80) vref 356 sound/pci/hda/hda_proc.c if (vref & AC_PINCAP_VREF_100) vref 416 sound/pci/hda/hda_proc.c int vref = pinctls & AC_PINCTL_VREFEN; vref 417 sound/pci/hda/hda_proc.c switch (vref) { vref 3893 sound/pci/hda/patch_realtek.c int vref; vref 3897 sound/pci/hda/patch_realtek.c vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; vref 3900 sound/pci/hda/patch_realtek.c vref); vref 3903 sound/pci/hda/patch_realtek.c vref); vref 5660 sound/pci/hda/patch_realtek.c int vref; vref 5665 sound/pci/hda/patch_realtek.c vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; vref 5669 sound/pci/hda/patch_realtek.c vref); vref 8740 sound/pci/hda/patch_realtek.c int vref; vref 8744 sound/pci/hda/patch_realtek.c vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; vref 8747 sound/pci/hda/patch_realtek.c vref);