Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/openbmc/linux/include/linux/
H A Dwait.h278 #define ___wait_cond_timeout(condition) \ argument
280 bool __cond = (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, \
344 #define wait_event(wq_head, condition) \ argument
347 if (condition) \
349 __wait_event(wq_head, condition); \
352 #define __io_wait_event(wq_head, condition) \ argument
[all …]
H A Dswait.h158 #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 Dwait_bit.h242 #define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \ argument
255 if (condition) \
269 #define __wait_var_event(var, condition) \ argument
270 ___wait_var_event(var, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
273 #define wait_var_event(var, condition) \ argument
276 if (condition) \
278 __wait_var_event(var, condition); \
281 #define __wait_var_event_killable(var, condition) \ argument
282 ___wait_var_event(var, condition, TASK_KILLABLE, 0, 0, \
285 #define wait_var_event_killable(var, condition) \ argument
[all …]
H A Drcuwait.h52 #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)) \
88 __ret = __rcuwait_wait_event_timeout(w, condition, \
H A Dratelimit.h47 #define WARN_ON_RATELIMIT(condition, state) ({ \ argument
48 bool __rtn_cond = !!(condition); \
53 #define WARN_RATELIMIT(condition, format, ...) \ argument
58 int rtn = !!(condition); \
68 #define WARN_ON_RATELIMIT(condition, state) \ argument
69 WARN_ON(condition)
71 #define WARN_RATELIMIT(condition, format, ...) \ argument
73 int rtn = WARN(condition, format, ##__VA_ARGS__); \
/openbmc/linux/include/asm-generic/
H A Dbug.h71 #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/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
112 condition add_condition(sd_event_io_handler_t handler, void* data);
[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 …]
H A Dchannel.c383 GIOCondition condition) in qio_channel_create_watch() argument
386 GSource *ret = klass->io_create_watch(ioc, condition); in qio_channel_create_watch()
410 GIOCondition condition, in qio_channel_add_watch_full() argument
419 source = qio_channel_create_watch(ioc, condition); in qio_channel_add_watch_full()
430 GIOCondition condition, in qio_channel_add_watch() argument
435 return qio_channel_add_watch_full(ioc, condition, func, in qio_channel_add_watch()
440 GIOCondition condition, in qio_channel_add_watch_source() argument
449 id = qio_channel_add_watch_full(ioc, condition, func, in qio_channel_add_watch_source()
625 qio_channel_set_fd_handlers(QIOChannel *ioc, GIOCondition condition) in qio_channel_set_fd_handlers() argument
635 if (condition == G_IO_IN) { in qio_channel_set_fd_handlers()
[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
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/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/linux/net/ax25/
H A Dax25_std_in.c160 ax25->condition = 0x00; in ax25_std_state3_machine()
179 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; in ax25_std_state3_machine()
181 ax25->condition |= AX25_COND_PEER_RX_BUSY; in ax25_std_state3_machine()
193 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; in ax25_std_state3_machine()
214 if (ax25->condition & AX25_COND_PEER_RX_BUSY) { in ax25_std_state3_machine()
219 if (ax25->condition & AX25_COND_OWN_RX_BUSY) { in ax25_std_state3_machine()
226 if (ax25->condition & AX25_COND_OWN_RX_BUSY) in ax25_std_state3_machine()
228 ax25->condition &= ~AX25_COND_REJECT; in ax25_std_state3_machine()
232 if (!(ax25->condition & AX25_COND_ACK_PENDING)) { in ax25_std_state3_machine()
233 ax25->condition |= AX25_COND_ACK_PENDING; in ax25_std_state3_machine()
[all …]
H A Dax25_std_subr.c37 ax25->condition = 0x00; in ax25_std_establish_data_link()
54 if (ax25->condition & AX25_COND_OWN_RX_BUSY) in ax25_std_transmit_enquiry()
59 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_transmit_enquiry()
67 if (ax25->condition & AX25_COND_OWN_RX_BUSY) in ax25_std_enquiry_response()
72 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_enquiry_response()
77 if (ax25->condition & AX25_COND_OWN_RX_BUSY) in ax25_std_timeout_response()
82 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_timeout_response()
H A Dax25_ds_in.c163 ax25->condition = 0x00; in ax25_ds_state3_machine()
185 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; in ax25_ds_state3_machine()
187 ax25->condition |= AX25_COND_PEER_RX_BUSY; in ax25_ds_state3_machine()
201 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; in ax25_ds_state3_machine()
227 if (ax25->condition & AX25_COND_PEER_RX_BUSY) { in ax25_ds_state3_machine()
234 if (ax25->condition & AX25_COND_OWN_RX_BUSY) { in ax25_ds_state3_machine()
241 if (ax25->condition & AX25_COND_OWN_RX_BUSY) in ax25_ds_state3_machine()
243 ax25->condition &= ~AX25_COND_REJECT; in ax25_ds_state3_machine()
247 if (!(ax25->condition & AX25_COND_ACK_PENDING)) { in ax25_ds_state3_machine()
248 ax25->condition |= AX25_COND_ACK_PENDING; in ax25_ds_state3_machine()
[all …]
/openbmc/linux/tools/include/asm/
H A Dbug.h10 #define WARN(condition, format...) ({ \ argument
11 int __ret_warn_on = !!(condition); \
17 #define WARN_ON(condition) ({ \ argument
18 int __ret_warn_on = !!(condition); \
25 #define WARN_ON_ONCE(condition) ({ \ argument
27 int __ret_warn_once = !!(condition); \
36 #define WARN_ONCE(condition, format...) ({ \ argument
38 int __ret_warn_once = !!(condition); \
/openbmc/phosphor-inventory-manager/
H A Dassociation_manager.cpp138 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()
156 [&condition](const auto& p) { in conditionMatch()
157 return condition.property == p.first; in conditionMatch()
164 auto match = std::find(condition.values.begin(), condition.values.end(), in conditionMatch()
166 if (match != condition.values.end()) in conditionMatch()
168 foundPath = condition.file; in conditionMatch()
189 for (const auto& condition : _conditions) in conditionMatch() local
[all …]
H A Dfunctor.hpp60 auto make_path_condition(T&& condition) in make_path_condition() argument
62 return PathCondition(std::forward<T>(condition)); in make_path_condition()
201 U&& condition) : in PropertyChangedCondition()
203 _condition(std::forward<U>(condition)) in PropertyChangedCondition()
338 U&& condition, const char* service, in PropertyCondition()
341 _condition(std::forward<decltype(condition)>(condition)), in PropertyCondition()
382 auto condition = [val = std::forward<T>(val)](T&& arg) { in propertyChangedTo() local
385 using U = decltype(condition); in propertyChangedTo()
387 std::move(condition)); in propertyChangedTo()
396 auto condition = [val = std::forward<T>(val)](T&& arg) { in propertyIs() local
[all …]
/openbmc/linux/net/rose/
H A Drose_in.c45 rose->condition = 0x00; in rose_state1_machine()
112 rose->condition = 0x00; in rose_state3_machine()
130 rose->condition = 0x00; in rose_state3_machine()
141 rose->condition |= ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
143 rose->condition &= ~ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
149 rose->condition &= ~ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
152 rose->condition = 0x00; in rose_state3_machine()
172 rose->condition = 0x00; in rose_state3_machine()
184 rose->condition |= ROSE_COND_OWN_RX_BUSY; in rose_state3_machine()
191 rose->condition &= ~ROSE_COND_ACK_PENDING; in rose_state3_machine()
[all …]
/openbmc/linux/drivers/input/joystick/iforce/
H A Diforce-ff.c195 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation in need_condition_modifier()
196 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation in need_condition_modifier()
197 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff in need_condition_modifier()
198 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff in need_condition_modifier()
199 || old->u.condition[i].deadband != new->u.condition[i].deadband in need_condition_modifier()
200 || old->u.condition[i].center != new->u.condition[i].center; in need_condition_modifier()
484 effect->u.condition[0].right_saturation, in iforce_upload_condition()
485 effect->u.condition[0].left_saturation, in iforce_upload_condition()
486 effect->u.condition[0].right_coeff, in iforce_upload_condition()
487 effect->u.condition[0].left_coeff, in iforce_upload_condition()
[all …]
/openbmc/sdbusplus/src/
H A Devent.cpp42 condition::condition(condition&& c) in condition() function in sdbusplus::event::condition
53 condition& condition::operator=(condition&& c) in operator =()
65 void condition::signal() in signal()
75 void condition::ack() in ack()
126 condition event::add_condition(sd_event_io_handler_t handler, void* data) in add_condition()
/openbmc/linux/arch/powerpc/include/asm/
H A Ddelay.h53 #define spin_event_timeout(condition, timeout, delay) \ argument
55 typeof(condition) __ret; \
60 while (!(__ret = (condition)) && \
65 while (!(__ret = (condition)) && \
71 __ret = (condition); \
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dtimed_ctrl.c27 hrt_data condition, in timed_ctrl_snd_commnd() argument
36 timed_ctrl_reg_store(ID, _HRT_TIMED_CONTROLLER_CMD_REG_IDX, condition); in timed_ctrl_snd_commnd()
48 hrt_data condition, in timed_ctrl_snd_sp_commnd() argument
57 timed_ctrl_snd_commnd(ID, mask, condition, counter, in timed_ctrl_snd_sp_commnd()
64 hrt_data condition, in timed_ctrl_snd_gpio_commnd() argument
73 timed_ctrl_snd_commnd(ID, mask, condition, counter, in timed_ctrl_snd_gpio_commnd()
/openbmc/linux/net/netrom/
H A Dnr_in.c177 nrom->condition |= NR_COND_PEER_RX_BUSY; in nr_state3_machine()
180 nrom->condition &= ~NR_COND_PEER_RX_BUSY; in nr_state3_machine()
190 if (nrom->condition & NR_COND_PEER_RX_BUSY) { in nr_state3_machine()
207 nrom->condition |= NR_COND_PEER_RX_BUSY; in nr_state3_machine()
210 nrom->condition &= ~NR_COND_PEER_RX_BUSY; in nr_state3_machine()
218 if (nrom->condition & NR_COND_PEER_RX_BUSY) { in nr_state3_machine()
227 if (nrom->condition & NR_COND_OWN_RX_BUSY) in nr_state3_machine()
238 nrom->condition |= NR_COND_OWN_RX_BUSY; in nr_state3_machine()
257 if (!(nrom->condition & NR_COND_ACK_PENDING)) { in nr_state3_machine()
258 nrom->condition |= NR_COND_ACK_PENDING; in nr_state3_machine()
/openbmc/u-boot/drivers/i2c/
H A Dmv_i2c.c27 u8 condition; member
142 if (msg->condition == I2C_COND_START) in i2c_transfer()
144 if (msg->condition == I2C_COND_STOP) in i2c_transfer()
175 if (msg->condition == I2C_COND_START) in i2c_transfer()
177 if (msg->condition == I2C_COND_STOP) in i2c_transfer()
254 msg.condition = I2C_COND_START; in __i2c_read()
269 msg.condition = I2C_COND_NORMAL; in __i2c_read()
279 msg.condition = I2C_COND_START; in __i2c_read()
290 msg.condition = I2C_COND_STOP; in __i2c_read()
293 msg.condition = I2C_COND_NORMAL; in __i2c_read()
[all …]

12345678910>>...28