Home
last modified time | relevance | path

Searched refs:voltage (Results 1 – 25 of 64) sorted by relevance

123

/linux-4.19.296/drivers/iio/adc/
Dqcom-vadc-common.c115 s64 voltage = 0, result = 0; in qcom_vadc_scale_volt() local
117 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_volt()
119 voltage = voltage * prescale->den; in qcom_vadc_scale_volt()
120 result = div64_s64(voltage, prescale->num); in qcom_vadc_scale_volt()
131 s64 voltage = 0, result = 0; in qcom_vadc_scale_therm() local
134 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_therm()
137 voltage = div64_s64(voltage, 1000); in qcom_vadc_scale_therm()
141 voltage, &result); in qcom_vadc_scale_therm()
156 s64 voltage = 0; in qcom_vadc_scale_die_temp() local
159 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_die_temp()
[all …]
/linux-4.19.296/drivers/regulator/
DKconfig6 This framework is designed to provide a generic interface to voltage
8 provide voltage and current control to client or consumer drivers and
14 to both voltage regulators (where voltage output is controllable) and
32 tristate "Fixed voltage regulator support"
34 This driver provides support for fixed voltage regulators,
41 This driver provides a virtual consumer for the voltage and
58 tristate "Marvell 88PG86X voltage regulators"
62 This driver supports Marvell 88PG867 and 88PG868 voltage regulators.
70 This driver supports Marvell 88PM800 voltage regulator chips.
72 the voltage is programmed via I2C interface.
[all …]
Dtwl6030-regulator.c335 int voltage = 0; in twl6030smps_list_voltage() local
339 voltage = 100000; in twl6030smps_list_voltage()
344 voltage = 0; in twl6030smps_list_voltage()
347 voltage = 1350 * 1000; in twl6030smps_list_voltage()
350 voltage = 1500 * 1000; in twl6030smps_list_voltage()
353 voltage = 1800 * 1000; in twl6030smps_list_voltage()
356 voltage = 1900 * 1000; in twl6030smps_list_voltage()
359 voltage = 2100 * 1000; in twl6030smps_list_voltage()
362 voltage += (600000 + (12500 * (index - 1))); in twl6030smps_list_voltage()
368 voltage = 0; in twl6030smps_list_voltage()
[all …]
Dpwm-regulator.c162 unsigned int voltage; in pwm_regulator_get_voltage() local
166 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit); in pwm_regulator_get_voltage()
174 voltage = min_uV_duty - voltage; in pwm_regulator_get_voltage()
177 voltage = voltage - min_uV_duty; in pwm_regulator_get_voltage()
181 voltage = DIV_ROUND_CLOSEST_ULL((u64)voltage * diff_uV, diff_duty); in pwm_regulator_get_voltage()
183 return voltage + min_uV; in pwm_regulator_get_voltage()
Dhelpers.c244 int ret, voltage; in regulator_map_voltage_linear() local
269 voltage = rdev->desc->ops->list_voltage(rdev, ret); in regulator_map_voltage_linear()
270 if (voltage < min_uV || voltage > max_uV) in regulator_map_voltage_linear()
292 int voltage, i; in regulator_map_voltage_linear_range() local
331 voltage = rdev->desc->ops->list_voltage(rdev, ret); in regulator_map_voltage_linear_range()
332 if (voltage < min_uV || voltage > max_uV) in regulator_map_voltage_linear_range()
Dtps6524x-regulator.c132 struct field enable, voltage, ilimsel; member
384 .voltage = __MK_FIELD(REG_DCDC_SET, DCDC_VDCDC_MASK,
395 .voltage = __MK_FIELD(REG_DCDC_SET, DCDC_VDCDC_MASK,
406 .voltage = __MK_FIELD(REG_DCDC_SET, DCDC_VDCDC_MASK,
417 .voltage = __MK_FIELD(REG_LDO_SET, LDO_VSEL_MASK,
430 .voltage = __MK_FIELD(REG_LDO_SET, LDO_VSEL_MASK,
468 return write_field(hw, &info->voltage, selector); in set_voltage_sel()
483 ret = read_field(hw, &info->voltage); in get_voltage_sel()
Dcore.c296 struct regulator_voltage *voltage; in regulator_check_consumers() local
299 voltage = &regulator->voltage[state]; in regulator_check_consumers()
304 if (!voltage->min_uV && !voltage->max_uV) in regulator_check_consumers()
307 if (*max_uV > voltage->max_uV) in regulator_check_consumers()
308 *max_uV = voltage->max_uV; in regulator_check_consumers()
309 if (*min_uV < voltage->min_uV) in regulator_check_consumers()
310 *min_uV = voltage->min_uV; in regulator_check_consumers()
1447 &regulator->voltage[PM_SUSPEND_ON].min_uV); in create_regulator()
1449 &regulator->voltage[PM_SUSPEND_ON].max_uV); in create_regulator()
3061 struct regulator_voltage *voltage = &regulator->voltage[state]; in regulator_set_voltage_unlocked() local
[all …]
Dmax8649.c65 int voltage, rate, ret; in max8649_enable_time() local
73 voltage = regulator_list_voltage_linear(rdev, (unsigned char)val); in max8649_enable_time()
82 return DIV_ROUND_UP(voltage, rate); in max8649_enable_time()
Dmax8907-regulator.c66 #define REG_FIXED(ids, supply, voltage) \ argument
75 .min_uV = (voltage), \
78 #define REG_OUT5V(ids, supply, base, voltage) \ argument
87 .min_uV = (voltage), \
/linux-4.19.296/include/linux/
Ddevfreq_cooling.h57 unsigned long voltage);
60 unsigned long voltage);
62 unsigned long freq, unsigned long voltage);
/linux-4.19.296/drivers/misc/cardreader/
Drts5227.c37 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5227_fill_driving() argument
53 if (voltage == OUTPUT_3V3) { in rts5227_fill_driving()
204 static int rts5227_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rts5227_switch_output_voltage() argument
208 if (voltage == OUTPUT_3V3) { in rts5227_switch_output_voltage()
212 } else if (voltage == OUTPUT_1V8) { in rts5227_switch_output_voltage()
225 rts5227_fill_driving(pcr, voltage); in rts5227_switch_output_voltage()
Drtl8411.c194 static int rtl8411_do_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage, in rtl8411_do_switch_output_voltage() argument
201 if (voltage == OUTPUT_3V3) { in rtl8411_do_switch_output_voltage()
207 } else if (voltage == OUTPUT_1V8) { in rtl8411_do_switch_output_voltage()
220 static int rtl8411_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rtl8411_switch_output_voltage() argument
222 return rtl8411_do_switch_output_voltage(pcr, voltage, in rtl8411_switch_output_voltage()
226 static int rtl8402_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rtl8402_switch_output_voltage() argument
228 return rtl8411_do_switch_output_voltage(pcr, voltage, in rtl8402_switch_output_voltage()
Drts5249.c36 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5249_fill_driving() argument
52 if (voltage == OUTPUT_3V3) { in rts5249_fill_driving()
317 static int rtsx_base_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rtsx_base_switch_output_voltage() argument
322 switch (voltage) { in rtsx_base_switch_output_voltage()
345 pcr_dbg(pcr, "unknown output voltage %d\n", voltage); in rtsx_base_switch_output_voltage()
351 rts5249_fill_driving(pcr, voltage); in rtsx_base_switch_output_voltage()
642 static int rts525a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rts525a_switch_output_voltage() argument
644 switch (voltage) { in rts525a_switch_output_voltage()
661 rts5249_fill_driving(pcr, voltage); in rts525a_switch_output_voltage()
Drts5209.c164 static int rts5209_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rts5209_switch_output_voltage() argument
168 if (voltage == OUTPUT_3V3) { in rts5209_switch_output_voltage()
176 } else if (voltage == OUTPUT_1V8) { in rts5209_switch_output_voltage()
Drts5229.c146 static int rts5229_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) in rts5229_switch_output_voltage() argument
150 if (voltage == OUTPUT_3V3) { in rts5229_switch_output_voltage()
158 } else if (voltage == OUTPUT_1V8) { in rts5229_switch_output_voltage()
/linux-4.19.296/drivers/media/dvb-frontends/
Dlnbp22.c49 enum fe_sec_voltage voltage) in lnbp22_set_voltage() argument
59 dprintk(1, "%s: %d (18V=%d 13V=%d)\n", __func__, voltage, in lnbp22_set_voltage()
63 switch (voltage) { in lnbp22_set_voltage()
Disl6405.c44 enum fe_sec_voltage voltage) in isl6405_set_voltage() argument
53 switch (voltage) { in isl6405_set_voltage()
67 switch (voltage) { in isl6405_set_voltage()
Dlnbh25.c91 enum fe_sec_voltage voltage) in lnbh25_set_voltage() argument
104 switch (voltage) { in lnbh25_set_voltage()
133 if (voltage != SEC_VOLTAGE_OFF) { in lnbh25_set_voltage()
Dtda8083.c200 enum fe_sec_voltage voltage) in tda8083_set_voltage() argument
202 switch (voltage) { in tda8083_set_voltage()
407 enum fe_sec_voltage voltage) in tda8083_diseqc_set_voltage() argument
411 tda8083_set_voltage (state, voltage); in tda8083_diseqc_set_voltage()
Dmb86a16.h32 enum fe_sec_voltage voltage);
Dlnbp21.c45 enum fe_sec_voltage voltage) in lnbp21_set_voltage() argument
54 switch(voltage) { in lnbp21_set_voltage()
/linux-4.19.296/include/soc/tegra/
Dpmc.h167 enum tegra_io_pad_voltage voltage);
217 enum tegra_io_pad_voltage voltage) in tegra_io_pad_set_voltage() argument
/linux-4.19.296/include/linux/power/
Dtwl4030_madc_battery.h27 short voltage; /* in mV - specify -1 for end of list */ member
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Ddvbsky.c44 enum fe_sec_voltage voltage);
236 enum fe_sec_voltage voltage) in dvbsky_usb_set_voltage() argument
242 if (voltage == SEC_VOLTAGE_OFF) in dvbsky_usb_set_voltage()
248 return state->fe_set_voltage(fe, voltage); in dvbsky_usb_set_voltage()
349 enum fe_sec_voltage voltage) in dvbsky_usb_ci_set_voltage() argument
355 if (voltage == SEC_VOLTAGE_OFF) in dvbsky_usb_ci_set_voltage()
361 return state->fe_set_voltage(fe, voltage); in dvbsky_usb_ci_set_voltage()
/linux-4.19.296/drivers/cpufreq/
De_powersaver.c186 int k, step, voltage; in eps_cpu_init() local
352 voltage = (k * step) / 256 + min_voltage; in eps_cpu_init()
354 f_table[k].driver_data = (i << 8) | voltage; in eps_cpu_init()

123