Home
last modified time | relevance | path

Searched refs:shunt_resistor (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/hwmon/
H A Dltc2945.c74 u32 shunt_resistor; member
87 u32 shunt_resistor = data->shunt_resistor; in ltc2945_reg_to_val() local
129 val = DIV_ROUND_CLOSEST_ULL(val, shunt_resistor); in ltc2945_reg_to_val()
160 val = DIV_ROUND_CLOSEST_ULL(val, shunt_resistor); in ltc2945_reg_to_val()
174 u32 shunt_resistor = data->shunt_resistor; in ltc2945_val_to_reg() local
197 val *= shunt_resistor; in ltc2945_val_to_reg()
203 val *= shunt_resistor; in ltc2945_val_to_reg()
231 val *= shunt_resistor; in ltc2945_val_to_reg()
495 &data->shunt_resistor)) in ltc2945_probe()
496 data->shunt_resistor = 1000; in ltc2945_probe()
[all …]
H A Dina3221.c107 int shunt_resistor; member
161 int i, shunt_resistor = 0; in ina3221_summation_shunt_resistor() local
164 if (input[i].disconnected || !input[i].shunt_resistor || in ina3221_summation_shunt_resistor()
167 if (!shunt_resistor) { in ina3221_summation_shunt_resistor()
169 shunt_resistor = input[i].shunt_resistor; in ina3221_summation_shunt_resistor()
172 if (shunt_resistor != input[i].shunt_resistor) in ina3221_summation_shunt_resistor()
177 return shunt_resistor; in ina3221_summation_shunt_resistor()
346 resistance_uo = input[channel].shunt_resistor; in ina3221_read_curr()
450 resistance_uo = input[channel].shunt_resistor; in ina3221_write_curr()
709 return sysfs_emit(buf, "%d\n", input->shunt_resistor); in ina3221_shunt_show()
[all …]
H A Dina2xx.c870 static DEVICE_ATTR_RW(shunt_resistor);
/linux/Documentation/hwmon/
H A Dina2xx.rst105 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
124 shunt_resistor Shunt resistance(uOhm) channel (not for ina260)
158 - Configure `shunt_resistor` before configure `power1_crit`, because power
159 value is calculated based on `shunt_resistor` set.
H A Dina238.rst27 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
/linux/drivers/iio/adc/
H A Drtq6056.c609 static IIO_DEVICE_ATTR_RW(shunt_resistor, 0);
/linux/Documentation/i2c/
H A Di2c-sysfs.rst378 in0_lcrit in1_lcrit_alarm shunt_resistor