/freebsd/contrib/wpa/src/utils/ |
H A D | list.h | 64 #define offsetof(type, member) ((long) &((type *) 0)->member) argument 67 #define dl_list_entry(item, type, member) \ argument 68 ((type *) ((char *) item - offsetof(type, member))) 70 #define dl_list_first(list, type, member) \ argument 72 dl_list_entry((list)->next, type, member)) 74 #define dl_list_last(list, type, member) \ argument 76 dl_list_entry((list)->prev, type, member)) 78 #define dl_list_for_each(item, list, type, member) \ argument 79 for (item = dl_list_entry((list)->next, type, member); \ 80 &item->member != (list); \ [all …]
|
/freebsd/tools/tools/drm/radeon/mkregtable/ |
H A D | mkregtable.c | 27 #define container_of(ptr, type, member) ({ \ argument 28 const typeof(((type *)0)->member)*__mptr = (ptr); \ 29 (type *)((char *)__mptr - offsetof(type, member)); }) 352 #define list_entry(ptr, type, member) \ argument 353 container_of(ptr, type, member) 363 #define list_first_entry(ptr, type, member) \ argument 364 list_entry((ptr)->next, type, member) 424 #define list_for_each_entry(pos, head, member) \ argument 425 for (pos = list_entry((head)->next, typeof(*pos), member); \ 426 &pos->member != (head); \ [all …]
|
/freebsd/contrib/ncurses/ncurses/ |
H A D | report_offsets.c | 45 #define show_offset(type,member) \ argument 46 next = (unsigned long)offsetof(type,member); \ 48 printf("?? incorrect order for " #type "." #member "\n"); \ 49 printf("%5lu %c " #type "." #member "\n", next, flag ? *flag : ' '); \ 54 #define show_COLORS(type,member) { flag = "c"; show_offset(type,member); } argument 56 #define show_COLORS(type,member) /* nothing */ 60 #define show_DRIVER(type,member) { flag = "d"; show_offset(type,member); } argument 62 #define show_DRIVER(type,member) /* nothing */ 66 #define show_MLEAKS(type,member) { flag = "L"; show_offset(type,member); } argument 68 #define show_MLEAKS(type,member) /* nothing */ [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | hashtable.h | 130 #define __hash_first(ht, type, member) ({ \ argument 132 __hash_node_type_assert(&((type *)0)->member); \ 133 (__first != NULL ? container_of((const void *)__first, type, member) : NULL); \ 136 #define __hash_next(obj, type, member) ({ \ argument 138 CK_LIST_NEXT((struct lkpi_hash_entry *)&(obj)->member, entry); \ 139 __hash_node_type_assert(&(obj)->member); \ 140 (__next != NULL ? container_of((const void *)__next, type, member) : NULL); \ 146 #define hash_for_each_rcu(name, bkt, obj, member) \ argument 150 __typeof(*(obj)), member); \ 153 __typeof(*(obj)), member)) [all …]
|
H A D | rculist.h | 34 #define list_entry_rcu(ptr, type, member) \ argument 35 container_of(READ_ONCE(ptr), type, member) 40 #define list_for_each_entry_rcu(pos, head, member) \ argument 41 for (pos = list_entry_rcu((head)->next, typeof(*(pos)), member); \ 42 &(pos)->member != (head); \ 43 pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member)) 45 #define list_for_each_entry_from_rcu(pos, head, member) \ argument 47 &(pos)->member != (head); \ 48 pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member)) 50 #define list_for_each_entry_lockless(pos, head, member) \ argument [all …]
|
H A D | list.h | 167 #define list_first_entry(ptr, type, member) \ argument 168 list_entry((ptr)->next, type, member) 170 #define list_last_entry(ptr, type, member) \ argument 171 list_entry((ptr)->prev, type, member) 173 #define list_first_entry_or_null(ptr, type, member) \ argument 174 (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) 176 #define list_next_entry(ptr, member) \ argument 177 list_entry(((ptr)->member.next), typeof(*(ptr)), member) 179 #define list_safe_reset_next(ptr, n, member) \ argument 180 (n) = list_next_entry(ptr, member) [all …]
|
H A D | overflow.h | 277 #define flex_array_size(p, member, count) \ argument 279 (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \ 280 size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member))) 293 #define struct_size(p, member, count) \ argument 295 sizeof(*(p)) + flex_array_size(p, member, count), \ 296 size_add(sizeof(*(p)), flex_array_size(p, member, count))) 311 #define struct_size_t(type, member, count) \ argument 312 struct_size((type *)NULL, member, count) 324 #define _DEFINE_FLEX(type, name, member, count, initializer) \ argument 328 u8 bytes[struct_size_t(type, member, count)]; \ [all …]
|
H A D | llist.h | 20 #define llist_entry(ptr, type, member) \ argument 21 ((ptr) ? container_of(ptr, type, member) : NULL) 90 #define llist_for_each_entry_safe(pos, n, node, member) \ argument 91 for (pos = llist_entry((node), __typeof(*pos), member); \ 93 (n = llist_entry(pos->member.next, __typeof(*pos), member), pos); \ 96 #define llist_for_each_entry(pos, node, member) \ argument 97 for ((pos) = llist_entry((node), __typeof(*(pos)), member); \ 99 (pos) = llist_entry((pos)->member.next, __typeof(*(pos)), member))
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_multicast.c | 205 static void deref_member(struct mcast_member *member) in deref_member() argument 207 if (atomic_dec_and_test(&member->refcount)) in deref_member() 208 complete(&member->comp); in deref_member() 211 static void queue_join(struct mcast_member *member) in queue_join() argument 213 struct mcast_group *group = member->group; in queue_join() 217 list_add_tail(&member->list, &group->pending_list); in queue_join() 335 static int send_join(struct mcast_group *group, struct mcast_member *member) in send_join() argument 340 group->last_join = member; in send_join() 343 &member->multicast.rec, in send_join() 344 member->multicast.comp_mask, in send_join() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_linux_list.h | 40 #define list_entry(ptr, type, member) container_of(ptr,type,member) argument 121 #define list_for_each_entry(pos, head, member) \ argument 122 for (pos = list_entry((head)->next, __typeof(*pos), member); \ 123 &pos->member != (head); \ 124 pos = list_entry(pos->member.next, __typeof(*pos), member)) 126 #define list_for_each_entry_continue_reverse(pos, head, member) \ argument 127 for (pos = list_entry(pos->member.prev, __typeof(*pos), member); \ 128 &pos->member != (head); \ 129 pos = list_entry(pos->member.prev, __typeof(*pos), member)) 138 #define list_for_each_entry_safe(pos, n, head, member) \ argument [all …]
|
/freebsd/lib/libpmc/pmu-events/ |
H A D | list.h | 32 #define container_of(ptr, type, member) \ argument 34 const __typeof(((type *)0)->member) *__p = (ptr); \ 35 (type *)((uintptr_t)__p - offsetof(type, member)); \ 151 #define list_first_entry(ptr, type, member) \ argument 152 list_entry((ptr)->next, type, member) 154 #define list_last_entry(ptr, type, member) \ argument 155 list_entry((ptr)->prev, type, member) 157 #define list_first_entry_or_null(ptr, type, member) \ argument 158 (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) 160 #define list_next_entry(ptr, member) \ argument [all …]
|
/freebsd/sys/contrib/ncsw/inc/etc/ |
H A D | list_ext.h | 127 #define MEMBER_OFFSET(type, member) (PTR_TO_UINT(&((type *)0)->member)) argument 128 #define NCSW_LIST_OBJECT(p_List, type, member) \ argument 129 ((type *)((char *)(p_List)-MEMBER_OFFSET(type, member))) 176 #define NCSW_LIST_FOR_EACH_OBJECT_SAFE(p_Pos, p_Tmp, p_Head, type, member) \ argument 177 for (p_Pos = NCSW_LIST_OBJECT(NCSW_LIST_FIRST(p_Head), type, member), \ 178 p_Tmp = NCSW_LIST_OBJECT(NCSW_LIST_FIRST(&p_Pos->member), type, member); \ 179 &p_Pos->member != (p_Head); \ 181 p_Tmp = NCSW_LIST_OBJECT(NCSW_LIST_FIRST(&p_Pos->member), type, member)) 196 #define NCSW_LIST_FOR_EACH_OBJECT(p_Pos, type, p_Head, member) \ argument 197 for (p_Pos = NCSW_LIST_OBJECT(NCSW_LIST_FIRST(p_Head), type, member); \ [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/ |
H A D | libzfs_core.abi | 228 <data-member access='public' layout-offset-in-bits='0'> 230 </data-member> 231 <data-member access='public' layout-offset-in-bits='32'> 233 </data-member> 234 <data-member access='public' layout-offset-in-bits='64'> 236 </data-member> 237 <data-member access='public' layout-offset-in-bits='128'> 239 </data-member> 636 <data-member access='public' layout-offset-in-bits='0'> 638 </data-member> [all …]
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | rpc_compat.h | 48 #define EVTAG_ASSIGN(msg, member, args...) \ argument 49 (*(msg)->base->member##_assign)(msg, ## args) 50 #define EVTAG_GET(msg, member, args...) \ argument 51 (*(msg)->base->member##_get)(msg, ## args) 52 #define EVTAG_ADD(msg, member, args...) \ argument 53 (*(msg)->base->member##_add)(msg, ## args) 55 #define EVTAG_LEN(msg, member) ((msg)->member##_length) argument
|
H A D | rpc.h | 80 #define EVTAG_HAS(msg, member) \ argument 81 ((msg)->member##_set == 1) 92 #define EVTAG_ASSIGN(msg, member, value) \ argument 93 (*(msg)->base->member##_assign)((msg), (value)) 102 #define EVTAG_ASSIGN_WITH_LEN(msg, member, value, len) \ argument 103 (*(msg)->base->member##_assign)((msg), (value), (len)) 112 #define EVTAG_GET(msg, member, pvalue) \ argument 113 (*(msg)->base->member##_get)((msg), (pvalue)) 123 #define EVTAG_GET_WITH_LEN(msg, member, pvalue, plen) \ argument 124 (*(msg)->base->member##_get)((msg), (pvalue), (plen)) [all …]
|
/freebsd/contrib/libevent/include/event2/ |
H A D | rpc_compat.h | 48 #define EVTAG_ASSIGN(msg, member, args...) \ argument 49 (*(msg)->base->member##_assign)(msg, ## args) 50 #define EVTAG_GET(msg, member, args...) \ argument 51 (*(msg)->base->member##_get)(msg, ## args) 52 #define EVTAG_ADD(msg, member, args...) \ argument 53 (*(msg)->base->member##_add)(msg, ## args) 55 #define EVTAG_LEN(msg, member) ((msg)->member##_length) argument
|
H A D | rpc.h | 80 #define EVTAG_HAS(msg, member) \ argument 81 ((msg)->member##_set == 1) 92 #define EVTAG_ASSIGN(msg, member, value) \ argument 93 (*(msg)->base->member##_assign)((msg), (value)) 102 #define EVTAG_ASSIGN_WITH_LEN(msg, member, value, len) \ argument 103 (*(msg)->base->member##_assign)((msg), (value), (len)) 112 #define EVTAG_GET(msg, member, pvalue) \ argument 113 (*(msg)->base->member##_get)((msg), (pvalue)) 123 #define EVTAG_GET_WITH_LEN(msg, member, pvalue, plen) \ argument 124 (*(msg)->base->member##_get)((msg), (pvalue), (plen)) [all …]
|
/freebsd/sys/riscv/include/ |
H A D | pcpu.h | 78 #define PCPU_GET(member) (get_pcpu()->pc_ ## member) argument 79 #define PCPU_ADD(member, value) (get_pcpu()->pc_ ## member += (value)) argument 80 #define PCPU_PTR(member) (&get_pcpu()->pc_ ## member) argument 81 #define PCPU_SET(member,value) (get_pcpu()->pc_ ## member = (value)) argument
|
/freebsd/sys/arm64/include/ |
H A D | pcpu.h | 82 #define PCPU_GET(member) (pcpup->pc_ ## member) argument 83 #define PCPU_ADD(member, value) (pcpup->pc_ ## member += (value)) argument 84 #define PCPU_PTR(member) (&pcpup->pc_ ## member) argument 85 #define PCPU_SET(member,value) (pcpup->pc_ ## member = (value)) argument
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs.abi | 698 <data-member access='public' layout-offset-in-bits='0'> 700 </data-member> 701 <data-member access='public' layout-offset-in-bits='64'> 703 </data-member> 704 <data-member access='public' layout-offset-in-bits='128'> 706 </data-member> 710 <data-member access='public' layout-offset-in-bits='0'> 712 </data-member> 713 <data-member access='public' layout-offset-in-bits='64'> 715 </data-member> [all …]
|
/freebsd/sys/dev/ice/ |
H A D | ice_osdep.h | 232 #define _osdep_LIST_ENTRY(ptr, type, member) \ argument 233 __containerof(ptr, type, member) 234 #define LIST_FIRST_ENTRY(head, type, member) \ argument 235 _osdep_LIST_ENTRY(LIST_FIRST(head), type, member) 236 #define LIST_NEXT_ENTRY(ptr, unused, member) \ argument 237 _osdep_LIST_ENTRY(LIST_NEXT(&(ptr->member), entries), __typeof(*ptr), member) 288 #define LIST_LAST_ENTRY(head, type, member) \ argument 289 LIST_ENTRY_SAFE(ice_get_list_tail(head), type, member) 291 #define LIST_FIRST_ENTRY_SAFE(head, type, member) \ argument 294 LIST_NEXT_ENTRY_SAFE(ptr,member) global() argument 297 LIST_FOR_EACH_ENTRY(pos,head,unused,member) global() argument 302 LIST_FOR_EACH_ENTRY_SAFE(pos,n,head,unused,member) global() argument [all...] |
/freebsd/sys/arm/include/ |
H A D | pcpu.h | 134 #define PCPU_GET(member) (get_pcpu()->pc_ ## member) argument 135 #define PCPU_ADD(member, value) (get_pcpu()->pc_ ## member += (value)) argument 136 #define PCPU_PTR(member) (&get_pcpu()->pc_ ## member) argument 137 #define PCPU_SET(member,value) (get_pcpu()->pc_ ## member = (value)) argument
|
/freebsd/sys/contrib/openzfs/lib/libuutil/ |
H A D | libuutil.abi | 637 <data-member access='public' layout-offset-in-bits='0'> 639 </data-member> 644 <data-member access='public' layout-offset-in-bits='0'> 646 </data-member> 647 <data-member access='public' layout-offset-in-bits='64'> 649 </data-member> 650 <data-member access='public' layout-offset-in-bits='128'> 652 </data-member> 656 <data-member access='public' layout-offset-in-bits='0'> 658 </data-member> [all …]
|
/freebsd/sys/contrib/openzfs/lib/libnvpair/ |
H A D | libnvpair.abi | 314 <data-member access='public' layout-offset-in-bits='0'> 316 </data-member> 317 <data-member access='public' layout-offset-in-bits='32'> 319 </data-member> 320 <data-member access='public' layout-offset-in-bits='48'> 322 </data-member> 323 <data-member access='public' layout-offset-in-bits='64'> 325 </data-member> 326 <data-member access='public' layout-offset-in-bits='96'> 328 </data-member> [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | pcpu.h | 162 #define PCPU_GET(member) (pcpup->pc_ ## member) argument 168 #define PCPU_ADD(member, value) (pcpup->pc_ ## member += (value)) argument 169 #define PCPU_PTR(member) (&pcpup->pc_ ## member) argument 170 #define PCPU_SET(member,value) (pcpup->pc_ ## member = (value)) argument
|