Lines Matching +full:1000 +full:ma
87 * shunt = 0x4000 / (819.2 * 10^6) / 0.001 = 20000 uOhms (with 1mA/lsb)
89 * Current (mA) = register value * 20000 / rshunt / 4 * gain
201 (1000 * (4 - data->gain + 1)); in ina238_read_in()
203 *val = (regval * INA238_BUS_VOLTAGE_LSB) / 1000; in ina238_read_in()
228 regval = (regval * 1000 * (4 - data->gain + 1)) / in ina238_write_in()
245 regval = (regval * 1000) / INA238_BUS_VOLTAGE_LSB; in ina238_write_in()
275 /* Signed register, fixed 1mA current lsb. result in mA */ in ina238_read_current()
299 /* Fixed 1mA lsb, scaled by 1000000 to have result in uW */ in ina238_read_power()
300 power = div_u64(regval * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power()
314 power = div_u64((regval << 8) * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power()
348 1000ULL * INA238_FIXED_SHUNT * data->gain); in ina238_write_power()