Lines Matching defs:unit
94 #define ENERGY_UNIT_SCALE 1000 /* scale from driver unit to powercap unit */
237 enum unit_type unit;
246 .unit = u, \
641 /* name, mask, shift, msr index, unit divisor */
697 /* name, mask, shift, msr index, unit divisor */
807 * is pre-assigned based on RAPL unit MSRs read at init time.
844 *data = rapl_unit_xlate(rd, rpi->unit, value, 0);
865 bits = rapl_unit_xlate(rd, rpi->unit, value, 1);
910 * the RAPL unit MSRs. This is specific to CPUs as the method to
914 * energy unit: picoJoules : Represented in picoJoules by default
915 * power unit : microWatts : Represented in milliWatts by default
916 * time unit : microseconds: Represented in seconds by default
926 pr_err("Failed to read power unit REG 0x%llx on %s:%s, exit.\n",
954 pr_err("Failed to read power unit REG 0x%llx on %s:%s, exit.\n",
1080 u64 f, y; /* fraction and exp. used for time unit */
1114 * Atom time unit encoding is straight forward val * time_unit,
1141 pr_err("Failed to read power unit REG 0x%llx on %s:%s, exit.\n",
1302 rpi->unit, &val))
1409 * Get per domain energy/power/time unit.
1410 * RAPL Interfaces without per domain unit register will use the package
1411 * scope unit register to set per domain units.