Home
last modified time | relevance | path

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

12345678910>>...56

/linux/include/linux/
H A Dwait.h274 #define ___wait_cond_timeout(condition) \ argument
276 bool __cond = (condition); \
293 * to wrap the condition.
300 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument
310 if (condition) \
320 if (condition) \
327 #define __wait_event(wq_head, condition) \ argument
328 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
332 * wait_event - sleep until a condition gets true
334 * @condition: a C expression for the event to wait for
[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 Dratelimit.h74 #define WARN_ON_RATELIMIT(condition, state) ({ \ argument
75 bool __rtn_cond = !!(condition); \
80 #define WARN_RATELIMIT(condition, format, ...) \ argument
85 int rtn = !!(condition); \
95 #define WARN_ON_RATELIMIT(condition, state) \ argument
96 WARN_ON(condition)
98 #define WARN_RATELIMIT(condition, format, ...) \ argument
100 int rtn = WARN(condition, format, ##__VA_ARGS__); \
H A Donce_lite.h13 #define __ONCE_LITE_IF(condition) \ argument
16 bool __ret_cond = !!(condition); \
26 #define DO_ONCE_LITE_IF(condition, func, ...) \ argument
28 bool __ret_do_once = !!(condition); \
/linux/drivers/gpu/drm/xe/
H A Dxe_assert.h38 * warning is triggered when provided condition is false. Additionally all above
39 * assert macros cannot be used in expressions or as a condition, since
83 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \ argument
84 (void)drm_WARN(&(xe)->drm, !(condition), "Assertion `%s` failed!\n" msg, \
85 __stringify(condition), ## arg); \
88 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \ argument
90 BUILD_BUG_ON_INVALID(condition); \
95 * xe_assert - warn if condition is false when debugging.
96 * @xe: the &struct xe_device pointer to which &condition applies
97 * @condition: condition to check
[all …]
/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.h8 * 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.c158 iforce_dump_packet(iforce, "condition", FF_CMD_CONDITION, data); in make_condition_modifier()
174 * Analyse the changes in an effect, and tell if we need to send an condition
191 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation in need_condition_modifier()
192 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation in need_condition_modifier()
193 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff in need_condition_modifier()
194 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff in need_condition_modifier()
195 || old->u.condition[i].deadband != new->u.condition[i].deadband in need_condition_modifier()
196 || old->u.condition[i].center != new->u.condition[i].center; in need_condition_modifier()
459 * Upload an condition effect. Those are for example friction, inertia, springs...
480 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/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()
H A Dnr_out.c89 if (nr->condition & NR_COND_OWN_RX_BUSY) in nr_send_iframe()
111 if (nr->condition & NR_COND_OWN_RX_BUSY) in nr_send_nak_frame()
116 nr->condition &= ~NR_COND_ACK_PENDING; in nr_send_nak_frame()
131 if (nr->condition & NR_COND_PEER_RX_BUSY) in nr_kick()
179 nr->condition &= ~NR_COND_ACK_PENDING; in nr_kick()
224 nr->condition = 0x00; in nr_establish_data_link()
243 if (nr->condition & NR_COND_OWN_RX_BUSY) { in nr_enquiry_response()
253 nr->condition &= ~NR_COND_ACK_PENDING; in nr_enquiry_response()
/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/net/lapb/
H A Dlapb_in.c59 lapb->condition = 0x00; in lapb_state0_machine()
79 lapb->condition = 0x00; in lapb_state0_machine()
157 lapb->condition = 0x00; in lapb_state1_machine()
268 lapb->condition = 0x00; in lapb_state3_machine()
286 lapb->condition = 0x00; in lapb_state3_machine()
324 lapb->condition |= LAPB_PEER_RX_BUSY_CONDITION; in lapb_state3_machine()
343 lapb->condition &= ~LAPB_PEER_RX_BUSY_CONDITION; in lapb_state3_machine()
362 lapb->condition &= ~LAPB_PEER_RX_BUSY_CONDITION; in lapb_state3_machine()
395 if (lapb->condition & LAPB_PEER_RX_BUSY_CONDITION) in lapb_state3_machine()
416 lapb->condition &= ~LAPB_REJECT_CONDITION; in lapb_state3_machine()
[all …]
/linux/arch/mips/include/asm/
H A Dbug.h22 static inline void __BUG_ON(unsigned long condition) in __BUG_ON() argument
24 if (__builtin_constant_p(condition)) { in __BUG_ON()
25 if (condition) in __BUG_ON()
31 : : "r" (condition), "i" (BRK_BUG)); in __BUG_ON()
/linux/Documentation/i2c/
H A Di2c-protocol.rst12 S Start condition
13 P Stop condition
47 condition P a start condition S is sent and the transaction continues.
77 we do not generate Addr, but we do generate the start condition S.
94 Force a stop condition (P) after the message. Some I2C related protocols

12345678910>>...56