/linux/include/linux/ |
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 | 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)) \ 88 __ret = __rcuwait_wait_event_timeout(w, condition, \
|
H A D | ratelimit.h | 47 #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__); \
|
H A D | once_lite.h | 13 #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); \
|
H A D | build_bug.h | 49 #define BUILD_BUG_ON(condition) \ argument 50 BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_assert.h | 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); \ 108 #define xe_assert(xe, condition) xe_assert_msg((xe), condition, "") argument 109 #define xe_assert_msg(xe, condition, msg, arg...) ({ \ argument 111 __xe_assert_msg(__xe, condition, \ 143 #define xe_tile_assert(tile, condition) xe_tile_assert_msg((tile), condition, "") argument 144 #define xe_tile_assert_msg(tile, condition, msg, arg...) ({ \ argument [all …]
|
/linux/net/ax25/ |
H A D | ax25_std_in.c | 160 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 D | ax25_std_subr.c | 37 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 D | ax25_ds_in.c | 163 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 D | ax25_ds_subr.c | 65 if (!(ax25->condition & AX25_COND_PEER_RX_BUSY)) { in ax25_ds_enquiry_response() 91 if (!(ax25o->condition & AX25_COND_PEER_RX_BUSY) && ax25o->state == AX25_STATE_3) { in ax25_ds_enquiry_response() 109 ax25->condition &= AX25_COND_DAMA_MODE; in ax25_ds_establish_data_link() 161 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave() 197 ax25->condition |= AX25_COND_DAMA_MODE; in ax25_dama_on() 202 ax25->condition &= ~AX25_COND_DAMA_MODE; in ax25_dama_off()
|
H A D | ax25_std_timer.c | 64 (ax25->condition & AX25_COND_OWN_RX_BUSY)) { in ax25_std_heartbeat_expiry() 65 ax25->condition &= ~AX25_COND_OWN_RX_BUSY; in ax25_std_heartbeat_expiry() 66 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_heartbeat_expiry() 81 if (ax25->condition & AX25_COND_ACK_PENDING) { in ax25_std_t2timer_expiry() 82 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_t2timer_expiry()
|
/linux/tools/include/asm/ |
H A D | bug.h | 10 #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/net/rose/ |
H A D | rose_in.c | 45 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 …]
|
H A D | rose_out.c | 54 if (rose->condition & ROSE_COND_PEER_RX_BUSY) in rose_kick() 99 rose->condition &= ~ROSE_COND_ACK_PENDING; in rose_kick() 113 if (rose->condition & ROSE_COND_OWN_RX_BUSY) in rose_enquiry_response() 119 rose->condition &= ~ROSE_COND_ACK_PENDING; in rose_enquiry_response()
|
/linux/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 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() 480 effect->u.condition[0].right_saturation, in iforce_upload_condition() 481 effect->u.condition[0].left_saturation, in iforce_upload_condition() 482 effect->u.condition[0].right_coeff, in iforce_upload_condition() 483 effect->u.condition[0].left_coeff, in iforce_upload_condition() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | delay.h | 53 #define spin_event_timeout(condition, timeout, delay) \ argument 55 typeof(condition) __ret; \ 60 while (!(__ret = (condition)) && \ 65 while (!(__ret = (condition)) && \ 71 __ret = (condition); \
|
/linux/net/netrom/ |
H A D | nr_in.c | 177 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 D | nr_out.c | 89 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/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/inc/ |
H A D | dml2_debug.h | 9 #define DML2_ASSERT(condition) dml2_assert(condition) argument 11 #define DML2_ASSERT(condition) argument 15 void dml2_assert(int condition);
|
/linux/tools/include/linux/ |
H A D | compiler.h | 14 # 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) 36 #define compiletime_assert(condition, msg) \ argument 37 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
|
/linux/net/x25/ |
H A D | x25_in.c | 97 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/arch/mips/include/asm/ |
H A D | bug.h | 22 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/net/lapb/ |
H A D | lapb_in.c | 59 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/include/kunit/ |
H A D | test.h | 727 KUNIT_INIT_ASSERT(.condition = #condition_, \ 733 #define KUNIT_TRUE_MSG_ASSERTION(test, assert_type, condition, fmt, ...) \ argument 736 condition, \ 741 #define KUNIT_FALSE_MSG_ASSERTION(test, assert_type, condition, fmt, ...) \ argument 744 condition, \ 925 #define KUNIT_EXPECT_TRUE(test, condition) \ argument 926 KUNIT_EXPECT_TRUE_MSG(test, condition, NULL) 928 #define KUNIT_EXPECT_TRUE_MSG(test, condition, fmt, ...) \ argument 931 condition, \ 944 #define KUNIT_EXPECT_FALSE(test, condition) \ argument [all …]
|
/linux/rust/kernel/ |
H A D | kunit.rs | 52 ($name:literal, $file:literal, $diff:expr, $condition:expr $(,)?) => { 55 if $condition { 61 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition)); 106 condition: CONDITION.as_char_ptr(),
|