Searched full:deca (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/hwmon/ |
| H A D | ltc4282.c | 431 ret = ltc4282_read_voltage_word(st, reg, DECA * 40 * MILLI, &in); in ltc4282_read_current_word() 446 ret = ltc4282_read_voltage_byte(st, reg, DECA * 40 * MILLI, &in); in ltc4282_read_current_byte() 488 u64 temp = DECA * 40ULL * st->vfs_out * BIT(16), temp_2; in ltc4282_read_power_word() 526 temp = power * 40 * DECA * st->vfs_out * BIT_ULL(8); in ltc4282_read_power_byte() 554 * multiply by DECA to get microujoule. in ltc4282_read_energy() 556 if (check_mul_overflow(DECA * st->vfs_out * 40 * BIT(8), energy, &temp)) { in ltc4282_read_energy() 557 temp = DIV_ROUND_CLOSEST(DECA * st->vfs_out * 40 * BIT(8), U16_MAX); in ltc4282_read_energy() 626 MICRO * DECA * 256ULL * st->vfs_out * 40); in ltc4282_write_power_byte() 639 temp = DIV_ROUND_CLOSEST_ULL(temp, DECA * MICRO); in ltc4282_write_power_word() 643 temp = DECA * MICRO * 40ULL * BIT(16) * st->vfs_out; in ltc4282_write_power_word() [all …]
|
| H A D | ltc4283.c | 385 u64 temp = (u64)LTC4283_ADC1_FS_uV * DECA * MILLI; in ltc4283_read_current_word() 402 u64 temp = (u64)LTC4283_ADC1_FS_uV * DECA * MILLI; in ltc4283_read_current_byte() 444 u64 temp = (u64)LTC4283_ADC1_FS_uV * LTC4283_ADC2_FS_mV * DECA * MILLI; in ltc4283_read_power_word() 464 u64 temp = (u64)LTC4283_ADC1_FS_uV * LTC4283_ADC2_FS_mV * DECA * MILLI; in ltc4283_read_power_byte() 523 * multiply by DECA to get microjoule. in ltc4283_read_energy() 564 u64 temp = (u64)LTC4283_ADC1_FS_uV * LTC4283_ADC2_FS_mV * DECA * MILLI; in ltc4283_write_power_byte() 576 u64 divisor = (u64)LTC4283_ADC1_FS_uV * LTC4283_ADC2_FS_mV * DECA * MILLI; in ltc4283_write_power_word() 762 u32 temp = LTC4283_ADC1_FS_uV * DECA * MILLI; in ltc4283_write_curr_byte() 765 isense_max = DIV_ROUND_CLOSEST(st->vsense_max * MICRO * DECA, st->rsense); in ltc4283_write_curr_byte() 976 u32 temp = st->vsense_max * DECA * MICRO; in ltc4283_set_max_limits()
|