Searched refs:vdd (Results 1 - 106 of 106) sorted by relevance

/linux-4.1.27/arch/arm/vfp/
H A Dvfpdouble.c207 vfp_propagate_nan(struct vfp_double *vdd, struct vfp_double *vdn, vfp_propagate_nan() argument
239 *vdd = *nan; vfp_propagate_nan()
270 struct vfp_double vdm, vdd; vfp_double_fsqrt() local
276 struct vfp_double *vdp = &vdd; vfp_double_fsqrt()
316 vdd.sign = 0; vfp_double_fsqrt()
317 vdd.exponent = ((vdm.exponent - 1023) >> 1) + 1023; vfp_double_fsqrt()
318 vdd.significand = (u64)vfp_estimate_sqrt_significand(vdm.exponent, vdm.significand >> 32) << 31; vfp_double_fsqrt()
320 vfp_double_dump("sqrt estimate1", &vdd); vfp_double_fsqrt()
323 vdd.significand += 2 + vfp_estimate_div128to64(vdm.significand, 0, vdd.significand); vfp_double_fsqrt()
325 vfp_double_dump("sqrt estimate2", &vdd); vfp_double_fsqrt()
330 if ((vdd.significand & VFP_DOUBLE_LOW_BITS_MASK) <= 5) { vfp_double_fsqrt()
331 if (vdd.significand < 2) { vfp_double_fsqrt()
332 vdd.significand = ~0ULL; vfp_double_fsqrt()
336 mul64to128(&termh, &terml, vdd.significand, vdd.significand); vfp_double_fsqrt()
339 vdd.significand -= 1; vfp_double_fsqrt()
340 shift64left(&termh, &terml, vdd.significand); vfp_double_fsqrt()
344 vdd.significand |= (remh | reml) != 0; vfp_double_fsqrt()
347 vdd.significand = vfp_shiftright64jamming(vdd.significand, 1); vfp_double_fsqrt()
349 return vfp_double_normaliseround(dd, &vdd, fpscr, 0, "fsqrt"); vfp_double_fsqrt()
683 vfp_double_fadd_nonnumber(struct vfp_double *vdd, struct vfp_double *vdn, vfp_double_fadd_nonnumber() argument
718 return vfp_propagate_nan(vdd, vdn, vdm, fpscr); vfp_double_fadd_nonnumber()
720 *vdd = *vdp; vfp_double_fadd_nonnumber()
725 vfp_double_add(struct vfp_double *vdd, struct vfp_double *vdn, vfp_double_add() argument
754 return vfp_double_fadd_nonnumber(vdd, vdn, vdm, fpscr); vfp_double_add()
761 *vdd = *vdn; vfp_double_add()
775 vdd->sign = vfp_sign_negate(vdd->sign); vfp_double_add()
778 vdd->sign = (fpscr & FPSCR_RMODE_MASK) == vfp_double_add()
784 vdd->significand = m_sig; vfp_double_add()
790 vfp_double_multiply(struct vfp_double *vdd, struct vfp_double *vdn, vfp_double_multiply() argument
808 vdd->sign = vdn->sign ^ vdm->sign; vfp_double_multiply()
815 return vfp_propagate_nan(vdd, vdn, vdm, fpscr); vfp_double_multiply()
817 *vdd = vfp_double_default_qnan; vfp_double_multiply()
820 vdd->exponent = vdn->exponent; vfp_double_multiply()
821 vdd->significand = 0; vfp_double_multiply()
830 vdd->exponent = 0; vfp_double_multiply()
831 vdd->significand = 0; vfp_double_multiply()
840 vdd->exponent = vdn->exponent + vdm->exponent - 1023 + 2; vfp_double_multiply()
841 vdd->significand = vfp_hi64multiply64(vdn->significand, vdm->significand); vfp_double_multiply()
843 vfp_double_dump("VDD", vdd); vfp_double_multiply()
853 struct vfp_double vdd, vdp, vdn, vdm; vfp_double_multiply_accumulate() local
874 exceptions |= vfp_double_add(&vdd, &vdn, &vdp, fpscr); vfp_double_multiply_accumulate()
876 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, func); vfp_double_multiply_accumulate()
920 struct vfp_double vdd, vdn, vdm; vfp_double_fmul() local
931 exceptions = vfp_double_multiply(&vdd, &vdn, &vdm, fpscr); vfp_double_fmul()
932 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fmul"); vfp_double_fmul()
940 struct vfp_double vdd, vdn, vdm; vfp_double_fnmul() local
951 exceptions = vfp_double_multiply(&vdd, &vdn, &vdm, fpscr); vfp_double_fnmul()
952 vdd.sign = vfp_sign_negate(vdd.sign); vfp_double_fnmul()
954 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fnmul"); vfp_double_fnmul()
962 struct vfp_double vdd, vdn, vdm; vfp_double_fadd() local
973 exceptions = vfp_double_add(&vdd, &vdn, &vdm, fpscr); vfp_double_fadd()
975 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fadd"); vfp_double_fadd()
983 struct vfp_double vdd, vdn, vdm; vfp_double_fsub() local
999 exceptions = vfp_double_add(&vdd, &vdn, &vdm, fpscr); vfp_double_fsub()
1001 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fsub"); vfp_double_fsub()
1009 struct vfp_double vdd, vdn, vdm; vfp_double_fdiv() local
1016 vdd.sign = vdn.sign ^ vdm.sign; vfp_double_fdiv()
1066 vdd.exponent = vdn.exponent - vdm.exponent + 1023 - 1; vfp_double_fdiv()
1070 vdd.exponent++; vfp_double_fdiv()
1072 vdd.significand = vfp_estimate_div128to64(vdn.significand, 0, vdm.significand); vfp_double_fdiv()
1073 if ((vdd.significand & 0x1ff) <= 2) { vfp_double_fdiv()
1075 mul64to128(&termh, &terml, vdm.significand, vdd.significand); vfp_double_fdiv()
1078 vdd.significand -= 1; vfp_double_fdiv()
1081 vdd.significand |= (reml != 0); vfp_double_fdiv()
1083 return vfp_double_normaliseround(dd, &vdd, fpscr, 0, "fdiv"); vfp_double_fdiv()
1086 exceptions = vfp_propagate_nan(&vdd, &vdn, &vdm, fpscr); vfp_double_fdiv()
1088 vfp_put_double(vfp_double_pack(&vdd), dd); vfp_double_fdiv()
1092 exceptions = vfp_propagate_nan(&vdd, &vdm, &vdn, fpscr); vfp_double_fdiv()
1096 vdd.exponent = 0; vfp_double_fdiv()
1097 vdd.significand = 0; vfp_double_fdiv()
1103 vdd.exponent = 2047; vfp_double_fdiv()
1104 vdd.significand = 0; vfp_double_fdiv()
H A Dvfpsingle.c485 struct vfp_double vdd; vfp_single_fcvtd() local
502 vdd.sign = vsm.sign; vfp_single_fcvtd()
503 vdd.significand = (u64)vsm.significand << 32; vfp_single_fcvtd()
509 vdd.exponent = 2047; vfp_single_fcvtd()
511 vdd.significand |= VFP_DOUBLE_SIGNIFICAND_QNAN; vfp_single_fcvtd()
514 vdd.exponent = 0; vfp_single_fcvtd()
516 vdd.exponent = vsm.exponent + (1023 - 127); vfp_single_fcvtd()
518 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fcvtd"); vfp_single_fcvtd()
521 vfp_put_double(vfp_double_pack(&vdd), dd); vfp_single_fcvtd()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dgk20a.c38 struct regulator *vdd; member in struct:gk20a_volt_priv
109 uv = regulator_get_voltage(priv->vdd); gk20a_volt_vid_get()
124 return regulator_set_voltage(priv->vdd, volt->vid[vid].uv, 1200000); gk20a_volt_vid_set()
131 int prev_uv = regulator_get_voltage(priv->vdd); gk20a_volt_set_id()
167 uv = regulator_get_voltage(plat->gpu->vdd); gk20a_volt_ctor()
170 priv->vdd = plat->gpu->vdd; gk20a_volt_ctor()
/linux-4.1.27/drivers/hwmon/
H A Dmcp3021.c50 u32 vdd; /* device power supply */ member in struct:mcp3021_data
83 return DIV_ROUND_CLOSEST(data->vdd * val, 1 << data->output_res); volts_from_reg()
135 data->vdd = *(u32 *)dev_get_platdata(&client->dev); mcp3021_probe()
136 if (data->vdd > MCP3021_VDD_MAX || data->vdd < MCP3021_VDD_MIN) mcp3021_probe()
139 data->vdd = MCP3021_VDD_REF; mcp3021_probe()
H A Dda9052-hwmon.c79 int ret, vdd; da9052_read_vddout() local
87 vdd = da9052_reg_read(hwmon->da9052, DA9052_VDD_RES_REG); da9052_read_vddout()
88 if (vdd < 0) { da9052_read_vddout()
89 ret = vdd; da9052_read_vddout()
98 return sprintf(buf, "%d\n", volt_reg_to_mv(vdd)); da9052_read_vddout()
H A Dsht15.c68 * @vdd: supply voltage in microvolts
72 int vdd; /* microvolts */ member in struct:sht15_temppair
636 if (data->supply_uv > temppoints[i - 1].vdd) { sht15_calc_temp()
637 d1 = (data->supply_uv - temppoints[i - 1].vdd) sht15_calc_temp()
639 / (temppoints[i].vdd - temppoints[i - 1].vdd) sht15_calc_temp()
/linux-4.1.27/drivers/mmc/core/
H A Ddebugfs.c62 seq_printf(s, "vdd:\t\t%u ", ios->vdd); mmc_ios_show()
63 if ((1 << ios->vdd) & MMC_VDD_165_195) mmc_ios_show()
65 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) mmc_ios_show()
66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) mmc_ios_show()
67 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], mmc_ios_show()
68 vdd_str[ios->vdd + 1]); mmc_ios_show()
H A Dcore.c998 ios->power_mode, ios->chip_select, ios->vdd, mmc_set_ios()
1158 * @vdd: voltage (mV)
1161 * This function returns the OCR bit number according to the provided @vdd
1171 static int mmc_vdd_to_ocrbitnum(int vdd, bool low_bits) mmc_vdd_to_ocrbitnum() argument
1176 if (vdd < 1650 || vdd > 3600) mmc_vdd_to_ocrbitnum()
1179 if (vdd >= 1650 && vdd <= 1950) mmc_vdd_to_ocrbitnum()
1183 vdd -= 1; mmc_vdd_to_ocrbitnum()
1186 bit = (vdd - 2000) / 100 + 8; mmc_vdd_to_ocrbitnum()
1350 * @vdd_bit: zero for power off, else a bit number (host->ios.vdd)
1465 if (bit != host->ios.vdd) mmc_select_voltage()
1626 host->ios.vdd = fls(ocr) - 1; mmc_power_up()
1671 host->ios.vdd = 0; mmc_power_off()
H A Dsd.c534 voltage = 1 << host->ios.vdd; sd_get_host_max_current()
H A Dmmc.c783 switch (1 << host->ios.vdd) { __mmc_select_powerclass()
/linux-4.1.27/arch/arm/plat-samsung/
H A Dadc.c78 struct regulator *vdd; member in struct:adc_device
358 adc->vdd = devm_regulator_get(dev, "vdd"); s3c_adc_probe()
359 if (IS_ERR(adc->vdd)) { s3c_adc_probe()
360 dev_err(dev, "operating without regulator \"vdd\" .\n"); s3c_adc_probe()
361 return PTR_ERR(adc->vdd); s3c_adc_probe()
388 ret = regulator_enable(adc->vdd); s3c_adc_probe()
417 regulator_disable(adc->vdd); s3c_adc_remove()
440 regulator_disable(adc->vdd); s3c_adc_suspend()
454 ret = regulator_enable(adc->vdd); s3c_adc_resume()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_platform.c41 err = regulator_enable(gpu->vdd); nouveau_platform_power_up()
72 regulator_disable(gpu->vdd); nouveau_platform_power_up()
88 err = regulator_disable(gpu->vdd); nouveau_platform_power_down()
172 gpu->vdd = devm_regulator_get(&pdev->dev, "vdd"); nouveau_platform_probe()
173 if (IS_ERR(gpu->vdd)) nouveau_platform_probe()
174 return PTR_ERR(gpu->vdd); nouveau_platform_probe()
H A Dnouveau_platform.h40 struct regulator *vdd; member in struct:nouveau_platform_gpu
/linux-4.1.27/include/linux/platform_data/
H A Dhsmmc-omap.h77 int (*set_power)(struct device *dev, int power_on, int vdd);
80 void (*before_set_reg)(struct device *dev, int power_on, int vdd);
82 void (*after_set_reg)(struct device *dev, int power_on, int vdd);
H A Dmmc-omap.h91 int power_on, int vdd);
96 int power_on, int vdd);
99 int power_on, int vdd);
H A Dmmc-mxcmmc.h33 void (*setpower)(struct device *, unsigned int vdd);
H A Dmmc-s3cmci.h40 unsigned short vdd);
/linux-4.1.27/drivers/media/platform/omap3isp/
H A Dispcsiphy.h30 struct regulator *vdd; member in struct:isp_csiphy
H A Dispcsiphy.c269 if (phy->vdd == NULL) { omap3isp_csiphy_acquire()
277 rval = regulator_enable(phy->vdd); omap3isp_csiphy_acquire()
291 regulator_disable(phy->vdd); omap3isp_csiphy_acquire()
316 regulator_disable(phy->vdd); omap3isp_csiphy_release()
H A Disp.c2454 isp->isp_csiphy1.vdd = devm_regulator_get(&pdev->dev, "vdd-csiphy1"); isp_probe()
2455 isp->isp_csiphy2.vdd = devm_regulator_get(&pdev->dev, "vdd-csiphy2"); isp_probe()
/linux-4.1.27/drivers/gpu/drm/tegra/
H A Ddpaux.c42 struct regulator *vdd; member in struct:tegra_dpaux
326 dpaux->vdd = devm_regulator_get(&pdev->dev, "vdd"); tegra_dpaux_probe()
327 if (IS_ERR(dpaux->vdd)) tegra_dpaux_probe()
328 return PTR_ERR(dpaux->vdd); tegra_dpaux_probe()
419 err = regulator_enable(dpaux->vdd); tegra_dpaux_attach()
443 err = regulator_disable(dpaux->vdd); tegra_dpaux_detach()
H A Ddsi.c76 struct regulator *vdd; member in struct:tegra_dsi
1527 dsi->vdd = devm_regulator_get(&pdev->dev, "avdd-dsi-csi"); tegra_dsi_probe()
1528 if (IS_ERR(dsi->vdd)) { tegra_dsi_probe()
1530 err = PTR_ERR(dsi->vdd); tegra_dsi_probe()
1534 err = regulator_enable(dsi->vdd); tegra_dsi_probe()
1588 regulator_disable(dsi->vdd); tegra_dsi_probe()
1615 regulator_disable(dsi->vdd); tegra_dsi_remove()
H A Dhdmi.c51 struct regulator *vdd; member in struct:tegra_hdmi
1374 err = regulator_enable(hdmi->vdd); tegra_hdmi_init()
1400 regulator_disable(hdmi->vdd); tegra_hdmi_exit()
1512 hdmi->vdd = devm_regulator_get(&pdev->dev, "vdd"); tegra_hdmi_probe()
1513 if (IS_ERR(hdmi->vdd)) { tegra_hdmi_probe()
1515 return PTR_ERR(hdmi->vdd); tegra_hdmi_probe()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dhsmmc.c37 int power_on, int vdd) omap_hsmmc1_before_set_reg()
58 if ((1 << vdd) >= MMC_VDD_30_31) omap_hsmmc1_before_set_reg()
89 static void omap_hsmmc1_after_set_reg(struct device *dev, int power_on, int vdd) omap_hsmmc1_after_set_reg() argument
99 if ((1 << vdd) <= MMC_VDD_165_195) omap_hsmmc1_after_set_reg()
124 static void hsmmc2_before_set_reg(struct device *dev, int power_on, int vdd) hsmmc2_before_set_reg() argument
135 static int am35x_hsmmc2_set_power(struct device *dev, int power_on, int vdd) am35x_hsmmc2_set_power() argument
145 static int nop_mmc_set_power(struct device *dev, int power_on, int vdd) nop_mmc_set_power() argument
36 omap_hsmmc1_before_set_reg(struct device *dev, int power_on, int vdd) omap_hsmmc1_before_set_reg() argument
H A Dboard-n8x0.c198 int power_on, int vdd) n8x0_mmc_set_power_menelaus()
203 dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1, n8x0_mmc_set_power_menelaus()
204 power_on ? "on" : "off", vdd); n8x0_mmc_set_power_menelaus()
209 switch (1 << vdd) { n8x0_mmc_set_power_menelaus()
231 switch (1 << vdd) { n8x0_mmc_set_power_menelaus()
285 int vdd) n8x0_mmc_set_power()
288 return n8x0_mmc_set_power_menelaus(dev, slot, power_on, vdd); n8x0_mmc_set_power()
197 n8x0_mmc_set_power_menelaus(struct device *dev, int slot, int power_on, int vdd) n8x0_mmc_set_power_menelaus() argument
284 n8x0_mmc_set_power(struct device *dev, int slot, int power_on, int vdd) n8x0_mmc_set_power() argument
H A Dvoltage.c143 * @volt_data: the voltage table for the particular vdd which is to be
148 * supported by this vdd.
H A Dpm.c162 pr_err("%s: unable to get vdd pointer for vdd_%s\n", omap2_set_init_voltage()
H A Dboard-cm-t35.c533 REGULATOR_SUPPLY("vdd", "3-005d"),
H A Dvc.c120 /* Check if sufficient pmic info is available for this vdd */ omap_vc_pre_scale()
H A Dboard-rx51-peripherals.c559 REGULATOR_SUPPLY("vdd", "2-0063"),
/linux-4.1.27/drivers/iio/adc/
H A Dexynos_adc.c106 struct regulator *vdd; member in struct:exynos_adc
639 info->vdd = devm_regulator_get(&pdev->dev, "vdd"); exynos_adc_probe()
640 if (IS_ERR(info->vdd)) { exynos_adc_probe()
642 PTR_ERR(info->vdd)); exynos_adc_probe()
643 return PTR_ERR(info->vdd); exynos_adc_probe()
646 ret = regulator_enable(info->vdd); exynos_adc_probe()
704 regulator_disable(info->vdd); exynos_adc_probe()
721 regulator_disable(info->vdd); exynos_adc_remove()
735 regulator_disable(info->vdd); exynos_adc_suspend()
746 ret = regulator_enable(info->vdd); exynos_adc_resume()
/linux-4.1.27/drivers/input/keyboard/
H A Dmpr121_touchkey.c131 int i, t, vdd, ret; mpr121_phys_init() local
159 vdd = pdata->vdd_uv / 1000; mpr121_phys_init()
160 usl = ((vdd - 700) * 256) / vdd; mpr121_phys_init()
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-h2-mmc.c25 int vdd) mmc_set_power()
24 mmc_set_power(struct device *dev, int slot, int power_on, int vdd) mmc_set_power() argument
H A Dboard-h3-mmc.c25 int vdd) mmc_set_power()
24 mmc_set_power(struct device *dev, int slot, int power_on, int vdd) mmc_set_power() argument
H A Dboard-sx1-mmc.c26 int vdd) mmc_set_power()
25 mmc_set_power(struct device *dev, int slot, int power_on, int vdd) mmc_set_power() argument
H A Dboard-nokia770.c168 int vdd) nokia770_mmc_set_power()
167 nokia770_mmc_set_power(struct device *dev, int slot, int power_on, int vdd) nokia770_mmc_set_power() argument
H A Dboard-innovator.c334 int vdd) mmc_set_power()
333 mmc_set_power(struct device *dev, int slot, int power_on, int vdd) mmc_set_power() argument
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
H A Dmdp4_kms.c423 mdp4_kms->vdd = devm_regulator_get_exclusive(&pdev->dev, "vdd"); mdp4_kms_init()
424 if (IS_ERR(mdp4_kms->vdd)) mdp4_kms_init()
425 mdp4_kms->vdd = NULL; mdp4_kms_init()
427 if (mdp4_kms->vdd) { mdp4_kms_init()
428 ret = regulator_enable(mdp4_kms->vdd); mdp4_kms_init()
430 dev_err(dev->dev, "failed to enable regulator vdd: %d\n", ret); mdp4_kms_init()
H A Dmdp4_kms.h42 struct regulator *vdd; member in struct:mdp4_kms
/linux-4.1.27/drivers/iio/common/st_sensors/
H A Dst_sensors_core.c213 pdata->vdd = devm_regulator_get_optional(indio_dev->dev.parent, "vdd"); st_sensors_power_enable()
214 if (!IS_ERR(pdata->vdd)) { st_sensors_power_enable()
215 err = regulator_enable(pdata->vdd); st_sensors_power_enable()
235 if (!IS_ERR(pdata->vdd)) st_sensors_power_disable()
236 regulator_disable(pdata->vdd); st_sensors_power_disable()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_kms.c446 mdp5_kms->vdd = devm_regulator_get(&pdev->dev, "vdd"); mdp5_kms_init()
447 if (IS_ERR(mdp5_kms->vdd)) { mdp5_kms_init()
448 ret = PTR_ERR(mdp5_kms->vdd); mdp5_kms_init()
452 ret = regulator_enable(mdp5_kms->vdd); mdp5_kms_init()
454 dev_err(dev->dev, "failed to enable regulator vdd: %d\n", ret); mdp5_kms_init()
H A Dmdp5_kms.h46 struct regulator *vdd; member in struct:mdp5_kms
/linux-4.1.27/drivers/media/radio/si4713/
H A Dsi4713.c370 if (sdev->vdd) { si4713_powerup()
371 err = regulator_enable(sdev->vdd); si4713_powerup()
373 v4l2_err(&sdev->sd, "Failed to enable vdd: %d\n", err); si4713_powerup()
413 if (sdev->vdd) { si4713_powerup()
414 err = regulator_disable(sdev->vdd); si4713_powerup()
416 v4l2_err(&sdev->sd, "Failed to disable vdd: %d\n", err); si4713_powerup()
452 if (sdev->vdd) { si4713_powerdown()
453 err = regulator_disable(sdev->vdd); si4713_powerdown()
456 "Failed to disable vdd: %d\n", err); si4713_powerdown()
1470 sdev->vdd = devm_regulator_get_optional(&client->dev, "vdd"); si4713_probe()
1471 if (IS_ERR(sdev->vdd)) { si4713_probe()
1472 rval = PTR_ERR(sdev->vdd); si4713_probe()
1476 dev_dbg(&client->dev, "no vdd regulator found: %d\n", rval); si4713_probe()
1477 sdev->vdd = NULL; si4713_probe()
H A Dsi4713.h239 struct regulator *vdd; member in struct:si4713_device
/linux-4.1.27/arch/arm/mach-ux500/
H A Dboard-mop500-regulators.c69 REGULATOR_SUPPLY("vdd", "2-0018"),
71 REGULATOR_SUPPLY("vdd", "2-0019"),
73 REGULATOR_SUPPLY("vdd", "2-001e"),
78 REGULATOR_SUPPLY("vdd", "3-004b"),
80 REGULATOR_SUPPLY("vdd", "2-0068"),
82 REGULATOR_SUPPLY("vdd", "3-0029"),
84 REGULATOR_SUPPLY("vdd", "2-005c"),
/linux-4.1.27/drivers/mmc/host/
H A Domap.c105 unsigned int vdd; member in struct:mmc_omap_slot
1103 int vdd) mmc_omap_set_power()
1111 vdd); mmc_omap_set_power() local
1164 if (ios->vdd != slot->vdd) mmc_omap_set_ios()
1165 slot->vdd = ios->vdd; mmc_omap_set_ios()
1170 mmc_omap_set_power(slot, 0, ios->vdd); mmc_omap_set_ios()
1174 mmc_omap_set_power(slot, 1, ios->vdd); mmc_omap_set_ios()
1102 mmc_omap_set_power(struct mmc_omap_slot *slot, int power_on, int vdd) mmc_omap_set_power() argument
H A Domap_hsmmc.c259 static int omap_hsmmc_set_power(struct device *dev, int power_on, int vdd) omap_hsmmc_set_power() argument
273 mmc_pdata(host)->before_set_reg(dev, power_on, vdd); omap_hsmmc_set_power()
299 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); omap_hsmmc_set_power()
319 if (vdd <= VDD_165_195) omap_hsmmc_set_power()
336 mmc_pdata(host)->after_set_reg(dev, power_on, vdd); omap_hsmmc_set_power()
384 int vdd = ffs(mmc_pdata(host)->ocr_mask) - 1; omap_hsmmc_reg_get() local
386 mmc_pdata(host)->set_power(host->dev, 1, vdd); omap_hsmmc_reg_get()
638 (1 << ios->vdd) <= MMC_VDD_23_24) omap_hsmmc_context_restore()
1156 static int omap_hsmmc_switch_opcond(struct omap_hsmmc_host *host, int vdd) omap_hsmmc_switch_opcond() argument
1171 ret = mmc_pdata(host)->set_power(host->dev, 1, vdd); omap_hsmmc_switch_opcond()
1198 if ((1 << vdd) <= MMC_VDD_23_24) omap_hsmmc_switch_opcond()
1573 mmc_pdata(host)->set_power(host->dev, 1, ios->vdd); omap_hsmmc_set_ios()
1591 (ios->vdd == DUAL_VOLT_OCR_BIT)) { omap_hsmmc_set_ios()
1596 * vdd 1.8v. omap_hsmmc_set_ios()
1598 if (omap_hsmmc_switch_opcond(host, ios->vdd) != 0) omap_hsmmc_set_ios()
H A Dpxamci.c107 unsigned int vdd) pxamci_set_power()
115 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); pxamci_set_power()
126 on = ((1 << vdd) & host->pdata->ocr_mask); pxamci_set_power()
131 return host->pdata->setpower(mmc_dev(host->mmc), vdd); pxamci_set_power()
513 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); pxamci_set_ios()
105 pxamci_set_power(struct pxamci_host *host, unsigned char power_mode, unsigned int vdd) pxamci_set_power() argument
H A Dmoxart-mmc.c518 if (ios->vdd < MIN_POWER) moxart_set_ios()
521 power = ios->vdd - MIN_POWER; moxart_set_ios()
H A Dmxcmmc.c241 static void mxcmci_set_power(struct mxcmci_host *host, unsigned int vdd) mxcmci_set_power() argument
246 host->mmc->supply.vmmc, vdd); mxcmci_set_power()
253 host->pdata->setpower(mmc_dev(host->mmc), vdd); mxcmci_set_power()
882 mxcmci_set_power(host, ios->vdd); mxcmci_set_ios()
H A Dtifm_sd.c806 dev_dbg(&sock->dev, "ios: clock = %u, vdd = %x, bus_mode = %x, " tifm_sd_ios()
808 ios->clock, ios->vdd, ios->bus_mode, ios->chip_select, tifm_sd_ios()
858 //vdd tifm_sd_ios()
H A Dtmio_mmc_pio.c850 static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd) tmio_mmc_power_on() argument
861 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); tmio_mmc_power_on()
958 tmio_mmc_power_on(host, ios->vdd); tmio_mmc_set_ios()
H A Dvia-sdmmc.c776 via_sdc_set_power(host, ios->vdd, 1); via_sdc_set_ios()
778 via_sdc_set_power(host, ios->vdd, 0); via_sdc_set_ios()
H A Dsdhci.c1285 unsigned short vdd) sdhci_set_power()
1292 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); sdhci_set_power()
1304 switch (1 << vdd) { sdhci_set_power()
1330 vdd = 0; sdhci_set_power()
1544 sdhci_set_power(host, ios->power_mode, ios->vdd); sdhci_do_set_ios()
1284 sdhci_set_power(struct sdhci_host *host, unsigned char mode, unsigned short vdd) sdhci_set_power() argument
H A Dmmc_spi.c1192 ios->vdd, mmc_spi_set_ios()
1203 ios->vdd); mmc_spi_set_ios()
H A Ds3cmci.c1250 host->pdata->set_power(ios->power_mode, ios->vdd); s3cmci_set_ios()
1265 host->pdata->set_power(ios->power_mode, ios->vdd); s3cmci_set_ios()
H A Dusdhi6rol0.c793 ios->power_mode ? ios->vdd : 0); usdhi6_set_power()
817 ios->clock, ios->vdd, ios->power_mode, ios->bus_width, ios->timing); usdhi6_set_ios()
H A Ddavinci_mmc.c738 ios->vdd); mmc_davinci_set_ios()
H A Dsunxi-mmc.c697 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); sunxi_mmc_set_ios()
H A Dmmci.c1340 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); mmci_set_ios()
H A Dsh_mmcif.c995 ios->power_mode ? ios->vdd : 0); sh_mmcif_set_power()
H A Datmel-mci.c1409 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); atmci_set_ios()
H A Ddw_mmc.c1194 ios->vdd); dw_mci_set_ios()
/linux-4.1.27/arch/arm/mach-imx/
H A Dmach-mx31_3ds.c338 static void mx31_3ds_sdhc1_setpower(struct device *dev, unsigned int vdd) mx31_3ds_sdhc1_setpower() argument
345 * of the presence of the card, showed by the value of vdd. mx31_3ds_sdhc1_setpower()
348 if (vdd > 7) mx31_3ds_sdhc1_setpower()
429 REGULATOR_SUPPLY("vdd", "spi0.0"),
H A Dmach-mx27_3ds.c289 REGULATOR_SUPPLY("vdd", "spi0.0"),
/linux-4.1.27/arch/arm/mach-pxa/
H A Dpoodle.c263 static int poodle_mci_setpower(struct device *dev, unsigned int vdd) poodle_mci_setpower() argument
267 if ((1 << vdd) & p_d->ocr_mask) { poodle_mci_setpower()
H A Dmainstone.c327 static int mainstone_mci_setpower(struct device *dev, unsigned int vdd) mainstone_mci_setpower() argument
331 if (( 1 << vdd) & p_d->ocr_mask) { mainstone_mci_setpower()
H A Dpcm990-baseboard.c339 static int pcm990_mci_setpower(struct device *dev, unsigned int vdd) pcm990_mci_setpower() argument
346 if ((1 << vdd) & p_d->ocr_mask) pcm990_mci_setpower()
H A Dem-x270.c602 static int em_x270_mci_setpower(struct device *dev, unsigned int vdd) em_x270_mci_setpower() argument
606 if ((1 << vdd) & p_d->ocr_mask) { em_x270_mci_setpower()
607 int vdd_uV = (2000 + (vdd - __ffs(MMC_VDD_20_21)) * 100) * 1000; em_x270_mci_setpower()
H A Dspitz.c602 static int spitz_mci_setpower(struct device *dev, unsigned int vdd) spitz_mci_setpower() argument
606 if ((1 << vdd) & p_d->ocr_mask) spitz_mci_setpower()
H A Dstargate2.c737 static int stargate2_mci_setpower(struct device *dev, unsigned int vdd) stargate2_mci_setpower() argument
739 gpio_set_value(SG2_SD_POWER_ENABLE, !!vdd); stargate2_mci_setpower()
H A Dzeus.c397 REGULATOR_SUPPLY("vdd", "spi3.0");
/linux-4.1.27/include/linux/iio/common/
H A Dst_sensors.h201 * @vdd: Pointer to sensor's Vdd power supply
218 struct regulator *vdd; member in struct:st_sensor_data
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_dp.c440 * Even vdd force doesn't work until we've made vlv_power_sequencer_pipe()
506 /* didn't find one? pick one where vdd is on */ vlv_initial_power_sequencer_setup()
810 bool vdd; intel_dp_aux_ch() local
820 vdd = edp_panel_vdd_on(intel_dp); intel_dp_aux_ch()
926 if (vdd) intel_dp_aux_ch()
1748 bool vdd; intel_edp_panel_vdd_on() local
1754 vdd = edp_panel_vdd_on(intel_dp); intel_edp_panel_vdd_on()
1757 I915_STATE_WARN(!vdd, "eDP port %c VDD already requested on\n", intel_edp_panel_vdd_on()
1933 /* We need to switch off panel power _and_ force vdd, for otherwise some edp_panel_off()
2308 * ensure that we have vdd while we switch off the panel. */ intel_disable_dp()
2559 * have the same port selected (even if only one has power/vdd vlv_detach_power_sequencer()
2606 /* make sure vdd is off before we steal it */ vlv_steal_power_sequencer()
2629 * port previously make sure to turn off vdd there while vlv_init_panel_power_sequencer()
4536 * vdd might still be enabled do to the delayed vdd off. intel_dp_encoder_destroy()
4537 * Make sure vdd is actually turned off here. intel_dp_encoder_destroy()
4560 * vdd might still be enabled do to the delayed vdd off. intel_dp_encoder_suspend()
4561 * Make sure vdd is actually turned off here. intel_dp_encoder_suspend()
4584 * schedule a vdd off, so we don't hold on to the reference intel_edp_panel_vdd_sanitize()
4661 * vdd off can generate a long pulse on eDP which intel_dp_hpd_pulse()
4662 * would require vdd on to handle it, and thus we intel_dp_hpd_pulse()
4664 * "vdd off -> long hpd -> vdd on -> detect -> vdd off -> ..." intel_dp_hpd_pulse()
5568 * vdd might still be enabled do to the delayed vdd off. intel_dp_init_connector()
5569 * Make sure vdd is actually turned off here. intel_dp_init_connector()
/linux-4.1.27/drivers/input/touchscreen/
H A Dmms114.c324 dev_err(&client->dev, "Failed to enable vdd: %d\n", error); mms114_start()
358 dev_warn(&client->dev, "Failed to disable vdd: %d\n", error); mms114_stop()
492 data->io_reg = devm_regulator_get(&client->dev, "vdd"); mms114_probe()
H A Dzforce_ts.c775 ts->reg_vdd = devm_regulator_get_optional(&client->dev, "vdd"); zforce_probe()
/linux-4.1.27/drivers/leds/
H A Dleds-lp5523.c590 u8 status, adc, vdd; lp5523_selftest() local
614 ret = lp55xx_read(chip, LP5523_REG_LED_TEST_ADC, &vdd); lp5523_selftest()
618 vdd--; /* There may be some fluctuation in measurement */ lp5523_selftest()
647 if (adc >= vdd || adc < LP5523_ADC_SHORTCIRC_LIM) lp5523_selftest()
/linux-4.1.27/include/linux/mmc/
H A Dhost.h25 unsigned short vdd; member in struct:mmc_ios
27 /* vdd stores the bit number of the selected voltage range from below. */
/linux-4.1.27/drivers/video/backlight/
H A Dl4f00242t03.c209 priv->io_reg = devm_regulator_get(&spi->dev, "vdd"); l4f00242t03_probe()
/linux-4.1.27/sound/soc/codecs/
H A Dak4104.c283 ak4104->regulator = devm_regulator_get(&spi->dev, "vdd"); ak4104_spi_probe()
H A Dsta350.c163 "vdd-dig", /* digital supply, 3.3V */
164 "vdd-pll", /* pll supply, 3.3V */
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
H A Ddsi_host.c72 {"vdd", 3000000, 3000000, 150000, 100},
87 {"vdd", 3000000, 3000000, 150000, 100},
102 {"vdd", 3000000, 3000000, 150000, 100},
117 {"vdd", 3000000, 3000000, 150000, 100},
132 {"vdd", 2850000, 2850000, 100000, 100},
/linux-4.1.27/drivers/iio/dac/
H A Dad5791.c357 st->reg_vdd = devm_regulator_get(&spi->dev, "vdd"); ad5791_probe()
/linux-4.1.27/drivers/scsi/ufs/
H A Dufshcd-pltfrm.c223 err = ufshcd_populate_vreg(dev, "vdd-hba", &info->vdd_hba); ufshcd_parse_regulator_info()
/linux-4.1.27/drivers/gpu/drm/msm/edp/
H A Dedp_ctrl.c314 ctrl->lvl_vreg = devm_regulator_get(dev, "lvl-vdd"); edp_regulator_init()
316 pr_err("Could not get lvl-vdd reg, %ld", edp_regulator_init()
349 pr_err("Failed to enable lvl-vdd reg regulator, %d", ret); edp_regulator_enable()
/linux-4.1.27/drivers/net/ethernet/micrel/
H A Dks8851.c1444 ks->vdd_io = devm_regulator_get(&spi->dev, "vdd-io"); ks8851_probe()
1457 ks->vdd_reg = devm_regulator_get(&spi->dev, "vdd"); ks8851_probe()
1465 dev_err(&spi->dev, "regulator vdd enable fail: %d\n", ks8851_probe()
/linux-4.1.27/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c56 "vdd-int", /* Digital Core supply (1.2V), CAM_ISP_CORE_1.2V */
58 "vdd-reg", /* Regulator input supply (2.8V), CAM_SENSOR_A2.8V */
63 "vdd-af", /* Lens, CAM_AF_2.8V */
/linux-4.1.27/drivers/pci/host/
H A Dpci-tegra.c1484 pcie->supplies[1].supply = "vdd"; tegra_pcie_get_legacy_regulators()
1550 pcie->supplies[i++].supply = "vdd-pexa"; tegra_pcie_get_regulators()
1555 pcie->supplies[i++].supply = "vdd-pexb"; tegra_pcie_get_regulators()
1567 pcie->supplies[1].supply = "vdd-pex"; tegra_pcie_get_regulators()
/linux-4.1.27/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-370.c55 MPP_FUNCTION(0x1, "cpu_pd", "vdd")),
/linux-4.1.27/drivers/gpu/drm/msm/
H A Dmsm_gpu.c592 gpu->gpu_reg = devm_regulator_get(&pdev->dev, "vdd"); msm_gpu_init()
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dmach-h1940.c450 static void h1940_set_mmc_power(unsigned char power_mode, unsigned short vdd) h1940_set_mmc_power() argument
H A Dmach-n30.c341 static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd) n30_sdi_set_power() argument
H A Dmach-rx1950.c541 static void rx1950_set_mmc_power(unsigned char power_mode, unsigned short vdd) rx1950_set_mmc_power() argument
/linux-4.1.27/drivers/media/i2c/
H A Dmt9t001.c870 mt9t001->regulators[0].supply = "vdd"; mt9t001_probe()
H A Dmt9p031.c1062 mt9p031->regulators[0].supply = "vdd"; mt9p031_probe()
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_91x_sdio.c178 host->ios.vdd = bit; rsi_reset_card()
/linux-4.1.27/drivers/staging/iio/addac/
H A Dadt7316.c1848 mask = 0; /* enable vdd int */ adt7316_set_int_mask()
1850 mask = ADT7316_INT_MASK2_VDD; /* disable vdd int */ adt7316_set_int_mask()
/linux-4.1.27/drivers/usb/phy/
H A Dphy-msm-usb.c1481 if (of_get_property(node, "qcom,vdd-levels", &len) && msm_otg_read_dt()
1483 of_property_read_u32_array(node, "qcom,vdd-levels", msm_otg_read_dt()
/linux-4.1.27/drivers/platform/x86/
H A Dthinkpad_acpi.c643 if (!acpi_evalf(ecwr_handle, NULL, NULL, "vdd", i, v)) acpi_ec_write()
2148 NULL, "MHKM", "vdd", i + 1, hotkey_mask_set()
4769 "\\_SB.PHS2", "vdd", video_outputsw_set()
4782 "ASWT", "vdd", status * 0x100, 0); video_outputsw_set()
4790 acpi_evalf(NULL, NULL, "\\VSDS", "vdd", status, 1); video_outputsw_set()
5335 if (!acpi_evalf(led_handle, NULL, NULL, "vdd", led_set_status()
5359 if (!acpi_evalf(led_handle, NULL, NULL, "vdd", led_set_status()
5734 if (!acpi_evalf(beep_handle, NULL, NULL, "vdd", beep_write()
/linux-4.1.27/drivers/net/can/spi/
H A Dmcp251x.c1088 priv->power = devm_regulator_get(&spi->dev, "vdd"); mcp251x_can_probe()
/linux-4.1.27/drivers/media/platform/s5p-tv/
H A Dhdmi_drv.c814 "vdd", hdmi_resources_init()
/linux-4.1.27/drivers/staging/ste_rmi4/
H A Dsynaptics_i2c_rmi4.c920 rmi4_data->regulator = regulator_get(&client->dev, "vdd"); synaptics_rmi4_probe()
/linux-4.1.27/drivers/video/fbdev/
H A Dauo_k190x.c984 par->regulator = regulator_get(info->device, "vdd"); auok190x_common_probe()
/linux-4.1.27/drivers/power/avs/
H A Dsmartreflex.c955 dev_warn(&pdev->dev, "%s: %s: No Voltage table for the corresponding vdd. Cannot create debugfs entries for n-values\n", omap_sr_probe()
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_hdmi.c2174 "vdd", hdmi_resources_init()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
H A Ddsi.c1174 vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdd"); dsi_regulator_init()

Completed in 2134 milliseconds