/linux-4.4.14/include/linux/iio/dac/ |
H A D | ad5791.h | 14 * @vref_pos_mv: Vdd Positive Analog Supply Volatge (mV) 15 * @vref_neg_mv: Vdd Negative Analog Supply Volatge (mV)
|
/linux-4.4.14/include/linux/mfd/ |
H A D | menelaus.h | 20 extern int menelaus_set_vmem(unsigned int mV); 21 extern int menelaus_set_vio(unsigned int mV); 22 extern int menelaus_set_vmmc(unsigned int mV); 23 extern int menelaus_set_vaux(unsigned int mV); 24 extern int menelaus_set_vdcdc(int dcdc, unsigned int mV);
|
H A D | abx500.h | 58 * @voltage: Voltage in mV 81 * @lowbat_threshold: Low battery threshold, in mV 82 * @overbat_threshold: Over battery threshold, in mV 83 * @battok_falling_th_sel0 Threshold in mV for battOk signal sel0 84 * Resolution in 50 mV step. 85 * @battok_raising_th_sel1 Threshold in mV for battOk signal sel1 86 * Resolution in 50 mV step. 141 * @nominal_voltage: Nominal voltage of the battery in mV 148 * @normal_vol_lvl: charger voltage in normal state in mV 150 * @maint_a_vol_lvl: charger voltage in maintenance A state in mV 153 * @maint_b_vol_lvl: charger voltage in maintenance B state in mV 156 * @low_high_vol_lvl: charger voltage in temp low/high state in mV' 211 * @usb_volt_max: maximum allowed USB charger voltage in mV 213 * @ac_volt_max: maximum allowed AC charger voltage in mV
|
H A D | max8998.h | 91 * @restart: Restart Level in mV: 100, 150, 200, and -1 for disable.
|
/linux-4.4.14/include/linux/regulator/ |
H A D | max1586.h | 30 #define MAX1586_GAIN_NO_R24 1000000 /* 700000 .. 1475000 mV */ 31 #define MAX1586_GAIN_R24_3k32 1051098 /* 735768 .. 1550369 mV */ 32 #define MAX1586_GAIN_R24_5k11 1078648 /* 755053 .. 1591005 mV */ 33 #define MAX1586_GAIN_R24_7k5 1115432 /* 780802 .. 1645262 mV */
|
H A D | fan53555.h | 24 * Bin |Slew Rate(mV/uS)
|
H A D | tps51632-regulator.h | 35 * @dvfs_step_20mV: Step for DVFS is 20mV or 10mV.
|
/linux-4.4.14/include/linux/ |
H A D | devfreq_cooling.h | 27 * @get_static_power: Take voltage, in mV, and return the static power 30 * @get_dynamic_power: Take voltage, in mV, and frequency, in HZ, and 34 * mW/(MHz mV mV).
|
H A D | s3c_adc_battery.h | 5 int volt; /* mV */
|
H A D | led-lm3530.h | 93 * @als_vmin: als input voltage calibrated for max brightness in mV 94 * @als_vmax: als input voltage calibrated for min brightness in mV
|
H A D | pm2301_charger.h | 28 * @ac_volt_max: maximum allowed AC charger voltage in mV
|
H A D | hwmon-vid.h | 30 val is in mV to avoid floating point in the kernel.
|
/linux-4.4.14/arch/arm/mach-omap2/ |
H A D | board-n8x0.c | 200 int mV; n8x0_mmc_set_power_menelaus() local 213 mV = 3100; n8x0_mmc_set_power_menelaus() 216 mV = 3000; n8x0_mmc_set_power_menelaus() 219 mV = 2800; n8x0_mmc_set_power_menelaus() 222 mV = 1850; n8x0_mmc_set_power_menelaus() 227 return menelaus_set_vmmc(mV); n8x0_mmc_set_power_menelaus() 234 mV = 3300; n8x0_mmc_set_power_menelaus() 238 mV = 3000; n8x0_mmc_set_power_menelaus() 242 mV = 2800; n8x0_mmc_set_power_menelaus() 246 mV = 2400; n8x0_mmc_set_power_menelaus() 250 mV = 2200; n8x0_mmc_set_power_menelaus() 253 mV = 2000; n8x0_mmc_set_power_menelaus() 256 mV = 1800; n8x0_mmc_set_power_menelaus() 261 return menelaus_set_vdcdc(3, mV); n8x0_mmc_set_power_menelaus()
|
H A D | vc.c | 378 * scale to 600mV.
|
/linux-4.4.14/drivers/hwmon/ |
H A D | ltc4260.c | 45 /* Return the voltage from the given register in mV or mA */ ltc4260_get_value() 58 /* 10 mV resolution. Convert to mV. */ ltc4260_get_value() 62 /* 400 mV resolution. Convert to mV. */ ltc4260_get_value()
|
H A D | ina209.c | 119 /* LSB=10 uV. Convert to mV. */ ina209_from_reg() 129 /* LSB=4 mV, last 3 bits unused */ ina209_from_reg() 133 /* LSB=1 mV, in the upper 8 bits */ ina209_from_reg() 137 /* LSB=1 mV, in the upper 8 bits */ ina209_from_reg() 166 /* Limit to +- 320 mV, 10 uV LSB */ ina209_to_reg() 174 * Limit to 0-32000 mV, 4 mV LSB ina209_to_reg() 184 * Limit to -255-0 mV, 1 mV LSB ina209_to_reg() 194 * Limit to 0-255 mV, 1 mV LSB ina209_to_reg()
|
H A D | ltc2945.c | 75 /* Return the value from the given register in uW, mV, or mA */ ltc2945_reg_to_val() 114 /* 25 mV * 25 uV = 0.625 uV resolution. */ ltc2945_reg_to_val() 117 /* 0.5 mV * 25 uV = 0.0125 uV resolution. */ ltc2945_reg_to_val() 126 /* 25 mV resolution. Convert to mV. */ ltc2945_reg_to_val() 134 /* 0.5mV resolution. Convert to mV. */ ltc2945_reg_to_val() 182 /* 25 mV * 25 uV = 0.625 uV resolution. */ ltc2945_val_to_reg() 186 * 0.5 mV * 25 uV = 0.0125 uV resolution. ltc2945_val_to_reg() 198 /* 25 mV resolution. */ ltc2945_val_to_reg() 206 /* 0.5mV resolution. */ ltc2945_val_to_reg()
|
H A D | ltc4222.c | 55 /* Return the voltage from the given register in mV or mA */ ltc4222_get_value() 72 /* 1.25 mV resolution. Convert to mV. */ ltc4222_get_value() 77 /* 31.25 mV resolution. Convert to mV. */ ltc4222_get_value()
|
H A D | ltc4151.c | 99 /* Return the voltage from the given register in mV */ ltc4151_get_value() 108 /* 500uV resolution. Convert to mV. */ ltc4151_get_value() 119 /* 25 mV per increment */ ltc4151_get_value()
|
H A D | hwmon-vid.c | 79 * Returned value is in mV to avoid floating point in the kernel. 80 * Some VID have some bits in uV scale, this is rounded to mV. 89 /* compute in uV, round to mV */ vid_from_reg() 102 /* compute in uV, round to mV */ vid_from_reg() 156 /* compute in uV, round to mV */ vid_from_reg()
|
H A D | ltc4215.c | 91 /* 60.5 mV per increment */ ltc4215_get_voltage() 96 * The ADIN input is divided by 12.5, and has 4.82 mV ltc4215_get_voltage() 165 /* current in mA * voltage in mV == power in uW */ ltc4215_show_power()
|
H A D | ltc4261.c | 102 /* Return the voltage from the given register in mV or mA */ ltc4261_get_value() 112 /* 2.5mV resolution. Convert to mV. */ ltc4261_get_value()
|
H A D | mc13783-adc.c | 89 * to fit the input range of the ADC. unit = 2.25mV = 9/4 mV. mc13783_adc_read_bp() 107 * is worth 9/4 mV. mc13783_adc_read_gp()
|
H A D | atxp1.c | 135 dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", (int)vcore, vid); atxp1_storevcore() 137 /* Write every 25 mV step to increase stability */ atxp1_storevcore()
|
H A D | max1111.c | 120 * sample. The LSB weight is 8mV or 16mV depending on the chip type. show_adc()
|
H A D | adc128d818.c | 64 int vref; /* Reference voltage in mV */ 173 /* 10 mV LSB on limit registers */ adc128_set_in() 433 data->vref = 2560; /* 2.56V, in mV */ adc128_probe()
|
H A D | ads7828.c | 42 #define ADS7828_INT_VREF_MV 2500 /* Internal vref is 2.5V, 2500mV */
|
H A D | mcp3021.c | 9 * voltage unit is mV. Through the sysfs interface, lm-sensors tool
|
H A D | adm9240.c | 21 * Analog Out 0..1250 mV output 122 /* analog out 0..1250mV */ AOUT_TO_REG() 686 data->vrm = vid_which_vrm(); /* need this to report vid as mV */ adm9240_init_client()
|
H A D | adt7462.c | 524 /* Multipliers are actually in uV, not mV. */ voltage_multiplier() 896 x /= 1000; /* convert from uV to mV */ show_volt_max() 915 temp *= 1000; /* convert mV to uV */ set_volt_max() 938 x /= 1000; /* convert from uV to mV */ show_volt_min() 957 temp *= 1000; /* convert mV to uV */ set_volt_min() 980 x /= 1000; /* convert from uV to mV */ show_voltage()
|
H A D | ads1015.c | 44 /* PGA fullscale voltages in mV */
|
H A D | smm665.c | 35 MODULE_PARM_DESC(vref, "Reference voltage in mV"); 149 /* The following values are in mV */
|
H A D | w83l786ng.c | 104 * The analog voltage inputs have 8mV LSB. Since the sysfs output is 105 * in mV as would be measured on the chip input pin, need to just
|
H A D | ltc4245.c | 287 /* current in mA * voltage in mV == power in uW */ ltc4245_show_power()
|
H A D | max16065.c | 94 /* limits are in mV */
|
H A D | sis5595.c | 130 * IN: mV, (0V to 4.08V) 131 * REG: 16mV/bit
|
H A D | lm78.c | 83 * IN: mV (0V to 4.08V) 84 * REG: 16mV/bit
|
H A D | nct6683.c | 471 /* LSB is 16 mV, except for the following sources, where it is 32 mV */
|
H A D | lm93.c | 312 * VID: mV 337 /* min, max, and nominal voltage readings, per channel (mV)*/ 368 * IN: mV, limits determined by channel nr 393 /* vid in mV, upper == 0 indicates low limit, otherwise upper limit */ LM93_IN_REL_FROM_REG() 406 * vid in mV , upper == 0 indicates low limit, otherwise upper limit
|
H A D | w83791d.c | 219 * The analog voltage inputs have 16mV LSB. Since the sysfs output is 220 * in mV as would be measured on the chip input pin, need to just
|
H A D | w83795.c | 240 /* 3VDD, 3VSB and VBAT: 6 mV/bit; other inputs: 2 mV/bit */ in_from_reg()
|
H A D | abituguru.c | 152 /* in (Volt) sensors go up to 3494 mV, temp to 255000 millidegrees Celsius */ 245 * Maximum value for each sensor used for scaling in mV/millidegrees
|
H A D | asb100.c | 113 * REG: 16mV/bit
|
H A D | lm87.c | 140 /* analog out is 9.80mV/LSB */
|
H A D | it87.c | 337 /* 12mV ADC (OHM) */ 348 /* 12mV ADC (HWSensors4, OHM) */
|
H A D | pc87360.c | 207 u16 in_vref; /* 1 mV/bit */
|
H A D | w83793.c | 981 /* voltage inputs 5VDD and 5VSB needs 150mV offset */ show_in()
|
H A D | w83627ehf.c | 401 * contain 8 (the ADC LSB in mV) * scaling factor * 100
|
H A D | nct6775.c | 816 * contain 8 (the ADC LSB in mV) * scaling factor * 100
|
/linux-4.4.14/drivers/mfd/ |
H A D | menelaus.c | 462 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV, menelaus_set_voltage() argument 477 "to %d mV (reg 0x%02x, val 0x%02x)\n", menelaus_set_voltage() 478 vtg->name, mV, vtg->vtg_reg, val); menelaus_set_voltage() 549 dev_dbg(&c->dev, "Setting VCORE FLOOR to %d mV and ROOF to %d mV\n", menelaus_set_vcore_hw() 587 int menelaus_set_vmem(unsigned int mV) menelaus_set_vmem() argument 591 if (mV == 0) menelaus_set_vmem() 594 val = menelaus_get_vtg_value(mV, vmem_values, ARRAY_SIZE(vmem_values)); menelaus_set_vmem() 597 return menelaus_set_voltage(&vmem_vtg, mV, val, 0x02); menelaus_set_vmem() 616 int menelaus_set_vio(unsigned int mV) menelaus_set_vio() argument 620 if (mV == 0) menelaus_set_vio() 623 val = menelaus_get_vtg_value(mV, vio_values, ARRAY_SIZE(vio_values)); menelaus_set_vio() 626 return menelaus_set_voltage(&vio_vtg, mV, val, 0x02); menelaus_set_vio() 657 int menelaus_set_vdcdc(int dcdc, unsigned int mV) menelaus_set_vdcdc() argument 669 if (mV == 0) menelaus_set_vdcdc() 672 val = menelaus_get_vtg_value(mV, vdcdc_values, menelaus_set_vdcdc() 676 return menelaus_set_voltage(vtg, mV, val, 0x03); menelaus_set_vdcdc() 694 int menelaus_set_vmmc(unsigned int mV) menelaus_set_vmmc() argument 698 if (mV == 0) menelaus_set_vmmc() 701 val = menelaus_get_vtg_value(mV, vmmc_values, ARRAY_SIZE(vmmc_values)); menelaus_set_vmmc() 704 return menelaus_set_voltage(&vmmc_vtg, mV, val, 0x02); menelaus_set_vmmc() 724 int menelaus_set_vaux(unsigned int mV) menelaus_set_vaux() argument 728 if (mV == 0) menelaus_set_vaux() 731 val = menelaus_get_vtg_value(mV, vaux_values, ARRAY_SIZE(vaux_values)); menelaus_set_vaux() 734 return menelaus_set_voltage(&vaux_vtg, mV, val, 0x02); menelaus_set_vaux()
|
H A D | ab8500-gpadc.c | 103 #define ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat*/ 105 #define IBAT_VDROP_L (-56) /* mV */ 718 * vmain_high: Vin = 19500mV / ADC ideal code = 997 ab8500_gpadc_read_calibration_data() 719 * vmain_low: Vin = 315mV / ADC ideal code = 16 ab8500_gpadc_read_calibration_data() 720 * btemp_high: Vin = 1300mV / ADC ideal code = 985 ab8500_gpadc_read_calibration_data() 721 * btemp_low: Vin = 21mV / ADC ideal code = 16 ab8500_gpadc_read_calibration_data() 722 * vbat_high: Vin = 4700mV / ADC ideal code = 982 ab8500_gpadc_read_calibration_data() 723 * vbat_low: Vin = 2380mV / ADC ideal code = 33 ab8500_gpadc_read_calibration_data() 778 * Result obtained is in mV (at a scale factor), ab8500_gpadc_read_calibration_data()
|
H A D | arizona-core.c | 1287 if (!arizona->pdata.micbias[i].mV && arizona_dev_init() 1292 if (!arizona->pdata.micbias[i].mV) arizona_dev_init() 1293 arizona->pdata.micbias[i].mV = 2800; arizona_dev_init() 1295 val = (arizona->pdata.micbias[i].mV - 1500) / 100; arizona_dev_init()
|
/linux-4.4.14/include/linux/platform_data/ |
H A D | lp8727.h | 51 * @get_batt_level : get battery voltage (mV)
|
H A D | hwmon-s3c.h | 23 * hwmon expects (mV) by result = (value_read * @mult) / @div.
|
/linux-4.4.14/include/linux/power/ |
H A D | twl4030_madc_battery.h | 27 short voltage; /* in mV - specify -1 for end of list */
|
H A D | bq2415x_charger.h | 50 int weak_battery_voltage; /* mV */ 51 int battery_regulation_voltage; /* mV */
|
/linux-4.4.14/arch/mips/lantiq/xway/ |
H A D | dcdc.c | 34 dev_info(&pdev->dev, "Core Voltage : %d mV\n", dcdc_probe()
|
/linux-4.4.14/arch/arm/mach-pxa/include/mach/ |
H A D | mioa701.h | 17 #define GPIO80_MAYBE_CHARGE_VDROP 80 /* Drop of 88mV */
|
/linux-4.4.14/drivers/cpufreq/ |
H A D | longhaul.c | 560 if (minvid.mV == 0 || maxvid.mV == 0 || minvid.mV > maxvid.mV) { longhaul_setup_voltagescaling() 563 minvid.mV/1000, minvid.mV%1000, longhaul_setup_voltagescaling() 564 maxvid.mV/1000, maxvid.mV%1000); longhaul_setup_voltagescaling() 568 if (minvid.mV == maxvid.mV) { longhaul_setup_voltagescaling() 572 maxvid.mV/1000, maxvid.mV%1000); longhaul_setup_voltagescaling() 582 maxvid.mV/1000, maxvid.mV%1000, longhaul_setup_voltagescaling() 583 minvid.mV/1000, minvid.mV%1000, longhaul_setup_voltagescaling() 620 printk(KERN_INFO PFX "f: %d kHz, index: %d, vid: %d mV\n", cpufreq_for_each_entry() 621 speed, (int)(freq_pos - longhaul_table), vid.mV); cpufreq_for_each_entry()
|
H A D | mt8173-cpufreq.c | 37 * 100mV < Vsram - Vproc < 200mV 69 * by step. At each step, set Vsram to (Vproc + 200mV) first, mtk_cpufreq_voltage_tracking() 70 * then set Vproc to (Vsram - 100mV). mtk_cpufreq_voltage_tracking() 114 * by step. At each step, set Vproc to (Vsram - 200mV) first, mtk_cpufreq_voltage_tracking() 115 * then set Vproc to (Vproc + 100mV). mtk_cpufreq_voltage_tracking()
|
H A D | omap-cpufreq.c | 77 dev_dbg(mpu_dev, "cpufreq-omap: %u MHz, %ld mV --> %u MHz, %ld mV\n", omap_target()
|
H A D | pxa3xx-cpufreq.c | 51 int vcc_core; /* in mV */ 52 int vcc_sram; /* in mV */
|
H A D | e_powersaver.c | 318 /* Change mV to something hardware can use */ eps_cpu_init() 369 policy->cpuinfo.transition_latency = 140000; /* 844mV -> 700mV in ns */ eps_cpu_init() 434 MODULE_PARM_DESC(set_max_voltage, "Set maximum CPU voltage (mV) C7-M only");
|
H A D | longhaul.h | 314 unsigned short mV; member in struct:mV_pos
|
H A D | cpufreq-dt.c | 86 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", set_target()
|
H A D | imx6q-cpufreq.c | 68 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", imx6q_set_target()
|
H A D | powernow-k8.h | 123 #define MAXIMUM_VID_STEPS 1 /* Current cpus only allow a single step of 25mV */
|
H A D | speedstep-centrino.c | 81 frequency/voltage operating point; frequency in MHz, volts in mV.
|
/linux-4.4.14/drivers/clk/tegra/ |
H A D | clk-dfll.h | 28 * @min_millivolts: minimum voltage (in mV) that the DFLL can operate
|
H A D | clk-tegra124-dfll-fcpu.c | 46 .step_uv = 10000, /* 10mV */
|
H A D | clk-dfll.c | 1493 dev_err(td->dev, "no opp above DFLL minimum voltage %d mV\n", dfll_build_i2c_lut()
|
/linux-4.4.14/include/linux/mfd/abx500/ |
H A D | ux500_chargalg.h | 36 * @max_out_volt maximum output charger voltage in mV
|
H A D | ab8500-bm.h | 316 * @lowbat_threshold: Low battery threshold, in mV 317 * @battok_falling_th_sel0 Threshold in mV for battOk signal sel0 318 * Resolution in 50 mV step. 319 * @battok_raising_th_sel1 Threshold in mV for battOk signal sel1 320 * Resolution in 50 mV step. 386 * @usb_volt_max: maximum allowed USB charger voltage in mV 388 * @ac_volt_max: maximum allowed AC charger voltage in mV
|
/linux-4.4.14/tools/power/cpupower/debug/i386/ |
H A D | powernow-k8-decode.c | 90 printf("cpu %d currently at %d MHz and %d mV\n", main()
|
H A D | centrino-decode.c | 73 printf("0x%x means multiplier %d @ %d mV\n", msr, multiplier, mv); decode()
|
/linux-4.4.14/drivers/hwmon/pmbus/ |
H A D | lm25066.c | 237 /* VIN: 6.14 mV VAUX: 293 uV LSB */ lm25066_read_word_data() 241 /* VIN: 6.25 mV VAUX: 200.0 uV LSB */ lm25066_read_word_data() 245 /* VIN: 4.54 mV VAUX: 283.2 uV LSB */ lm25066_read_word_data() 249 /* VIN: 4.53 mV VAUX: 700 uV LSB */ lm25066_read_word_data() 253 /* VIN: 2.18 mV VAUX: 725 uV LSB */ lm25066_read_word_data()
|
H A D | max34440.c | 214 .R[PSC_VOLTAGE_IN] = 3, /* R = 0 in datasheet reflects mV */ 217 .R[PSC_VOLTAGE_OUT] = 3, /* R = 0 in datasheet reflects mV */
|
/linux-4.4.14/drivers/power/ |
H A D | da9150-charger.c | 63 /* Read processed value - mV units */ da9150_charger_vbus_voltage_now() 267 /* Value starts at 2500 mV, 50 mV increments, presented in uV */ da9150_charger_battery_voltage_min() 278 /* Read processed value - mV units */ da9150_charger_battery_voltage_now() 308 /* Value starts at 3650 mV, 25 mV increments, presented in uV */ da9150_charger_battery_voltage_max()
|
H A D | da9030_battery.c | 112 int mV; member in struct:da9030_charger 129 static inline int da9030_millivolt_to_reg(int mV) da9030_millivolt_to_reg() argument 131 return ((mV - 2650) << 8) / 2650; da9030_millivolt_to_reg() 147 charger->mA, charger->mV); bat_debug_show() 225 charger->mV = (val & 0x7) * 50 + 4000; da9030_charger_update_state()
|
H A D | axp288_charger.c | 51 #define VBUS_ISPOUT_VHOLD_SET_OFFSET 4000 /* 4000mV */ 52 #define VBUS_ISPOUT_VHOLD_SET_LSB_RES 100 /* 100mV */ 53 #define VBUS_ISPOUT_VHOLD_SET_4300MV 0x3 /* 4300mV */ 110 #define CV_4100MV 4100 /* 4100mV */ 111 #define CV_4150MV 4150 /* 4150mV */ 112 #define CV_4200MV 4200 /* 4200mV */ 113 #define CV_4350MV 4350 /* 4350mV */
|
H A D | bq2415x_charger.c | 568 /* set weak battery voltage in mV */ bq2415x_set_weak_battery_voltage() 569 static int bq2415x_set_weak_battery_voltage(struct bq2415x_device *bq, int mV) bq2415x_set_weak_battery_voltage() argument 573 /* round to 100mV */ bq2415x_set_weak_battery_voltage() 574 if (mV <= 3400 + 50) bq2415x_set_weak_battery_voltage() 576 else if (mV <= 3500 + 50) bq2415x_set_weak_battery_voltage() 578 else if (mV <= 3600 + 50) bq2415x_set_weak_battery_voltage() 587 /* get weak battery voltage in mV */ bq2415x_get_weak_battery_voltage() 599 /* set battery regulation voltage in mV */ bq2415x_set_battery_regulation_voltage() 601 int mV) bq2415x_set_battery_regulation_voltage() 603 int val = (mV/10 - 350) / 2; bq2415x_set_battery_regulation_voltage() 607 * 4440mV which is b101111 = 47. bq2415x_set_battery_regulation_voltage() 618 /* get battery regulation voltage in mV */ bq2415x_get_battery_regulation_voltage() 1339 /* set current and voltage limit entries (in mA or mV) */ bq2415x_sysfs_set_limit() 1371 /* show current and voltage limit entries (in mA or mV) */ bq2415x_sysfs_show_limit() 600 bq2415x_set_battery_regulation_voltage(struct bq2415x_device *bq, int mV) bq2415x_set_battery_regulation_voltage() argument
|
H A D | pmu_battery.c | 117 val->intval = pbi->voltage * 1000; /* mV -> µV */ pmu_bat_get_property()
|
H A D | 88pm860x_battery.c | 168 /* V_MEAS(mV) = data * 1.8 * 1000 / (2^12) */ measure_12bit_voltage() 184 /* V_BATT_MEAS(mV) = value * 3 * 1.8 * 1000 / (2^12) */ measure_vbatt() 203 /* V_BATT_MEAS(mV) = data * 3 * 1.8 * 1000 / (2^12) */ measure_vbatt() 570 /* meausered Vtbat(mV) / Ibias_current(11uA)*/ measure_temp()
|
H A D | axp20x_usb_power.c | 79 val->intval = ret * 1700; /* 1 step = 1.7 mV */ axp20x_usb_power_get_property()
|
H A D | ds2782_battery.c | 155 * Voltage is measured in units of 4.88mV. The voltage is stored as ds2782_get_voltage() 195 * Voltage is measured in units of 1.22mV. The voltage is stored as ds2786_get_voltage()
|
H A D | axp288_fuel_gauge.c | 53 #define CV_4100 4100 /* 4100mV */ 54 #define CV_4150 4150 /* 4150mV */ 55 #define CV_4200 4200 /* 4200mV */ 56 #define CV_4350 4350 /* 4350mV */ 106 /* 1.1mV per LSB expressed in uV */
|
H A D | max17042_battery.c | 66 #define MAX17042_VMAX_TOLERANCE 50 /* 50 mV */ 214 val->intval *= 20000; /* Units of LSB = 20mV */ max17042_get_property() 225 val->intval *= 10000; /* Units of LSB = 10mV */ max17042_get_property()
|
H A D | ds2760_battery.c | 40 int voltage_raw; /* units of 4.88 mV */ 150 /* DS2760 reports voltage in units of 4.88mV, but the battery class ds2760_battery_read_status()
|
H A D | 88pm860x_charger.c | 129 /* V_BATT_MEAS(mV) = value * 5 * 1.8 * 1000 / (2^12) */ measure_vchg() 322 dev_dbg(info->dev, "set_charging_fsm:vbatt:%d(mV)\n", vbatt); set_charging_fsm()
|
H A D | ab8500_fg.c | 50 #define BATT_OK_MIN 2360 /* mV */ 51 #define BATT_OK_INCREMENT 50 /* mV */ 160 * @vbat: Battery voltage in mV 161 * @vbat_nom: Nominal battery voltage in mV 673 * 63.160mV => LSB = 63.160mV/(4096*res) = 1.542mA ab8500_fg_inst_curr_finalize()
|
H A D | olpc_battery.c | 24 #define EC_BAT_VOLTAGE 0x10 /* uint16_t, *9.76/32, mV */
|
H A D | wm831x_power.c | 254 "target voltage", "mV"); wm831x_config_battery()
|
H A D | bq25890_charger.c | 444 /* converted_val = 2.304V + ADC_val * 20mV (table 10.3.15) */ bq25890_power_supply_get_property()
|
H A D | ds2780_battery.c | 185 * DS2780 reports voltage in units of 4.88mV, but the battery class ds2780_get_voltage()
|
H A D | ds2781_battery.c | 190 /* DS2781 reports voltage in units of 9.76mV, but the battery class ds2781_get_voltage()
|
H A D | ab8500_btemp.c | 179 * This function returns the voltage on BATCTRL. Returns value in mV.
|
H A D | pm2301_charger.c | 680 /* Voltage drop between VBAT and VSYS in HW charging = 300mV */ pm2xxx_charging_init()
|
/linux-4.4.14/drivers/regulator/ |
H A D | qcom_rpm-regulator.c | 35 struct request_member mV; /* used if voltage is in mV */ member in struct:rpm_reg_parts 75 .mV = { 0, 0x00000FFF, 0 }, 86 .mV = { 0, 0x00000FFF, 0 }, 108 .mV = { 0, 0x00000FFF, 0 }, 219 const struct request_member *req = &parts->mV; rpm_reg_set_mV_sel() 279 const struct request_member *req = &parts->mV; rpm_reg_mV_enable() 336 const struct request_member *req = &parts->mV; rpm_reg_mV_disable()
|
H A D | tps65912-regulator.c | 378 /* 0.5 - 1.2875V in 12.5mV steps */ tps65912_list_voltage() 382 /* 0.7 - 1.4875V in 12.5mV steps */ tps65912_list_voltage() 386 /* 0.5 - 2.075V in 25mV steps */ tps65912_list_voltage() 390 /* 0.5 - 3.8V in 50mV steps */ tps65912_list_voltage()
|
H A D | ab8500.c | 708 * name, min mV, max mV, 806 * name, fixed mV, 922 * name, min mV, max mV, 1080 * name, fixed mV, 1225 * name, min mV, max mV, 1339 * name, fixed mV, 1467 * name, min mV, max mV, 1633 * name, fixed mV,
|
H A D | fan53555.c | 239 * VOUT = 0.60V + NSELx * 10mV, from 0.60 to 1.23V. 241 * VOUT = 0.603V + NSELx * 12.826mV, from 0.603 to 1.411V.
|
H A D | wm8350-regulator.c | 341 dev_dbg(wm8350->dev, "%s %d mV %d\n", __func__, dcdc, uV / 1000); wm8350_dcdc_set_suspend_voltage() 366 /* all DCDCs have same mV bits */ wm8350_dcdc_set_suspend_voltage() 556 dev_dbg(wm8350->dev, "%s %d mV %d\n", __func__, ldo, uV / 1000); wm8350_ldo_set_suspend_voltage() 579 /* all LDOs have same mV bits */ wm8350_ldo_set_suspend_voltage() 608 /* all LDOs have same mV bits */ wm8350_ldo_set_suspend_enable() 637 /* all LDOs have same mV bits */ wm8350_ldo_set_suspend_disable()
|
H A D | max8952.c | 175 dev_warn(dev, "max8952,ramp-speed property not specified, defaulting to 32mV/us\n"); max8952_parse_dt()
|
H A D | tps51632-regulator.c | 243 pdata->dvfs_step_20mV = of_property_read_bool(np, "ti,dvfs-step-20mV"); of_get_tps51632_platform_data()
|
H A D | twl-regulator.c | 44 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */ 454 int mV = info->table[index]; twl4030ldo_list_voltage() local 456 return IS_UNSUP(info, mV) ? 0 : (LDO_MV(mV) * 1000); twl4030ldo_list_voltage()
|
H A D | tps80031-regulator.c | 640 /* TRACK mode the ldo2 varies from 600mV to 1300mV */ check_smps_mode_mult()
|
H A D | da9052-regulator.c | 252 /* The DVC controlled LDOs and DCDCs ramp with 6.25mV/µs after enabling da9052_regulator_set_voltage_time_sel()
|
H A D | ltc3589.c | 121 /* The slew rate can be set to 0.88, 1.75, 3.5, or 7 mV/uS */ ltc3589_set_ramp_delay()
|
H A D | max77686.c | 87 RAMP_RATE_NO_CTRL, /* 100mV/us */
|
H A D | tps62360-regulator.c | 283 /* ramp mV/us = 32/(2^ramp_ctrl) */ tps62360_init_dcdc()
|
H A D | max8997.c | 41 int ramp_delay; /* in mV/us */ 1178 max8997->ramp_delay = 10; /* set 10mV/us, which is the default */ max8997_pmic_probe()
|
H A D | palmas-regulator.c | 1019 * It is of the order of ~60mV/uS. tps65917_ldo_registration()
|
H A D | core.c | 841 count += scnprintf(buf + count, len - count, "%d mV ", print_constraints() 845 "%d <--> %d mV ", print_constraints() 855 "at %d mV ", ret / 1000); print_constraints()
|
/linux-4.4.14/drivers/staging/iio/accel/ |
H A D | adis16201_core.c | 52 *val2 = 220000; /* 1.22 mV */ adis16201_read_raw() 55 *val2 = 610000; /* 0.610 mV */ adis16201_read_raw()
|
H A D | adis16203_core.c | 64 *val2 = 220000; /* 1.22 mV */ adis16203_read_raw() 67 *val2 = 610000; /* 0.61 mV */ adis16203_read_raw()
|
H A D | adis16204_core.c | 57 *val2 = 220000; /* 1.22 mV */ adis16204_read_raw() 60 *val2 = 610000; /* 0.61 mV */ adis16204_read_raw()
|
H A D | adis16209_core.c | 85 *val2 = 305180; /* 0.30518 mV */ adis16209_read_raw() 87 *val2 = 610500; /* 0.6105 mV */ adis16209_read_raw()
|
H A D | adis16240_core.c | 100 *val2 = 880000; /* 4.88 mV */ adis16240_read_raw()
|
H A D | adis16220_core.c | 300 *val2 = 220700; /* 1.2207 mV */ adis16220_read_raw()
|
/linux-4.4.14/include/linux/mfd/wm8350/ |
H A D | supply.h | 119 int trickle_start_mV; /* trickle charge starts at mV */
|
/linux-4.4.14/include/linux/mfd/samsung/ |
H A D | s5m8767.h | 198 * in mV/us.
|
/linux-4.4.14/drivers/iio/adc/ |
H A D | da9150-gpadc.c | 138 /* Convert to mV */ da9150_gpadc_gpio_6v_voltage_now() 150 /* Convert to mV */ da9150_gpadc_vbus_21v_voltage_now() 156 /* Convert to mV */ da9150_gpadc_vsys_6v_voltage_now()
|
H A D | vf610_adc.c | 109 /* V at 25°C of 696 mV */ 111 /* V at 25°C of 699 mV */ 675 * Using the typical sensor slope of 1.84 mV/°C vf610_read_raw() 676 * and VREFH_ADC at 3.3V, V at 25°C of 699 mV vf610_read_raw()
|
H A D | ad7793.c | 482 /* 1170mV / 2^23 * 6 */ ad7793_read_raw() 487 /* 1170mV / 0.81 mV/C / 2^23 */ ad7793_read_raw()
|
H A D | qcom-spmi-vadc.c | 107 * VADC_CALIB_ABSOLUTE: uses the 625mV and 1.25V as reference channels. 429 /* Try with buffered 625mV channel first */ vadc_measure_ref_points() 557 /* 2mV/K, return milli Celsius */ vadc_read_raw()
|
H A D | twl4030-madc.c | 266 if (val & TWL4030_BCI_CGAIN) /* slope of 0.44 mV/mA */ twl4030battery_current() 268 else /* slope of 0.88 mV/mA */ twl4030battery_current() 331 * Result given in mV hence multiplied by 1000. twl4030_madc_read_channels()
|
H A D | mcp320x.c | 167 /* convert regulator output voltage to mV */ mcp320x_read_raw()
|
H A D | twl6030-gpadc.c | 506 /* Shift back into mV range */ twl6030_gpadc_get_processed()
|
/linux-4.4.14/sound/soc/codecs/ |
H A D | sn95031.h | 120 /* multipier to convert to mV */
|
H A D | ab8500-codec.c | 1356 "250mV", "300mV", "350mV", "400mV", 1357 "450mV", "500mV", "550mV", "600mV", 1358 "650mV", "700mV", "750mV", "800mV", 1359 "850mV", "900mV", "950mV", "1.00V" };
|
H A D | sgtl5000.c | 1546 /* 1250mV => 0 */ sgtl5000_i2c_probe() 1547 /* steps of 250mV */ sgtl5000_i2c_probe()
|
H A D | twl6040.c | 578 /* For ES under ES_1.3 HS step is 2 mV */ twl6040_get_hs_step_size() 581 /* For ES_1.3 HS step is 1 mV */ twl6040_get_hs_step_size()
|
H A D | sn95031.c | 139 /* reads the ADC registers and gets the mic bias value in mV. */ sn95031_get_mic_bias()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | i915_params.c | 190 "(0=use value from vbt [default], 1=low power swing(200mV)," 191 "2=default swing(400mV))");
|
H A D | intel_ddi.c | 66 /* Idx NT mV d T mV d db */ 118 /* Idx NT mV d T mV df db */ 260 /* Idx NT mV diff db */ 274 /* Idx NT mV diff db */ 291 /* Idx NT mV diff db */
|
H A D | intel_hdmi.c | 1920 /* Use 800mV-0dB */ chv_hdmi_pre_enable()
|
H A D | i915_reg.h | 6428 /* ILK always use 400mV 0dB for voltage swing and pre-emphasis level.
|
/linux-4.4.14/drivers/thermal/ |
H A D | devfreq_cooling.c | 230 voltage = dev_pm_opp_get_voltage(opp) / 1000; /* mV */ get_static_power() 423 voltage = dev_pm_opp_get_voltage(opp) / 1000; /* mV */ devfreq_cooling_gen_tables() 430 dev_dbg(dev, "Dynamic power table: %lu MHz @ %lu mV: %lu = %lu mW\n", devfreq_cooling_gen_tables()
|
/linux-4.4.14/drivers/iio/dac/ |
H A D | m62332.c | 100 *val = ret / 1000; /* mV */ m62332_read_raw()
|
H A D | max517.c | 206 data->vref_mv[chan] = 5000; /* mV */ max517_probe()
|
/linux-4.4.14/include/linux/mfd/wm831x/ |
H A D | pdata.h | 38 int vsel; /** Target voltage, in mV */
|
/linux-4.4.14/include/linux/mfd/arizona/ |
H A D | pdata.h | 59 int mV; /** Regulated voltage */ member in struct:arizona_micbias
|
/linux-4.4.14/drivers/phy/ |
H A D | phy-miphy365x.c | 360 * Tx Swing target 550-600mV peak-to-peak diff miphy365x_init_sata_port() 375 * Tx Swing target 500-550mV peak-to-peak diff miphy365x_init_sata_port()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
H A D | mcdi_pcol.h | 3794 /* enum: 1.0v power: mV */ 3796 /* enum: 1.2v power: mV */ 3798 /* enum: 1.8v power: mV */ 3800 /* enum: 2.5v power: mV */ 3802 /* enum: 3.3v power: mV */ 3804 /* enum: 12v power: mV */ 3806 /* enum: 1.2v analogue power: mV */ 3808 /* enum: reference voltage: mV */ 3810 /* enum: AOE FPGA power: mV */ 3828 /* enum: AOE FPGA input power: mV */ 3836 /* enum: 0.9v power voltage: mV */ 3844 /* enum: 0.9v power voltage (at ADC): mV */ 3854 /* enum: controller internal temperature sensor voltage (internal ADC): mV */ 3858 /* enum: controller internal temperature sensor voltage (external ADC): mV */ 3866 /* enum: voltage between VSS08D and VSS08D at CSR: mV */ 3868 /* enum: voltage between VSS08D and VSS08D at CSR (external ADC): mV */ 3878 /* enum: 0.9v power phase A voltage: mV */ 3884 /* enum: 0.9v power phase B voltage: mV */ 3890 /* enum: CCOM AVREG 1v2 supply (interval ADC): mV */ 3892 /* enum: CCOM AVREG 1v2 supply (external ADC): mV */ 3894 /* enum: CCOM AVREG 1v8 supply (interval ADC): mV */ 3896 /* enum: CCOM AVREG 1v8 supply (external ADC): mV */ 3901 * (internal ADC): mV 3907 * (external ADC): mV 3913 * ADC): mV 3919 * ADC): mV 3924 /* enum: Voltage supplied to the SODIMMs from their power supply: mV */ 3930 /* enum: Voltage supplied to the QSFP #0 from their power supply: mV */ 3932 /* enum: Voltage supplied to the QSFP #1 from their power supply: mV */ 8585 /* desired value, eg voltage in mV */
|
H A D | mcdi_mon.c | 33 [EFX_HWMON_IN] = " mV",
|
/linux-4.4.14/drivers/media/i2c/ |
H A D | ths7303.c | 257 "DC Bias + 250 mV Offset Select",
|
H A D | ths8200.c | 194 /* Set FSADJ 700 mV, ths8200_core_init()
|
H A D | tvaudio.c | 548 #define TDA985x_STS 1<<7 /* Stereo trigger 1= <35mV 0= <30mV (write-only)*/
|
/linux-4.4.14/arch/arm/mach-pxa/ |
H A D | palm27x.c | 464 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
|
H A D | vpac270.c | 670 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
|
H A D | balloon3.c | 757 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
|
H A D | hx4700.c | 793 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
|
H A D | mioa701.c | 620 .v3_gain = MAX1586_GAIN_NO_R24, /* 700..1475 mV */
|
/linux-4.4.14/drivers/mmc/core/ |
H A D | core.c | 1134 * @vdd: voltage (mV) 1142 * with @low_bits = true, 3300 mV translates to ilog2(MMC_VDD_32_33); 1143 * with @low_bits = false, 3300 mV translates to ilog2(MMC_VDD_33_34); 1161 /* Base 2000 mV, step 100 mV, bit's base 8. */ mmc_vdd_to_ocrbitnum() 1170 * @vdd_min: minimum voltage value (mV) 1171 * @vdd_max: maximum voltage value (mV) 1282 * @min_uV: minimum voltage value (mV) 1283 * @max_uV: maximum voltage value (mV)
|
/linux-4.4.14/drivers/staging/iio/adc/ |
H A D | ad7280a.c | 646 val = ((val - 1000) * 100) / 1568; /* LSB 15.68mV */ ad7280_write_channel_config() 650 val = (val * 10) / 196; /* LSB 19.6mV */ ad7280_write_channel_config()
|
/linux-4.4.14/drivers/iio/gyro/ |
H A D | adis16260.c | 221 *val2 = 831500; /* 1.8315 mV */ adis16260_read_raw()
|
/linux-4.4.14/drivers/input/misc/ |
H A D | twl6040-vibra.c | 145 /* 50mV per VIBDAT code step */ twl6040_vibra_code()
|
/linux-4.4.14/drivers/staging/iio/cdc/ |
H A D | ad7746.c | 659 /* 1170mV / 2^23 */ ad7746_read_raw()
|
/linux-4.4.14/drivers/ata/ |
H A D | ahci_imx.c | 455 .name = "fsl,transmit-level-mV",
|
/linux-4.4.14/arch/arm/mach-s3c64xx/ |
H A D | mach-crag6410.c | 540 .vlim = 2500, /* mV */
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | pcie.c | 1012 /* 1000mV, FS=24, LF = 8 */ do_pcie_gen3_transition() 1019 /* 400mV, FS=29, LF = 9 */ do_pcie_gen3_transition()
|
/linux-4.4.14/drivers/acpi/ |
H A D | battery.c | 821 seq_printf(seq, "design voltage: %d mV\n", acpi_battery_print_info() 884 seq_printf(seq, "present voltage: %d mV\n", acpi_battery_print_state()
|
/linux-4.4.14/drivers/iio/imu/ |
H A D | adis16400_core.c | 392 *val2 = 418000; /* 2.418 mV */ adis16400_read_raw()
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
H A D | ts2020.c | 341 * @v_agc: The voltage of the AGC from the demodulator (0-2600mV)
|
/linux-4.4.14/drivers/gpu/drm/amd/include/ |
H A D | cgs_common.h | 470 * @voltages: pointer to array of voltage values in 1mV units
|
H A D | atombios.h | 4614 USHORT usVoltageValue; // The corresponding Voltage Value, in mV 4716 USHORT usVoltageValue; // The corresponding Voltage Value, in mV 4723 USHORT usLeakageId; // The corresponding Voltage Value, in mV
|
/linux-4.4.14/drivers/gpu/drm/bridge/ |
H A D | parade-ps8622.c | 180 /* RPIO Setting: [7:4] LVDS driver bias current : 75% (250mV swing) */ ps8622_send_config()
|
/linux-4.4.14/sound/pci/hda/ |
H A D | patch_cirrus.c | 240 {0x24, AC_VERB_SET_PROC_COEF, 0x1C01}, /* A1 Enable, A Thresh = 300mV */
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
H A D | radeon_pm.c | 1878 seq_printf(m, "voltage: %u mV\n", rdev->pm.current_vddc); radeon_debugfs_pm_info()
|
H A D | atombios.h | 4488 USHORT usVoltageValue; // The corresponding Voltage Value, in mV 4585 USHORT usVoltageValue; // The corresponding Voltage Value, in mV 4592 USHORT usLeakageId; // The corresponding Voltage Value, in mV
|
/linux-4.4.14/scripts/ |
H A D | checkpatch.pl | 4448 #Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show)
|