Home
last modified time | relevance | path

Searched refs:maxClamp (Results 1 – 4 of 4) sorted by relevance

/openbmc/intel-ipmi-oem/include/
H A Dsensorutils.hpp290 int32_t maxClamp; in scaleIPMIValueFromDouble() local
298 maxClamp = std::numeric_limits<int8_t>::max(); in scaleIPMIValueFromDouble()
303 maxClamp = std::numeric_limits<uint8_t>::max(); in scaleIPMIValueFromDouble()
306 auto clampedValue = std::clamp(scaledValue, minClamp, maxClamp); in scaleIPMIValueFromDouble()
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsensorutils.cpp282 int32_t maxClamp; in scaleIPMIValueFromDouble() local
290 maxClamp = std::numeric_limits<int8_t>::max(); in scaleIPMIValueFromDouble()
295 maxClamp = std::numeric_limits<uint8_t>::max(); in scaleIPMIValueFromDouble()
298 auto clampedValue = std::clamp(scaledValue, minClamp, maxClamp); in scaleIPMIValueFromDouble()
/openbmc/phosphor-host-ipmid/
H A Dsensordatahandler.hpp253 int32_t maxClamp; in readingData() local
257 maxClamp = std::numeric_limits<int8_t>::max(); in readingData()
262 maxClamp = std::numeric_limits<uint8_t>::max(); in readingData()
264 setReading(static_cast<uint8_t>(std::clamp(rawData, minClamp, maxClamp)), in readingData()
H A Dsensorhandler.cpp734 int32_t maxClamp; in getSensorThresholds() local
741 maxClamp = std::numeric_limits<int8_t>::max(); in getSensorThresholds()
746 maxClamp = std::numeric_limits<uint8_t>::max(); 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()