Searched refs:minClamp (Results 1 – 4 of 4) sorted by relevance
/openbmc/intel-ipmi-oem/include/ |
H A D | sensorutils.hpp | 289 int32_t minClamp; in scaleIPMIValueFromDouble() local 297 minClamp = std::numeric_limits<int8_t>::lowest(); in scaleIPMIValueFromDouble() 302 minClamp = std::numeric_limits<uint8_t>::lowest(); in scaleIPMIValueFromDouble() 306 auto clampedValue = std::clamp(scaledValue, minClamp, maxClamp); in scaleIPMIValueFromDouble()
|
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | sensorutils.cpp | 281 int32_t minClamp; in scaleIPMIValueFromDouble() local 289 minClamp = std::numeric_limits<int8_t>::lowest(); in scaleIPMIValueFromDouble() 294 minClamp = std::numeric_limits<uint8_t>::lowest(); in scaleIPMIValueFromDouble() 298 auto clampedValue = std::clamp(scaledValue, minClamp, maxClamp); in scaleIPMIValueFromDouble()
|
/openbmc/phosphor-host-ipmid/ |
H A D | sensordatahandler.hpp | 252 int32_t minClamp; in readingData() local 256 minClamp = std::numeric_limits<int8_t>::lowest(); in readingData() 261 minClamp = std::numeric_limits<uint8_t>::lowest(); in readingData() 264 setReading(static_cast<uint8_t>(std::clamp(rawData, minClamp, maxClamp)), in readingData()
|
H A D | sensorhandler.cpp | 733 int32_t minClamp; in getSensorThresholds() local 740 minClamp = std::numeric_limits<int8_t>::lowest(); in getSensorThresholds() 745 minClamp = std::numeric_limits<uint8_t>::lowest(); in getSensorThresholds() 780 static_cast<uint8_t>(std::clamp(rawData, minClamp, maxClamp)); in getSensorThresholds() 789 static_cast<uint8_t>(std::clamp(rawData, minClamp, maxClamp)); in getSensorThresholds()
|