/linux-6.6.21/include/linux/ |
D | stddef.h | 16 #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))
|
D | filter.h | 527 #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/ |
D | bpf_util.h | 54 #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/ |
D | i915_params.h | 92 #define MEMBER(T, member, ...) T member; macro 94 I915_PARAMS_FOR_EACH(MEMBER); 96 #undef MEMBER
|
D | i915_params.c | 52 #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/ |
D | rseq.h | 24 #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/ |
D | sysfs.c | 172 #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/ |
D | list.h | 124 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux-6.6.21/scripts/kconfig/ |
D | list.h | 10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | verifier_sock.c | 8 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 9 #define offsetofend(TYPE, MEMBER) \ argument 10 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
|
D | test_select_reuseport_kern.c | 19 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
D | test_tcp_hdr_options.c | 19 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
|
D | test_cls_redirect_dynptr.c | 26 #define offsetofend(TYPE, MEMBER) \ argument 27 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
|
D | test_cls_redirect.c | 31 #define offsetofend(TYPE, MEMBER) \ argument 32 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
|
/linux-6.6.21/tools/testing/selftests/iommu/ |
D | iommufd_utils.h | 24 #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/ |
D | kernel.h | 24 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux-6.6.21/arch/x86/kernel/fpu/ |
D | init.c | 142 #define CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) \ argument 144 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
|
/linux-6.6.21/tools/lib/bpf/ |
D | skel_internal.h | 215 #define offsetofend(TYPE, MEMBER) \ argument 216 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
|
/linux-6.6.21/lib/ |
D | fault-inject.c | 338 #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/ |
D | mkregtable.c | 20 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux-6.6.21/samples/bpf/ |
D | test_lru_dist.c | 25 # define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) argument
|
/linux-6.6.21/Documentation/RCU/ |
D | rcu_dereference.rst | 384 WHICH MEMBER OF THE rcu_dereference() FAMILY SHOULD YOU USE?
|