/linux-master/include/linux/ |
H A D | wait.h | 273 #define ___wait_cond_timeout(condition) \ 275 bool __cond = (condition); \ 292 * to wrap the condition. 299 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ 309 if (condition) \ 323 #define __wait_event(wq_head, condition) \ 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 evaluate [all...] |
H A D | swait.h | 158 #define ___swait_event(wq, condition, state, ret, cmd) \ 168 if (condition) \ 182 #define __swait_event(wq, condition) \ 183 (void)___swait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, \ 186 #define swait_event_exclusive(wq, condition) \ 188 if (condition) \ 190 __swait_event(wq, condition); \ 193 #define __swait_event_timeout(wq, condition, timeout) \ 194 ___swait_event(wq, ___wait_cond_timeout(condition), \ 198 #define swait_event_timeout_exclusive(wq, condition, timeou [all...] |
H A D | once_lite.h | 13 #define __ONCE_LITE_IF(condition) \ 16 bool __ret_cond = !!(condition); \ 26 #define DO_ONCE_LITE_IF(condition, func, ...) \ 28 bool __ret_do_once = !!(condition); \
|
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) \ 62 if (condition) \ 76 #define rcuwait_wait_event(w, condition, state) \ 77 ___rcuwait_wait_event(w, condition, state, 0, schedule()) 79 #define __rcuwait_wait_event_timeout(w, condition, state, timeout) \ 80 ___rcuwait_wait_event(w, ___wait_cond_timeout(condition), \ 84 #define rcuwait_wait_event_timeout(w, condition, state, timeout) \ 87 if (!___wait_cond_timeout(condition)) \ [all...] |
H A D | ratelimit.h | 47 #define WARN_ON_RATELIMIT(condition, state) ({ \ 48 bool __rtn_cond = !!(condition); \ 53 #define WARN_RATELIMIT(condition, format, ...) \ 58 int rtn = !!(condition); \ 68 #define WARN_ON_RATELIMIT(condition, state) \ 69 WARN_ON(condition) 71 #define WARN_RATELIMIT(condition, format, ...) \ 73 int rtn = WARN(condition, format, ##__VA_ARGS__); \
|
H A D | wait_bit.h | 242 #define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \ 255 if (condition) \ 269 #define __wait_var_event(var, condition) \ 270 ___wait_var_event(var, condition, TASK_UNINTERRUPTIBLE, 0, 0, \ 273 #define wait_var_event(var, condition) \ 276 if (condition) \ 278 __wait_var_event(var, condition); \ 281 #define __wait_var_event_killable(var, condition) \ 282 ___wait_var_event(var, condition, TASK_KILLABLE, 0, 0, \ 285 #define wait_var_event_killable(var, condition) \ [all...] |
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) \ 50 BUILD_BUG_ON_MSG(condition, "BUILD_BUG_O [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_assert.h | 38 * 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...) ({ \ 84 (void)drm_WARN(&(xe)->drm, !(condition), "[" DRM_NAME "] Assertion `%s` failed!\n" msg, \ 85 __stringify(condition), ## arg); \ 88 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \ 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 [all...] |
/linux-master/tools/include/asm/ |
H A D | bug.h | 10 #define WARN(condition, format...) ({ \ 11 int __ret_warn_on = !!(condition); \ 17 #define WARN_ON(condition) ({ \ 18 int __ret_warn_on = !!(condition); \ 25 #define WARN_ON_ONCE(condition) ({ \ 27 int __ret_warn_once = !!(condition); \ 36 #define WARN_ONCE(condition, format...) ({ \ 38 int __ret_warn_once = !!(condition); \
|
/linux-master/arch/mips/include/asm/ |
H A D | bug.h | 22 static inline void __BUG_ON(unsigned long condition) argument 24 if (__builtin_constant_p(condition)) { 25 if (condition) 31 : : "r" (condition), "i" (BRK_BUG));
|
/linux-master/include/asm-generic/ |
H A D | bug.h | 71 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) 110 #define WARN_ON_ONCE(condition) ({ \ 111 int __ret_warn_on = !!(condition); \ 122 #define WARN_ON(condition) ({ \ 123 int __ret_warn_on = !!(condition); \ 131 #define WARN(condition, format...) ({ \ 132 int __ret_warn_on = !!(condition); \ 139 #define WARN_TAINT(condition, taint, format...) ({ \ 140 int __ret_warn_on = !!(condition); \ [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | delay.h | 34 * 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) \ 55 typeof(condition) __ret; \ 60 while (!(__ret = (condition)) && \ 65 while (!(__ret = (condition)) && \ 71 __ret = (condition); \ [all...] |
/linux-master/include/drm/ |
H A D | drm_util.h | 52 * @condition: The condition to check 63 #define for_each_if(condition) if (!(condition)) {} else
|
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_include/ |
H A D | assert_support.h | 24 * Depending on the value of 'condition', the following macro is expanded to: 25 * - condition==true: 28 * - condition==false: 40 #define COMPILATION_ERROR_IF(condition) ((void)sizeof(char[1 - 2 * !!(condition)]))
|
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
H A D | timed_ctrl_public.h | 37 hrt_data condition, 45 hrt_data condition, 54 hrt_data condition,
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_maps.h | 9 #define CHECK(condition, tag, format...) ({ \ 10 int __ret = !!(condition); \
|
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | timed_ctrl.c | 27 hrt_data condition, 36 timed_ctrl_reg_store(ID, _HRT_TIMED_CONTROLLER_CMD_REG_IDX, condition); 48 hrt_data condition, 57 timed_ctrl_snd_commnd(ID, mask, condition, counter, 64 hrt_data condition, 73 timed_ctrl_snd_commnd(ID, mask, condition, counter, 24 timed_ctrl_snd_commnd( const timed_ctrl_ID_t ID, hrt_data mask, hrt_data condition, hrt_data counter, hrt_address addr, hrt_data value) argument 45 timed_ctrl_snd_sp_commnd( const timed_ctrl_ID_t ID, hrt_data mask, hrt_data condition, hrt_data counter, const sp_ID_t SP_ID, hrt_address offset, hrt_data value) argument 61 timed_ctrl_snd_gpio_commnd( const timed_ctrl_ID_t ID, hrt_data mask, hrt_data condition, hrt_data counter, const gpio_ID_t GPIO_ID, hrt_address offset, hrt_data value) argument
|
/linux-master/net/ax25/ |
H A D | ax25_std_subr.c | 37 ax25->condition = 0x00; 54 if (ax25->condition & AX25_COND_OWN_RX_BUSY) 59 ax25->condition &= ~AX25_COND_ACK_PENDING; 67 if (ax25->condition & AX25_COND_OWN_RX_BUSY) 72 ax25->condition &= ~AX25_COND_ACK_PENDING; 77 if (ax25->condition & AX25_COND_OWN_RX_BUSY) 82 ax25->condition &= ~AX25_COND_ACK_PENDING;
|
H A D | ax25_std_in.c | 160 ax25->condition = 0x00; 179 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; 181 ax25->condition |= AX25_COND_PEER_RX_BUSY; 193 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; 214 if (ax25->condition & AX25_COND_PEER_RX_BUSY) { 219 if (ax25->condition & AX25_COND_OWN_RX_BUSY) { 226 if (ax25->condition & AX25_COND_OWN_RX_BUSY) 228 ax25->condition &= ~AX25_COND_REJECT; 232 if (!(ax25->condition & AX25_COND_ACK_PENDING)) { 233 ax25->condition | [all...] |
H A D | ax25_ds_in.c | 163 ax25->condition = 0x00; 185 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; 187 ax25->condition |= AX25_COND_PEER_RX_BUSY; 201 ax25->condition &= ~AX25_COND_PEER_RX_BUSY; 227 if (ax25->condition & AX25_COND_PEER_RX_BUSY) { 234 if (ax25->condition & AX25_COND_OWN_RX_BUSY) { 241 if (ax25->condition & AX25_COND_OWN_RX_BUSY) 243 ax25->condition &= ~AX25_COND_REJECT; 247 if (!(ax25->condition & AX25_COND_ACK_PENDING)) { 248 ax25->condition | [all...] |
/linux-master/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) \ 50 BUILD_BUG_ON_MSG(condition, "BUILD_BUG_O [all...] |
/linux-master/fs/bcachefs/ |
H A D | clock.h | 24 #define bch2_kthread_wait_event_ioclock_timeout(condition, clock, timeout)\ 28 if (!___wait_cond_timeout(condition)) \ 29 __ret = __wait_event_timeout(wq, condition, timeout); \
|
/linux-master/arch/arm64/kvm/hyp/nvhe/ |
H A D | list_debug.c | 15 #define NVHE_CHECK_DATA_CORRUPTION(condition) \ 17 bool corruption = unlikely(condition); \
|
/linux-master/tools/testing/selftests/devices/ |
H A D | ksft.py | 65 def test_result(condition, description=""): 66 if condition:
|
/linux-master/lib/zstd/common/ |
H A D | debug.h | 71 # define assert(condition) ((void)0) /* disable assert (default) */
|