Home
last modified time | relevance | path

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

12

/openbmc/openbmc/meta-ingrasys/meta-zaius/recipes-phosphor/configuration/zaius-yaml-config/
H A Dzaius-ipmi-sensors.yaml186 bExp: 0
204 bExp: 0
222 bExp: 0
240 bExp: 0
383 bExp: 0
389 bExp: 0
395 bExp: 0
401 bExp: 0
407 bExp: 0
413 bExp: 0
[all …]
/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()
99 "| B %5d | bExp %3d | bSigned %1d | y %18.3f | yRoundtrip %18.3f\n", in testValue()
100 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
109 int8_t bExp; 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()
100 "| B %5d | bExp %3d | bSigned %1d | y %18.3f | yRoundtrip %18.3f\n", in testValue()
101 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
110 int8_t bExp; 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.yaml2 bExp: 0
23 bExp: 0
44 bExp: 0
65 bExp: 0
86 bExp: 0
108 bExp: 0
130 bExp: 0
152 bExp: 0
174 bExp: 0
196 bExp: 0
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/witherspoon/
H A Dacx22-ipmi-hwmon-sensors.yaml2 bExp: 0
23 bExp: 0
44 bExp: 0
65 bExp: 0
86 bExp: 0
107 bExp: 0
128 bExp: 0
149 bExp: 0
170 bExp: 0
191 bExp: 0
[all …]
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/
H A Dg220a-ipmi-sensors.yaml2 bExp: 0
24 bExp: 0
46 bExp: 0
68 bExp: 0
90 bExp: 0
112 bExp: 0
134 bExp: 0
156 bExp: 0
178 bExp: 0
200 bExp: 0
[all …]
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/ipmi/q71l-ipmi-sensor-map/
H A Dconfig.yaml7 bExp: 0
26 bExp: 0
45 bExp: 0
64 bExp: 0
82 bExp: 0
101 bExp: 0
118 bExp: 0
137 bExp: 0
154 bExp: 0
173 bExp: 0
[all …]
/openbmc/openbmc/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/
H A Dethanolx-ipmi-sensors.yaml9 bExp: 0
29 bExp: 0
49 bExp: 0
69 bExp: 0
89 bExp: 0
109 bExp: 0
129 bExp: 0
149 bExp: 0
168 bExp: 0
190 bExp: 0
[all …]
/openbmc/openbmc/meta-amd/meta-daytonax/recipes-phosphor/configuration/daytonax-yaml-config/
H A Ddaytonax-ipmi-sensors.yaml9 bExp: 0
29 bExp: 0
48 bExp: 0
69 bExp: 0
90 bExp: 0
111 bExp: 0
132 bExp: 0
153 bExp: 0
174 bExp: 0
195 bExp: 0
[all …]
/openbmc/openbmc/meta-ieisystem/meta-nf5280m7/recipes-phosphor/configuration/nf5280m7-yaml-config/
H A Dnf5280m7-ipmi-sensors.yaml2 bExp: 0
24 bExp: 0
46 bExp: 0
69 bExp: 0
92 bExp: 0
114 bExp: 0
135 bExp: 0
156 bExp: 0
177 bExp: 0
198 bExp: 0
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/swift/
H A Dacx22-ipmi-hwmon-sensors.yaml2 bExp: 0
23 bExp: 0
44 bExp: 0
65 bExp: 0
86 bExp: 0
107 bExp: 0
128 bExp: 0
149 bExp: 0
170 bExp: 0
191 bExp: 0
[all …]
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsensorutils.cpp140 // y = (Mx + (B * 10^(bExp))) * 10^(rExp)
149 // bExp becomes E, rExp becomes R
152 int8_t& rExp, int16_t& bValue, int8_t& bExp, in getSensorAttributes() argument
173 // Given min and max, we must solve for M, B, bExp, rExp in getSensorAttributes()
182 bExp = 0; in getSensorAttributes()
237 // B = 10^(-rExp - bExp) (y - M 10^rExp x) in getSensorAttributes()
240 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes()
243 // Step 4: Constrain B, and set bExp accordingly in getSensorAttributes()
244 if (!(scaleFloatExp(dB, bExp))) in getSensorAttributes()
248 "bExp={BEXP}) exceeds multiplier scale (M={DM}, rExp={REXP})", in getSensorAttributes()
[all …]
H A Dsensorcommands.cpp491 int8_t bExp = 0; in calculateValue() local
494 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue()
502 value += ((double)bValue) * std::pow(10.0, bExp); in calculateValue()
976 int8_t bExp = 0; in ipmiSenGetSensorReading()
979 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenGetSensorReading()
985 scaleIPMIValueFromDouble(reading, mValue, rExp, bValue, bExp, bSigned); in ipmiSenGetSensorReading()
1037 "bExp={BEXP} bSigned={BSIGNED}", in ipmiSenGetSensorReading()
1041 rExp, "BVALUE", bValue, "BEXP", bExp, "BSIGNE in ipmiSenGetSensorReading()
977 int8_t bExp = 0; ipmiSenGetSensorReading() local
1167 int8_t bExp = 0; ipmiSenSetSensorThresholds() local
1281 int8_t bExp = 0; getIPMIThresholds() local
1850 int8_t bExp = 0; constructSensorSdr() local
[all...]
/openbmc/intel-ipmi-oem/include/
H A Dsensorutils.hpp147 // y = (Mx + (B * 10^(bExp))) * 10^(rExp)
156 // bExp becomes E, rExp becomes R
160 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument
180 // Given min and max, we must solve for M, B, bExp, rExp in getSensorAttributes()
189 bExp = 0; in getSensorAttributes()
242 // B = 10^(-rExp - bExp) (y - M 10^rExp x) in getSensorAttributes()
245 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes()
248 // Step 4: Constrain B, and set bExp accordingly in getSensorAttributes()
249 if (!(scaleFloatExp(dB, bExp))) in getSensorAttributes()
251 std::cerr << "getSensorAttributes: Offset (B=" << dB << ", bExp=" in getSensorAttributes()
[all …]
/openbmc/fb-ipmi-oem/include/
H A Dsensorutils.hpp169 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument
171 // computing y = (10^rRexp) * (Mx + (B*(10^Bexp))) in getSensorAttributes()
243 bExp = 0; in getSensorAttributes()
248 if (bExp >= maxInt4) in getSensorAttributes()
251 "bExp Too Big, Max and Min range need to be adjusted"); in getSensorAttributes()
255 bExp++; in getSensorAttributes()
261 if (bExp <= minInt4) in getSensorAttributes()
264 "bExp Too Small, Max and Min range need to be adjusted"); in getSensorAttributes()
268 bExp -= 1; in getSensorAttributes()
279 const uint16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument
[all …]
/openbmc/openbmc/meta-ibm/meta-palmetto/recipes-phosphor/configuration/palmetto-yaml-config/
H A Dpalmetto-ipmi-sensors.yaml626 bExp: 0
648 bExp: 0
670 bExp: 0
692 bExp: 0
714 bExp: 0
736 bExp: 0
758 bExp: 0
780 bExp: 0
802 bExp: 0
824 bExp: 0
[all …]
/openbmc/openbmc/meta-ibm/meta-romulus/recipes-phosphor/configuration/romulus-yaml-config/
H A Dromulus-ipmi-sensors.yaml618 bExp: 0
640 bExp: 0
662 bExp: 0
684 bExp: 0
706 bExp: 0
728 bExp: 0
750 bExp: 0
772 bExp: 0
794 bExp: 0
816 bExp: 0
[all …]
/openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/
H A Dolympus-nuvoton-ipmi-sensors.yaml9 bExp: 0
63 bExp: 0
147 bExp: 0
201 bExp: 0
240 bExp: 0
277 bExp: 0
313 bExp: 0
369 bExp: 0
425 bExp: 0
445 bExp: 0
[all …]
/openbmc/openbmc/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/evb-npcm845-yaml-config/
H A Devb-npcm845-ipmi-sensors.yaml6 # K1: bExp
17 bExp: 0
47 bExp: 0
104 bExp: 0
/openbmc/phosphor-host-ipmid/include/dbus-sdr/
H A Dsensorutils.hpp31 int8_t& rExp, int16_t& bValue, int8_t& bExp,
36 const int8_t bExp, const bool bSigned);
/openbmc/phosphor-host-ipmid/scripts/
H A Dwritesensor.cpp.mako50 bExp = sensor.get("bExp", 0)
90 .exponentB = ${bExp},
91 .scaledOffset = ${offsetB * pow(10,bExp)},
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/
H A Dconfig.yaml265 bExp: 0
283 bExp: 0
301 bExp: 0
319 bExp: 0
337 bExp: 0
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/
H A Dacx22-ipmi-sensors-mrw.yaml65 bExp: 0
107 bExp: 0
185 bExp: 0
218 bExp: 0
324 bExp: 0
/openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/configuration/ncplite-yaml-config/
H A Dncplite-ipmi-sensors.yaml9 bExp: 0
56 bExp: 0
126 bExp: 0
300 bExp: 0
/openbmc/phosphor-mrw-tools/
H A Dgen_ipmi_sensor.pl152 my $bExp = $sensorTypeConfig->{$sensorName}->{"bExp"};
163 $data{'B_EXP'} = $bExp;
168 $debug .= "$multiplierM : $offsetB : $bExp : $rExp : $unit : ";
272 print $fh " bExp: ".$data{'B_EXP'}."\n";

12