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

/drivers/hwmon/
H A Dmcp3021.c42 u32 vdd; /* device power supply */ member in struct:mcp3021_data
69 static inline u16 volts_from_reg(u16 vdd, u16 val) argument
76 return val * DIV_ROUND_CLOSEST(vdd,
91 in_input = volts_from_reg(data->vdd, reg);
113 data->vdd = *(u32 *)client->dev.platform_data;
114 if (data->vdd > MCP3021_VDD_MAX ||
115 data->vdd < MCP3021_VDD_MIN) {
120 data->vdd = MCP3021_VDD_REF;
H A Dsht15.c65 * @vdd: supply voltage in microvolts
69 int vdd; /* microvolts */ member in struct:sht15_temppair
598 if (data->supply_uV > temppoints[i - 1].vdd) {
599 d1 = (data->supply_uV - temppoints[i - 1].vdd)
601 / (temppoints[i].vdd - temppoints[i - 1].vdd)
/drivers/media/video/omap3isp/
H A Dispcsiphy.h59 struct regulator *vdd; member in struct:isp_csiphy
H A Dispcsiphy.c177 if (phy->vdd == NULL) {
185 rval = regulator_enable(phy->vdd);
196 regulator_disable(phy->vdd);
214 regulator_disable(phy->vdd);
H A Disp.c2002 regulator_put(isp->isp_csiphy1.vdd);
2003 regulator_put(isp->isp_csiphy2.vdd);
2087 isp->isp_csiphy1.vdd = regulator_get(&pdev->dev, "VDD_CSIPHY1");
2088 isp->isp_csiphy2.vdd = regulator_get(&pdev->dev, "VDD_CSIPHY2");
2196 regulator_put(isp->isp_csiphy2.vdd);
2197 regulator_put(isp->isp_csiphy1.vdd);
/drivers/mmc/core/
H A Ddebugfs.c62 seq_printf(s, "vdd:\t\t%u ", ios->vdd);
63 if ((1 << ios->vdd) & MMC_VDD_165_195)
65 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1)
66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1])
67 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd],
68 vdd_str[ios->vdd + 1]);
H A Dcore.c717 ios->power_mode, ios->chip_select, ios->vdd,
837 * @vdd: voltage (mV)
840 * This function returns the OCR bit number according to the provided @vdd
850 static int mmc_vdd_to_ocrbitnum(int vdd, bool low_bits) argument
855 if (vdd < 1650 || vdd > 3600)
858 if (vdd >= 1650 && vdd <= 1950)
862 vdd -= 1;
865 bit = (vdd
[all...]
H A Dmmc.c687 switch (1 << host->ios.vdd) {
/drivers/input/keyboard/
H A Dmpr121_touchkey.c132 int i, t, vdd, ret; local
160 vdd = pdata->vdd_uv / 1000;
161 usl = ((vdd - 700) * 256) / vdd;
/drivers/mmc/host/
H A Domap_hsmmc.c173 int vdd; member in struct:omap_hsmmc_host
235 int vdd)
252 if (dev->of_node && !vdd)
256 mmc_slot(host).before_set_reg(dev, slot, power_on, vdd);
272 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd);
292 mmc_slot(host).after_set_reg(dev, slot, power_on, vdd);
338 int vdd = ffs(mmc_slot(host).ocr_mask) - 1; local
341 1, vdd);
595 (1 << ios->vdd) <= MMC_VDD_23_24)
1078 static int omap_hsmmc_switch_opcond(struct omap_hsmmc_host *host, int vdd) argument
234 omap_hsmmc_set_power(struct device *dev, int slot, int power_on, int vdd) argument
[all...]
H A Domap.c104 unsigned int vdd; member in struct:mmc_omap_slot
1184 int vdd)
1192 vdd); local
1246 if (ios->vdd != slot->vdd)
1247 slot->vdd = ios->vdd;
1252 mmc_omap_set_power(slot, 0, ios->vdd);
1256 mmc_omap_set_power(slot, 1, ios->vdd);
1183 mmc_omap_set_power(struct mmc_omap_slot *slot, int power_on, int vdd) argument
H A Dpxamci.c104 unsigned int vdd)
112 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd);
123 on = ((1 << vdd) & host->pdata->ocr_mask);
128 host->pdata->setpower(mmc_dev(host->mmc), vdd);
510 ret = pxamci_set_power(host, ios->power_mode, ios->vdd);
102 pxamci_set_power(struct pxamci_host *host, unsigned char power_mode, unsigned int vdd) argument
H A Dmxcmmc.c180 unsigned int vdd)
184 mmc_regulator_set_ocr(host->mmc, host->vcc, vdd);
190 host->pdata->setpower(mmc_dev(host->mmc), vdd);
752 mxcmci_set_power(host, ios->power_mode, ios->vdd);
178 mxcmci_set_power(struct mxcmci_host *host, unsigned char power_mode, unsigned int vdd) argument
H A Dmmc_spi.c1197 ios->vdd,
1208 ios->vdd);
H A Dvia-sdmmc.c776 via_sdc_set_power(host, ios->vdd, 1);
778 via_sdc_set_power(host, ios->vdd, 0);
H A Ds3cmci.c1248 host->pdata->set_power(ios->power_mode, ios->vdd);
1263 host->pdata->set_power(ios->power_mode, ios->vdd);
H A Ddavinci_mmc.c841 ios->vdd);
H A Dmmci.c1084 ret = mmc_regulator_set_ocr(mmc, host->vcc, ios->vdd);
H A Dtifm_sd.c806 dev_dbg(&sock->dev, "ios: clock = %u, vdd = %x, bus_mode = %x, "
808 ios->clock, ios->vdd, ios->bus_mode, ios->chip_select,
858 //vdd
H A Dmsm_sdcc.c1017 pwr |= host->plat->translate_vdd(mmc_dev(mmc), ios->vdd);
H A Dsdhci.c1339 vdd_bit = sdhci_set_power(host, ios->vdd);
/drivers/leds/
H A Dleds-lp5523.c443 u8 status, adc, vdd; local
464 ret |= lp5523_read(chip->client, LP5523_REG_LED_TEST_ADC, &vdd);
465 vdd--; /* There may be some fluctuation in measurement */
490 if (adc >= vdd || adc < LP5523_ADC_SHORTCIRC_LIM)

Completed in 278 milliseconds