/openbmc/intel-ipmi-oem/tests/ |
H A D | test_sensorcommands.cpp | 20 bool bSigned) in ipmitool_y_from_x() argument 28 int analog = bSigned ? 2 : 0; in ipmitool_y_from_x() 59 bool bSigned, double yRange) in testValue() argument 67 if (bSigned) in testValue() 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() 110 bool bSigned; in testBounds() local [all …]
|
/openbmc/phosphor-host-ipmid/test/dbus-sdr/ |
H A D | sensorcommands_unittest.cpp | 20 bool bSigned) in ipmitool_y_from_x() argument 28 int analog = bSigned ? 2 : 0; in ipmitool_y_from_x() 59 bool bSigned, double yRange) in testValue() argument 67 if (bSigned) in testValue() 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() 111 bool bSigned; in testBounds() local [all …]
|
/openbmc/intel-ipmi-oem/include/ |
H A D | sensorutils.hpp | 160 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument 204 bSigned = true; in getSensorAttributes() 209 bSigned = false; in getSensorAttributes() 267 const int16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument 295 if (bSigned) in scaleIPMIValueFromDouble() 320 bool bSigned = false; 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 D | sensorutils.cpp | 152 bool& bSigned) in getSensorAttributes() argument 196 bSigned = true; in getSensorAttributes() 201 bSigned = false; in getSensorAttributes() 259 const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument 287 if (bSigned) in scaleIPMIValueFromDouble() 312 bool bSigned = false; in getScaledIPMIValue() local 315 getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue() 321 return scaleIPMIValueFromDouble(value, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
|
H A D | sensorcommands.cpp | 493 bool bSigned = false; in calculateValue() local 495 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue() 500 double value = bSigned ? ((int8_t)reading) : reading; in calculateValue() 978 bool bSigned = false; 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() 1020 if (bSigned) in ipmiSenGetSensorReading() 1043 << " bSigned=" << static_cast<int>(bSigned) << "\n"; in ipmiSenGetSensorReading() 1169 bool bSigned in ipmiSenSetSensorThresholds() local 1283 bool bSigned = false; getIPMIThresholds() local 1852 bool bSigned = false; constructSensorSdr() local [all...] |
/openbmc/fb-ipmi-oem/include/ |
H A D | sensorutils.hpp | 169 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument 186 bSigned = true; in getSensorAttributes() 191 bSigned = false; in getSensorAttributes() 279 const uint16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument 290 if (bSigned) in scaleIPMIValueFromDouble() 307 bool bSigned = 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 D | sensorutils.hpp | 32 bool& bSigned); 36 const int8_t bExp, const bool bSigned);
|
/openbmc/fb-ipmi-oem/src/ |
H A D | storagecommands.cpp | 740 bool bSigned; in ipmiStorageGetSDR() local 742 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiStorageGetSDR() 786 if (bSigned) in ipmiStorageGetSDR()
|