| /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 | 88pm886-gpadc.c | 183 if (WARN_ON(*raw_uV > 1500 * (MICRO / MILLI))) in gpadc_find_bias_current() 191 if (*raw_uV < 200 * (MICRO / MILLI)) { in gpadc_find_bias_current() 244 *val2 = MILLI; in __pm886_gpadc_read_raw()
|
| H A D | ad7173.c | 299 u32 div = DIV_ROUND_CLOSEST(MEGA * MILLI, odr_millihz * 32 * 3); in ad7173_sinc3_odr_div_from_odr() 1247 return vref / (MICRO / MILLI); in ad7173_get_ref_voltage_milli() 1277 temp = AD7173_VOLTAGE_INT_REF_uV * MILLI; in ad7173_read_raw() 1307 MILLI); in ad7173_read_raw() 1327 *val = st->info->sinc5_data_rates[reg] / MILLI; in ad7173_read_raw() 1328 *val2 = (st->info->sinc5_data_rates[reg] % MILLI) * (MICRO / MILLI); in ad7173_read_raw() 1369 freq = val * MILLI + val2 / MILLI; in ad7173_write_raw()
|
| 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 | ti-ads1100.c | 146 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 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 | ad4134.c | 356 st->refin_mv = ret / (MICRO / MILLI); in ad4134_regulator_setup()
|
| /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()
|
| /linux/drivers/fpga/ |
| H A D | dfl-fme-main.c | 241 *val = (long)(FIELD_GET(FPGA_TEMPERATURE, v) * MILLI); in thermal_hwmon_read() 245 *val = (long)(FIELD_GET(TEMP_THRESHOLD1, v) * MILLI); in thermal_hwmon_read() 249 *val = (long)(FIELD_GET(TEMP_THRESHOLD2, v) * MILLI); in thermal_hwmon_read() 253 *val = (long)(FIELD_GET(TRIP_THRESHOLD, v) * MILLI); in thermal_hwmon_read()
|
| /linux/drivers/iio/light/ |
| H A D | veml6070.c | 117 it_ms = val * MILLI + val2 / (MICRO / MILLI); in veml6070_read()
|
| /linux/drivers/leds/ |
| H A D | leds-aw200xx.c | 100 (((592UL * USEC_PER_SEC) / 600500UL) * (MILLI / (rows)) / MILLI) 232 do_div(led_imax_uA, MILLI); in aw200xx_imax_from_global()
|
| /linux/drivers/gpu/drm/renesas/rz-du/ |
| H A D | rzg2l_mipi_dsi.c | 479 unsigned long hsfreq = DIV_ROUND_CLOSEST_ULL(hsfreq_millihz, MILLI); in rzg2l_mipi_dsi_dphy_init() 570 *hsfreq_millihz = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(vclk_rate, bpp * MILLI), in rzg2l_dphy_conf_clks() 587 mode_freq_millihz = mode_freq_hz * MILLI; in rzv2h_dphy_mode_clk_check() 643 hsfreq = DIV_ROUND_CLOSEST_ULL(hsfreq_millihz, MILLI); in rzv2h_mipi_dsi_dphy_init() 773 hsfreq = DIV_ROUND_CLOSEST_ULL(hsfreq_millihz, MILLI); in rzg2l_mipi_dsi_startup() 1458 ret = dsi->info->dphy_init(dsi, 80000000ULL * MILLI); in rzg2l_mipi_dsi_probe()
|
| /linux/include/linux/ |
| H A D | units.h | 18 #define MILLI 1000UL macro
|
| /linux/drivers/iio/magnetometer/ |
| H A D | si7210.c | 229 temp -= 222 * div_s64(ret, MILLI); in si7210_read_raw() 231 *val = div_s64(temp, MILLI); in si7210_read_raw()
|
| H A D | als31300.c | 189 *val = MILLI * 302; in als31300_read_raw()
|
| /linux/drivers/pci/controller/ |
| H A D | pcie-rzg3s-host.c | 960 PCIE_LINK_WAIT_SLEEP_MS * MILLI, in rzg3s_pcie_set_max_link_speed() 961 PCIE_LINK_WAIT_SLEEP_MS * MILLI * in rzg3s_pcie_set_max_link_speed() 1007 PCIE_LINK_WAIT_SLEEP_MS * MILLI, in rzg3s_pcie_set_max_link_speed() 1008 PCIE_LINK_WAIT_SLEEP_MS * MILLI * in rzg3s_pcie_set_max_link_speed() 1227 PCIE_LINK_WAIT_SLEEP_MS * MILLI, in rzg3s_pcie_host_init() 1228 PCIE_LINK_WAIT_SLEEP_MS * MILLI * in rzg3s_pcie_host_init()
|
| /linux/drivers/iio/accel/ |
| H A D | adxl345_core.c | 385 st->inact_time_ms = MILLI * val; in adxl345_set_default_time() 393 st->inact_time_ms = MILLI * val_int; in adxl345_set_inactivity_time() 405 st->inact_time_ms = DIV_ROUND_UP(val_fract, MILLI); in adxl345_set_freefall_time() 1298 *val2 = MILLI; in adxl345_read_mag_value()
|
| /linux/drivers/watchdog/ |
| H A D | rzv2h_wdt.c | 317 priv->wdev.max_hw_heartbeat_ms = (MILLI * priv->of_data->timeout_cycles * in rzv2h_wdt_probe()
|
| /linux/drivers/power/supply/ |
| H A D | rt9467-charger.c | 442 MILLI, RT9467_ADCCONV_TIME_MS * MILLI); in rt9467_get_adc_raw_data()
|
| /linux/drivers/iio/imu/inv_icm42600/ |
| H A D | inv_icm42600_accel.c | 326 const unsigned int convert = (9807U * (MICRO / MILLI)) / 256U; in inv_icm42600_accel_convert_roc_to_wom() 345 const unsigned int convert = (9807U * (MICRO / MILLI)) / 256U; in inv_icm42600_accel_convert_wom_to_roc()
|