Searched refs:__raw (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/hwmon/ |
| H A D | ltc4283.c | 194 unsigned int __raw; in ltc4283_read_voltage_word() local 197 ret = regmap_read(st->map, reg, &__raw); in ltc4283_read_voltage_word() 201 *val = DIV_ROUND_CLOSEST(__raw * fs, BIT(16)); in ltc4283_read_voltage_word() 386 unsigned int __raw; in ltc4283_read_current_word() local 389 ret = regmap_read(st->map, reg, &__raw); in ltc4283_read_current_word() 393 *val = DIV64_U64_ROUND_CLOSEST(__raw * temp, in ltc4283_read_current_word() 445 unsigned int __raw; in ltc4283_read_power_word() local 448 ret = regmap_read(st->map, reg, &__raw); in ltc4283_read_power_word() 456 *val = DIV64_U64_ROUND_CLOSEST(temp * __raw, BIT_ULL(16) * st->rsense); in ltc4283_read_power_word() 565 u32 __raw; in ltc4283_write_power_byte() local [all …]
|
| H A D | ltc4282.c | 635 __be16 __raw; in ltc4282_write_power_word() local 647 __raw = cpu_to_be16(code); in ltc4282_write_power_word() 648 return regmap_bulk_write(st->map, reg, &__raw, sizeof(__raw)); in ltc4282_write_power_word() 654 __be16 __raw; in __ltc4282_in_write_history() local 660 __raw = cpu_to_be16(tmp); in __ltc4282_in_write_history() 662 ret = regmap_bulk_write(st->map, reg, &__raw, 2); in __ltc4282_in_write_history() 668 __raw = cpu_to_be16(tmp); in __ltc4282_in_write_history() 670 return regmap_bulk_write(st->map, reg + 2, &__raw, 2); in __ltc4282_in_write_history()
|