Home
last modified time | relevance | path

Searched refs:MEMBER (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/include/linux/
Dstddef.h16 #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) argument
24 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
32 #define offsetofend(TYPE, MEMBER) \ argument
33 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
Dfilter.h527 #define bpf_ctx_range(TYPE, MEMBER) \ argument
528 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1
532 # define bpf_ctx_range_ptr(TYPE, MEMBER) \ argument
533 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1
535 # define bpf_ctx_range_ptr(TYPE, MEMBER) \ argument
536 offsetof(TYPE, MEMBER) ... offsetof(TYPE, MEMBER) + 8 - 1
539 #define bpf_target_off(TYPE, MEMBER, SIZE, PTR_SIZE) \ argument
541 BUILD_BUG_ON(sizeof_field(TYPE, MEMBER) != (SIZE)); \
543 offsetof(TYPE, MEMBER); \
/linux-6.6.21/tools/testing/selftests/bpf/
Dbpf_util.h54 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
58 #define offsetofend(TYPE, MEMBER) \ argument
59 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_params.h92 #define MEMBER(T, member, ...) T member; macro
94 I915_PARAMS_FOR_EACH(MEMBER);
96 #undef MEMBER
Di915_params.c52 #define MEMBER(T, member, value, ...) .member = (value), macro
53 I915_PARAMS_FOR_EACH(MEMBER)
54 #undef MEMBER
/linux-6.6.21/tools/testing/selftests/rseq/
Drseq.h24 #define rseq_sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
28 #define rseq_offsetofend(TYPE, MEMBER) \ argument
29 (offsetof(TYPE, MEMBER) + rseq_sizeof_field(TYPE, MEMBER))
/linux-6.6.21/arch/sparc/kernel/
Dsysfs.c172 #define SHOW_CPUDATA_ULONG_NAME(NAME, MEMBER) \ argument
177 return sprintf(buf, "%lu\n", c->MEMBER); \
180 #define SHOW_CPUDATA_UINT_NAME(NAME, MEMBER) \ argument
185 return sprintf(buf, "%u\n", c->MEMBER); \
/linux-6.6.21/tools/usb/usbip/libsrc/
Dlist.h124 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
/linux-6.6.21/scripts/kconfig/
Dlist.h10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dverifier_sock.c8 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
9 #define offsetofend(TYPE, MEMBER) \ argument
10 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
Dtest_select_reuseport_kern.c19 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
Dtest_tcp_hdr_options.c19 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
Dtest_cls_redirect_dynptr.c26 #define offsetofend(TYPE, MEMBER) \ argument
27 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
Dtest_cls_redirect.c31 #define offsetofend(TYPE, MEMBER) \ argument
32 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
/linux-6.6.21/tools/testing/selftests/iommu/
Diommufd_utils.h24 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
25 #define offsetofend(TYPE, MEMBER) \ argument
26 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
/linux-6.6.21/tools/include/linux/
Dkernel.h24 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
/linux-6.6.21/arch/x86/kernel/fpu/
Dinit.c142 #define CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) \ argument
144 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
/linux-6.6.21/tools/lib/bpf/
Dskel_internal.h215 #define offsetofend(TYPE, MEMBER) \ argument
216 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
/linux-6.6.21/lib/
Dfault-inject.c338 #define FAULT_CONFIGFS_ATTR_NAMED(NAME, ATTR_NAME, MEMBER, TYPE) \ argument
341 return fault_##TYPE##_attr_show(to_fault_config(item)->attr.MEMBER, page); \
346 return fault_##TYPE##_attr_store(&config->attr.MEMBER, page, count); \
/linux-6.6.21/drivers/gpu/drm/radeon/
Dmkregtable.c20 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
/linux-6.6.21/samples/bpf/
Dtest_lru_dist.c25 # define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) argument
/linux-6.6.21/Documentation/RCU/
Drcu_dereference.rst384 WHICH MEMBER OF THE rcu_dereference() FAMILY SHOULD YOU USE?