Lines Matching refs:LHS

251 #define __bpf_assert_check(LHS, op, RHS)								 \  argument
252 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \
253 _Static_assert(sizeof(LHS) == 8, "Only 8-byte integers are supported\n"); \
254 _Static_assert(__builtin_constant_p(__bpf_assert_signed(LHS)), "internal static assert"); \
257 #define __bpf_assert(LHS, op, cons, RHS, VAL) \ argument
261 : : [lhs] "r"(LHS), [rhs] cons(RHS), [value] "ri"(VAL) : ); \
264 #define __bpf_assert_op_sign(LHS, op, cons, RHS, VAL, supp_sign) \ argument
266 __bpf_assert_check(LHS, op, RHS); \
267 if (__bpf_assert_signed(LHS) && !(supp_sign)) \
268 __bpf_assert(LHS, "s" #op, cons, RHS, VAL); \
270 __bpf_assert(LHS, #op, cons, RHS, VAL); \
273 #define __bpf_assert_op(LHS, op, RHS, VAL, supp_sign) \ argument
277 __bpf_assert_op_sign(LHS, op, "r", rhs_var, VAL, supp_sign); \
279 __bpf_assert_op_sign(LHS, op, "i", RHS, VAL, supp_sign); \
289 #define __bpf_cmp(LHS, OP, PRED, RHS, DEFAULT) \ argument
294 :: [lhs] "r"((short)LHS), [rhs] PRED (RHS) :: l_true); \
305 #define _bpf_cmp(LHS, OP, RHS, UNLIKELY) \ argument
307 typeof(LHS) __lhs = (LHS); \
310 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \
330 #define bpf_cmp_unlikely(LHS, OP, RHS) _bpf_cmp(LHS, OP, RHS, true) argument
334 #define bpf_cmp_likely(LHS, OP, RHS) \ argument
338 ret = _bpf_cmp(LHS, !=, RHS, false); \
340 ret = _bpf_cmp(LHS, ==, RHS, false); \
342 ret = _bpf_cmp(LHS, >, RHS, false); \
344 ret = _bpf_cmp(LHS, >=, RHS, false); \
346 ret = _bpf_cmp(LHS, <=, RHS, false); \
348 ret = _bpf_cmp(LHS, <, RHS, false); \
533 #define bpf_assert_range(LHS, BEG, END) \ argument
536 barrier_var(LHS); \
537 __bpf_assert_op(LHS, >=, BEG, 0, false); \
538 __bpf_assert_op(LHS, <=, END, 0, false); \
551 #define bpf_assert_range_with(LHS, BEG, END, value) \ argument
554 barrier_var(LHS); \
555 __bpf_assert_op(LHS, >=, BEG, value, false); \
556 __bpf_assert_op(LHS, <=, END, value, false); \