| /linux/drivers/iio/adc/ |
| H A D | qcom-spmi-rradc.c | 351 *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 D | ad4030.c | 101 #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 D | mt6370-adc.c | 88 ADC_CONV_TIME_MS * MILLI * 3); in mt6370_adc_read_channel()
|
| H A D | max14001.c | 336 st->vref_mV = ret / (MICRO / MILLI); in max14001_probe()
|
| H A D | ad7192.c | 1364 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 D | ad4170-4.c | 1220 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 D | ad7768-1.c | 815 *val = DIV_ROUND_CLOSEST(temp, MILLI); in ad7768_read_raw()
|
| H A D | mcp3564.c | 1219 adc->vref_mv = internal_vref ? MCP3564R_INT_VREF_MV : ret / MILLI; in mcp3564_config()
|
| H A D | ad7124.c | 841 *val2 = MILLI * ad7124_get_fadc_divisor(st, chan->address); in ad7124_read_raw()
|
| H A D | ad4695.c | 1731 pwm_state.period = 100 * MILLI; in ad4695_probe_spi_offload()
|
| H A D | ad7380.c | 1456 *val = mult_frac(st->vref_mv, MILLI, in ad7380_read_raw()
|
| /linux/drivers/iio/humidity/ |
| H A D | hdc3020.c | 307 *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 D | loongson2_thermal.c | 112 return loongson2_thermal_set(data, low/MILLI, high/MILLI, true); in loongson2_thermal_set_trips()
|
| /linux/drivers/hwmon/ |
| H A D | tmp513.c | 210 *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 D | ltc4282.c | 431 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 D | asus_wmi_sensors.c | 412 return value * MILLI; in asus_wmi_scale_sensor_value()
|
| /linux/drivers/clk/renesas/ |
| H A D | rzv2h-cpg.c | 240 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 D | units.h | 18 #define MILLI 1000UL macro
|
| /linux/drivers/pci/controller/ |
| H A D | pcie-rzg3s-host.c | 980 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 D | rzv2h_wdt.c | 321 priv->wdev.max_hw_heartbeat_ms = (MILLI * priv->of_data->timeout_cycles * in rzv2h_wdt_probe()
|
| /linux/drivers/iio/dac/ |
| H A D | ad3530r.c | 381 st->vref_mV = range_multiplier * external_vref_uV / MILLI; in ad3530r_setup()
|