Searched refs:field (Results 1 - 17 of 17) sorted by relevance

/darwin-on-arm/xnu/bsd/sys/_types/
H A D___offsetof.h29 #define __offsetof(type, field) ((size_t)(&((type *)0)->field))
/darwin-on-arm/xnu/bsd/sys/
H A Dqueue.h199 #define SLIST_FOREACH(var, head, field) \
202 (var) = SLIST_NEXT((var), field))
204 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \
206 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
209 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \
212 (varp) = &SLIST_NEXT((var), field))
218 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \
219 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
220 SLIST_NEXT((slistelm), field)
[all...]
H A Dvnode_internal.h307 * and in places where no such field exists.
352 #define VOPARG_OFFSET(p_type,field) \
353 ((int) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
354 #define VOPARG_OFFSETOF(s_type,field) \
355 VOPARG_OFFSET(s_type*,field)
/darwin-on-arm/xnu/libkern/libkern/
H A Dtree.h104 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left
105 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right
110 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \
111 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
112 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
116 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \
117 SPLAY_RIGHT((head)->sph_root, field)
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dqueue.h80 * In the "*foo_t" type, you must have a field of
338 * void queue_enter(q, elt, type, field)
342 * <field> is the chain field in (*<type>)
344 #define queue_enter(head, elt, type, field) \
353 ((type)__prev)->field.next = (queue_entry_t)(elt);\
355 (elt)->field.prev = __prev; \
356 (elt)->field.next = head; \
365 * void queue_enter_first(q, elt, type, field)
369 * <field> i
[all...]
/darwin-on-arm/xnu/bsd/arm/
H A Dtypes.h107 #define __offsetof(type, field) ((size_t)(&((type *)0)->field))
/darwin-on-arm/xnu/bsd/i386/
H A Dtypes.h166 #define __offsetof(type, field) ((size_t)(&((type *)0)->field))
/darwin-on-arm/xnu/osfmk/arm/
H A Dtypes.h106 #define __offsetof(type, field) ((size_t)(&((type *)0)->field))
/darwin-on-arm/xnu/bsd/net/
H A Dlacp.h255 * Set a field in a structure that's at least 16 bits to the given
259 lacp_uint16_set(uint8_t * field, uint16_t value) argument
262 memcpy((void *)field, (void *)&tmp_value, sizeof(uint16_t));
269 * Get a field in a structure that's at least 16 bits, converting
273 lacp_uint16_get(const uint8_t * field) argument
276 memcpy((void *)&tmp_field, (void *)field, sizeof(uint16_t));
283 * Set a field in a structure that's at least 32 bits to the given
287 lacp_uint32_set(uint8_t * field, uint32_t value) argument
290 memcpy((void *)field, (void *)&tmp_value, sizeof(uint32_t));
297 * Get a field i
301 lacp_uint32_get(const uint8_t * field) argument
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_timer.c113 #define VERIFY_NEXT_LINK(elm,field) do { \
114 if (LIST_NEXT((elm),field) != NULL && \
115 LIST_NEXT((elm),field)->field.le_prev != \
116 &((elm)->field.le_next)) \
120 #define VERIFY_PREV_LINK(elm,field) do { \
121 if (*(elm)->field.le_prev != (elm)) \
H A Dip_dummynet.h114 * The OFFSET_OF macro is used to return the offset of a field within
117 #define OFFSET_OF(type, field) ((int)&( ((type *)0)->field) )
134 * field (int) which contains the index of the object itself into the
135 * heap. When the object is moved, the field must also be updated.
137 * field in the heap descriptor. The assumption is that this offset
/darwin-on-arm/xnu/osfmk/console/panic_ui/
H A Dqtif2kraw.c22 #define offsetof(type, field) ((size_t)(&((type *)0)->field))
H A Dgenimage.c66 #define offsetof(type, field) ((size_t)(&((type *)0)->field))
/darwin-on-arm/xnu/libsyscall/
H A DMakefile72 -Wno-missing-field-initializers \
/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_object.c116 * back data (the memory object, field "pager"), etc...
137 * "pager_initialized" field is asserted, indicating
148 * "internal". The "pager_created" field is provided to
156 * field refers to the virtual memory object that contains
158 * field indicates where in the "shadow" these contents begin.
159 * The "copy" field refers to a virtual memory object
168 * field is used in the implementation of the persistence
221 * When adding a new field to the virtual memory
3981 * When initialization is complete, the "initialized" field
3997 * use the "pager" field a
[all...]
/darwin-on-arm/xnu/bsd/netkey/
H A Dkey.c157 * following value in reference count field. they cannot be freed and are
160 * in reference count field. they are ready to be freed. reference from
162 * field hits 0 (= no external reference other than from SA header.
327 #define LIST_FOREACH(elm, head, field) \
328 for (elm = LIST_FIRST(head); elm; elm = LIST_NEXT(elm, field))
332 #define LIST_INSERT_TAIL(head, elm, type, field) \
336 LIST_INSERT_HEAD(head, elm, field); \
338 while (LIST_NEXT(curelm, field)) \
339 curelm = LIST_NEXT(curelm, field);\
340 LIST_INSERT_AFTER(curelm, elm, field);\
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOService.cpp204 #define queue_element(entry, element, type, field) do { \
206 __ele -= -4 + ((size_t)(&((type) 4)->field)); \

Completed in 135 milliseconds