/openbmc/dbus-sensors/src/ |
H A D | sensor.hpp | 94 std::vector<thresholds::Threshold> thresholds; member 117 using Level = thresholds::Level; 118 using Direction = thresholds::Direction; 121 thresholds::thresProp.size()> 275 for (auto& threshold : thresholds) in setInitialProperties() 389 thresholds::thresProp) in propertyLevel() 409 thresholds::thresProp) in propertyAlarm() 493 for (auto& threshold : thresholds) in updateValue() 555 const thresholds::Threshold& thisThreshold = thresholds[index]; in fillMissingThresholds() 557 thresholds::Direction opposite = thresholds::Direction::HIGH; in fillMissingThresholds() [all …]
|
H A D | Thresholds.hpp | 16 namespace thresholds namespace 56 thresholds::Level level, thresholds::Direction direction, 119 std::vector<thresholds::Threshold>& thresholdVector, 127 std::vector<thresholds::Threshold>& thresholdVector, 139 constexpr static std::array<thresholds::ThresholdDefinition, 5> thresProp = { 149 const thresholds::Threshold& threshold,
|
H A D | IntelCPUSensor.cpp | 54 std::vector<thresholds::Threshold>&& thresholdsIn, in IntelCPUSensor() 90 for (const auto& threshold : thresholds) in IntelCPUSensor() 93 thresholds::getInterface(threshold.level); in IntelCPUSensor() 299 if (!thresholds.empty()) in handleResponse() 301 std::vector<thresholds::Threshold> newThresholds; in handleResponse() 306 if (!std::equal(thresholds.begin(), thresholds.end(), in handleResponse() 310 thresholds = newThresholds; in handleResponse() 313 thresholds::updateThresholds(this); in handleResponse() 342 thresholds::checkThresholds(this); in checkThresholds()
|
H A D | Thresholds.cpp | 30 namespace thresholds namespace 59 std::vector<thresholds::Threshold>& thresholdVector, in parseThresholdsFromConfig() 139 const thresholds::Threshold& threshold, in persistThreshold() 211 for (const auto& threshold : sensor->thresholds) in updateThresholds() 255 if (sensor->thresholds.empty()) in checkThresholds() 260 for (auto& threshold : sensor->thresholds) in checkThresholds() 267 if (threshold.direction == thresholds::Direction::HIGH) in checkThresholds() 289 else if (threshold.direction == thresholds::Direction::LOW) in checkThresholds() 396 if (change.threshold.level == thresholds::Level::CRITICAL && in checkThresholds() 446 thresholds::Level level, thresholds::Direction direction, in assertThresholds() [all …]
|
H A D | NVMeSensor.cpp | 43 std::vector<thresholds::Threshold>&& thresholdsIn, in NVMeSensor() 60 for (const auto& threshold : thresholds) in NVMeSensor() 62 std::string interface = thresholds::getInterface(threshold.level); in NVMeSensor() 105 thresholds::checkThresholds(this); in checkThresholds()
|
H A D | ADCSensor.hpp | 73 std::vector<thresholds::Threshold>&& thresholds, 89 thresholds::ThresholdTimer thresholdTimer;
|
H A D | PSUSensor.cpp | 52 std::vector<thresholds::Threshold>&& thresholdsIn, in PSUSensor() 84 for (const auto& threshold : thresholds) in PSUSensor() 86 std::string interface = thresholds::getInterface(threshold.level); in PSUSensor() 94 if (label.empty() || tSize == thresholds.size()) in PSUSensor() 254 thresholds::checkThresholdsPowerDelay(weak_from_this(), thresholdTimer); in checkThresholds()
|
H A D | ExternalSensor.cpp | 28 std::vector<thresholds::Threshold>&& thresholdsIn, in ExternalSensor() 55 for (const auto& threshold : thresholds) in ExternalSensor() 57 std::string interface = thresholds::getInterface(threshold.level); in ExternalSensor() 123 thresholds::checkThresholds(this); in checkThresholds()
|
H A D | PSUSensor.hpp | 23 std::vector<thresholds::Threshold>&& thresholds, 53 thresholds::ThresholdTimer thresholdTimer;
|
H A D | HwmonTempSensor.cpp | 57 std::vector<thresholds::Threshold>&& thresholdsIn, in HwmonTempSensor() 76 for (const auto& threshold : thresholds) in HwmonTempSensor() 78 std::string interface = thresholds::getInterface(threshold.level); in HwmonTempSensor() 205 thresholds::checkThresholds(this); in checkThresholds()
|
H A D | MCUTempSensor.cpp | 69 std::vector<thresholds::Threshold>&& thresholdData, uint8_t busId, in MCUTempSensor() 81 for (const auto& threshold : thresholds) in MCUTempSensor() 83 std::string interface = thresholds::getInterface(threshold.level); in MCUTempSensor() 112 thresholds::checkThresholds(this); in checkThresholds() 232 std::vector<thresholds::Threshold> sensorThresholds; in createSensors()
|
H A D | NVMeSensor.hpp | 15 std::vector<thresholds::Threshold>&& thresholds,
|
H A D | ADCSensor.cpp | 55 std::vector<thresholds::Threshold>&& thresholdsIn, const double scaleFactor, in ADCSensor() 79 for (const auto& threshold : thresholds) in ADCSensor() 81 std::string interface = thresholds::getInterface(threshold.level); in ADCSensor() 243 thresholds::checkThresholdsPowerDelay(weak_from_this(), thresholdTimer); in checkThresholds()
|
H A D | HwmonTempSensor.hpp | 32 std::vector<thresholds::Threshold>&& thresholds,
|
/openbmc/linux/drivers/power/supply/ |
H A D | da9030_battery.c | 263 charger->thresholds.vbat_low) { in da9030_charger_check_state() 268 charger->thresholds.vbat_low); in da9030_charger_check_state() 377 charger->thresholds.vbat_crit); in da9030_battery_vbat_event() 381 charger->thresholds.vbat_crit) { in da9030_battery_vbat_event() 418 charger->thresholds.vbat_low = in da9030_battery_convert_thresholds() 420 charger->thresholds.vbat_crit = in da9030_battery_convert_thresholds() 424 charger->thresholds.vbat_charge_stop = in da9030_battery_convert_thresholds() 429 charger->thresholds.vcharge_min = in da9030_battery_convert_thresholds() 431 charger->thresholds.vcharge_max = in da9030_battery_convert_thresholds() 455 v[2] = charger->thresholds.tbat_high; in da9030_battery_charger_init() [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 …]
|
H A D | health_metric_config.cpp | 82 auto thresholds = j.find("Threshold"); in from_json() local 83 if (thresholds == j.end()) in from_json() 88 for (auto& [key, value] : thresholds->items()) in from_json() 107 self.thresholds.emplace( in from_json() 148 for (auto& [key, threshold] : config.thresholds) in printConfig()
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-detect.rst | 38 detection threshold. These thresholds are set through the 42 value that specifies which per-region motion detection thresholds 43 should be used. Each region has its own thresholds. How these 44 per-region thresholds are set up is driver-specific. The region 55 Sets the motion detection thresholds for each cell in the grid. To
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | trigger.hpp | 216 TriggerThresholdParams thresholds; member 370 ctx.thresholds = std::move(parsedParams); in parseNumericThresholds() 382 ctx.thresholds = std::move(parsedParams); in parseDiscreteTriggers() 421 ctx.thresholds = std::move(parsedParams); in parseDiscreteTriggers() 597 NumericThresholds thresholds; in parsePostTriggerParams() local 771 nlohmann::json::object_t thresholds; in getNumericThresholds() local 795 return thresholds; in getNumericThresholds() 853 triggerActions, "Thresholds", thresholds); in fillTrigger() 890 getDiscreteTriggers(*thresholds); in fillTrigger() 908 getNumericThresholds(*thresholds); in fillTrigger() [all …]
|
/openbmc/telemetry/src/ |
H A D | trigger_factory.cpp | 153 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, in makeDiscreteThreshold() argument 171 thresholds.emplace_back(std::make_shared<DiscreteThreshold>( in makeDiscreteThreshold() 178 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, in makeNumericThreshold() argument 195 thresholds.emplace_back(std::make_shared<NumericThreshold>( in makeNumericThreshold() 201 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, in makeOnChangeThreshold() argument 212 thresholds.emplace_back(std::make_shared<OnChangeThreshold>( in makeOnChangeThreshold() 230 std::vector<std::shared_ptr<interfaces::Threshold>> thresholds; in make() local 235 updateThresholds(thresholds, *id, triggerActions, reportIds, sensors, in make() 240 reportIds, std::move(thresholds), triggerManager, triggerStorage, *this, in make()
|
H A D | trigger.cpp | 28 reportIds(std::move(reportIdsIn)), thresholds(std::move(thresholdsIn)), in Trigger() 78 triggerFactory.updateThresholds(thresholds, *id, triggerActions, in __anon5e4599b80402() 94 for (const auto& threshold : thresholds) in __anon5e4599b80402() 148 for (const auto& threshold : thresholds) 208 return utils::transform(thresholds, [](const auto& threshold) { in getLabeledThresholds()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-light-lm3533-als | 6 Event generated when channel passes one of the four thresholds 16 Get the hysteresis for thresholds Y, that is, 32 These thresholds correspond to the eight zone-boundary 42 in_illuminance0_threshY_{falling,rising} thresholds.
|
/openbmc/linux/drivers/hwmon/peci/ |
H A D | dimmtemp.c | 81 struct peci_dimm_thresholds thresholds; member 126 if (!peci_sensor_need_update(&priv->dimm[dimm_no].thresholds.state)) in update_thresholds() 135 priv->dimm[dimm_no].thresholds.temp_max = GET_TEMP_MAX(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds() 136 priv->dimm[dimm_no].thresholds.temp_crit = GET_TEMP_CRIT(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds() 138 peci_sensor_mark_updated(&priv->dimm[dimm_no].thresholds.state); in update_thresholds() 148 mutex_lock(&priv->dimm[dimm_no].thresholds.state.lock); in get_dimm_thresholds() 155 *val = priv->dimm[dimm_no].thresholds.temp_max; in get_dimm_thresholds() 158 *val = priv->dimm[dimm_no].thresholds.temp_crit; in get_dimm_thresholds() 165 mutex_unlock(&priv->dimm[dimm_no].thresholds.state.lock); in get_dimm_thresholds() 352 mutex_init(&priv->dimm[i].thresholds.state.lock); in create_dimm_temp_info()
|
/openbmc/linux/Documentation/hwmon/ |
H A D | xdpe152c4.rst | 37 The driver provides for current: input, maximum and critical thresholds 38 and maximum and critical alarms. Low Critical thresholds and Low critical alarm are 61 The driver provides for voltage: input, critical and low critical thresholds 106 The driver provides for temperature: input, maximum and critical thresholds
|
H A D | xdpe12284.rst | 48 The driver provides for current: input, maximum and critical thresholds 49 and maximum and critical alarms. Critical thresholds and critical alarm are 66 The driver provides for voltage: input, critical and low critical thresholds 94 The driver provides for temperature: input, maximum and critical thresholds
|