Home
last modified time | relevance | path

Searched refs:thresholds (Results 1 – 25 of 162) sorted by relevance

1234567

/openbmc/dbus-sensors/src/
H A Dsensor.hpp94 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 DThresholds.hpp16 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 DIntelCPUSensor.cpp54 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 DThresholds.cpp30 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 DNVMeSensor.cpp43 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 DADCSensor.hpp73 std::vector<thresholds::Threshold>&& thresholds,
89 thresholds::ThresholdTimer thresholdTimer;
H A DPSUSensor.cpp52 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 DExternalSensor.cpp28 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 DPSUSensor.hpp23 std::vector<thresholds::Threshold>&& thresholds,
53 thresholds::ThresholdTimer thresholdTimer;
H A DHwmonTempSensor.cpp57 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 DMCUTempSensor.cpp69 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 DNVMeSensor.hpp15 std::vector<thresholds::Threshold>&& thresholds,
H A DADCSensor.cpp55 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 DHwmonTempSensor.hpp32 std::vector<thresholds::Threshold>&& thresholds,
/openbmc/linux/drivers/power/supply/
H A Dda9030_battery.c263 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 Dhealth_metric.cpp111 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 Dhealth_metric_config.cpp82 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 Dext-ctrls-detect.rst38 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 Dtrigger.hpp216 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 Dtrigger_factory.cpp153 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 Dtrigger.cpp28 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 Dsysfs-bus-iio-light-lm3533-als6 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 Ddimmtemp.c81 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 Dxdpe152c4.rst37 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 Dxdpe12284.rst48 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

1234567