Home
last modified time | relevance | path

Searched refs:rExp (Results 1 – 12 of 12) sorted by relevance

/openbmc/intel-ipmi-oem/tests/
H A Dtest_sensorcommands.cpp58 void testValue(int x, double y, int16_t M, int8_t rExp, int16_t B, int8_t bExp, in testValue() argument
71 ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned); in testValue()
74 yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned); in testValue()
82 ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned); in testValue()
85 yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned); in testValue()
100 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
107 int8_t rExp; in testBounds() local
113 result = ipmi::getSensorAttributes(yMax, yMin, mValue, rExp, bValue, bExp, in testBounds()
126 yMin, yMax, mValue, (int)rExp, bValue, (int)bExp, (int)bSigned); in testBounds()
146 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
[all …]
/openbmc/phosphor-host-ipmid/test/dbus-sdr/
H A Dsensorcommands_unittest.cpp58 void testValue(int x, double y, int16_t M, int8_t rExp, int16_t B, int8_t bExp, in testValue() argument
71 ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned); in testValue()
74 yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned); in testValue()
82 ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned); in testValue()
85 yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned); in testValue()
101 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
108 int8_t rExp; in testBounds() local
114 result = ipmi::getSensorAttributes(yMax, yMin, mValue, rExp, bValue, bExp, in testBounds()
127 yMin, yMax, mValue, (int)rExp, bValue, (int)bExp, (int)bSigned); in testBounds()
147 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
[all …]
/openbmc/intel-ipmi-oem/include/
H A Dsensorutils.hpp159 const double max, const double min, int16_t& mValue, int8_t& rExp, in getSensorAttributes() argument
188 rExp = 0; in getSensorAttributes()
219 if (!(scaleFloatExp(dM, rExp))) in getSensorAttributes()
222 << dM << ", rExp=" << (int)rExp << ")\n"; in getSensorAttributes()
228 normalizeIntExp(mValue, rExp, dM); in getSensorAttributes()
245 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes()
246 (min - ((dM * std::pow(10.0, rExp) * lowestX))); in getSensorAttributes()
253 << ", rExp=" << (int)rExp << ")\n"; in getSensorAttributes()
266 const double value, const int16_t mValue, const int8_t rExp, in scaleIPMIValueFromDouble() argument
284 (std::pow(10.0, -rExp) * (value - (dB * std::pow(10.0, rExp + bExp)))) / in scaleIPMIValueFromDouble()
[all …]
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsensorutils.cpp151 int8_t& rExp, int16_t& bValue, int8_t& bExp, in getSensorAttributes() argument
180 rExp = 0; in getSensorAttributes()
211 if (!(scaleFloatExp(dM, rExp))) in getSensorAttributes()
214 << dM << ", rExp=" << (int)rExp << ")\n"; in getSensorAttributes()
220 normalizeIntExp(mValue, rExp, dM); in getSensorAttributes()
237 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes()
238 (min - ((dM * std::pow(10.0, rExp) * lowestX))); in getSensorAttributes()
245 << ", rExp=" << (int)rExp << ")\n"; in getSensorAttributes()
258 const int8_t rExp, const int16_t bValue, in scaleIPMIValueFromDouble() argument
276 (std::pow(10.0, -rExp) * (value - (dB * std::pow(10.0, rExp + bExp)))) / in scaleIPMIValueFromDouble()
[all …]
H A Dsensorcommands.cpp491 int8_t rExp = 0; in calculateValue() local
495 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue()
504 value *= std::pow(10.0, rExp); in calculateValue()
976 int8_t rExp = 0; in ipmiSenGetSensorReading() local
980 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenGetSensorReading()
986 scaleIPMIValueFromDouble(reading, mValue, rExp, bValue, bExp, bSigned); in ipmiSenGetSensorReading()
1040 << " rExp=" << static_cast<int>(rExp) in ipmiSenGetSensorReading()
1167 int8_t rExp = 0; in ipmiSenSetSensorThresholds() local
1171 if (!getSensorAttributes(max, min, mValue, rExp, bValu in ipmiSenSetSensorThresholds()
1281 int8_t rExp = 0; getIPMIThresholds() local
1849 int8_t rExp = 0; constructSensorSdr() local
[all...]
/openbmc/fb-ipmi-oem/include/
H A Dsensorutils.hpp168 const double max, const double min, int16_t& mValue, int8_t& rExp, in getSensorAttributes() argument
195 rExp = 0; in getSensorAttributes()
200 if (rExp >= maxInt4) in getSensorAttributes()
204 phosphor::logging::entry("REXP=%d", rExp)); in getSensorAttributes()
208 rExp++; in getSensorAttributes()
214 if (rExp <= minInt4) in getSensorAttributes()
222 if (bDouble / std::pow(10, rExp + minInt4 - 1) > bDouble) in getSensorAttributes()
239 rExp--; in getSensorAttributes()
242 bDouble /= std::pow(10, rExp); in getSensorAttributes()
278 const double value, const uint16_t mValue, const int8_t rExp, in scaleIPMIValueFromDouble() argument
[all …]
/openbmc/phosphor-host-ipmid/include/dbus-sdr/
H A Dsensorutils.hpp31 int8_t& rExp, int16_t& bValue, int8_t& bExp,
35 const int8_t rExp, const int16_t bValue,
/openbmc/phosphor-mrw-tools/
H A Dgen_ipmi_sensor.pl153 my $rExp = $sensorTypeConfig->{$sensorName}->{"rExp"};
164 $data{'R_EXP'} = $rExp;
168 $debug .= "$multiplierM : $offsetB : $bExp : $rExp : $unit : ";
/openbmc/phosphor-host-ipmid/scripts/
H A Dwritesensor.mako.cpp
/openbmc/docs/architecture/
H A Dsensor-architecture.md397 y = L[(Mx + B * 10^(bExp)) * 10^(rExp)]
405 - rExp: 4 bits, signed, `rExp` in YAML
414 Supported range: [0, 255 * M * 10^(scale - rExp)]
415 Resolution: M * 10^(scale - rExp)
425 rExp: -3
434 rExp: -3
/openbmc/linux/arch/m68k/include/asm/
H A Dmac_via.h227 #define rExp 0x0001 /* [RBV only] RBV future expansion (always 0) */ macro
/openbmc/fb-ipmi-oem/src/
H A Dstoragecommands.cpp737 int8_t rExp; in ipmiStorageGetSDR() local
742 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiStorageGetSDR()
779 record.body.r_b_exponents = (rExp & 0x7) << 4; in ipmiStorageGetSDR()
780 if (rExp < 0) in ipmiStorageGetSDR()