Searched refs:shunt_resistor (Results 1 – 7 of 7) sorted by relevance
74 u32 shunt_resistor; member87 u32 shunt_resistor = data->shunt_resistor; in ltc2945_reg_to_val() local129 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() local197 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 …]
107 int shunt_resistor; member161 int i, shunt_resistor = 0; in ina3221_summation_shunt_resistor() local164 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 …]
870 static DEVICE_ATTR_RW(shunt_resistor);
105 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please124 shunt_resistor Shunt resistance(uOhm) channel (not for ina260)158 - Configure `shunt_resistor` before configure `power1_crit`, because power159 value is calculated based on `shunt_resistor` set.
27 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
609 static IIO_DEVICE_ATTR_RW(shunt_resistor, 0);
378 in0_lcrit in1_lcrit_alarm shunt_resistor