Home
last modified time | relevance | path

Searched full:condition (Results 1 – 25 of 926) sorted by relevance

12345678910>>...38

/openbmc/phosphor-fan-presence/monitor/
H A Dconditions.hpp17 * @brief Create a condition function object
19 * @param[in] condition - The condition being created
21 * @return - The created condition function object
24 auto make_condition(T&& condition) in make_condition() argument
26 return Condition(std::forward<T>(condition)); in make_condition()
29 namespace condition namespace
33 * @brief A condition that checks all properties match the given values
35 * property values must match their given value for the condition to pass
39 * @return Condition lambda function
40 * A Condition function that checks all properties match
[all …]
H A Dconditions.cpp17 namespace condition namespace
22 Condition propertiesMatch(std::vector<PropertyState>&& propStates) in propertiesMatch()
35 Condition getPropertiesMatch(const json& condParams) in getPropertiesMatch()
40 lg2::error("Missing fan monitor condition properties {NAME}", "NAME", in getPropertiesMatch()
42 throw std::runtime_error("Missing fan monitor condition properties"); in getPropertiesMatch()
52 "Missing properties. Match condition parameters 'object, interface, property'"); in getPropertiesMatch()
54 "Missing propertiesMatch condition parameters"); in getPropertiesMatch()
62 "Missing properties. Match condition property attributes 'name, value'"); in getPropertiesMatch()
64 "Missing propertiesMatch condition property attributes"); in getPropertiesMatch()
73 // Add property for propertiesMatch condition in getPropertiesMatch()
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/conditiongentest/
H A Dtest.yaml1 # Validate condition callback rendering.
37 - name: test count condition 1
38 class: condition
39 condition: count
48 - name: test count condition 2
49 class: condition
50 condition: count
67 - name: test count condition 3
68 class: condition
69 condition: count
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/witherspoon/
H A Dfan-errors.yaml240 class: condition
241 condition: count
253 class: condition
254 condition: count
266 class: condition
267 condition: count
279 class: condition
280 condition: count
292 class: condition
293 condition: count
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/swift/
H A Dfan-errors.yaml239 class: condition
240 condition: count
252 class: condition
253 condition: count
265 class: condition
266 condition: count
278 class: condition
279 condition: count
291 class: condition
292 condition: count
[all …]
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/
H A Dif.md5 Performs actions based on whether a condition is true.
7 The "condition" property specifies an action to execute. The condition is true
8 if the action returns true. Otherwise the condition is false.
10 If the condition is true, the actions within the "then" property are executed.
12 If the condition is false, the actions within the "else" property are executed
19 | condition | yes | [action](action.md) | Action that tests whether condition is tru…
20 … yes | array of [actions](action.md) | One or more actions to perform if condition is true. |
21 … no | array of [actions](action.md) | One or more actions to perform if condition is false. |
25 If the condition was true, returns the value of the last action in the "then"
28 If the condition was false, returns the value of the last action in the "else"
[all …]
/openbmc/openbmc/meta-fii/meta-mori/recipes-phosphor/dbus/led-policy-mori/
H A Dled-config.yaml49 - name: OS BootComplete condition
50 class: condition
51 condition: count
60 - name: OS Inactive condition
61 class: condition
62 condition: count
75 - OS BootComplete condition
76 - OS Inactive condition
79 - name: Chassis power on condition
80 class: condition
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/actions/
H A Dif_action.hpp32 * Performs actions based on whether a condition is true.
38 * - condition
42 * The condition is a single action. The action is executed to determine if the
43 * condition is true.
45 * If the condition is true, the actions in the "then" clause are executed.
47 * If the condition is false, the actions in the "else" clause are executed (if
64 * @param conditionAction action that tests whether condition is true
65 * @param thenActions actions to perform if condition is true
66 * @param elseActions actions to perform if condition is false (optional)
77 * Executes the condition action specified in the constructor.
[all …]
/openbmc/sdbusplus/include/sdbusplus/
H A Devent.hpp45 class condition class
50 condition() = delete;
51 explicit condition(event& e) : condition_source(e) {} in condition() function in sdbusplus::event::condition
52 condition(const condition&) = delete;
53 condition(condition&&);
55 condition& operator=(const condition&) = delete;
56 condition& operator=(condition&&);
58 ~condition() in ~condition()
72 condition(source&& s, int&& f) : in condition() function in sdbusplus::event::condition
111 /** Add a eventfd-based sdbusplus::event::condition to the run-loop. */
[all …]
/openbmc/qemu/io/
H A Dchannel-watch.c29 GIOCondition condition; member
41 GIOCondition condition; member
53 GIOCondition condition; member
72 return ssource->fd.revents & ssource->condition; in qio_channel_fd_source_check()
85 ssource->fd.revents & ssource->condition, in qio_channel_fd_source_dispatch()
121 if (!ssource->condition) { in qio_channel_socket_source_check()
128 if (ssource->condition & G_IO_IN) { in qio_channel_socket_source_check()
131 if (ssource->condition & G_IO_OUT) { in qio_channel_socket_source_check()
134 if (ssource->condition & G_IO_PRI) { in qio_channel_socket_source_check()
203 return poll_condition & ssource->condition; in qio_channel_fd_pair_source_check()
[all …]
/openbmc/u-boot/include/linux/
H A Dbug.h14 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) argument
16 #define WARN_ON(condition) ({ \ argument
17 int __ret_warn_on = !!(condition); \
23 #define WARN(condition, format...) ({ \ argument
24 int __ret_warn_on = !!(condition); \
30 #define WARN_ON_ONCE(condition) ({ \ argument
32 int __ret_warn_once = !!(condition); \
41 #define WARN_ONCE(condition, format...) ({ \ argument
43 int __ret_warn_once = !!(condition); \
H A Dbuild_bug.h13 #define BUILD_BUG_ON(condition) (0) argument
24 * Force a compilation error if condition is true, but also produce a
40 * BUILD_BUG_ON_MSG - break compile if a condition is true & emit supplied
42 * @condition: the condition which the compiler should know is false.
49 * BUILD_BUG_ON - break compile if a condition is true.
50 * @condition: the condition which the compiler should know is false.
53 * some other compile-time-evaluated condition, you should use BUILD_BUG_ON to
67 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) argument
69 #define BUILD_BUG_ON(condition) \ argument
70 BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
/openbmc/bmcweb/redfish-core/include/registries/
H A Dstorage_device_message_registry.hpp45 "A battery charging condition was detected.",
46 "A charging condition for the battery located in '%1' was detected.",
57 "A battery failure condition was detected.",
58 "A failure condition for the battery located in '%1' was detected.",
69 "A battery missing condition was detected.",
93 "A storage controller degraded condition was detected.",
94 …"A degraded condition for the storage controller located in '%1' was detected due to reason '%2'.",
107 "A failure condition for the storage controller located in '%1' was detected.",
154 "A controller port degraded condition was detected.",
155 … "A degraded condition for the controller port located in '%1' was detected due to reason '%2'.",
[all …]
H A Denvironmental_message_registry.hpp186 "Check the condition of the resource listed in OriginOfCondition.",
200 "Check the condition of the resource listed in OriginOfCondition.",
214 "Check the condition of the resource listed in OriginOfCondition.",
228 "Check the condition of the resource listed in OriginOfCondition.",
242 "Check the condition of the resource listed in OriginOfCondition.",
256 "Check the condition of the resource listed in OriginOfCondition.",
270 "Check the condition of the resource listed in OriginOfCondition.",
284 "Check the condition of the resource listed in OriginOfCondition.",
298 "Check the condition of the resource listed in OriginOfCondition.",
312 "Check the condition of the resource listed in OriginOfCondition.",
[all …]
H A Dpower_message_registry.hpp114 "Check the condition of the resource listed in OriginOfCondition.",
128 "Check the condition of the resource listed in OriginOfCondition.",
142 "Check the condition of the resource listed in OriginOfCondition.",
156 "Check the condition of the resource listed in OriginOfCondition.",
170 "Check the condition of the resource listed in OriginOfCondition.",
184 "Check the condition of the resource listed in OriginOfCondition.",
198 "Check the condition of the resource listed in OriginOfCondition.",
212 "Check the condition of the resource listed in OriginOfCondition.",
226 "Check the condition of the resource listed in OriginOfCondition.",
240 "Check the condition of the resource listed in OriginOfCondition.",
[all …]
/openbmc/qemu/include/io/
H A Dchannel-watch.h36 * @condition: the I/O condition
40 * I/O conditions in @condition. This is able
48 GIOCondition condition);
54 * @condition: the I/O condition
58 * I/O conditions in @condition. This is equivalent
66 GIOCondition condition);
73 * @condition: the I/O condition
77 * and @fdwrite for the I/O conditions in @condition.
88 GIOCondition condition);
/openbmc/phosphor-dbus-monitor/src/example/
H A Dtest.yaml327 class: condition
328 condition: count
339 class: condition
340 condition: count
352 class: condition
353 condition: count
364 class: condition
365 condition: count
376 class: condition
377 condition: count
[all …]
H A Dexample.yaml67 callback: example count condition
122 properties that passed its condition check in the metadata field (that
127 Note that as this callback depends on the condition that called it to fill
129 same properties and paths keywords as the condition that calls it.
204 - example deferred condition
207 - name: example count condition
213 condition evaluates.
215 The count condition applies the op comparison operator to the value of
221 in the group to be higher than 115 degrees might use a count condition
226 condition is repeatedly passing. The condition needs to fail at least
[all …]
/openbmc/phosphor-inventory-manager/
H A Dassociation_manager.cpp60 if (json.is_object() && json.contains("condition")) in loadConditions()
62 const auto& conditionJSON = json.at("condition"); in loadConditions()
69 "Invalid JSON in associations condition entry in {PATH}. Skipping file.", in loadConditions()
74 Condition c; in loadConditions()
119 "Invalid condition property value in {FILE}:", in loadConditions()
122 "Invalid condition property value"); in loadConditions()
138 for (const auto& condition : _conditions) in conditionMatch() local
140 if (condition.path != objectPath) in conditionMatch()
146 object.begin(), object.end(), [&condition](const auto& i) { in conditionMatch()
147 return i.first == condition.interface; in conditionMatch()
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/events-policy/
H A Dconfig.yaml57 class: condition
58 condition: count
69 class: condition
70 condition: count
81 class: condition
82 condition: count
98 eventMessage: "Processor throttled due to an over temperature condition."
114 eventMessage: "Memory throttled due to an over temperature condition."
/openbmc/phosphor-dbus-monitor/src/
H A Dcallback.hpp38 * Signal: Callback is called as part of watch condition has been met.
47 * Signal: Callback is called as part of watch condition has been met.
55 * @brief Condition interface.
69 /** @brief Test the condition. */
74 * @brief Condition with an index.
90 /** @brief Test the condition. */
161 * @brief Callback adaptor that associates a condition with a callback.
174 Conditional& cond) : graph(graphEntry), condition(cond) in ConditionalCallback()
177 /** @brief Run the callback if the condition is satisfied. */
180 if (condition()) in operator ()()
[all …]
H A Dmedian.hpp17 * @brief Determine a median from properties and apply a condition.
19 * When invoked, a median class instance performs its condition
25 * which determines if the condition passes or not.
28 * the condition defaults to `true` and passes.
30 * If the oneshot parameter is true, then this condition won't pass
53 // Default the condition result to true in operator ()()
94 // Now apply the condition to the median value. in operator ()()
98 // If this was a oneshot and the the condition has already in operator ()()
99 // passed, then don't let it pass again until the condition in operator ()()
113 /** @brief If the condition can be allowed to pass again
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DTrigger.interface.yaml42 long condition has to persist to trigger an action.
50 of threshold condition. Dwell time specifies for how long condition
60 Defines a action which is taken once threshold condition is met.
73 condition is met.
82 numeric threshold condition.
86 Crossing threshold value fulfill numeric threshold condition.
90 greater then threshold value then numeric threshold condition is
95 then threshold value then numeric threshold condition is met.
99 condition is met.
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/power-supply-policy/
H A Dpower-supply-policy.yaml82 class: condition
83 condition: count
103 'If this condition passes power supply0 has been unplugged for more than
111 class: condition
112 condition: count
124 'If this condition passes power supply1 has been unplugged for more than
126 class: condition
127 condition: count
162 class: condition
163 condition: count
[all …]
/openbmc/phosphor-fan-presence/monitor/example/
H A Dmonitor.yaml41 # condition: [optional condition function to create fan functional monitoring]
42 # name: [The name of an available condition function]
43 # properties: [The properties used in the condition function]
49 # value: [Property value to check condition against]
64 # num_sensors_nonfunc_for_fan_nonfunc sensors meet this condition,
68 # sensors in a group cannot be trusted based on some condition, where
69 # the condition is based on the class used to implement the group. All
84 # condition:
111 # condition:

12345678910>>...38