Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 34) sorted by relevance

12

/include/linux/
Dmmdebug.h19 #define VM_BUG_ON(cond) BUG_ON(cond) argument
20 #define VM_BUG_ON_PAGE(cond, page) \ argument
22 if (unlikely(cond)) { \
23 dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\
27 #define VM_BUG_ON_FOLIO(cond, folio) \ argument
29 if (unlikely(cond)) { \
30 dump_page(&folio->page, "VM_BUG_ON_FOLIO(" __stringify(cond)")");\
34 #define VM_BUG_ON_VMA(cond, vma) \ argument
36 if (unlikely(cond)) { \
41 #define VM_BUG_ON_MM(cond, mm) \ argument
[all …]
Diopoll.h36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument
47 if (cond) \
58 (cond) ? 0 : -ETIMEDOUT; \
84 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument
98 if (cond) \
113 (cond) ? 0 : -ETIMEDOUT; \
134 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument
135 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr)
154 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument
155 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr)
[all …]
Dprocessor.h49 #define spin_until_cond(cond) \ argument
51 if (unlikely(!(cond))) { \
55 } while (!(cond)); \
Dbug.h18 #define MAYBE_BUILD_BUG_ON(cond) (0) argument
21 #define MAYBE_BUILD_BUG_ON(cond) \ argument
23 if (__builtin_constant_p((cond))) \
24 BUILD_BUG_ON(cond); \
26 BUG_ON(cond); \
Dcompiler.h55 #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) argument
57 #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) argument
59 #define __trace_if_value(cond) ({ \ argument
68 (cond) ? \
Dtracepoint.h214 #define __DO_TRACE(name, args, cond, rcuidle) \ argument
218 if (!(cond)) \
248 #define __DECLARE_TRACE_RCU(name, proto, args, cond) \ argument
254 TP_CONDITION(cond), 1); \
257 #define __DECLARE_TRACE_RCU(name, proto, args, cond) argument
283 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
292 TP_CONDITION(cond), 0); \
299 TP_CONDITION(cond), 0); \
300 if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) { \
306 PARAMS(cond)) \
[all …]
Drculist.h51 #define __list_check_rcu(dummy, cond, extra...) \ argument
54 RCU_LOCKDEP_WARN(!(cond) && !rcu_read_lock_any_held(), \
58 #define __list_check_srcu(cond) \ argument
60 RCU_LOCKDEP_WARN(!(cond), \
64 #define __list_check_rcu(dummy, cond, extra...) \ argument
67 #define __list_check_srcu(cond) ({ }) argument
392 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument
393 for (__list_check_rcu(dummy, ## cond, 0), \
411 #define list_for_each_entry_srcu(pos, head, member, cond) \ argument
412 for (__list_check_srcu(cond), \
[all …]
Dbuild_bug.h39 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) argument
Dcontext_tracking.h91 #define CT_WARN_ON(cond) WARN_ON(context_tracking_enabled() && (cond)) argument
104 #define CT_WARN_ON(cond) do { } while (0) argument
Dkernel.h48 #define PTR_IF(cond, ptr) ((cond) ? (ptr) : NULL) argument
156 #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) argument
Dhashtable.h176 #define hash_for_each_possible_rcu(name, obj, member, key, cond...) \ argument
178 member, ## cond)
Dkmsan.h280 #define KMSAN_WARN_ON(cond) \ argument
282 const bool __cond = WARN_ON(cond); \
Dlockdep.h278 #define lockdep_assert(cond) \ argument
279 do { WARN_ON(debug_locks && !(cond)); } while (0)
281 #define lockdep_assert_once(cond) \ argument
282 do { WARN_ON_ONCE(debug_locks && !(cond)); } while (0)
Dnetfilter.h300 bool cond) in NF_HOOK_COND() argument
304 if (!cond || in NF_HOOK_COND()
413 bool cond) in NF_HOOK_COND() argument
Dregmap.h122 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ argument
125 __tmp = read_poll_timeout(regmap_read, __ret, __ret || (cond), \
152 #define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \ argument
162 if (cond) \
172 __ret ?: ((cond) ? 0 : -ETIMEDOUT); \
193 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \ argument
196 __tmp = read_poll_timeout(regmap_field_read, __ret, __ret || (cond), \
/include/trace/hooks/
Dvendor_hooks.h55 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) \ argument
77 #define DO_RESTRICTED_HOOK(name, args, cond) \ argument
79 if (!(cond)) \
85 #define __DECLARE_RESTRICTED_HOOK(name, proto, args, cond, data_proto) \ argument
94 TP_CONDITION(cond)); \
110 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) \ argument
112 cond, \
120 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) \ argument
/include/media/
Dv4l2-device.h293 #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \ argument
296 if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \
318 #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \ argument
322 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \
350 #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \ argument
355 if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \
385 #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \ argument
388 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \
/include/net/
Dgre.h106 IP_TUNNEL_DECLARE_FLAGS(cond) = { }; in gre_build_header()
117 __set_bit(IP_TUNNEL_KEY_BIT, cond); in gre_build_header()
118 __set_bit(IP_TUNNEL_CSUM_BIT, cond); in gre_build_header()
119 __set_bit(IP_TUNNEL_SEQ_BIT, cond); in gre_build_header()
121 if (ip_tunnel_flags_intersect(flags, cond)) { in gre_build_header()
Dnet_debug.h131 #define netif_cond_dbg(priv, type, netdev, cond, level, fmt, args...) \ argument
133 if (cond) \
152 #define DEBUG_NET_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond) argument
154 #define DEBUG_NET_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) argument
/include/trace/
Ddefine_trace.h31 #define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \ argument
45 #define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \ argument
68 #define DEFINE_EVENT_CONDITION(template, name, proto, args, cond) \ argument
/include/rdma/
Duverbs_types.h157 #define UVERBS_BUILD_BUG_ON(cond) (sizeof(char[1 - 2 * !!(cond)]) - \ argument
/include/uapi/linux/
Dblkzoned.h111 __u8 cond; /* Zone condition */ member
/include/linux/power/
Dsmartreflex.h188 #define sr_test_cond_timeout(cond, timeout, index) \ argument
191 if (cond) \
/include/sound/
Dhdaudio.h626 #define snd_hdac_stream_readb_poll(dev, reg, val, cond, delay_us, timeout_us) \ argument
627 read_poll_timeout_atomic(snd_hdac_reg_readb, val, cond, delay_us, timeout_us, \
629 #define snd_hdac_stream_readw_poll(dev, reg, val, cond, delay_us, timeout_us) \ argument
630 read_poll_timeout_atomic(snd_hdac_reg_readw, val, cond, delay_us, timeout_us, \
632 #define snd_hdac_stream_readl_poll(dev, reg, val, cond, delay_us, timeout_us) \ argument
633 read_poll_timeout_atomic(snd_hdac_reg_readl, val, cond, delay_us, timeout_us, \
Dpcm.h251 unsigned int cond; member
1100 unsigned int cond,
1104 unsigned int cond,
1108 unsigned int cond,
1112 unsigned int cond,
1116 unsigned int cond,
1120 unsigned int cond,
1124 unsigned int cond,
1129 unsigned int cond,

12