/openbmc/dbus-sensors/src/ |
H A D | sensor.hpp | 71 std::vector<thresholds::Threshold>&& thresholdData, in Sensor() 80 minValue(min), thresholds(std::move(thresholdData)), in Sensor() 103 std::vector<thresholds::Threshold> thresholds; member 126 using Level = thresholds::Level; 127 using Direction = thresholds::Direction; 130 thresholds::thresProp.size()> 284 for (auto& threshold : thresholds) in setInitialProperties() 310 label.empty() ? thresholds.size() : thresholdSize; in setInitialProperties() 316 thresholds::persistThreshold( in setInitialProperties() 397 for (const thresholds::ThresholdDefinition& prop : in propertyLevel() [all …]
|
H A D | Thresholds.hpp | 20 namespace thresholds namespace 60 thresholds::Level level, thresholds::Direction direction, 123 std::vector<thresholds::Threshold>& thresholdVector, 131 std::vector<thresholds::Threshold>& thresholdVector, 143 constexpr static std::array<thresholds::ThresholdDefinition, 5> thresProp = { 153 const thresholds::Threshold& threshold,
|
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() 430 if (change.threshold.direction == thresholds::Direction::LOW) in checkThresholdsPowerDelay() [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 …]
|
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/dbus-sensors/src/intel-cpu/ |
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()
|
/openbmc/dbus-sensors/src/nvme/ |
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 | NVMeSensor.hpp | 24 std::vector<thresholds::Threshold>&& thresholds,
|
/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/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() 80 thresholds, *id, triggerActions, reportIds, sensors, in __anon5e4599b80402() 99 thresholds, *id, triggerActions, reportIds, sensors, in __anon5e4599b80402() 128 thresholds, *id, triggerActions, reportIds, sensors, in __anon5e4599b80402() 153 for (const auto& threshold : thresholds) in __anon5e4599b80402() 215 for (const auto& threshold : thresholds) 276 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/dbus-sensors/src/psu/ |
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 | PSUSensor.hpp | 28 std::vector<thresholds::Threshold>&& thresholds, 58 thresholds::ThresholdTimer thresholdTimer;
|
/openbmc/dbus-sensors/src/adc/ |
H A D | ADCSensor.hpp | 79 std::vector<thresholds::Threshold>&& thresholds, 95 thresholds::ThresholdTimer thresholdTimer;
|
H A D | ADCSensor.cpp | 56 std::vector<thresholds::Threshold>&& thresholdsIn, const double scaleFactor, in ADCSensor() 80 for (const auto& threshold : thresholds) in ADCSensor() 82 std::string interface = thresholds::getInterface(threshold.level); in ADCSensor() 258 thresholds::checkThresholdsPowerDelay(weak_from_this(), thresholdTimer); in checkThresholds()
|
/openbmc/dbus-sensors/src/external/ |
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()
|
/openbmc/dbus-sensors/src/mcu/ |
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()
|
/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
|
/openbmc/dbus-sensors/src/hwmon-temp/ |
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() 210 thresholds::checkThresholds(this); in checkThresholds()
|
/openbmc/dbus-sensors/src/fan/ |
H A D | TachSensor.cpp | 53 std::vector<thresholds::Threshold>&& thresholdsIn, in TachSensor() 68 for (const auto& threshold : thresholds) in TachSensor() 70 std::string interface = thresholds::getInterface(threshold.level); in TachSensor() 200 bool status = thresholds::checkThresholds(this); in checkThresholds()
|
/openbmc/linux/Documentation/driver-api/thermal/ |
H A D | nouveau_thermal.rst | 29 temperature thresholds: 41 Some of these thresholds may not be used by Nouveau depending 44 The default value for these thresholds comes from the GPU's vbios. These 45 thresholds can be configured thanks to the following HWMON attributes:
|