/openbmc/linux/include/linux/ |
H A D | wait.h | 278 #define ___wait_cond_timeout(condition) \ argument 280 bool __cond = (condition); \ 297 * to wrap the condition. 304 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument 314 if (condition) \ 328 #define __wait_event(wq_head, condition) \ argument 329 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \ 333 * wait_event - sleep until a condition gets true 335 * @condition: a C expression for the event to wait for 338 * @condition evaluates to true. The @condition is checked each time [all …]
|
H A D | swait.h | 158 #define ___swait_event(wq, condition, state, ret, cmd) \ argument 168 if (condition) \ 182 #define __swait_event(wq, condition) \ argument 183 (void)___swait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, \ 186 #define swait_event_exclusive(wq, condition) \ argument 188 if (condition) \ 190 __swait_event(wq, condition); \ 193 #define __swait_event_timeout(wq, condition, timeout) \ argument 194 ___swait_event(wq, ___wait_cond_timeout(condition), \ 198 #define swait_event_timeout_exclusive(wq, condition, timeout) \ argument [all …]
|
H A D | rcuwait.h | 13 * checking if it needs to) on a condition, and reset as soon as we 14 * know that the condition has succeeded and are awoken. 52 #define ___rcuwait_wait_event(w, condition, state, ret, cmd) \ argument 62 if (condition) \ 76 #define rcuwait_wait_event(w, condition, state) \ argument 77 ___rcuwait_wait_event(w, condition, state, 0, schedule()) 79 #define __rcuwait_wait_event_timeout(w, condition, state, timeout) \ argument 80 ___rcuwait_wait_event(w, ___wait_cond_timeout(condition), \ 84 #define rcuwait_wait_event_timeout(w, condition, state, timeout) \ argument 87 if (!___wait_cond_timeout(condition)) \ [all …]
|
/openbmc/phosphor-fan-presence/monitor/ |
H A D | conditions.hpp | 17 * @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 D | conditions.cpp | 17 namespace condition namespace 23 Condition propertiesMatch(std::vector<PropertyState>&& propStates) in propertiesMatch() 36 Condition getPropertiesMatch(const json& condParams) in getPropertiesMatch() 42 "Missing fan monitor condition properties", in getPropertiesMatch() 44 throw std::runtime_error("Missing fan monitor condition properties"); in getPropertiesMatch() 53 log<level::ERR>("Missing propertiesMatch condition parameters", in getPropertiesMatch() 57 "Missing propertiesMatch condition parameters"); in getPropertiesMatch() 65 "Missing propertiesMatch condition property attributes", in getPropertiesMatch() 68 "Missing propertiesMatch condition property attributes"); in getPropertiesMatch() 77 // Add property for propertiesMatch condition in getPropertiesMatch() [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/witherspoon/ |
H A D | fan-errors.yaml | 240 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 D | fan-errors.yaml | 239 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-dbus-monitor/src/test/yaml/conditiongentest/ |
H A D | test.yaml | 1 # 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/linux/include/asm-generic/ |
H A D | bug.h | 71 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) argument 110 #define WARN_ON_ONCE(condition) ({ \ argument 111 int __ret_warn_on = !!(condition); \ 122 #define WARN_ON(condition) ({ \ argument 123 int __ret_warn_on = !!(condition); \ 131 #define WARN(condition, format...) ({ \ argument 132 int __ret_warn_on = !!(condition); \ 139 #define WARN_TAINT(condition, taint, format...) ({ \ argument 140 int __ret_warn_on = !!(condition); \ 147 #define WARN_ON_ONCE(condition) \ argument [all …]
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-phosphor/dbus/led-policy-mori/ |
H A D | led-config.yaml | 49 - 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/qemu/io/ |
H A D | channel-watch.c | 29 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/phosphor-power/phosphor-regulators/src/actions/ |
H A D | if_action.hpp | 32 * 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/phosphor-power/phosphor-regulators/docs/config_file/ |
H A D | if.md | 5 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/bmcweb/redfish-core/include/registries/ |
H A D | storage_device_message_registry.hpp | 42 "A battery charging condition was detected.", 43 "A charging condition for the battery located in '%1' was detected.", 54 "A battery failure condition was detected.", 55 "A failure condition for the battery located in '%1' was detected.", 66 "A battery missing condition was detected.", 90 "A storage controller degraded condition was detected.", 91 …"A degraded condition for the storage controller located in '%1' was detected due to reason '%2'.", 104 "A failure condition for the storage controller located in '%1' was detected.", 151 "A controller port degraded condition was detected.", 152 … "A degraded condition for the controller port located in '%1' was detected due to reason '%2'.", [all …]
|
H A D | environmental_message_registry.hpp | 183 "Check the condition of the resource listed in OriginOfCondition.", 197 "Check the condition of the resource listed in OriginOfCondition.", 211 "Check the condition of the resource listed in OriginOfCondition.", 225 "Check the condition of the resource listed in OriginOfCondition.", 239 "Check the condition of the resource listed in OriginOfCondition.", 253 "Check the condition of the resource listed in OriginOfCondition.", 267 "Check the condition of the resource listed in OriginOfCondition.", 281 "Check the condition of the resource listed in OriginOfCondition.", 295 "Check the condition of the resource listed in OriginOfCondition.", 309 "Check the condition of the resource listed in OriginOfCondition.", [all …]
|
H A D | power_message_registry.hpp | 111 "Check the condition of the resource listed in OriginOfCondition.", 125 "Check the condition of the resource listed in OriginOfCondition.", 139 "Check the condition of the resource listed in OriginOfCondition.", 153 "Check the condition of the resource listed in OriginOfCondition.", 167 "Check the condition of the resource listed in OriginOfCondition.", 181 "Check the condition of the resource listed in OriginOfCondition.", 195 "Check the condition of the resource listed in OriginOfCondition.", 209 "Check the condition of the resource listed in OriginOfCondition.", 223 "Check the condition of the resource listed in OriginOfCondition.", 237 "Check the condition of the resource listed in OriginOfCondition.", [all …]
|
/openbmc/sdbusplus/include/sdbusplus/ |
H A D | event.hpp | 45 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/phosphor-dbus-monitor/src/example/ |
H A D | test.yaml | 327 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 …]
|
/openbmc/u-boot/include/linux/ |
H A D | build_bug.h | 13 #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)
|
H A D | bug.h | 14 #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); \
|
/openbmc/phosphor-inventory-manager/ |
H A D | association_manager.cpp | 60 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/qemu/include/io/ |
H A D | channel-watch.h | 36 * @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/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a510/ |
H A D | branch.json | 24 …ess Cache (BTAC) can predict is retired and has mispredicted either the condition or the address. … 27 …ess Cache (BTAC) can predict is retired and has mispredicted either the condition or the address. … 30 …hat the BTAC can predict is retired, was taken, correctly predicted the condition, and has mispred… 33 …hat the BTAC can predict is retired, was taken, correctly predicted the condition, and has mispred… 36 …condition. This event still counts when branch prediction is disabled due to the MMU being off. Co… 39 …condition. This event still counts when branch prediction is disabled due to the MMU being off. Co… 42 …the BTAC can predict is retired, was taken, and correctly predicted the condition. This event stil… 45 …the BTAC can predict is retired, was taken, and correctly predicted the condition. This event stil… 48 …rn stack can predict is retired, was taken, and correctly predicted the condition. This event stil… 51 …rn stack can predict is retired, was taken, and correctly predicted the condition. This event stil… [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a55/ |
H A D | branch.json | 24 …e predicted by the BTAC is retired, and has mispredicted for either the condition or the address. … 27 …e predicted by the BTAC is retired, and has mispredicted for either the condition or the address. … 30 …predicted by the BTAC is retired, was taken and correctly predicted the condition, and has mispred… 33 …predicted by the BTAC is retired, was taken and correctly predicted the condition, and has mispred… 36 …condition. This event still counts when branch prediction is disabled due to the MMU being off. Co… 39 …condition. This event still counts when branch prediction is disabled due to the MMU being off. Co… 42 …predicted by the BTAC is retired, was taken and correctly predicted the condition. This event stil… 45 …predicted by the BTAC is retired, was taken and correctly predicted the condition. This event stil… 48 … predicted by the CRS is retired, was taken and correctly predicted the condition. This event stil… 51 … predicted by the CRS is retired, was taken and correctly predicted the condition. This event stil… [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | build_bug.h | 11 * Force a compilation error if condition is true, but also produce a 33 * BUILD_BUG_ON_MSG - break compile if a condition is true & emit supplied 35 * @condition: the condition which the compiler should know is false. 42 * BUILD_BUG_ON - break compile if a condition is true. 43 * @condition: the condition which the compiler should know is false. 46 * some other compile-time-evaluated condition, you should use BUILD_BUG_ON to 49 #define BUILD_BUG_ON(condition) \ argument 50 BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) 73 * Also note that BUILD_BUG_ON() fails the build if the condition is
|