/openbmc/phosphor-hwmon/ |
H A D | thresholds.hpp | 8 /** @class Thresholds 14 struct Thresholds struct 18 static_assert(sizeof(Thresholds) == -1, "Unsupported Threshold type"); in fail() argument 22 /**@brief Thresholds specialization for warning thresholds. */ 24 struct Thresholds<WarningObject> struct 43 /**@brief Thresholds specialization for critical thresholds. */ argument 45 struct Thresholds<CriticalObject> struct 72 * @param[in] value - The sensor reading to compare to thresholds. 78 auto lo = (*realIface.*Thresholds<T>::getLo)(); in checkThresholds() argument 79 auto hi = (*realIface.*Thresholds<T>::getHi)(); in checkThresholds() [all …]
|
H A D | mainloop.cpp | 29 #include "thresholds.hpp" 49 decltype(Thresholds<WarningObject>::setLo) Thresholds<WarningObject>::setLo = 51 decltype(Thresholds<WarningObject>::setHi) Thresholds<WarningObject>::setHi = 53 decltype(Thresholds<WarningObject>::getLo) Thresholds<WarningObject>::getLo = 55 decltype(Thresholds<WarningObject>::getHi) Thresholds<WarningObject>::getHi = 57 decltype(Thresholds<WarningObject>::alarmLo) 58 Thresholds<WarningObject>::alarmLo = &WarningObject::warningAlarmLow; 59 decltype(Thresholds<WarningObject>::alarmHi) 60 Thresholds<WarningObject>::alarmHi = &WarningObject::warningAlarmHigh; 61 decltype(Thresholds<WarningObject>::getAlarmLow) [all …]
|
/openbmc/entity-manager/configurations/ |
H A D | mtmitchell_mb.json | 11 "Thresholds": [ array 46 "Thresholds": [ array 81 "Thresholds": [ array 116 "Thresholds": [ array 151 "Thresholds": [ array 186 "Thresholds": [ array 221 "Thresholds": [ array 256 "Thresholds": [ array 291 "Thresholds": [ array 326 "Thresholds": [ array [all …]
|
H A D | mtjade.json | 9 "Thresholds": [ array 37 "Thresholds": [ array 60 "Thresholds": [ array 83 "Thresholds": [ array 106 "Thresholds": [ array 129 "Thresholds": [ array 152 "Thresholds": [ array 175 "Thresholds": [ array 198 "Thresholds": [ array 221 "Thresholds": [ array [all …]
|
H A D | vegman_sx20_baseboard.json | 9 "Thresholds": [ array 40 "Thresholds": [ array 71 "Thresholds": [ array 103 "Thresholds": [ array 135 "Thresholds": [ array 168 "Thresholds": [ array 200 "Thresholds": [ array 234 "Thresholds": [ array 268 "Thresholds": [ array 301 "Thresholds": [ array [all …]
|
H A D | vegman_rx20_baseboard.json | 9 "Thresholds": [ array 40 "Thresholds": [ array 71 "Thresholds": [ array 103 "Thresholds": [ array 135 "Thresholds": [ array 168 "Thresholds": [ array 200 "Thresholds": [ array 234 "Thresholds": [ array 268 "Thresholds": [ array 301 "Thresholds": [ array [all …]
|
H A D | stp_baseboard.json | 7 "Thresholds": [ array 39 "Thresholds": [ array 71 "Thresholds": [ array 103 "Thresholds": [ array 135 "Thresholds": [ array 167 "Thresholds": [ array 199 "Thresholds": [ array 231 "Thresholds": [ array 263 "Thresholds": [ array 295 "Thresholds": [ array [all …]
|
H A D | fp5280g3_fanboard.json | 27 "Thresholds": [ array 56 "Thresholds": [ array 85 "Thresholds": [ array 114 "Thresholds": [ array 143 "Thresholds": [ array 172 "Thresholds": [ array 201 "Thresholds": [ array 230 "Thresholds": [ array 259 "Thresholds": [ array 288 "Thresholds": [ array [all …]
|
H A D | vegman_n110_baseboard.json | 9 "Thresholds": [ array 40 "Thresholds": [ array 72 "Thresholds": [ array 104 "Thresholds": [ array 137 "Thresholds": [ array 169 "Thresholds": [ array 203 "Thresholds": [ array 236 "Thresholds": [ array 269 "Thresholds": [ array 302 "Thresholds": [ array [all …]
|
H A D | mtjefferson_mb.json | 20 "Thresholds": [ array 64 "Thresholds": [ array 102 "Thresholds": [ array 139 "Thresholds": [ array 177 "Thresholds": [ array 215 "Thresholds": [ array 253 "Thresholds": [ array 292 "Thresholds": [ array 330 "Thresholds": [ array 368 "Thresholds": [ array [all …]
|
H A D | asrock_e3c246d4i.json | 7 "Thresholds": [ array 39 "Thresholds": [ array 70 "Thresholds": [ array 90 "Thresholds": [ array 122 "Thresholds": [ array 153 "Thresholds": [ array 185 "Thresholds": [ array 223 "Thresholds": [ array 263 "Thresholds": [ array 296 "Thresholds": [ array [all …]
|
H A D | asrock_romed8hm3.json | 7 "Thresholds": [ array 39 "Thresholds": [ array 72 "Thresholds": [ array 105 "Thresholds": [ array 137 "Thresholds": [ array 169 "Thresholds": [ array 202 "Thresholds": [ array 235 "Thresholds": [ array 267 "Thresholds": [ array 300 "Thresholds": [ array [all …]
|
/openbmc/dbus-sensors/src/ |
H A D | sensor.hpp | 6 #include "Thresholds.hpp" 62 std::vector<thresholds::Threshold>&& thresholdData, in Sensor() 71 minValue(min), thresholds(std::move(thresholdData)), in Sensor() 94 std::vector<thresholds::Threshold> thresholds; member 117 using Level = thresholds::Level; 118 using Direction = thresholds::Direction; 121 thresholds::thresProp.size()> 236 // check thresholds for external set in setSensorValue() 275 for (auto& threshold : thresholds) in setInitialProperties() 301 label.empty() ? thresholds.size() : thresholdSize; in setInitialProperties() [all …]
|
/openbmc/entity-manager/configurations/meta/ |
H A D | fbyv2.json | 7 "Thresholds": [ array 27 "Thresholds": [ array 47 "Thresholds": [ array 67 "Thresholds": [ array 87 "Thresholds": [ array 107 "Thresholds": [ array 127 "Thresholds": [ array 147 "Thresholds": [ array 167 "Thresholds": [ array 187 "Thresholds": [ array [all …]
|
H A D | bletchley_baseboard.json | 7 "Thresholds": [ array 27 "Thresholds": [ array 47 "Thresholds": [ array 75 "Thresholds": [ array 95 "Thresholds": [ array 115 "Thresholds": [ array 134 "Thresholds": [ array 153 "Thresholds": [ array 173 "Thresholds": [ array 193 "Thresholds": [ array [all …]
|
H A D | fbtp.json | 7 "Thresholds": [ array 27 "Thresholds": [ array 47 "Thresholds": [ array 66 "Thresholds": [ array 85 "Thresholds": [ array 105 "Thresholds": [ array 125 "Thresholds": [ array 151 "Thresholds": [ array 177 "Thresholds": [ array 209 "Thresholds": [ array [all …]
|
H A D | fbyv35.json | 7 "Thresholds": [ array 51 "Thresholds": [ array 95 "Thresholds": [ array 139 "Thresholds": [ array 171 "Thresholds": [ array 215 "Thresholds": [ array 247 "Thresholds": [ array 291 "Thresholds": [ array 335 "Thresholds": [ array 377 "Thresholds": [ array [all …]
|
H A D | catalina_pdb.json | 23 "Thresholds": [ array 53 "Thresholds": [ array 83 "Thresholds": [ array 113 "Thresholds": [ array 143 "Thresholds": [ array 173 "Thresholds": [ array 203 "Thresholds": [ array 233 "Thresholds": [ array 263 "Thresholds": [ array 293 "Thresholds" array 323 "Thresholds": [ global() array 353 "Thresholds": [ global() array 383 "Thresholds": [ global() array 413 "Thresholds": [ global() array 443 "Thresholds": [ global() array 473 "Thresholds": [ global() array 499 "Thresholds": [ global() array 531 "Thresholds": [ global() array 563 "Thresholds": [ global() array 644 "Thresholds": [ global() array 706 "Thresholds": [ global() array 768 "Thresholds": [ global() array 829 "Thresholds": [ global() array 875 "Thresholds": [ global() array 921 "Thresholds": [ global() array 961 "Thresholds": [ global() array [all...] |
H A D | catalina_scm.json | 7 "Thresholds": [ array 29 "Thresholds": [ 51 "Thresholds": [ 73 "Thresholds": [ 95 "Thresholds": [ 117 "Thresholds": [ 139 "Thresholds": [ 169 "Thresholds": [ 190 "Thresholds": [ 222 "Thresholds" 27 "Thresholds": [ global() array 47 "Thresholds": [ global() array 67 "Thresholds": [ global() array 87 "Thresholds": [ global() array 107 "Thresholds": [ global() array 127 "Thresholds": [ global() array 155 "Thresholds": [ global() array 174 "Thresholds": [ global() array 204 "Thresholds": [ global() array [all...] |
H A D | harma_scm.json | 7 "Thresholds": [ array 27 "Thresholds": [ array 47 "Thresholds": [ array 67 "Thresholds": [ array 87 "Thresholds": [ array 107 "Thresholds": [ array 127 "Thresholds": [ array 146 "Thresholds": [ array 170 "Thresholds": [ array
|
H A D | minerva_cmm_scm.json | 7 "Thresholds": [ array 29 "Thresholds": [ array 51 "Thresholds": [ array 73 "Thresholds": [ array 95 "Thresholds": [ array 117 "Thresholds": [ array 138 "Thresholds": [ array 159 "Thresholds": [ array 185 "Thresholds": [ array
|
H A D | ventura_scm.json | 7 "Thresholds": [ array 27 "Thresholds": [ array 47 "Thresholds": [ array 67 "Thresholds": [ array 87 "Thresholds": [ array 107 "Thresholds": [ array 127 "Thresholds": [ array 155 "Thresholds": [ array 174 "Thresholds": [ array
|
H A D | minerva_pttv.json | 16 "Thresholds": [ array 138 "Thresholds": [ array 203 "Thresholds": [ array 263 "Thresholds": [ array 279 "Thresholds": [ array 295 "Thresholds": [ array 311 "Thresholds": [ array 327 "Thresholds": [ array 343 "Thresholds": [ array 359 "Thresholds": [ array [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | da9030_battery.c | 100 struct da9030_battery_thresholds thresholds; member 247 charger->thresholds.vbat_charge_start)) { in da9030_charger_check_state() 258 charger->thresholds.vbat_charge_stop) { in da9030_charger_check_state() 261 charger->thresholds.vbat_charge_restart); in da9030_charger_check_state() 263 charger->thresholds.vbat_low) { in da9030_charger_check_state() 268 charger->thresholds.vbat_low); in da9030_charger_check_state() 270 if (charger->adc.vchmax_res > charger->thresholds.vcharge_max || in da9030_charger_check_state() 271 charger->adc.vchmin_res < charger->thresholds.vcharge_min || in da9030_charger_check_state() 273 charger->adc.tbat_res < charger->thresholds.tbat_high || in da9030_charger_check_state() 274 charger->adc.tbat_res > charger->thresholds.tbat_low) { in da9030_charger_check_state() [all …]
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric.cpp | 111 std::map<Type, bound_map_t> thresholds; in initProperties() local 112 for (const auto& [key, value] : config.thresholds) in initProperties() 116 auto threshold = thresholds.find(type); in initProperties() 117 if (threshold == thresholds.end()) in initProperties() 121 thresholds.emplace(type, bounds); in initProperties() 128 ThresholdIntf::value(thresholds, true); in initProperties() 155 auto thresholds = ThresholdIntf::value(); in checkThreshold() local 157 if (thresholds.contains(type) && thresholds[type].contains(bound)) in checkThreshold() 159 auto tConfig = config.thresholds.at(threshold); in checkThreshold() 161 thresholds[type][bound] = thresholdValue; in checkThreshold() [all …]
|