Home
last modified time | relevance | path

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

/linux-6.15/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
159 int i, shunt_resistor = 0; in ina3221_summation_shunt_resistor() local
165 if (!shunt_resistor) { in ina3221_summation_shunt_resistor()
167 shunt_resistor = input[i].shunt_resistor; in ina3221_summation_shunt_resistor()
170 if (shunt_resistor != input[i].shunt_resistor) in ina3221_summation_shunt_resistor()
175 return shunt_resistor; in ina3221_summation_shunt_resistor()
344 resistance_uo = input[channel].shunt_resistor; in ina3221_read_curr()
448 resistance_uo = input[channel].shunt_resistor; in ina3221_write_curr()
707 return sysfs_emit(buf, "%d\n", input->shunt_resistor); in ina3221_shunt_show()
727 input->shunt_resistor = val; in ina3221_shunt_store()
[all …]
H A Dtps23861.c115 u32 shunt_resistor; member
172 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_read_current()
510 u32 shunt_resistor; in tps23861_probe() local
525 if (!of_property_read_u32(dev->of_node, "shunt-resistor-micro-ohms", &shunt_resistor)) in tps23861_probe()
526 data->shunt_resistor = shunt_resistor; in tps23861_probe()
528 data->shunt_resistor = SHUNT_RESISTOR_DEFAULT; in tps23861_probe()
530 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_probe()
H A Dina2xx.c870 static DEVICE_ATTR_RW(shunt_resistor);
/linux-6.15/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-6.15/drivers/iio/adc/
H A Drtq6056.c619 static IIO_DEVICE_ATTR_RW(shunt_resistor, 0);
/linux-6.15/Documentation/i2c/
H A Di2c-sysfs.rst378 in0_lcrit in1_lcrit_alarm shunt_resistor