| /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 | 153 bool& bSigned) in getSensorAttributes() argument 197 bSigned = true; in getSensorAttributes() 202 bSigned = false; in getSensorAttributes() 263 const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument 291 if (bSigned) in scaleIPMIValueFromDouble() 316 bool bSigned = false; 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 D | sensorcommands.cpp | 504 bool bSigned = false; in calculateValue() local 506 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue() 511 double value = bSigned ? ((int8_t)reading) : reading; in calculateValue() 991 bool bSigned = false; 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() 1033 if (bSigned) in ipmiSenGetSensorReading() 1055 rExp, "BVALUE", bValue, "BEXP", bExp, "BSIGNED", bSigned); in ipmiSenGetSensorReading() 1183 bool bSigned = false; in ipmiSenSetSensorThresholds() local 1185 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenSetSensorThresholds() [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 | 741 bool bSigned; in ipmiStorageGetSDR() local 743 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiStorageGetSDR() 787 if (bSigned) in ipmiStorageGetSDR()
|