Searched refs:mV (Results 1 - 171 of 171) sorted by relevance

/linux-4.4.14/include/linux/iio/dac/
H A Dad5791.h14 * @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 Dmenelaus.h20 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 Dabx500.h58 * @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 Dmax8998.h91 * @restart: Restart Level in mV: 100, 150, 200, and -1 for disable.
/linux-4.4.14/include/linux/regulator/
H A Dmax1586.h30 #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 Dfan53555.h24 * Bin |Slew Rate(mV/uS)
H A Dtps51632-regulator.h35 * @dvfs_step_20mV: Step for DVFS is 20mV or 10mV.
/linux-4.4.14/include/linux/
H A Ddevfreq_cooling.h27 * @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 Ds3c_adc_battery.h5 int volt; /* mV */
H A Dled-lm3530.h93 * @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 Dpm2301_charger.h28 * @ac_volt_max: maximum allowed AC charger voltage in mV
H A Dhwmon-vid.h30 val is in mV to avoid floating point in the kernel.
/linux-4.4.14/arch/arm/mach-omap2/
H A Dboard-n8x0.c200 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 Dvc.c378 * scale to 600mV.
/linux-4.4.14/drivers/hwmon/
H A Dltc4260.c45 /* 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 Dina209.c119 /* 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 Dltc2945.c75 /* 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 Dltc4222.c55 /* 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 Dltc4151.c99 /* 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 Dhwmon-vid.c79 * 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 Dltc4215.c91 /* 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 Dltc4261.c102 /* 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 Dmc13783-adc.c89 * 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 Datxp1.c135 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 Dmax1111.c120 * sample. The LSB weight is 8mV or 16mV depending on the chip type. show_adc()
H A Dadc128d818.c64 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 Dads7828.c42 #define ADS7828_INT_VREF_MV 2500 /* Internal vref is 2.5V, 2500mV */
H A Dmcp3021.c9 * voltage unit is mV. Through the sysfs interface, lm-sensors tool
H A Dadm9240.c21 * 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 Dadt7462.c524 /* 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 Dads1015.c44 /* PGA fullscale voltages in mV */
H A Dsmm665.c35 MODULE_PARM_DESC(vref, "Reference voltage in mV");
149 /* The following values are in mV */
H A Dw83l786ng.c104 * 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 Dltc4245.c287 /* current in mA * voltage in mV == power in uW */ ltc4245_show_power()
H A Dmax16065.c94 /* limits are in mV */
H A Dsis5595.c130 * IN: mV, (0V to 4.08V)
131 * REG: 16mV/bit
H A Dlm78.c83 * IN: mV (0V to 4.08V)
84 * REG: 16mV/bit
H A Dnct6683.c471 /* LSB is 16 mV, except for the following sources, where it is 32 mV */
H A Dlm93.c312 * 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 Dw83791d.c219 * 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 Dw83795.c240 /* 3VDD, 3VSB and VBAT: 6 mV/bit; other inputs: 2 mV/bit */ in_from_reg()
H A Dabituguru.c152 /* 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 Dasb100.c113 * REG: 16mV/bit
H A Dlm87.c140 /* analog out is 9.80mV/LSB */
H A Dit87.c337 /* 12mV ADC (OHM) */
348 /* 12mV ADC (HWSensors4, OHM) */
H A Dpc87360.c207 u16 in_vref; /* 1 mV/bit */
H A Dw83793.c981 /* voltage inputs 5VDD and 5VSB needs 150mV offset */ show_in()
H A Dw83627ehf.c401 * contain 8 (the ADC LSB in mV) * scaling factor * 100
H A Dnct6775.c816 * contain 8 (the ADC LSB in mV) * scaling factor * 100
/linux-4.4.14/drivers/mfd/
H A Dmenelaus.c462 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 Dab8500-gpadc.c103 #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 Darizona-core.c1287 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 Dlp8727.h51 * @get_batt_level : get battery voltage (mV)
H A Dhwmon-s3c.h23 * hwmon expects (mV) by result = (value_read * @mult) / @div.
/linux-4.4.14/include/linux/power/
H A Dtwl4030_madc_battery.h27 short voltage; /* in mV - specify -1 for end of list */
H A Dbq2415x_charger.h50 int weak_battery_voltage; /* mV */
51 int battery_regulation_voltage; /* mV */
/linux-4.4.14/arch/mips/lantiq/xway/
H A Ddcdc.c34 dev_info(&pdev->dev, "Core Voltage : %d mV\n", dcdc_probe()
/linux-4.4.14/arch/arm/mach-pxa/include/mach/
H A Dmioa701.h17 #define GPIO80_MAYBE_CHARGE_VDROP 80 /* Drop of 88mV */
/linux-4.4.14/drivers/cpufreq/
H A Dlonghaul.c560 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 Dmt8173-cpufreq.c37 * 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 Domap-cpufreq.c77 dev_dbg(mpu_dev, "cpufreq-omap: %u MHz, %ld mV --> %u MHz, %ld mV\n", omap_target()
H A Dpxa3xx-cpufreq.c51 int vcc_core; /* in mV */
52 int vcc_sram; /* in mV */
H A De_powersaver.c318 /* 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 Dlonghaul.h314 unsigned short mV; member in struct:mV_pos
H A Dcpufreq-dt.c86 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", set_target()
H A Dimx6q-cpufreq.c68 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", imx6q_set_target()
H A Dpowernow-k8.h123 #define MAXIMUM_VID_STEPS 1 /* Current cpus only allow a single step of 25mV */
H A Dspeedstep-centrino.c81 frequency/voltage operating point; frequency in MHz, volts in mV.
/linux-4.4.14/drivers/clk/tegra/
H A Dclk-dfll.h28 * @min_millivolts: minimum voltage (in mV) that the DFLL can operate
H A Dclk-tegra124-dfll-fcpu.c46 .step_uv = 10000, /* 10mV */
H A Dclk-dfll.c1493 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 Dux500_chargalg.h36 * @max_out_volt maximum output charger voltage in mV
H A Dab8500-bm.h316 * @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 Dpowernow-k8-decode.c90 printf("cpu %d currently at %d MHz and %d mV\n", main()
H A Dcentrino-decode.c73 printf("0x%x means multiplier %d @ %d mV\n", msr, multiplier, mv); decode()
/linux-4.4.14/drivers/hwmon/pmbus/
H A Dlm25066.c237 /* 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 Dmax34440.c214 .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 Dda9150-charger.c63 /* 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 Dda9030_battery.c112 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 Daxp288_charger.c51 #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 Dbq2415x_charger.c568 /* 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 Dpmu_battery.c117 val->intval = pbi->voltage * 1000; /* mV -> µV */ pmu_bat_get_property()
H A D88pm860x_battery.c168 /* 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 Daxp20x_usb_power.c79 val->intval = ret * 1700; /* 1 step = 1.7 mV */ axp20x_usb_power_get_property()
H A Dds2782_battery.c155 * 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 Daxp288_fuel_gauge.c53 #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 Dmax17042_battery.c66 #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 Dds2760_battery.c40 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 D88pm860x_charger.c129 /* 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 Dab8500_fg.c50 #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 Dolpc_battery.c24 #define EC_BAT_VOLTAGE 0x10 /* uint16_t, *9.76/32, mV */
H A Dwm831x_power.c254 "target voltage", "mV"); wm831x_config_battery()
H A Dbq25890_charger.c444 /* converted_val = 2.304V + ADC_val * 20mV (table 10.3.15) */ bq25890_power_supply_get_property()
H A Dds2780_battery.c185 * DS2780 reports voltage in units of 4.88mV, but the battery class ds2780_get_voltage()
H A Dds2781_battery.c190 /* DS2781 reports voltage in units of 9.76mV, but the battery class ds2781_get_voltage()
H A Dab8500_btemp.c179 * This function returns the voltage on BATCTRL. Returns value in mV.
H A Dpm2301_charger.c680 /* Voltage drop between VBAT and VSYS in HW charging = 300mV */ pm2xxx_charging_init()
/linux-4.4.14/drivers/regulator/
H A Dqcom_rpm-regulator.c35 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 Dtps65912-regulator.c378 /* 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 Dab8500.c708 * 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 Dfan53555.c239 * 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 Dwm8350-regulator.c341 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 Dmax8952.c175 dev_warn(dev, "max8952,ramp-speed property not specified, defaulting to 32mV/us\n"); max8952_parse_dt()
H A Dtps51632-regulator.c243 pdata->dvfs_step_20mV = of_property_read_bool(np, "ti,dvfs-step-20mV"); of_get_tps51632_platform_data()
H A Dtwl-regulator.c44 /* 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 Dtps80031-regulator.c640 /* TRACK mode the ldo2 varies from 600mV to 1300mV */ check_smps_mode_mult()
H A Dda9052-regulator.c252 /* The DVC controlled LDOs and DCDCs ramp with 6.25mV/µs after enabling da9052_regulator_set_voltage_time_sel()
H A Dltc3589.c121 /* The slew rate can be set to 0.88, 1.75, 3.5, or 7 mV/uS */ ltc3589_set_ramp_delay()
H A Dmax77686.c87 RAMP_RATE_NO_CTRL, /* 100mV/us */
H A Dtps62360-regulator.c283 /* ramp mV/us = 32/(2^ramp_ctrl) */ tps62360_init_dcdc()
H A Dmax8997.c41 int ramp_delay; /* in mV/us */
1178 max8997->ramp_delay = 10; /* set 10mV/us, which is the default */ max8997_pmic_probe()
H A Dpalmas-regulator.c1019 * It is of the order of ~60mV/uS. tps65917_ldo_registration()
H A Dcore.c841 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 Dadis16201_core.c52 *val2 = 220000; /* 1.22 mV */ adis16201_read_raw()
55 *val2 = 610000; /* 0.610 mV */ adis16201_read_raw()
H A Dadis16203_core.c64 *val2 = 220000; /* 1.22 mV */ adis16203_read_raw()
67 *val2 = 610000; /* 0.61 mV */ adis16203_read_raw()
H A Dadis16204_core.c57 *val2 = 220000; /* 1.22 mV */ adis16204_read_raw()
60 *val2 = 610000; /* 0.61 mV */ adis16204_read_raw()
H A Dadis16209_core.c85 *val2 = 305180; /* 0.30518 mV */ adis16209_read_raw()
87 *val2 = 610500; /* 0.6105 mV */ adis16209_read_raw()
H A Dadis16240_core.c100 *val2 = 880000; /* 4.88 mV */ adis16240_read_raw()
H A Dadis16220_core.c300 *val2 = 220700; /* 1.2207 mV */ adis16220_read_raw()
/linux-4.4.14/include/linux/mfd/wm8350/
H A Dsupply.h119 int trickle_start_mV; /* trickle charge starts at mV */
/linux-4.4.14/include/linux/mfd/samsung/
H A Ds5m8767.h198 * in mV/us.
/linux-4.4.14/drivers/iio/adc/
H A Dda9150-gpadc.c138 /* 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 Dvf610_adc.c109 /* 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 Dad7793.c482 /* 1170mV / 2^23 * 6 */ ad7793_read_raw()
487 /* 1170mV / 0.81 mV/C / 2^23 */ ad7793_read_raw()
H A Dqcom-spmi-vadc.c107 * 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 Dtwl4030-madc.c266 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 Dmcp320x.c167 /* convert regulator output voltage to mV */ mcp320x_read_raw()
H A Dtwl6030-gpadc.c506 /* Shift back into mV range */ twl6030_gpadc_get_processed()
/linux-4.4.14/sound/soc/codecs/
H A Dsn95031.h120 /* multipier to convert to mV */
H A Dab8500-codec.c1356 "250mV", "300mV", "350mV", "400mV",
1357 "450mV", "500mV", "550mV", "600mV",
1358 "650mV", "700mV", "750mV", "800mV",
1359 "850mV", "900mV", "950mV", "1.00V" };
H A Dsgtl5000.c1546 /* 1250mV => 0 */ sgtl5000_i2c_probe()
1547 /* steps of 250mV */ sgtl5000_i2c_probe()
H A Dtwl6040.c578 /* 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 Dsn95031.c139 /* 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 Di915_params.c190 "(0=use value from vbt [default], 1=low power swing(200mV),"
191 "2=default swing(400mV))");
H A Dintel_ddi.c66 /* 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 Dintel_hdmi.c1920 /* Use 800mV-0dB */ chv_hdmi_pre_enable()
H A Di915_reg.h6428 /* ILK always use 400mV 0dB for voltage swing and pre-emphasis level.
/linux-4.4.14/drivers/thermal/
H A Ddevfreq_cooling.c230 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 Dm62332.c100 *val = ret / 1000; /* mV */ m62332_read_raw()
H A Dmax517.c206 data->vref_mv[chan] = 5000; /* mV */ max517_probe()
/linux-4.4.14/include/linux/mfd/wm831x/
H A Dpdata.h38 int vsel; /** Target voltage, in mV */
/linux-4.4.14/include/linux/mfd/arizona/
H A Dpdata.h59 int mV; /** Regulated voltage */ member in struct:arizona_micbias
/linux-4.4.14/drivers/phy/
H A Dphy-miphy365x.c360 * 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 Dmcdi_pcol.h3794 /* 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 Dmcdi_mon.c33 [EFX_HWMON_IN] = " mV",
/linux-4.4.14/drivers/media/i2c/
H A Dths7303.c257 "DC Bias + 250 mV Offset Select",
H A Dths8200.c194 /* Set FSADJ 700 mV, ths8200_core_init()
H A Dtvaudio.c548 #define TDA985x_STS 1<<7 /* Stereo trigger 1= <35mV 0= <30mV (write-only)*/
/linux-4.4.14/arch/arm/mach-pxa/
H A Dpalm27x.c464 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
H A Dvpac270.c670 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
H A Dballoon3.c757 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
H A Dhx4700.c793 .v3_gain = MAX1586_GAIN_R24_3k32, /* 730..1550 mV */
H A Dmioa701.c620 .v3_gain = MAX1586_GAIN_NO_R24, /* 700..1475 mV */
/linux-4.4.14/drivers/mmc/core/
H A Dcore.c1134 * @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 Dad7280a.c646 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 Dadis16260.c221 *val2 = 831500; /* 1.8315 mV */ adis16260_read_raw()
/linux-4.4.14/drivers/input/misc/
H A Dtwl6040-vibra.c145 /* 50mV per VIBDAT code step */ twl6040_vibra_code()
/linux-4.4.14/drivers/staging/iio/cdc/
H A Dad7746.c659 /* 1170mV / 2^23 */ ad7746_read_raw()
/linux-4.4.14/drivers/ata/
H A Dahci_imx.c455 .name = "fsl,transmit-level-mV",
/linux-4.4.14/arch/arm/mach-s3c64xx/
H A Dmach-crag6410.c540 .vlim = 2500, /* mV */
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Dpcie.c1012 /* 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 Dbattery.c821 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 Dadis16400_core.c392 *val2 = 418000; /* 2.418 mV */ adis16400_read_raw()
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dts2020.c341 * @v_agc: The voltage of the AGC from the demodulator (0-2600mV)
/linux-4.4.14/drivers/gpu/drm/amd/include/
H A Dcgs_common.h470 * @voltages: pointer to array of voltage values in 1mV units
H A Datombios.h4614 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 Dparade-ps8622.c180 /* RPIO Setting: [7:4] LVDS driver bias current : 75% (250mV swing) */ ps8622_send_config()
/linux-4.4.14/sound/pci/hda/
H A Dpatch_cirrus.c240 {0x24, AC_VERB_SET_PROC_COEF, 0x1C01}, /* A1 Enable, A Thresh = 300mV */
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_pm.c1878 seq_printf(m, "voltage: %u mV\n", rdev->pm.current_vddc); radeon_debugfs_pm_info()
H A Datombios.h4488 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 Dcheckpatch.pl4448 #Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show)

Completed in 8094 milliseconds