Home
last modified time | relevance | path

Searched refs:MILLI (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/iio/adc/
H A Dqcom-spmi-rradc.c351 *result_ohms = (int)(r_id * MILLI); in rradc_post_process_batt_id()
615 *val = MILLI; in rradc_read_scale()
629 *val = RR_ADC_VOLT_INPUT_FACTOR * RR_ADC_FS_VOLTAGE_MV * MILLI; in rradc_read_scale()
644 MILLI); in rradc_read_scale()
672 (MILLI / RR_ADC_BATT_THERM_LSB_K)); in rradc_read_offset()
690 offset2 += ((int64_t)MILLI * RR_ADC_TEMP_FS_VOLTAGE_NUM) / 2; in rradc_read_offset()
692 offset2, ((int64_t)MILLI * RR_ADC_TEMP_FS_VOLTAGE_NUM)); in rradc_read_offset()
H A Dad7173.c953 return vref / (MICRO / MILLI); in ad7173_get_ref_voltage_milli()
977 temp = AD7173_VOLTAGE_INT_REF_uV * MILLI; in ad7173_read_raw()
1007 MILLI); in ad7173_read_raw()
1020 *val = st->info->sinc5_data_rates[reg] / MILLI; in ad7173_read_raw()
1021 *val2 = (st->info->sinc5_data_rates[reg] % MILLI) * (MICRO / MILLI); in ad7173_read_raw()
1059 freq = val * MILLI + val2 / MILLI; in ad7173_write_raw()
H A Dti-ads1100.c146 gain = DIV_ROUND_CLOSEST(microvolts, BIT(15)) * MILLI / val2; in ads1100_set_scale()
172 return regulator_get_voltage(data->reg_vdd) / (MICRO / MILLI); in ads1100_get_vdd_millivolts()
H A Dmt6370-adc.c88 ADC_CONV_TIME_MS * MILLI * 3); in mt6370_adc_read_channel()
H A Dad7192.c1358 st->aincom_mv = ret == -ENODEV ? 0 : ret / MILLI; in ad7192_probe()
1377 avdd_mv = ret == -ENODEV || ret == -EINVAL ? 0 : ret / MILLI; in ad7192_probe()
1396 st->int_vref_mv = ret == -ENODEV ? avdd_mv : ret / MILLI; in ad7192_probe()
H A Dti-ads1298.c291 *val = ret / MILLI; /* Convert to millivolts */ in ads1298_get_scale()
H A Dti-tsc2046.c790 priv->vref_mv = priv->internal_vref ? TI_TSC2046_INT_VREF : ret / MILLI; in tsc2046_adc_probe()
H A Dmcp3564.c1219 adc->vref_mv = internal_vref ? MCP3564R_INT_VREF_MV : ret / MILLI; in mcp3564_config()
H A Dad4130.c1726 st->scale_tbls[i][j][1] = div_u64(nv >> (pow + j), MILLI); in ad4130_fill_scale_tbls()
/linux/drivers/thermal/
H A Dloongson2_thermal.c112 return loongson2_thermal_set(data, low/MILLI, high/MILLI, true); in loongson2_thermal_set_trips()
/linux/drivers/hwmon/
H A Dtmp513.c210 *val = DIV_ROUND_CLOSEST(*val * 10 * (long)MILLI, (long)data->shunt_uohms); in tmp51x_get_value()
227 *val = DIV_ROUND_CLOSEST(*val, (long)MILLI); in tmp51x_get_value()
267 val = DIV_ROUND_CLOSEST(val * (long)data->shunt_uohms, 10 * (long)MILLI); in tmp51x_set_value()
563 data->curr_lsb_ua = DIV_ROUND_CLOSEST_ULL(max_curr_ma * MILLI, 32767); in tmp51x_calibrate()
H A Dltc4282.c440 ret = ltc4282_read_voltage_word(st, reg, DECA * 40 * MILLI, &in); in ltc4282_read_current_word()
444 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense); in ltc4282_read_current_word()
455 ret = ltc4282_read_voltage_byte(st, reg, DECA * 40 * MILLI, &in); in ltc4282_read_current_byte()
459 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense); in ltc4282_read_current_byte()
937 st->vsense_max, 0, 40 * MILLI); in ltc4282_curr_reset_hist()
1248 ret = ltc4282_write_voltage_byte(st, LTC4282_VSENSE_MAX, 40 * MILLI, in ltc4282_set_max_limits()
1254 st->power_max = DIV_ROUND_CLOSEST(st->vsense_max * DECA * MILLI, st->rsense) * st->vfs_out; in ltc4282_set_max_limits()
H A Dasus_wmi_sensors.c412 return value * MILLI; in asus_wmi_scale_sensor_value()
H A Dhp-wmi-sensors.c741 val -= MILLI * 32; in scale_numeric_sensor()
/linux/include/linux/
H A Dunits.h18 #define MILLI 1000UL macro
/linux/drivers/leds/
H A Dleds-aw200xx.c100 (((592UL * USEC_PER_SEC) / 600500UL) * (MILLI / (rows)) / MILLI)
232 do_div(led_imax_uA, MILLI); in aw200xx_imax_from_global()
/linux/drivers/power/supply/
H A Drt9467-charger.c442 MILLI, RT9467_ADCCONV_TIME_MS * MILLI); in rt9467_get_adc_raw_data()
/linux/drivers/iio/magnetometer/
H A Dyamaha-yas530.c1303 intrvl = (YAS537_DEFAULT_SENSOR_DELAY_MS * MILLI in yas537_power_on()