Lines Matching +full:double +full:- +full:channel

3 #include <phosphor-logging/lg2.hpp>
15 const constexpr char* ipmbService = "xyz.openbmc_project.Ipmi.Channel.Ipmb";
16 const constexpr char* ipmbDbusPath = "/xyz/openbmc_project/Ipmi/Channel/Ipmb";
51 conn->async_method_call( in getSDRRepositoryInfo()
61 if (!status(self->hostIndex)) in getSDRRepositoryInfo()
73 "INDEX", self->hostIndex); in getSDRRepositoryInfo()
83 self->reserveSDRRepository(recordCount); in getSDRRepositoryInfo()
94 conn->async_method_call( in reserveSDRRepository()
104 if (!status(self->hostIndex)) in reserveSDRRepository()
116 "INDEX", self->hostIndex); in reserveSDRRepository()
122 self->getSDRSensorData(recordCount, resrvIDLSB, resrvIDMSB); in reserveSDRRepository()
140 conn->async_method_call( in getSDRSensorData()
150 if (!status(self->hostIndex)) in getSDRSensorData()
161 "INDEX", self->hostIndex); in getSDRSensorData()
165 self->handleSDRData(data, recordCount, resrvIDLSB, resrvIDMSB); in getSDRSensorData()
241 int strAddr = dataLen + ((dataLen / (sdr::perCountByte)) * 4) - in checkSDRData()
242 (strLen - 1); in checkSDRData()
249 checkSDRType01Threshold(sdrDataBytes, (hostIndex - 1), tempName); in checkSDRData()
271 /* mData - 10 bits in checkSDRType01Threshold()
272 * mDataByte - Byte 28 - 8 bits LSB in checkSDRType01Threshold()
273 * mTolDataByte - Byte 29 - 2 bits MSB [7-6] in checkSDRType01Threshold()
279 /* bData - 10 bits in checkSDRType01Threshold()
280 * bDataByte - Byte 30 - 8 bits LSB in checkSDRType01Threshold()
281 * bAcuDataByte - Byte 31 - 2 bits MSB [7-6] in checkSDRType01Threshold()
288 * Bit [3-0] - B Exponent 2's complement signed bit. in checkSDRType01Threshold()
289 * Bit [7-4] - R Exponent 2's complement signed bit. in checkSDRType01Threshold()
303 rExpVal = -rExpVal; in checkSDRType01Threshold()
310 * X - Raw value of threshold in checkSDRType01Threshold()
311 * M - mData Value in checkSDRType01Threshold()
312 * B - bData Value in checkSDRType01Threshold()
313 * K1 - Signed Exponent of bExpVal in checkSDRType01Threshold()
314 * K2 - Signed Exponent of rExpVal in checkSDRType01Threshold()
317 double bDataVal = bData * pow(10, bExpVal); in checkSDRType01Threshold()
318 double expVal = pow(10, rExpVal); in checkSDRType01Threshold()
320 double thresUpCri = in checkSDRType01Threshold()
323 double thresLoCri = in checkSDRType01Threshold()
347 double IpmbSDRDevice::sensorValCalculation(uint16_t mValue, double bValue, in sensorValCalculation()
348 double expValue, double value) in sensorValCalculation()
350 double sensorValue = ((mValue * value) + bValue) * expValue; in sensorValCalculation()