Home
last modified time | relevance | path

Searched refs:DROP_FIRST_ARG (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/gpu/drm/xe/
H A Dxe_args.h51 #define DROP_FIRST_ARG(args...) __DROP_FIRST_ARG(args) macro
112 #define PICK_ARG2(args...) PICK_ARG1(DROP_FIRST_ARG(args))
113 #define PICK_ARG3(args...) PICK_ARG2(DROP_FIRST_ARG(args))
114 #define PICK_ARG4(args...) PICK_ARG3(DROP_FIRST_ARG(args))
115 #define PICK_ARG5(args...) PICK_ARG4(DROP_FIRST_ARG(args))
116 #define PICK_ARG6(args...) PICK_ARG5(DROP_FIRST_ARG(args))
117 #define PICK_ARG7(args...) PICK_ARG6(DROP_FIRST_ARG(args))
118 #define PICK_ARG8(args...) PICK_ARG7(DROP_FIRST_ARG(args))
119 #define PICK_ARG9(args...) PICK_ARG8(DROP_FIRST_ARG(args))
120 #define PICK_ARG10(args...) PICK_ARG9(DROP_FIRST_ARG(args))
[all …]
H A Dxe_rtp_helpers.h20 #define _XE_TUPLE_TAIL(...) (DROP_FIRST_ARG(__VA_ARGS__))
81 #define XE_RTP_DROP_CAST(...) _XE_ESC(DROP_FIRST_ARG _XE_ESC __VA_ARGS__)
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_args_test.c27 #define bar CALL_ARGS(COUNT_ARGS, DROP_FIRST_ARG(foo)) in drop_first_arg_example()
84 #define bar DROP_FIRST_ARG(foo(ARGS_SEP_COMMA __stringify)) in sep_comma_example()
85 #define buz CALL_ARGS(COUNT_ARGS, DROP_FIRST_ARG(foo(ARGS_SEP_COMMA))) in sep_comma_example()
147 int a[] = { DROP_FIRST_ARG(FOO_ARGS) }; in drop_first_arg_test()
149 KUNIT_EXPECT_EQ(test, DROP_FIRST_ARG(0, -1), -1); in drop_first_arg_test()
150 KUNIT_EXPECT_EQ(test, DROP_FIRST_ARG(DROP_FIRST_ARG(0, -1, -2)), -2); in drop_first_arg_test()
152 KUNIT_EXPECT_EQ(test, CALL_ARGS(COUNT_ARGS, DROP_FIRST_ARG(FOO_ARGS)), 3); in drop_first_arg_test()
153 KUNIT_EXPECT_EQ(test, DROP_FIRST_ARG(DROP_FIRST_ARG(DROP_FIRST_ARG(FOO_ARGS))), -4); in drop_first_arg_test()
158 #define foo DROP_FIRST_ARG(FOO_ARGS) in drop_first_arg_test()
159 #define bar DROP_FIRST_ARG(DROP_FIRST_ARG(FOO_ARGS)) in drop_first_arg_test()
[all …]