/external/libevent/compat/sys/ |
D | queue.h | 93 #define SLIST_HEAD_INITIALIZER(head) \ argument 106 #define SLIST_FIRST(head) ((head)->slh_first) argument 107 #define SLIST_END(head) NULL argument 108 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument 111 #define SLIST_FOREACH(var, head, field) \ argument 112 for((var) = SLIST_FIRST(head); \ 113 (var) != SLIST_END(head); \ 119 #define SLIST_INIT(head) { \ argument 120 SLIST_FIRST(head) = SLIST_END(head); \ 128 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument [all …]
|
/external/iperf3/src/ |
D | queue.h | 99 #define SLIST_HEAD_INITIALIZER(head) \ argument 110 #define SLIST_FIRST(head) ((head)->slh_first) argument 111 #define SLIST_END(head) NULL argument 112 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument 115 #define SLIST_FOREACH(var, head, field) \ argument 116 for((var) = SLIST_FIRST(head); \ 117 (var) != SLIST_END(head); \ 120 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument 121 for ((varp) = &SLIST_FIRST((head)); \ 122 ((var) = *(varp)) != SLIST_END(head); \ [all …]
|
/external/openssh/openbsd-compat/ |
D | sys-queue.h | 184 #define SLIST_HEAD_INITIALIZER(head) \ argument 195 #define SLIST_FIRST(head) ((head)->slh_first) argument 196 #define SLIST_END(head) NULL argument 197 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument 200 #define SLIST_FOREACH(var, head, field) \ argument 201 for((var) = SLIST_FIRST(head); \ 202 (var) != SLIST_END(head); \ 205 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 206 for ((var) = SLIST_FIRST(head); \ 213 #define SLIST_INIT(head) { \ argument [all …]
|
D | sys-tree.h | 84 #define SPLAY_ROOT(head) (head)->sph_root argument 85 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument 88 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 89 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 90 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 91 (head)->sph_root = tmp; \ 94 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 95 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 96 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 97 (head)->sph_root = tmp; \ [all …]
|
/external/ipsec-tools/src/include-glibc/sys/ |
D | queue.h | 114 #define SLIST_HEAD_INITIALIZER(head) \ argument 125 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument 127 #define SLIST_FIRST(head) ((head)->slh_first) argument 129 #define SLIST_FOREACH(var, head, field) \ argument 130 for ((var) = SLIST_FIRST((head)); \ 134 #define SLIST_INIT(head) do { \ argument 135 SLIST_FIRST((head)) = NULL; \ 143 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 144 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ 145 SLIST_FIRST((head)) = (elm); \ [all …]
|
/external/libevent/ |
D | ht-internal.h | 41 #define HT_EMPTY(head) \ argument 42 ((head)->hth_n_entries == 0) 45 #define HT_SIZE(head) \ argument 46 ((head)->hth_n_entries) 49 #define HT_MEM_USAGE(head) \ argument 50 (sizeof(*head) + (head)->hth_table_length * sizeof(void*)) 52 #define HT_FIND(name, head, elm) name##_HT_FIND((head), (elm)) argument 53 #define HT_INSERT(name, head, elm) name##_HT_INSERT((head), (elm)) argument 54 #define HT_REPLACE(name, head, elm) name##_HT_REPLACE((head), (elm)) argument 55 #define HT_REMOVE(name, head, elm) name##_HT_REMOVE((head), (elm)) argument [all …]
|
/external/adhd/cras/src/common/ |
D | utlist.h | 64 #define LL_PREPEND(head, add) \ argument 66 (add)->next = head; \ 67 head = add; \ 82 #define LL_APPEND(head, add) \ argument 84 __typeof(head) _tmp; \ 86 if (head) { \ 87 _tmp = head; \ 92 (head) = (add); \ 96 #define LL_DELETE(head, del) \ argument 98 __typeof(head) _tmp; \ [all …]
|
/external/libdrm/intel/ |
D | uthash.h | 119 #define HASH_FIND_BYHASHVALUE(hh,head,keyptr,keylen,hashval,out) \ argument 122 if (head) { \ 124 HASH_TO_BKT(hashval, (head)->hh.tbl->num_buckets, _hf_bkt); \ 125 if (HASH_BLOOM_TEST((head)->hh.tbl, hashval) != 0) { \ 126 …HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], keyptr, keylen, hashval, … 131 #define HASH_FIND(hh,head,keyptr,keylen,out) \ argument 135 HASH_FIND_BYHASHVALUE(hh, head, keyptr, keylen, _hf_hashv, out); \ 172 #define HASH_MAKE_TABLE(hh,head) \ argument 174 (head)->hh.tbl = (UT_hash_table*)uthash_malloc( \ 176 if (!((head)->hh.tbl)) { uthash_fatal( "out of memory"); } \ [all …]
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | cirlist.c | 27 cl->head = NULL; in init_cirlist() 40 assert(cl->head == NULL); in cl_insert_tail() 41 cl->head = new; in cl_insert_tail() 42 cl->head->next = cl->head; in cl_insert_tail() 43 cl->head->prev = cl->head; in cl_insert_tail() 47 assert(cl->head->next == cl->head); in cl_insert_tail() 48 assert(cl->head->prev == cl->head); in cl_insert_tail() 49 cl->head->next = new; in cl_insert_tail() 50 cl->head->prev = new; in cl_insert_tail() 51 new->next = cl->head; in cl_insert_tail() [all …]
|
/external/u-boot/include/linux/ |
D | list.h | 61 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 63 __list_add(new, head, head->next); in list_add() 74 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 76 __list_add(new, head->prev, head); in list_add_tail() 143 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 146 list_add(list, head); in list_move() 155 struct list_head *head) in list_move_tail() argument 158 list_add_tail(list, head); in list_move_tail() 167 const struct list_head *head) in list_is_last() argument 169 return list->next == head; in list_is_last() [all …]
|
/external/blktrace/iowatcher/ |
D | list.h | 94 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 96 __list_add(new, head, head->next); in list_add() 99 extern void list_add(struct list_head *new, struct list_head *head); 111 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 113 __list_add(new, head->prev, head); in list_add_tail() 182 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 185 list_add(list, head); in list_move() 194 struct list_head *head) in list_move_tail() argument 197 list_add_tail(list, head); in list_move_tail() 206 const struct list_head *head) in list_is_last() argument [all …]
|
/external/ltp/testcases/realtime/include/ |
D | list.h | 99 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 101 __list_add(new, head, head->next); in list_add() 112 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 114 __list_add(new, head->prev, head); in list_add_tail() 158 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 161 list_add(list, head); in list_move() 170 struct list_head *head) in list_move_tail() argument 173 list_add_tail(list, head); in list_move_tail() 180 static inline int list_empty(const struct list_head *head) in list_empty() argument 182 return head->next == head; in list_empty() [all …]
|
/external/libnfnetlink/include/ |
D | linux_list.h | 94 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 96 __list_add(new, head, head->next); in list_add() 107 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 109 __list_add(new, head->prev, head); in list_add_tail() 144 static inline void list_add_rcu(struct list_head *new, struct list_head *head) in list_add_rcu() argument 146 __list_add_rcu(new, head, head->next); in list_add_rcu() 166 struct list_head *head) in list_add_tail_rcu() argument 168 __list_add_rcu(new, head->prev, head); in list_add_tail_rcu() 242 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 245 list_add(list, head); in list_move() [all …]
|
/external/iptables/libiptc/ |
D | linux_list.h | 90 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 92 __list_add(new, head, head->next); in list_add() 103 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 105 __list_add(new, head->prev, head); in list_add_tail() 140 static inline void list_add_rcu(struct list_head *new, struct list_head *head) in list_add_rcu() argument 142 __list_add_rcu(new, head, head->next); in list_add_rcu() 162 struct list_head *head) in list_add_tail_rcu() argument 164 __list_add_rcu(new, head->prev, head); in list_add_tail_rcu() 238 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 241 list_add(list, head); in list_move() [all …]
|
/external/libnetfilter_conntrack/include/internal/ |
D | linux_list.h | 95 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 97 __list_add(new, head, head->next); in list_add() 108 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 110 __list_add(new, head->prev, head); in list_add_tail() 145 static inline void list_add_rcu(struct list_head *new, struct list_head *head) in list_add_rcu() argument 147 __list_add_rcu(new, head, head->next); in list_add_rcu() 167 struct list_head *head) in list_add_tail_rcu() argument 169 __list_add_rcu(new, head->prev, head); in list_add_tail_rcu() 243 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 246 list_add(list, head); in list_move() [all …]
|
/external/jemalloc/test/unit/ |
D | ql.c | 15 test_empty_list(list_head_t *head) in test_empty_list() argument 20 assert_ptr_null(ql_first(head), "Unexpected element for empty list"); in test_empty_list() 21 assert_ptr_null(ql_last(head, link), in test_empty_list() 25 ql_foreach(t, head, link) { in test_empty_list() 31 ql_reverse_foreach(t, head, link) { in test_empty_list() 39 list_head_t head; in TEST_BEGIN() local 41 ql_new(&head); in TEST_BEGIN() 42 test_empty_list(&head); in TEST_BEGIN() 58 test_entries_list(list_head_t *head, list_t *entries, unsigned nentries) in test_entries_list() argument 63 assert_c_eq(ql_first(head)->id, entries[0].id, "Element id mismatch"); in test_entries_list() [all …]
|
/external/jemalloc_new/test/unit/ |
D | ql.c | 17 test_empty_list(list_head_t *head) { in test_empty_list() argument 21 assert_ptr_null(ql_first(head), "Unexpected element for empty list"); in test_empty_list() 22 assert_ptr_null(ql_last(head, link), in test_empty_list() 26 ql_foreach(t, head, link) { in test_empty_list() 32 ql_reverse_foreach(t, head, link) { in test_empty_list() 39 list_head_t head; in TEST_BEGIN() local 41 ql_new(&head); in TEST_BEGIN() 42 test_empty_list(&head); in TEST_BEGIN() 57 test_entries_list(list_head_t *head, list_t *entries, unsigned nentries) { in test_entries_list() argument 61 assert_c_eq(ql_first(head)->id, entries[0].id, "Element id mismatch"); in test_entries_list() [all …]
|
/external/libevent/WIN32-Code/ |
D | tree.h | 77 #define SPLAY_ROOT(head) (head)->sph_root argument 78 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument 81 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 82 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 83 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 84 (head)->sph_root = tmp; \ 87 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 88 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 89 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 90 (head)->sph_root = tmp; \ [all …]
|
/external/ltp/testcases/kernel/syscalls/epoll2/include/ |
D | dbllist.h | 26 #define DBL_LIST_ADDH(new, head) DBL_LIST_ADD(new, head, (head)->pNext) argument 28 #define DBL_LIST_ADDT(new, head) DBL_LIST_ADD(new, (head)->pPrev, head) argument 44 #define DBL_LIST_EMTPY(head) ((head)->pNext == head) argument 46 #define DBL_LIST_SPLICE(list, head) \ argument 51 struct list_head * at = (head)->pNext; \ 52 (first)->pPrev = head; \ 53 (head)->pNext = first; \ 68 #define DBL_LIST_FIRST(head) (((head)->pNext != (head)) ? (head)->pNext: NULL) argument 70 #define DBL_LIST_LAST(head) (((head)->pPrev != (head)) ? (head)->pPrev: NULL) argument 74 #define DBL_LIST_FOR_EACH(pos, head) for (pos = (head)->pNext; pos != (head); pos = (pos)->pNext) argument [all …]
|
/external/libnetfilter_conntrack/src/conntrack/ |
D | build_mnl.c | 118 switch(ct->head.orig.protonum) { in nfct_build_protoinfo() 123 if (!(test_bit(ATTR_TCP_STATE, ct->head.set) || in nfct_build_protoinfo() 124 test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) || in nfct_build_protoinfo() 125 test_bit(ATTR_TCP_FLAGS_REPL, ct->head.set) || in nfct_build_protoinfo() 126 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set) || in nfct_build_protoinfo() 127 test_bit(ATTR_TCP_MASK_REPL, ct->head.set) || in nfct_build_protoinfo() 128 test_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set) || in nfct_build_protoinfo() 129 test_bit(ATTR_TCP_WSCALE_REPL, ct->head.set))) { in nfct_build_protoinfo() 134 if (test_bit(ATTR_TCP_STATE, ct->head.set)) { in nfct_build_protoinfo() 138 if (test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) && in nfct_build_protoinfo() [all …]
|
D | build.c | 111 switch(ct->head.orig.protonum) { in __build_protoinfo() 116 if (!(test_bit(ATTR_TCP_STATE, ct->head.set) || in __build_protoinfo() 117 test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) || in __build_protoinfo() 118 test_bit(ATTR_TCP_FLAGS_REPL, ct->head.set) || in __build_protoinfo() 119 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set) || in __build_protoinfo() 120 test_bit(ATTR_TCP_MASK_REPL, ct->head.set) || in __build_protoinfo() 121 test_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set) || in __build_protoinfo() 122 test_bit(ATTR_TCP_WSCALE_REPL, ct->head.set))) { in __build_protoinfo() 127 if (test_bit(ATTR_TCP_STATE, ct->head.set)) in __build_protoinfo() 132 if (test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) && in __build_protoinfo() [all …]
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
D | TemplateList.java | 140 TemplateSubPatternAssociation head = in dumpAssociationTables() local 143 while (null != head) in dumpAssociationTables() 145 System.out.print("(" + head.getTargetString() + ", " in dumpAssociationTables() 146 + head.getPattern() + ")"); in dumpAssociationTables() 148 head = head.getNext(); in dumpAssociationTables() 154 TemplateSubPatternAssociation head = m_wildCardPatterns; in dumpAssociationTables() local 158 while (null != head) in dumpAssociationTables() 160 System.out.print("(" + head.getTargetString() + ", " in dumpAssociationTables() 161 + head.getPattern() + ")"); in dumpAssociationTables() 163 head = head.getNext(); in dumpAssociationTables() [all …]
|
/external/libnl/include/netlink/ |
D | list.h | 38 struct nl_list_head *head) in nl_list_add_tail() argument 40 __nl_list_add(obj, head->prev, head); in nl_list_add_tail() 44 struct nl_list_head *head) in nl_list_add_head() argument 46 __nl_list_add(obj, head, head->next); in nl_list_add_head() 55 static inline int nl_list_empty(struct nl_list_head *head) in nl_list_empty() argument 57 return head->next == head; in nl_list_empty() 67 #define nl_list_at_tail(pos, head, member) \ argument 68 ((pos)->member.next == (head)) 70 #define nl_list_at_head(pos, head, member) \ argument 71 ((pos)->member.prev == (head)) [all …]
|
/external/f2fs-tools/tools/ |
D | f2fstat.c | 69 static inline void remove_newline(char **head) in remove_newline() argument 72 if (**head == '\n') { in remove_newline() 73 *head = *head + 1; in remove_newline() 87 char *head, *tail; in f2fstat() local 126 head = buf; in f2fstat() 129 head = strstr(buf, opt->partname); in f2fstat() 130 if (head == NULL) in f2fstat() 135 remove_newline(&head); in f2fstat() 136 tail = strchr(head, ':'); in f2fstat() 140 if (strlen(head) >= sizeof(keyname)) { in f2fstat() [all …]
|
/external/strace/tests/ |
D | caps.c | 45 int * const head = tail_alloc(sizeof(int) * 2); in main() local 46 head[0] = v3; in main() 47 head[1] = 0; in main() 51 capget(head + 2, tail_data); in main() 52 capget(head, tail_data + ARRAY_SIZE(data)); in main() 54 if (capget(head, tail_data)) in main() 56 if (head[0] != v3) in main() 62 capset(head + 2, tail_data); in main() 64 head[0] = 0xbadc0ded; in main() 65 head[1] = 2718281828U; in main() [all …]
|