/kernel/linux/linux-5.10/tools/include/linux/ |
D | overflow.h | 50 typeof(a) __a = (a); \ 51 typeof(b) __b = (b); \ 52 typeof(d) __d = (d); \ 59 typeof(a) __a = (a); \ 60 typeof(b) __b = (b); \ 61 typeof(d) __d = (d); \ 68 typeof(a) __a = (a); \ 69 typeof(b) __b = (b); \ 70 typeof(d) __d = (d); \ 81 typeof(a) __a = (a); \ [all …]
|
D | kernel.h | 19 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) 35 const typeof(((type *)0)->member) * __mptr = (ptr); \ 41 typeof(x) _max1 = (x); \ 42 typeof(y) _max2 = (y); \ 49 typeof(x) _min1 = (x); \ 50 typeof(y) _min2 = (y); \ 58 const typeof(y) __y = y; \
|
D | list.h | 393 list_entry((pos)->member.next, typeof(*(pos)), member) 401 list_entry((pos)->member.prev, typeof(*(pos)), member) 447 for (pos = list_first_entry(head, typeof(*pos), member); \ 458 for (pos = list_last_entry(head, typeof(*pos), member); \ 471 ((pos) ? : list_entry(head, typeof(*pos), member)) 521 for (pos = list_first_entry(head, typeof(*pos), member), \ 568 for (pos = list_last_entry(head, typeof(*pos), member), \ 704 ({ typeof(ptr) ____ptr = (ptr); \ 715 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\ 717 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | overflow.h | 67 typeof(a) __a = (a); \ 68 typeof(b) __b = (b); \ 69 typeof(d) __d = (d); \ 76 typeof(a) __a = (a); \ 77 typeof(b) __b = (b); \ 78 typeof(d) __d = (d); \ 85 typeof(a) __a = (a); \ 86 typeof(b) __b = (b); \ 87 typeof(d) __d = (d); \ 98 typeof(a) __a = (a); \ [all …]
|
D | arm-smccc.h | 252 typeof(a1) __a1 = a1; \ 255 register typeof(a1) arg1 asm("r1") = __a1 258 typeof(a1) __a1 = a1; \ 259 typeof(a2) __a2 = a2; \ 262 register typeof(a1) arg1 asm("r1") = __a1; \ 263 register typeof(a2) arg2 asm("r2") = __a2 266 typeof(a1) __a1 = a1; \ 267 typeof(a2) __a2 = a2; \ 268 typeof(a3) __a3 = a3; \ 271 register typeof(a1) arg1 asm("r1") = __a1; \ [all …]
|
D | kfifo.h | 103 (sizeof(*fifo) == sizeof(STRUCT_KFIFO_PTR(typeof(*(fifo)->type)))) 126 typeof(&(fifo)) __tmp = &(fifo); \ 145 (typeof(fifo)) { \ 211 typeof((fifo) + 1) __tmp = (fifo); \ 225 typeof((fifo) + 1) __tmp = (fifo); \ 235 typeof((fifo) + 1) __tmpl = (fifo); \ 245 typeof((fifo) + 1) __tmpq = (fifo); \ 286 typeof((fifo) + 1) __tmpq = (fifo); \ 297 typeof((fifo) + 1) __tmpq = (fifo); \ 312 typeof((fifo) + 1) __tmp = (fifo); \ [all …]
|
D | minmax.h | 20 (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) 31 typeof(x) unique_x = (x); \ 32 typeof(y) unique_y = (y); \ 60 #define min3(x, y, z) min((typeof(x))min(x, y), z) 68 #define max3(x, y, z) max((typeof(x))max(x, y), z) 76 typeof(x) __x = (x); \ 77 typeof(y) __y = (y); \ 89 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) 137 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi) 145 do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0)
|
D | rculist.h | 392 pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 394 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) 411 pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 413 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) 429 container_of((typeof(ptr))READ_ONCE(ptr), type, member) 445 for (pos = list_entry_lockless((head)->next, typeof(*pos), member); \ 447 pos = list_entry_lockless(pos->member.next, typeof(*pos), member)) 468 for (pos = list_entry_rcu(pos->member.next, typeof(*pos), member); \ 470 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) 491 pos = list_entry_rcu(pos->member.next, typeof(*(pos)), member)) [all …]
|
D | rcupdate.h | 355 ((void)(((typeof(*p) space *)p) == p)) 362 typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \ 364 ((typeof(*p) __force __kernel *)(_________p1)); \ 369 typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \ 372 ((typeof(*p) __force __kernel *)(________p1)); \ 378 ((typeof(*p) __force __kernel *)(p)); \ 383 typeof(p) ________p1 = READ_ONCE(p); \ 384 ((typeof(*p) __force __kernel *)(________p1)); \ 391 #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) 430 WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \ [all …]
|
D | llist.h | 98 ((uintptr_t)(ptr) + offsetof(typeof(*(ptr)), member) != 0) 152 for ((pos) = llist_entry((node), typeof(*(pos)), member); \ 154 (pos) = llist_entry((pos)->member.next, typeof(*(pos)), member)) 174 for (pos = llist_entry((node), typeof(*pos), member); \ 176 (n = llist_entry(pos->member.next, typeof(*n), member), true); \
|
D | bitfield.h | 48 #define __unsigned_scalar_typeof(x) typeof( \ 85 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \ 98 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \ 112 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \ 126 (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ 143 #define field_max(field) ((typeof(field))field_mask(field))
|
/kernel/linux/linux-5.10/fs/erofs/ |
D | tagptr.h | 37 __builtin_types_compatible_p(typeof(ptr), struct __tagptr##n) ? \ 49 ((typeof(type)){ .v = (uintptr_t)(val) }) 59 const typeof(_tags) tags = (_tags); \ 73 typeof(_tptr1) tptr1 = (_tptr1); \ 74 typeof(_tptr2) tptr2 = (_tptr2); \ 80 typeof(_ptptr) ptptr = (_ptptr); \ 81 typeof(_o) o = (_o); \ 82 typeof(_n) n = (_n); \ 89 typeof(_ptptr) ptptr = (_ptptr); \ 94 typeof(_ptptr) ptptr = (_ptptr); \ [all …]
|
/kernel/linux/linux-5.10/drivers/md/bcache/ |
D | util.h | 230 typeof(*((dest)->data)) _t; \ 256 typeof((array)->freelist) _ret = (array)->freelist; \ 259 (array)->freelist = *((typeof((array)->freelist) *) _ret);\ 266 typeof((array)->freelist) _ptr = ptr; \ 268 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \ 274 typeof((array)->freelist) _i; \ 314 (__builtin_types_compatible_p(typeof(*res), int) \ 316 : __builtin_types_compatible_p(typeof(*res), long) \ 318 : __builtin_types_compatible_p(typeof(*res), long long) \ 320 : __builtin_types_compatible_p(typeof(*res), unsigned int) \ [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | percpu.h | 29 ((typeof(ptr)) ((char *) (ptr) + PERCPU_OFFSET * cpu)) 33 #define __this_cpu_sub(pcp, n) __this_cpu_add(pcp, -(typeof(pcp)) (n)) 37 #define this_cpu_sub(pcp, n) this_cpu_add(pcp, -(typeof(pcp)) (n)) 49 typeof(ptr) this_cpu_add_helper_ptr = (ptr); \ 50 typeof(ptr) this_cpu_add_helper_x = (x); \ 51 typeof(*ptr) this_cpu_add_helper_temp; \ 70 (typeof(pcp)) (n)); \ 77 (typeof(pcp)) (n)); \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_utils.h | 90 typeof(A) a = (A); \ 91 typeof(B) b = (B); \ 97 add_overflows_t(typeof((A) + (B)), (A), (B)) 100 typeof(start) start__ = (start); \ 101 typeof(size) size__ = (size); \ 102 typeof(max) max__ = (max); \ 112 typeof(start) start__ = (start); \ 113 typeof(size) size__ = (size); \ 114 typeof(max) max__ = (max); \ 162 (typeof(ptr))(__v & -BIT(n)); \ [all …]
|
D | i915_sw_fence_work.c | 18 struct dma_fence_work *f = container_of(work, typeof(*f), work); in fence_work() 32 struct dma_fence_work *f = container_of(fence, typeof(*f), chain); in fence_notify() 65 struct dma_fence_work *f = container_of(fence, typeof(*f), dma); in get_timeline_name() 72 struct dma_fence_work *f = container_of(fence, typeof(*f), dma); in fence_release() 76 BUILD_BUG_ON(offsetof(typeof(*f), dma)); in fence_release()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | gc.c | 112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control() 128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator() 144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager() 159 container_of(element, typeof(*acl), list); in tomoyo_del_acl() 166 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 173 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 181 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 189 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 199 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 209 container_of(acl, typeof(*entry), head); in tomoyo_del_acl() [all …]
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | percpu.h | 29 typedef typeof(pcp) pcp_op_T__; \ 68 typedef typeof(pcp) pcp_op_T__; \ 95 typedef typeof(pcp) pcp_op_T__; \ 114 typedef typeof(pcp) pcp_op_T__; \ 136 typedef typeof(pcp) pcp_op_T__; \ 153 typeof(pcp) *ptr__; \ 154 typeof(pcp) ret__; \ 169 typeof(pcp1) o1__ = (o1), n1__ = (n1); \ 170 typeof(pcp2) o2__ = (o2), n2__ = (n2); \ 171 typeof(pcp1) *p1__; \ [all …]
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | barrier.h | 98 typeof(p) __p = (p); \ 134 typeof(p) __p = (p); \ 159 (typeof(*p))__u.__val; \ 164 typeof(ptr) __PTR = (ptr); \ 172 (typeof(*ptr))VAL; \ 177 typeof(ptr) __PTR = (ptr); \ 185 (typeof(*ptr))VAL; \
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
D | uaccess.h | 72 typeof(*(ptr)) *__pu_addr = (ptr); \ 73 typeof(*(ptr)) __pu_val = (typeof(*(ptr)))(x); \ 83 typeof(*(ptr)) *__pu_addr = (ptr); \ 84 typeof(*(ptr)) __pu_val = (typeof(*(ptr)))(x); \ 177 typeof(*(ptr))src = (typeof(*(ptr)))x; \ 178 typeof(*(ptr))*psrc = &src; \
|
/kernel/linux/linux-5.10/scripts/kconfig/ |
D | list.h | 20 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 50 for (pos = list_entry((head)->next, typeof(*pos), member); \ 52 pos = list_entry(pos->member.next, typeof(*pos), member)) 62 for (pos = list_entry((head)->next, typeof(*pos), member), \ 63 n = list_entry(pos->member.next, typeof(*pos), member); \ 65 pos = n, n = list_entry(n->member.next, typeof(*n), member))
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | barrier.h | 35 typeof(p) __p = (p); \ 36 union { typeof(*p) __val; char __c[1]; } __u = \ 37 { .__val = (__force typeof(*p)) (v) }; \ 66 union { typeof(*p) __val; char __c[1]; } __u; \ 67 typeof(p) __p = (p); \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac.h | 95 typeof(ring) _ring = (ring); \ 101 typeof(pos) _pos = (pos); \ 102 typeof(len) _len = (len); \ 107 typeof(pos) _pos = (pos); \ 108 typeof(len) _len = (len); \ 109 typeof(var) _var = le32_to_cpu((var)); \ 114 typeof(var) _var = (var); \ 115 typeof(pos) _pos = (pos); \ 116 typeof(len) _len = (len); \ 117 typeof(val) _val = (val); \ [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | types.h | 29 typeof(x) _x = (x); \ 30 typeof(y) _y = (y); \ 35 typeof(x) _x = (x); \ 36 typeof(y) _y = (y); \
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | percpu.h | 77 typeof(pcp) *__p = raw_cpu_ptr(&(pcp)); \ 85 typeof(pcp) *__p = raw_cpu_ptr(&(pcp)); \ 86 typeof(pcp) __ret; \ 94 typeof(pcp) *__p = raw_cpu_ptr(&(pcp)); \ 95 typeof(pcp) __ret; \ 104 typeof(pcp1) *__p1 = raw_cpu_ptr(&(pcp1)); \ 105 typeof(pcp2) *__p2 = raw_cpu_ptr(&(pcp2)); \ 117 typeof(pcp) ___ret; \ 126 typeof(pcp) ___ret; \ 136 typeof(pcp) __ret; \ [all …]
|