Home
last modified time | relevance | path

Searched refs:bValue (Results 1 – 11 of 11) sorted by relevance

/openbmc/intel-ipmi-oem/tests/
H A Dtest_sensorcommands.cpp108 int16_t bValue; 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()
147 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
148 testValue(x50p, y50p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
149 testValue(x75p, y75p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
150 testValue(xMax, yMax, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
160 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
161 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
[all …]
/openbmc/phosphor-host-ipmid/test/dbus-sdr/
H A Dsensorcommands_unittest.cpp109 int16_t bValue; 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()
148 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
149 testValue(x50p, y50p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
150 testValue(x75p, y75p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
151 testValue(xMax, yMax, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
161 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
162 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
[all …]
/openbmc/intel-ipmi-oem/include/
H A Dsensorutils.hpp160 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument
257 bValue = static_cast<int16_t>(std::round(dB)); in getSensorAttributes()
259 normalizeIntExp(bValue, bExp, dB); in getSensorAttributes()
267 const int16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument
276 auto dB = static_cast<double>(bValue); in scaleIPMIValueFromDouble()
318 int16_t bValue = 0; in getScaledIPMIValue() local
323 getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
329 return scaleIPMIValueFromDouble(value, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsensorutils.cpp152 int8_t& rExp, int16_t& bValue, int8_t& bExp, in getSensorAttributes() argument
253 bValue = static_cast<int16_t>(std::round(dB)); in getSensorAttributes()
255 normalizeIntExp(bValue, bExp, dB); in getSensorAttributes()
262 const int8_t rExp, const int16_t bValue, in scaleIPMIValueFromDouble() argument
272 auto dB = static_cast<double>(bValue); in scaleIPMIValueFromDouble()
314 int16_t bValue = 0; in getScaledIPMIValue() local
319 getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
325 return scaleIPMIValueFromDouble(value, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
H A Dsensorcommands.cpp501 int16_t bValue = 0; in calculateValue() local
506 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue()
514 value += ((double)bValue) * std::pow(10.0, bExp); in calculateValue()
988 int16_t bValue = 0; in ipmiSenGetSensorReading() local
993 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenGetSensorReading()
999 scaleIPMIValueFromDouble(reading, mValue, rExp, bValue, bExp, bSigned); in ipmiSenGetSensorReading()
1055 rExp, "BVALUE", bValue, "BEXP", bExp, "BSIGNED", bSigned); in ipmiSenGetSensorReading()
1180 int16_t bValue = 0; in ipmiSenSetSensorThresholds() local
1185 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenSetSensorThresholds()
1266 (bValue * std::pow(10.0, bExp))) * in ipmiSenSetSensorThresholds()
[all …]
/openbmc/fb-ipmi-oem/include/
H A Dsensorutils.hpp169 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument
272 bValue = static_cast<int16_t>(bDouble) & maxInt10; in getSensorAttributes()
279 const uint16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument
282 (value - (bValue * std::pow(10, bExp) * std::pow(10, rExp))) / in scaleIPMIValueFromDouble()
305 int16_t bValue = 0; in getScaledIPMIValue() local
310 result = getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
315 return scaleIPMIValueFromDouble(value, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
/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/dbus-sensors/src/ipmb/
H A DIpmbSDRSensor.hpp80 double bValue = 0; member
123 inline static double sensorValCalculation(uint16_t mValue, double bValue,
H A DIpmbSDRSensor.cpp347 double IpmbSDRDevice::sensorValCalculation(uint16_t mValue, double bValue, in sensorValCalculation() argument
350 double sensorValue = ((mValue * value) + bValue) * expValue; in sensorValCalculation()
/openbmc/fb-ipmi-oem/src/
H A Dstoragecommands.cpp739 int16_t bValue; in ipmiStorageGetSDR() local
743 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiStorageGetSDR()
762 record.body.b_lsb = bValue & 0xFF; in ipmiStorageGetSDR()
766 uint8_t bMsb = (bValue & (1 << 8)) > 0 ? (1 << 6) : 0; in ipmiStorageGetSDR()
769 if (bValue < 0) in ipmiStorageGetSDR()
/openbmc/u-boot/drivers/usb/gadget/
H A Dstorage_common.c210 u8 bValue; member