Searched refs:shunt_resistor (Results 1 – 8 of 8) sorted by relevance
| /Linux-v6.6/drivers/hwmon/ |
| D | ltc2945.c | 74 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 …]
|
| D | ina3221.c | 105 int shunt_resistor; member 154 int i, shunt_resistor = 0; in ina3221_summation_shunt_resistor() local 157 if (input[i].disconnected || !input[i].shunt_resistor) in ina3221_summation_shunt_resistor() 159 if (!shunt_resistor) { in ina3221_summation_shunt_resistor() 161 shunt_resistor = input[i].shunt_resistor; in ina3221_summation_shunt_resistor() 164 if (shunt_resistor != input[i].shunt_resistor) in ina3221_summation_shunt_resistor() 169 return shunt_resistor; in ina3221_summation_shunt_resistor() 338 resistance_uo = input[channel].shunt_resistor; in ina3221_read_curr() 442 resistance_uo = input[channel].shunt_resistor; in ina3221_write_curr() 701 return sysfs_emit(buf, "%d\n", input->shunt_resistor); in ina3221_shunt_show() [all …]
|
| D | tps23861.c | 115 u32 shunt_resistor; member 173 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_read_current() 530 u32 shunt_resistor; in tps23861_probe() local 545 if (!of_property_read_u32(dev->of_node, "shunt-resistor-micro-ohms", &shunt_resistor)) in tps23861_probe() 546 data->shunt_resistor = shunt_resistor; in tps23861_probe() 548 data->shunt_resistor = SHUNT_RESISTOR_DEFAULT; in tps23861_probe() 550 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_probe()
|
| D | ina2xx.c | 577 static SENSOR_DEVICE_ATTR_RW(shunt_resistor, ina2xx_shunt, INA2XX_CALIBRATION);
|
| /Linux-v6.6/Documentation/hwmon/ |
| D | ina2xx.rst | 76 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please 95 shunt_resistor Shunt resistance(uOhm) channel 118 - Configure `shunt_resistor` before configure `power1_crit`, because power 119 value is calculated based on `shunt_resistor` set.
|
| D | ina238.rst | 27 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
|
| /Linux-v6.6/drivers/iio/adc/ |
| D | rtq6056.c | 429 static IIO_DEVICE_ATTR_RW(shunt_resistor, 0);
|
| /Linux-v6.6/Documentation/i2c/ |
| D | i2c-sysfs.rst | 378 in0_lcrit in1_lcrit_alarm shunt_resistor
|