/openbmc/intel-ipmi-oem/tests/ |
H A D | test_sensorcommands.cpp | 108 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 D | sensorcommands_unittest.cpp | 109 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 D | sensorutils.hpp | 160 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 D | sensorutils.cpp | 151 int8_t& rExp, int16_t& bValue, int8_t& bExp, in getSensorAttributes() argument 249 bValue = static_cast<int16_t>(std::round(dB)); in getSensorAttributes() 251 normalizeIntExp(bValue, bExp, dB); in getSensorAttributes() 258 const int8_t rExp, const int16_t bValue, in scaleIPMIValueFromDouble() argument 268 auto dB = static_cast<double>(bValue); in scaleIPMIValueFromDouble() 310 int16_t bValue = 0; 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 | 490 int16_t bValue = 0; in calculateValue() local 495 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue() 503 value += ((double)bValue) * std::pow(10.0, bExp); in calculateValue() 975 int16_t bValue = 0; 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() 1041 << " bValue=" << static_cast<int>(bValue) in ipmiSenGetSensorReading() 1166 int16_t bValue = 0; in ipmiSenSetSensorThresholds() local 1171 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bEx in ipmiSenSetSensorThresholds() 1280 int16_t bValue = 0; getIPMIThresholds() local 1850 int16_t bValue = 0; 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 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 D | sensorutils.hpp | 31 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 D | IpmbSDRSensor.hpp | 80 double bValue = 0; member 123 inline static double sensorValCalculation(uint16_t mValue, double bValue,
|
H A D | IpmbSDRSensor.cpp | 347 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 D | storagecommands.cpp | 738 int16_t bValue; in ipmiStorageGetSDR() local 742 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiStorageGetSDR() 761 record.body.b_lsb = bValue & 0xFF; in ipmiStorageGetSDR() 765 uint8_t bMsb = (bValue & (1 << 8)) > 0 ? (1 << 6) : 0; in ipmiStorageGetSDR() 768 if (bValue < 0) in ipmiStorageGetSDR()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | storage_common.c | 210 u8 bValue; member
|
/openbmc/linux/drivers/media/usb/uvc/ |
H A D | uvc_status.c | 190 status->control.bValue); in uvc_event_control()
|
H A D | uvcvideo.h | 544 u8 bValue[11]; member
|
/openbmc/linux/sound/pci/ali5451/ |
H A D | ali5451.c | 1282 u8 bValue; in snd_ali_prepare() local 1310 bValue = inb(ALI_REG(codec,ALI_SPDIF_CTRL)); in snd_ali_prepare() 1311 if (bValue & 0x10) { in snd_ali_prepare() 1312 outb(bValue,ALI_REG(codec,ALI_SPDIF_CTRL)); in snd_ali_prepare()
|