Home
last modified time | relevance | path

Searched refs:vdd (Results 1 – 22 of 22) sorted by relevance

/drivers/hwmon/
Dmcp3021.c42 u32 vdd; /* device power supply */ member
69 static inline u16 volts_from_reg(u16 vdd, u16 val) in volts_from_reg() argument
76 return val * DIV_ROUND_CLOSEST(vdd, in volts_from_reg()
91 in_input = volts_from_reg(data->vdd, reg); in show_in_input()
113 data->vdd = *(u32 *)client->dev.platform_data; in mcp3021_probe()
114 if (data->vdd > MCP3021_VDD_MAX || in mcp3021_probe()
115 data->vdd < MCP3021_VDD_MIN) { in mcp3021_probe()
120 data->vdd = MCP3021_VDD_REF; in mcp3021_probe()
Dsht15.c69 int vdd; /* microvolts */ member
598 if (data->supply_uV > temppoints[i - 1].vdd) { in sht15_calc_temp()
599 d1 = (data->supply_uV - temppoints[i - 1].vdd) in sht15_calc_temp()
601 / (temppoints[i].vdd - temppoints[i - 1].vdd) in sht15_calc_temp()
/drivers/mmc/core/
Ddebugfs.c62 seq_printf(s, "vdd:\t\t%u ", ios->vdd); in mmc_ios_show()
63 if ((1 << ios->vdd) & MMC_VDD_165_195) in mmc_ios_show()
65 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) in mmc_ios_show()
66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show()
67 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], in mmc_ios_show()
68 vdd_str[ios->vdd + 1]); in mmc_ios_show()
Dcore.c724 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios()
857 static int mmc_vdd_to_ocrbitnum(int vdd, bool low_bits) in mmc_vdd_to_ocrbitnum() argument
862 if (vdd < 1650 || vdd > 3600) in mmc_vdd_to_ocrbitnum()
865 if (vdd >= 1650 && vdd <= 1950) in mmc_vdd_to_ocrbitnum()
869 vdd -= 1; in mmc_vdd_to_ocrbitnum()
872 bit = (vdd - 2000) / 100 + 8; in mmc_vdd_to_ocrbitnum()
1042 host->ios.vdd = bit; in mmc_select_voltage()
1176 host->ios.vdd = bit; in mmc_power_up()
1213 host->ios.vdd = 0; in mmc_power_off()
Dmmc.c687 switch (1 << host->ios.vdd) { in mmc_select_powerclass()
/drivers/media/video/omap3isp/
Dispcsiphy.c177 if (phy->vdd == NULL) { in omap3isp_csiphy_acquire()
185 rval = regulator_enable(phy->vdd); in omap3isp_csiphy_acquire()
196 regulator_disable(phy->vdd); in omap3isp_csiphy_acquire()
214 regulator_disable(phy->vdd); in omap3isp_csiphy_release()
Dispcsiphy.h59 struct regulator *vdd; member
Disp.c2002 regulator_put(isp->isp_csiphy1.vdd); in isp_remove()
2003 regulator_put(isp->isp_csiphy2.vdd); in isp_remove()
2087 isp->isp_csiphy1.vdd = regulator_get(&pdev->dev, "VDD_CSIPHY1"); in isp_probe()
2088 isp->isp_csiphy2.vdd = regulator_get(&pdev->dev, "VDD_CSIPHY2"); in isp_probe()
2196 regulator_put(isp->isp_csiphy2.vdd); in isp_probe()
2197 regulator_put(isp->isp_csiphy1.vdd); in isp_probe()
/drivers/input/keyboard/
Dmpr121_touchkey.c132 int i, t, vdd, ret; in mpr121_phys_init() local
160 vdd = pdata->vdd_uv / 1000; in mpr121_phys_init()
161 usl = ((vdd - 700) * 256) / vdd; in mpr121_phys_init()
/drivers/mmc/host/
Domap_hsmmc.c173 int vdd; member
235 int vdd) in omap_hsmmc_set_power() argument
252 if (dev->of_node && !vdd) in omap_hsmmc_set_power()
256 mmc_slot(host).before_set_reg(dev, slot, power_on, vdd); in omap_hsmmc_set_power()
272 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in omap_hsmmc_set_power()
292 mmc_slot(host).after_set_reg(dev, slot, power_on, vdd); in omap_hsmmc_set_power()
338 int vdd = ffs(mmc_slot(host).ocr_mask) - 1; in omap_hsmmc_reg_get() local
341 1, vdd); in omap_hsmmc_reg_get()
595 (1 << ios->vdd) <= MMC_VDD_23_24) in omap_hsmmc_context_restore()
1078 static int omap_hsmmc_switch_opcond(struct omap_hsmmc_host *host, int vdd) in omap_hsmmc_switch_opcond() argument
[all …]
Domap.c104 unsigned int vdd; member
1184 int vdd) in mmc_omap_set_power() argument
1192 vdd); in mmc_omap_set_power()
1246 if (ios->vdd != slot->vdd) in mmc_omap_set_ios()
1247 slot->vdd = ios->vdd; in mmc_omap_set_ios()
1252 mmc_omap_set_power(slot, 0, ios->vdd); in mmc_omap_set_ios()
1256 mmc_omap_set_power(slot, 1, ios->vdd); in mmc_omap_set_ios()
Dpxamci.c104 unsigned int vdd) in pxamci_set_power() argument
112 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in pxamci_set_power()
123 on = ((1 << vdd) & host->pdata->ocr_mask); in pxamci_set_power()
128 host->pdata->setpower(mmc_dev(host->mmc), vdd); in pxamci_set_power()
510 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); in pxamci_set_ios()
Dmxcmmc.c180 unsigned int vdd) in mxcmci_set_power() argument
184 mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in mxcmci_set_power()
190 host->pdata->setpower(mmc_dev(host->mmc), vdd); in mxcmci_set_power()
752 mxcmci_set_power(host, ios->power_mode, ios->vdd); in mxcmci_set_ios()
Dmmc_spi.c1197 ios->vdd, in mmc_spi_set_ios()
1208 ios->vdd); in mmc_spi_set_ios()
Dvia-sdmmc.c776 via_sdc_set_power(host, ios->vdd, 1); in via_sdc_set_ios()
778 via_sdc_set_power(host, ios->vdd, 0); in via_sdc_set_ios()
Ds3cmci.c1248 host->pdata->set_power(ios->power_mode, ios->vdd); in s3cmci_set_ios()
1263 host->pdata->set_power(ios->power_mode, ios->vdd); in s3cmci_set_ios()
Dtifm_sd.c808 ios->clock, ios->vdd, ios->bus_mode, ios->chip_select, in tifm_sd_ios()
Dmmci.c1084 ret = mmc_regulator_set_ocr(mmc, host->vcc, ios->vdd); in mmci_set_ios()
Ddavinci_mmc.c841 ios->vdd); in mmc_davinci_set_ios()
Dmsm_sdcc.c1017 pwr |= host->plat->translate_vdd(mmc_dev(mmc), ios->vdd); in msmsdcc_set_ios()
Dsdhci.c1348 vdd_bit = sdhci_set_power(host, ios->vdd); in sdhci_do_set_ios()
/drivers/leds/
Dleds-lp5523.c443 u8 status, adc, vdd; in lp5523_selftest() local
464 ret |= lp5523_read(chip->client, LP5523_REG_LED_TEST_ADC, &vdd); in lp5523_selftest()
465 vdd--; /* There may be some fluctuation in measurement */ in lp5523_selftest()
490 if (adc >= vdd || adc < LP5523_ADC_SHORTCIRC_LIM) in lp5523_selftest()