/drivers/hwmon/ |
H A D | mcp3021.c | 42 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 D | sht15.c | 65 * @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 D | ispcsiphy.h | 59 struct regulator *vdd; member in struct:isp_csiphy
|
H A D | ispcsiphy.c | 177 if (phy->vdd == NULL) { 185 rval = regulator_enable(phy->vdd); 196 regulator_disable(phy->vdd); 214 regulator_disable(phy->vdd);
|
H A D | isp.c | 2002 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 D | debugfs.c | 62 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 D | core.c | 717 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 D | mmc.c | 687 switch (1 << host->ios.vdd) {
|
/drivers/input/keyboard/ |
H A D | mpr121_touchkey.c | 132 int i, t, vdd, ret; local 160 vdd = pdata->vdd_uv / 1000; 161 usl = ((vdd - 700) * 256) / vdd;
|
/drivers/mmc/host/ |
H A D | omap_hsmmc.c | 173 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 D | omap.c | 104 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 D | pxamci.c | 104 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 D | mxcmmc.c | 180 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 D | mmc_spi.c | 1197 ios->vdd, 1208 ios->vdd);
|
H A D | via-sdmmc.c | 776 via_sdc_set_power(host, ios->vdd, 1); 778 via_sdc_set_power(host, ios->vdd, 0);
|
H A D | s3cmci.c | 1248 host->pdata->set_power(ios->power_mode, ios->vdd); 1263 host->pdata->set_power(ios->power_mode, ios->vdd);
|
H A D | davinci_mmc.c | 841 ios->vdd);
|
H A D | mmci.c | 1084 ret = mmc_regulator_set_ocr(mmc, host->vcc, ios->vdd);
|
H A D | tifm_sd.c | 806 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 D | msm_sdcc.c | 1017 pwr |= host->plat->translate_vdd(mmc_dev(mmc), ios->vdd);
|
H A D | sdhci.c | 1339 vdd_bit = sdhci_set_power(host, ios->vdd);
|
/drivers/leds/ |
H A D | leds-lp5523.c | 443 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)
|