Home
last modified time | relevance | path

Searched full:rexp (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/intel-ipmi-oem/tests/
H A Dtest_sensorcommands.cpp58 void testValue(int x, double y, int16_t M, int8_t rExp, int16_t B, int8_t bExp, in testValue() argument
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()
98 "| M %5d | rExp %3d " in testValue()
100 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
107 int8_t rExp; in testBounds() local
113 result = ipmi::getSensorAttributes(yMax, yMin, mValue, rExp, bValue, bExp, in testBounds()
125 " | rExp %3d | B %5d | bExp %3d | bSigned %1d\n", in testBounds()
[all …]
/openbmc/phosphor-host-ipmid/test/dbus-sdr/
H A Dsensorcommands_unittest.cpp58 void testValue(int x, double y, int16_t M, int8_t rExp, int16_t B, int8_t bExp, in testValue() argument
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()
99 "| M %5d | rExp %3d " in testValue()
101 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
108 int8_t rExp; in testBounds() local
114 result = ipmi::getSensorAttributes(yMax, yMin, mValue, rExp, bValue, bExp, in testBounds()
126 " | rExp %3d | B %5d | bExp %3d | bSigned %1d\n", in testBounds()
[all …]
/openbmc/openbmc/meta-ieisystem/meta-fp5280g3/recipes-phosphor/configuration/fp5280g3-yaml-config/
H A Dfp5280g3-ipmi-sensors.yaml14 rExp: 0
35 rExp: 0
56 rExp: 0
77 rExp: 0
98 rExp: 0
120 rExp: 0
142 rExp: -2
164 rExp: -2
186 rExp: 0
208 rExp: 0
[all …]
/openbmc/openbmc/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/
H A Dethanolx-ipmi-sensors.yaml10 rExp: 0
30 rExp: 0
50 rExp: 0
70 rExp: 0
90 rExp: 0
110 rExp: 0
130 rExp: 0
150 rExp: 0
171 rExp: 0
193 rExp: 0
[all …]
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/
H A Dg220a-ipmi-sensors.yaml15 rExp: 0
37 rExp: 0
59 rExp: 0
81 rExp: 0
103 rExp: 0
125 rExp: 0
147 rExp: 0
169 rExp: 0
191 rExp: 0
213 rExp: 0
[all …]
/openbmc/openbmc/meta-ieisystem/meta-nf5280m7/recipes-phosphor/configuration/nf5280m7-yaml-config/
H A Dnf5280m7-ipmi-sensors.yaml15 rExp: 0
37 rExp: 0
59 rExp: 0
82 rExp: 0
105 rExp: 0
126 rExp: 0
147 rExp: 0
168 rExp: 0
189 rExp: 0
210 rExp: 0
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/witherspoon/
H A Dacx22-ipmi-hwmon-sensors.yaml14 rExp: 0
35 rExp: 0
56 rExp: 0
77 rExp: 0
98 rExp: 0
119 rExp: 0
140 rExp: 0
161 rExp: 0
182 rExp: 0
203 rExp: 0
[all …]
/openbmc/openbmc/meta-amd/meta-daytonax/recipes-phosphor/configuration/daytonax-yaml-config/
H A Ddaytonax-ipmi-sensors.yaml10 rExp: 0
30 rExp: 0
51 rExp: 0
72 rExp: 0
93 rExp: 0
114 rExp: 0
135 rExp: 0
156 rExp: 0
177 rExp: 0
198 rExp: 0
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/swift/
H A Dacx22-ipmi-hwmon-sensors.yaml14 rExp: 0
35 rExp: 0
56 rExp: 0
77 rExp: 0
98 rExp: 0
119 rExp: 0
140 rExp: 0
161 rExp: 0
182 rExp: 0
203 rExp: 0
[all …]
/openbmc/intel-ipmi-oem/include/
H A Dsensorutils.hpp147 // y = (Mx + (B * 10^(bExp))) * 10^(rExp)
156 // bExp becomes E, rExp becomes R
159 const double max, const double min, int16_t& mValue, int8_t& rExp, in getSensorAttributes() argument
180 // Given min and max, we must solve for M, B, bExp, rExp in getSensorAttributes()
188 rExp = 0; in getSensorAttributes()
218 // Step 2: Constrain M, and set rExp accordingly in getSensorAttributes()
219 if (!(scaleFloatExp(dM, rExp))) in getSensorAttributes()
222 << dM << ", rExp=" << (int)rExp << ")\n"; in getSensorAttributes()
228 normalizeIntExp(mValue, rExp, dM); in getSensorAttributes()
237 // Step 3: set y to min, set x to min, keep M and rExp, solve for B in getSensorAttributes()
[all …]
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsensorutils.cpp139 // y = (Mx + (B * 10^(bExp))) * 10^(rExp)
148 // bExp becomes E, rExp becomes R
151 int8_t& rExp, int16_t& bValue, int8_t& bExp, in getSensorAttributes() argument
172 // Given min and max, we must solve for M, B, bExp, rExp in getSensorAttributes()
180 rExp = 0; in getSensorAttributes()
210 // Step 2: Constrain M, and set rExp accordingly in getSensorAttributes()
211 if (!(scaleFloatExp(dM, rExp))) in getSensorAttributes()
214 << dM << ", rExp=" << (int)rExp << ")\n"; in getSensorAttributes()
220 normalizeIntExp(mValue, rExp, dM); in getSensorAttributes()
229 // Step 3: set y to min, set x to min, keep M and rExp, solve for B in getSensorAttributes()
[all …]
/openbmc/fb-ipmi-oem/include/
H A Dsensorutils.hpp168 const double max, const double min, int16_t& mValue, int8_t& rExp, in getSensorAttributes() argument
195 rExp = 0; in getSensorAttributes()
200 if (rExp >= maxInt4) in getSensorAttributes()
203 "rExp Too big, Max and Min range too far", in getSensorAttributes()
204 phosphor::logging::entry("REXP=%d", rExp)); in getSensorAttributes()
208 rExp++; in getSensorAttributes()
214 if (rExp <= minInt4) in getSensorAttributes()
217 "rExp Too Small, Max and Min range too close"); in getSensorAttributes()
222 if (bDouble / std::pow(10, rExp + minInt4 - 1) > bDouble) in getSensorAttributes()
239 rExp--; in getSensorAttributes()
[all …]
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/ipmi/q71l-ipmi-sensor-map/
H A Dconfig.yaml9 rExp: -3
28 rExp: -3
47 rExp: -3
84 rExp: 0
120 rExp: 0
156 rExp: 0
192 rExp: 0
228 rExp: 0
247 rExp: 0
284 rExp: 0
[all …]
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/configuration/gbs-yaml-config/
H A Dgbs-ipmi-sensors.yaml10 rExp: 0
160 rExp: -4
178 rExp: -5
185 rExp: -4
192 rExp: -4
199 rExp: -4
206 rExp: -4
213 rExp: -4
220 rExp: -4
227 rExp: -4
[all …]
/openbmc/openbmc/meta-ibm/meta-palmetto/recipes-phosphor/configuration/palmetto-yaml-config/
H A Dpalmetto-ipmi-sensors.yaml639 rExp: 0
661 rExp: 0
683 rExp: 0
705 rExp: 0
727 rExp: 0
749 rExp: 0
771 rExp: 0
793 rExp: 0
815 rExp: 0
837 rExp: 0
[all …]
/openbmc/openbmc/meta-ibm/meta-romulus/recipes-phosphor/configuration/romulus-yaml-config/
H A Dromulus-ipmi-sensors.yaml631 rExp: 0
653 rExp: 0
675 rExp: 0
697 rExp: 0
719 rExp: 0
741 rExp: 0
763 rExp: 0
785 rExp: 0
807 rExp: 0
829 rExp: 0
[all …]
/openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/configuration/ncplite-yaml-config/
H A Dncplite-ipmi-sensors.yaml10 rExp: 0
57 rExp: -4
127 rExp: 0
281 rExp: 0
289 rExp: -2
301 rExp: -3
320 rExp: -2
352 rExp: 0
360 rExp: -2
375 rExp: -2
/openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/
H A Dolympus-nuvoton-ipmi-sensors.yaml10 rExp: 0
64 rExp: -2
148 rExp: -3
202 rExp: -3
241 rExp: 0
278 rExp: -2
314 rExp: -3
370 rExp: -3
426 rExp: 0
446 rExp: 0
[all …]
/openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/configuration/mtjade-yaml-config/
H A Dmtjade-ipmi-sensors.yaml15 rExp: 0
59 rExp: 0
135 rExp: -3
294 rExp: -1
300 rExp: -1
306 rExp: -2
312 rExp: -2
357 rExp: -2
516 rExp: -1
523 rExp: -1
[all …]
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/configuration/mtmitchell-yaml-config/
H A Dmtmitchell-ipmi-sensors.yaml15 rExp: 0
97 rExp: 0
164 rExp: -3
440 rExp: -2
466 rExp: -3
602 rExp: -2
679 rExp: -2
705 rExp: -2
731 rExp: -2
930 rExp: -2
[all …]
/openbmc/openbmc/meta-quanta/meta-s6q/recipes-phosphor/configuration/s6q-yaml-config/
H A Dipmi-sensors.yaml10 rExp: -3
37 rExp: -1
64 rExp: -2
91 rExp: -3
123 rExp: 0
150 rExp: 0
212 rExp: 0
234 rExp: 0
256 rExp: -3
278 rExp: -3
[all …]
/openbmc/openbmc/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/evb-npcm845-yaml-config/
H A Devb-npcm845-ipmi-sensors.yaml7 # K2: rExp
18 rExp: 0
48 rExp: -4
105 rExp: 0
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/
H A Dconfig.yaml266 rExp: 0
284 rExp: 0
302 rExp: 0
320 rExp: 0
338 rExp: 0
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/
H A Dacx22-ipmi-sensors-mrw.yaml75 rExp: 0
117 rExp: 0
195 rExp: 0
228 rExp: 0
334 rExp: 0
/openbmc/openbmc/meta-ingrasys/meta-zaius/recipes-phosphor/configuration/zaius-yaml-config/
H A Dzaius-ipmi-sensors.yaml189 rExp: -3
207 rExp: -3
225 rExp: -2
243 rExp: -3
478 rExp: 0
530 rExp: -3
584 rExp: -3
707 rExp: -1

12