Home
last modified time | relevance | path

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

12345678910>>...66

/linux/include/linux/
H A Dwait.h273 #define ___wait_cond_timeout(condition) \ argument
275 bool __cond = (condition); \
292 * to wrap the condition.
299 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument
309 if (condition) \
323 #define __wait_event(wq_head, condition) \ argument
324 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
328 * wait_event - sleep until a condition gets true
330 * @condition: a C expression for the event to wait for
333 * @condition evaluates to true. The @condition is checked each time
[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 Drcuwait.h13 * 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 …]
H A Dbuild_bug.h11 * 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
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 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__); \
/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a510/
H A Dbranch.json24 …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…
36condition. This event still counts when branch prediction is disabled due to the MMU being off. Co…
39condition. 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 …]
/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a55/
H A Dbranch.json24 …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…
36condition. This event still counts when branch prediction is disabled due to the MMU being off. Co…
39condition. 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 …]
/linux/tools/include/linux/
H A Dbuild_bug.h11 * 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
H A Dcompiler.h14 # define __compiletime_assert(condition, msg, prefix, suffix) \ argument
17 if (!(condition)) \
21 # define __compiletime_assert(condition, msg, prefix, suffix) do { } while (0) argument
24 #define _compiletime_assert(condition, msg, prefix, suffix) \ argument
25 __compiletime_assert(condition, msg, prefix, suffix)
28 * compiletime_assert - break build and emit msg if condition is false
29 * @condition: a compile-time constant condition to check
30 * @msg: a message to emit if condition is false
33 * supplied condition is *false*, emitting the supplied error message if the
36 #define compiletime_assert(condition, msg) \ argument
[all …]
/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_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 …]
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()
/linux/arch/powerpc/include/asm/
H A Ddelay.h34 * spin_event_timeout - spin until a condition gets true or a timeout elapses
35 * @condition: a C expression to evalate
38 * @condition
40 * The process spins until the condition evaluates to true (non-zero) or the
42 * @condition when the loop terminates. This allows you to determine the cause
53 #define spin_event_timeout(condition, timeout, delay) \ argument
55 typeof(condition) __ret; \
60 while (!(__ret = (condition)) && \
65 while (!(__ret = (condition)) && \
71 __ret = (condition); \
H A Ddbdma.h20 unsigned int intr_sel; /* select interrupt condition bit */
21 unsigned int br_sel; /* select branch condition bit */
22 unsigned int wait_sel; /* select wait condition bit */
75 #define INTR_IFSET 0x10 /* intr if condition bit is 1 */
76 #define INTR_IFCLR 0x20 /* intr if condition bit is 0 */
81 #define BR_IFSET 0x4 /* branch if condition bit is 1 */
82 #define BR_IFCLR 0x8 /* branch if condition bit is 0 */
87 #define WAIT_IFSET 1 /* wait if condition bit is 1 */
88 #define WAIT_IFCLR 2 /* wait if condition bit is 0 */
/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); \
/linux/drivers/input/joystick/iforce/
H A Diforce-ff.c162 iforce_dump_packet(iforce, "condition", FF_CMD_CONDITION, data); in make_condition_modifier()
178 * Analyse the changes in an effect, and tell if we need to send an condition
195 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()
463 * Upload an condition effect. Those are for example friction, inertia, springs...
484 effect->u.condition[0].right_saturation, in iforce_upload_condition()
[all …]
/linux/arch/arm/nwfpe/
H A Dfpa11_cprt.c153 /* Check for unordered condition and convert all operands to 80-bit in PerformComparison()
221 /* test for less than condition */ in PerformComparison()
225 /* test for equal condition */ in PerformComparison()
229 /* test for greater than or equal condition */ in PerformComparison()
247 /* test for less than condition */ in PerformComparison()
251 /* test for equal condition */ in PerformComparison()
255 /* test for greater than or equal condition */ in PerformComparison()
268 /* test for less than condition */ in PerformComparison()
272 /* test for equal condition */ in PerformComparison()
276 /* test for greater than or equal condition */ in PerformComparison()
[all …]
/linux/arch/arm/kernel/
H A Dopcodes.c5 * A32 condition code lookup feature moved from nwfpe/fpopcode.c
14 * condition code lookup table
17 * bit position in short is condition code: NZCV
40 * ARM_OPCODE_CONDTEST_FAIL - if condition fails
41 * ARM_OPCODE_CONDTEST_PASS - if condition passes (including AL)
42 * ARM_OPCODE_CONDTEST_UNCOND - if NV condition, or separate unconditional
45 * Code that tests whether a conditional instruction would pass its condition
48 * Code that tests if a condition means that the instruction would be executed
/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()
/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 …]
/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()
/linux/rust/kernel/
H A Dkunit.rs52 ($name:literal, $file:literal, $diff:expr, $condition:expr $(,)?) => {
54 // Do nothing if the condition is `true`.
55 if $condition {
61 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition)); constant
78 " Expected {CONDITION} to be true, but is false\n"
106 condition: CONDITION.as_char_ptr(),
115 // - The string pointers (`file` and `condition` above) point to null-terminated
/linux/net/x25/
H A Dx25_in.c97 x25->condition = 0x00; in x25_state1_machine()
221 x25->condition = 0x00; in x25_state3_machine()
243 x25->condition = 0x00; in x25_state3_machine()
252 x25->condition |= X25_COND_PEER_RX_BUSY; in x25_state3_machine()
254 x25->condition &= ~X25_COND_PEER_RX_BUSY; in x25_state3_machine()
260 x25->condition &= ~X25_COND_PEER_RX_BUSY; in x25_state3_machine()
265 x25->condition = 0x00; in x25_state3_machine()
283 x25->condition = 0x00; in x25_state3_machine()
293 x25->condition |= X25_COND_OWN_RX_BUSY; in x25_state3_machine()
300 x25->condition &= ~X25_COND_ACK_PENDING; in x25_state3_machine()
[all …]
/linux/tools/testing/selftests/
H A Dkselftest.h23 * ksft_test_result(condition, fmt, ...);
35 * ksft_exit(condition);
205 * ksft_test_result() - Report test success based on truth of condition
207 * @condition: if true, report test success, otherwise failure. argument
209 #define ksft_test_result(condition, fmt, ...) do { \
210 if (!!(condition)) \
306 * ksft_test_result() - Report test success based on truth of condition
308 * @condition: if true, report test success, otherwise failure.
339 * ksft_exit() - Exit selftest based on truth of condition
341 * @condition argument
[all...]

12345678910>>...66