/linux/include/linux/ |
A D | stddef.h | 17 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) argument 19 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) argument 28 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 36 #define offsetofend(TYPE, MEMBER) \ argument 37 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
|
A D | filter.h | 517 #define bpf_ctx_range(TYPE, MEMBER) \ argument 518 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1 522 # define bpf_ctx_range_ptr(TYPE, MEMBER) \ argument 523 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1 525 # define bpf_ctx_range_ptr(TYPE, MEMBER) \ argument 526 offsetof(TYPE, MEMBER) ... offsetof(TYPE, MEMBER) + 8 - 1 529 #define bpf_target_off(TYPE, MEMBER, SIZE, PTR_SIZE) \ argument 531 BUILD_BUG_ON(sizeof_field(TYPE, MEMBER) != (SIZE)); \ 533 offsetof(TYPE, MEMBER); \
|
/linux/tools/testing/selftests/bpf/ |
A D | bpf_util.h | 35 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 39 #define offsetofend(TYPE, MEMBER) \ argument 40 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_params.h | 87 #define MEMBER(T, member, ...) T member; macro 89 I915_PARAMS_FOR_EACH(MEMBER); 91 #undef MEMBER
|
A D | i915_params.c | 38 #define MEMBER(T, member, value, ...) .member = (value), macro 39 I915_PARAMS_FOR_EACH(MEMBER) 40 #undef MEMBER
|
/linux/arch/sparc/kernel/ |
A 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/tools/usb/usbip/libsrc/ |
A D | list.h | 124 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux/scripts/kconfig/ |
A D | list.h | 10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux/tools/include/linux/ |
A D | kernel.h | 22 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux/arch/x86/kernel/fpu/ |
A D | init.c | 145 #define CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) \ argument 146 BUILD_BUG_ON(sizeof(TYPE) != ALIGN(offsetofend(TYPE, MEMBER), \
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_select_reuseport_kern.c | 19 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
A D | test_tcp_hdr_options.c | 19 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
|
A D | test_cls_redirect.c | 31 #define offsetofend(TYPE, MEMBER) \ argument 32 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
|
/linux/tools/lib/bpf/ |
A D | bpf_helpers.h | 68 #define offsetof(TYPE, MEMBER) ((unsigned long)&((TYPE *)0)->MEMBER) argument
|
/linux/drivers/gpu/drm/radeon/ |
A D | mkregtable.c | 20 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/linux/samples/bpf/ |
A D | test_lru_dist.c | 26 # define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) argument
|
/linux/Documentation/RCU/ |
A D | rcu_dereference.rst | 367 WHICH MEMBER OF THE rcu_dereference() FAMILY SHOULD YOU USE?
|