Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/drivers/hwmon/
H A Dltc2945.c70 * @shunt_resistor: shunt resistor value in micro ohms (1000 by default)
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()
[all...]
H A Dina3221.c100 * @shunt_resistor: shunt resistor value of channel input source
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()
[all...]
H A Dtps23861.c115 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()
H A Dina2xx.c456 * of current_lsb and shunt_resistor should also be fixed and equal
577 static SENSOR_DEVICE_ATTR_RW(shunt_resistor, ina2xx_shunt, INA2XX_CALIBRATION);
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dina3221.c100 * @shunt_resistor: shunt resistor value of channel input source
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()
[all...]
H A Dina2xx.c458 * of current_lsb and shunt_resistor should also be fixed and equal
579 static SENSOR_DEVICE_ATTR_RW(shunt_resistor, ina2xx_shunt, INA2XX_CALIBRATION);
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Drtq6056.c429 static IIO_DEVICE_ATTR_RW(shunt_resistor, 0);

Completed in 8 milliseconds