Home
last modified time | relevance | path

Searched refs:MILLI (Results 1 – 21 of 21) 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 Dad4030.c101 #define AD4030_VREF_MIN_UV (4096 * MILLI)
102 #define AD4030_VREF_MAX_UV (5000 * MILLI)
103 #define AD4030_VIO_THRESHOLD_UV (1400 * MILLI)
393 *val = (st->vref_uv * 2) / MILLI; in ad4030_get_chan_scale()
395 *val = st->vref_uv / MILLI; in ad4030_get_chan_scale()
H A Dmt6370-adc.c88 ADC_CONV_TIME_MS * MILLI * 3); in mt6370_adc_read_channel()
H A Dmax14001.c336 st->vref_mV = ret / (MICRO / MILLI); in max14001_probe()
H A Dad7192.c1364 st->aincom_mv = ret == -ENODEV ? 0 : ret / MILLI; in ad7192_probe()
1383 avdd_mv = ret == -ENODEV || ret == -EINVAL ? 0 : ret / MILLI; in ad7192_probe()
1402 st->int_vref_mv = ret == -ENODEV ? avdd_mv : ret / MILLI; in ad7192_probe()
H A Dad4170-4.c1220 settling_time_ms = DIV_ROUND_UP(6291164 * MILLI, st->mclk_hz); in __ad4170_read_sample()
1308 *val2 = DIV_ROUND_CLOSEST(chan_info->scale_tbl[pga][1] * MILLI, 477) * in ad4170_read_raw()
1309 MILLI; in ad4170_read_raw()
1390 chan_info->scale_tbl[pga][1] = div_u64(nv >> rshift, MILLI); in ad4170_fill_scale_tbl()
H A Dad7768-1.c815 *val = DIV_ROUND_CLOSEST(temp, MILLI); in ad7768_read_raw()
H A Dmcp3564.c1219 adc->vref_mv = internal_vref ? MCP3564R_INT_VREF_MV : ret / MILLI; in mcp3564_config()
H A Dad7124.c841 *val2 = MILLI * ad7124_get_fadc_divisor(st, chan->address); in ad7124_read_raw()
H A Dad4695.c1731 pwm_state.period = 100 * MILLI; in ad4695_probe_spi_offload()
H A Dad7380.c1456 *val = mult_frac(st->vref_mv, MILLI, in ad7380_read_raw()
/linux/drivers/iio/humidity/
H A Dhdc3020.c307 *val = 175 * MILLI; in hdc3020_read_raw()
309 *val = 100 * MILLI; in hdc3020_read_raw()
646 *val = thresh * MILLI; in hdc3020_read_thresh()
654 *val = abs(thresh - clr) * MILLI; in hdc3020_read_thresh()
665 *val = thresh * MILLI; in hdc3020_read_thresh()
673 *val = abs(thresh - clr) * MILLI; in hdc3020_read_thresh()
/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.c431 ret = ltc4282_read_voltage_word(st, reg, DECA * 40 * MILLI, &in); in ltc4282_read_current_word()
435 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense); in ltc4282_read_current_word()
446 ret = ltc4282_read_voltage_byte(st, reg, DECA * 40 * MILLI, &in); in ltc4282_read_current_byte()
450 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense); in ltc4282_read_current_byte()
922 st->vsense_max, 0, 40 * MILLI); in ltc4282_curr_reset_hist()
1220 ret = ltc4282_write_voltage_byte(st, LTC4282_VSENSE_MAX, 40 * MILLI, in ltc4282_set_max_limits()
1226 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()
/linux/drivers/clk/renesas/
H A Drzv2h-cpg.c240 u64 fout_min_millihz = mul_u32_u32(limits->fout.min, MILLI); in rzv2h_get_pll_pars()
241 u64 fout_max_millihz = mul_u32_u32(limits->fout.max, MILLI); in rzv2h_get_pll_pars()
289 output_m = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(p.m, fref) * MILLI, in rzv2h_get_pll_pars()
292 output_k_range = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(fref, MILLI), in rzv2h_get_pll_pars()
317 pll_k = DIV_S64_ROUND_CLOSEST(pll_k, MILLI); in rzv2h_get_pll_pars()
337 output *= MILLI; in rzv2h_get_pll_pars()
453 rate_millihz = mul_u32_u32(req->rate, MILLI); in rzv2h_cpg_plldsi_div_determine_rate()
471 req->rate = DIV_ROUND_CLOSEST_ULL(dsi_params->div.freq_millihz, MILLI); in rzv2h_cpg_plldsi_div_determine_rate()
575 rate_millihz = mul_u32_u32(req->rate, MILLI); in rzv2h_cpg_plldsi_determine_rate()
584 req->rate = DIV_ROUND_CLOSEST_ULL(dsi_info->pll_dsi_parameters.pll.freq_millihz, MILLI); in rzv2h_cpg_plldsi_determine_rate()
/linux/include/linux/
H A Dunits.h18 #define MILLI 1000UL macro
/linux/drivers/pci/controller/
H A Dpcie-rzg3s-host.c980 PCIE_LINK_WAIT_SLEEP_MS * MILLI, in rzg3s_pcie_set_max_link_speed()
981 PCIE_LINK_WAIT_SLEEP_MS * MILLI * in rzg3s_pcie_set_max_link_speed()
1027 PCIE_LINK_WAIT_SLEEP_MS * MILLI, in rzg3s_pcie_set_max_link_speed()
1028 PCIE_LINK_WAIT_SLEEP_MS * MILLI * in rzg3s_pcie_set_max_link_speed()
1246 PCIE_LINK_WAIT_SLEEP_MS * MILLI, in rzg3s_pcie_host_init()
1247 PCIE_LINK_WAIT_SLEEP_MS * MILLI * in rzg3s_pcie_host_init()
/linux/drivers/watchdog/
H A Drzv2h_wdt.c321 priv->wdev.max_hw_heartbeat_ms = (MILLI * priv->of_data->timeout_cycles * in rzv2h_wdt_probe()
/linux/drivers/iio/dac/
H A Dad3530r.c381 st->vref_mV = range_multiplier * external_vref_uV / MILLI; in ad3530r_setup()