Lines Matching refs:power
3 * Driver for Texas Instruments INA238 power monitor chip
58 * This driver uses a fixed calibration value in order to scale current/power
60 * device to avoid integer limits whilst current/power accuracy is scaled
62 * how the ina2xx driver handles current/power scaling.
65 * shunt) increase the effective current/power accuracy whilst limiting the
80 * bus voltage is 102396.875 mV, 0x7fff), where the maximum power that can
289 long long power;
300 power = div_u64(regval * 1000ULL * INA238_FIXED_SHUNT *
303 *val = clamp_val(power, 0, LONG_MAX);
314 power = div_u64((regval << 8) * 1000ULL * INA238_FIXED_SHUNT *
317 *val = clamp_val(power, 0, LONG_MAX);
342 * Unsigned postive values. Compared against the 24-bit power register,
513 HWMON_CHANNEL_INFO(power,
514 /* 0: power */
612 dev_info(dev, "power monitor %s (Rshunt = %u uOhm, gain = %u)\n",