| /openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/ |
| H A D | sys-queue.h | 111 #define SLIST_HEAD_INITIALIZER(head) \ argument 122 #define SLIST_FIRST(head) ((head)->slh_first) argument 123 #define SLIST_END(head) NULL argument 124 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument 127 #define SLIST_FOREACH(var, head, field) \ argument 128 for((var) = (head)->slh_first; \ 129 (var) != SLIST_END(head); \ 132 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 133 for ((var) = SLIST_FIRST((head)); \ 134 (var) != SLIST_END(head) && \ [all …]
|
| H A D | sys-tree.h | 78 #define SPLAY_ROOT(head) (head)->sph_root argument 79 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument 82 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 83 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 84 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 85 (head)->sph_root = tmp; \ 88 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 89 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 90 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 91 (head)->sph_root = tmp; \ [all …]
|
| /openbmc/qemu/include/qemu/ |
| H A D | queue.h | 89 #define QLIST_HEAD_INITIALIZER(head) \ argument 101 #define QLIST_INIT(head) do { \ argument 102 (head)->lh_first = NULL; \ 133 #define QLIST_INSERT_HEAD(head, elm, field) do { \ argument 134 if (((elm)->field.le_next = (head)->lh_first) != NULL) \ 135 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\ 136 (head)->lh_first = (elm); \ 137 (elm)->field.le_prev = &(head)->lh_first; \ 166 #define QLIST_FOREACH(var, head, field) \ argument 167 for ((var) = ((head)->lh_first); \ [all …]
|
| H A D | rcu_queue.h | 34 #define QLIST_EMPTY_RCU(head) (qatomic_read(&(head)->lh_first) == NULL) argument 35 #define QLIST_FIRST_RCU(head) (qatomic_rcu_read(&(head)->lh_first)) argument 90 #define QLIST_INSERT_HEAD_RCU(head, elm, field) do { \ argument 91 (elm)->field.le_prev = &(head)->lh_first; \ 92 (elm)->field.le_next = (head)->lh_first; \ 93 qatomic_rcu_set((&(head)->lh_first), (elm)); \ 114 #define QLIST_FOREACH_RCU(var, head, field) \ argument 115 for ((var) = qatomic_rcu_read(&(head)->lh_first); \ 120 #define QLIST_FOREACH_SAFE_RCU(var, head, field, next_var) \ argument 121 for ((var) = (qatomic_rcu_read(&(head)->lh_first)); \ [all …]
|
| H A D | rcu.h | 136 typedef void RCUCBFunc(struct rcu_head *head); 143 void call_rcu1(struct rcu_head *head, RCUCBFunc *func); 149 #define call_rcu(head, func, field) \ argument 152 offset_must_be_zero[-offsetof(typeof(*(head)), field)], \ 153 func_type_invalid = (func) - (void (*)(typeof(head)))(func); \ 154 &(head)->field; \
|
| /openbmc/u-boot/include/linux/ |
| H A 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 …]
|
| /openbmc/u-boot/scripts/kconfig/ |
| H A D | list.h | 49 #define list_for_each_entry(pos, head, member) \ argument 50 for (pos = list_entry((head)->next, typeof(*pos), member); \ 51 &pos->member != (head); \ 61 #define list_for_each_entry_safe(pos, n, head, member) \ argument 62 for (pos = list_entry((head)->next, typeof(*pos), member), \ 64 &pos->member != (head); \ 71 static inline int list_empty(const struct list_head *head) in list_empty() argument 73 return head->next == head; in list_empty() 100 static inline void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail() argument 102 __list_add(_new, head->prev, head); in list_add_tail()
|
| /openbmc/u-boot/lib/ |
| H A D | membuff.c | 17 mb->head = mb->start; in membuff_purge() 29 *offsetp = mb->head - mb->start; in membuff_putrawflex() 39 if (mb->head >= mb->tail) { in membuff_putrawflex() 41 len = mb->end - mb->head - 1; in membuff_putrawflex() 47 mb->head += len; in membuff_putrawflex() 56 mb->head = mb->start; in membuff_putrawflex() 62 len = mb->tail - mb->head - 1; in membuff_putrawflex() 68 mb->head += len; in membuff_putrawflex() 109 if (mb->head > mb->tail) { in membuff_getraw() 112 len = mb->head - mb->tail; in membuff_getraw() [all …]
|
| H A D | list_sort.c | 25 struct list_head head, *tail = &head; in merge() local 39 return head.next; in merge() 52 struct list_head *head, in merge_and_restore_back_links() argument 55 struct list_head *tail = head; in merge_and_restore_back_links() 85 tail->next = head; in merge_and_restore_back_links() 86 head->prev = tail; in merge_and_restore_back_links() 103 void list_sort(void *priv, struct list_head *head, in list_sort() argument 113 if (list_empty(head)) in list_sort() 118 head->prev->next = NULL; in list_sort() 119 list = head->next; in list_sort() [all …]
|
| /openbmc/qemu/util/ |
| H A D | fifo8.c | 22 fifo->head = 0; in fifo8_reset() 40 fifo->data[(fifo->head + fifo->num) % fifo->capacity] = data; in fifo8_push() 50 start = (fifo->head + fifo->num) % fifo->capacity; in fifo8_push_all() 68 ret = fifo->data[fifo->head++]; in fifo8_pop() 69 fifo->head %= fifo->capacity; in fifo8_pop() 77 return fifo->data[fifo->head]; in fifo8_peek() 85 uint32_t num, head; in fifo8_peekpop_bufptr() local 89 head = (fifo->head + skip) % fifo->capacity; in fifo8_peekpop_bufptr() 90 num = MIN(fifo->capacity - head, max); in fifo8_peekpop_bufptr() 91 ret = &fifo->data[head]; in fifo8_peekpop_bufptr() [all …]
|
| /openbmc/qemu/qobject/ |
| H A D | qlist.c | 33 QTAILQ_INIT(&qlist->head); in qlist_new() 64 QTAILQ_INSERT_TAIL(&qlist->head, entry, next); in qlist_append_obj() 92 if (qlist == NULL || QTAILQ_EMPTY(&qlist->head)) { in qlist_pop() 96 entry = QTAILQ_FIRST(&qlist->head); in qlist_pop() 97 QTAILQ_REMOVE(&qlist->head, entry, next); in qlist_pop() 109 if (qlist == NULL || QTAILQ_EMPTY(&qlist->head)) { in qlist_peek() 113 entry = QTAILQ_FIRST(&qlist->head); in qlist_peek() 120 return QTAILQ_EMPTY(&qlist->head); in qlist_empty() 177 QTAILQ_FOREACH_SAFE(entry, &qlist->head, next, next_entry) { in qlist_destroy_obj() 178 QTAILQ_REMOVE(&qlist->head, entry, next); in qlist_destroy_obj()
|
| /openbmc/libpldm/tools/ |
| H A D | pd.c | 19 static void pd_print_bytes(const char *head, const void *_buf, size_t len, in pd_print_bytes() argument 24 if (head) { in pd_print_bytes() 25 printf("%s", head); in pd_print_bytes() 39 static void pd_print_variable_field(const char *head, in pd_print_variable_field() argument 43 if (head) { in pd_print_variable_field() 44 printf("%s", head); in pd_print_variable_field() 56 static void pd_print_typed_string(const char *head, size_t type, in pd_print_typed_string() argument 62 pd_print_variable_field(head, string, tail); in pd_print_typed_string() 70 static void pd_print_descriptor(const char *head, in pd_print_descriptor() argument 74 if (head) { in pd_print_descriptor() [all …]
|
| /openbmc/qemu/system/ |
| H A D | memory_mapping.c | 30 QTAILQ_FOREACH(p, &list->head, next) { in memory_mapping_list_add_mapping_sorted() 36 QTAILQ_INSERT_TAIL(&list->head, mapping, next); in memory_mapping_list_add_mapping_sorted() 114 if (QTAILQ_EMPTY(&list->head)) { in memory_mapping_list_add_merge_sorted() 127 QTAILQ_FOREACH(memory_mapping, &list->head, next) { in memory_mapping_list_add_merge_sorted() 159 QTAILQ_FOREACH_SAFE(p, &list->head, next, q) { in memory_mapping_list_free() 160 QTAILQ_REMOVE(&list->head, p, next); in memory_mapping_list_free() 172 QTAILQ_INIT(&list->head); in memory_mapping_list_init() 179 QTAILQ_FOREACH_SAFE(p, &list->head, next, q) { in guest_phys_blocks_free() 180 QTAILQ_REMOVE(&list->head, p, next); in guest_phys_blocks_free() 190 QTAILQ_INIT(&list->head); in guest_phys_blocks_init() [all …]
|
| H A D | tpm.c | 200 TPMInfoList *head = NULL, **tail = &head; in qmp_query_tpm() local 210 return head; in qmp_query_tpm() 216 TpmTypeList *head = NULL, **tail = &head; in qmp_query_tpm_types() local 225 return head; in qmp_query_tpm_types() 229 TpmModelList *head = NULL, **tail = &head; in qmp_query_tpm_models() local 239 return head; in qmp_query_tpm_models()
|
| /openbmc/qemu/monitor/ |
| H A D | qemu-config-qmp.c | 45 static void cleanup_infolist(CommandLineParameterInfoList *head) in cleanup_infolist() argument 49 cur = head; in cleanup_infolist() 51 pre_entry = head; in cleanup_infolist() 67 static void connect_infolist(CommandLineParameterInfoList *head, in connect_infolist() argument 72 cur = head; in connect_infolist() 82 CommandLineParameterInfoList *head = NULL, *cur; in get_drive_infolist() local 86 if (!head) { in get_drive_infolist() 87 head = query_option_descs(drive_config_groups[i]->desc); in get_drive_infolist() 90 connect_infolist(head, cur); in get_drive_infolist() 93 cleanup_infolist(head); in get_drive_infolist() [all …]
|
| /openbmc/qemu/tests/qtest/ |
| H A D | fdc-test.c | 120 uint8_t head = 0; in send_read_command() local 134 floppy_send(head << 2 | drive); in send_read_command() 137 floppy_send(head); in send_read_command() 176 uint8_t head = 0; in send_read_no_dma_command() local 190 floppy_send(head << 2 | drive); in send_read_no_dma_command() 193 floppy_send(head); in send_read_no_dma_command() 250 int head = 0; in send_seek() local 253 floppy_send(head << 2 | drive); in send_seek() 361 int head = 0; in test_sense_interrupt() local 370 floppy_send(head << 2 | drive); in test_sense_interrupt() [all …]
|
| /openbmc/qemu/hw/net/rocker/ |
| H A D | rocker_desc.c | 28 uint32_t head; member 101 return ring->head == ring->tail; in desc_ring_empty() 137 ring->head = ring->tail = 0; in desc_ring_set_size() 240 while (ring->head != ring->tail) { in ring_pump() 255 uint32_t head = ring->head; in desc_ring_set_head() local 267 if (((head < tail) && ((new >= tail) || (new < head))) || in desc_ring_set_head() 268 ((head > tail) && ((new >= tail) && (new < head)))) { in desc_ring_set_head() 271 ring->index, head, tail, new); in desc_ring_set_head() 275 if (new == ring->head) { in desc_ring_set_head() 279 ring->head = new; in desc_ring_set_head() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/ |
| H A D | 0002-tests-Use-head-n1-for-busybox-compatibility.patch | 4 Subject: [PATCH 2/2] tests: Use `head -n1` for busybox compatibility 22 - seskeyring="`tail -2 $OUTPUTFILE | head -1`" 23 + seskeyring="`tail -2 $OUTPUTFILE | head -n1`" 31 -seskeyring="`tail -2 $OUTPUTFILE | head -1`" 32 +seskeyring="`tail -2 $OUTPUTFILE | head -n1`" 44 -keyring1="`grep -n keyring $OUTPUTFILE | cut -d: -f1 | head -1`" 45 +keyring1="`grep -n keyring $OUTPUTFILE | cut -d: -f1 | head -n1`" 57 - my_logline="`tail -2 $watch_log | head -1`" 58 + my_logline="`tail -2 $watch_log | head -n1`"
|
| /openbmc/u-boot/drivers/crypto/fsl/ |
| H A D | jr.c | 18 #define CIRC_CNT(head, tail, size) (((head) - (tail)) & (size - 1)) argument 19 #define CIRC_SPACE(head, tail, size) CIRC_CNT((tail), (head) + 1, (size)) argument 139 jr->head = 0; in jr_sw_cleanup() 186 int head = jr->head; in jr_enqueue() local 206 jr->info[head].desc_phys_addr = desc_phys_addr; in jr_enqueue() 207 jr->info[head].callback = (void *)callback; in jr_enqueue() 208 jr->info[head].arg = arg; in jr_enqueue() 209 jr->info[head].op_done = 0; in jr_enqueue() 211 unsigned long start = (unsigned long)&jr->info[head] & in jr_enqueue() 213 unsigned long end = ALIGN((unsigned long)&jr->info[head] + in jr_enqueue() [all …]
|
| /openbmc/u-boot/arch/x86/ |
| H A D | Makefile | 5 head-y := arch/x86/cpu/start64.o 7 head-y := arch/x86/cpu/start.o 11 head-$(CONFIG_$(SPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o 12 head-$(CONFIG_$(SPL_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | libqos-malloc.c | 32 static MemBlock *mlist_find_key(MemList *head, uint64_t addr) in mlist_find_key() argument 35 QTAILQ_FOREACH(node, head, MLIST_ENTNAME) { in mlist_find_key() 43 static MemBlock *mlist_find_space(MemList *head, uint64_t size) in mlist_find_space() argument 47 QTAILQ_FOREACH(node, head, MLIST_ENTNAME) { in mlist_find_space() 55 static MemBlock *mlist_sort_insert(MemList *head, MemBlock *insr) in mlist_sort_insert() argument 58 g_assert(head && insr); in mlist_sort_insert() 60 QTAILQ_FOREACH(node, head, MLIST_ENTNAME) { in mlist_sort_insert() 67 QTAILQ_INSERT_TAIL(head, insr, MLIST_ENTNAME); in mlist_sort_insert() 76 static MemBlock *mlist_join(MemList *head, MemBlock *left, MemBlock *right) in mlist_join() argument 78 g_assert(head && left && right); in mlist_join() [all …]
|
| /openbmc/qemu/include/standard-headers/linux/ |
| H A D | virtio_iommu.h | 75 struct virtio_iommu_req_head head; member 84 struct virtio_iommu_req_head head; member 100 struct virtio_iommu_req_head head; member 110 struct virtio_iommu_req_head head; member 132 struct virtio_iommu_probe_property head; member 140 struct virtio_iommu_req_head head; member
|
| /openbmc/qemu/scripts/ |
| H A D | cocci-macro-file.h | 50 #define QLIST_HEAD_INITIALIZER(head) \ argument 67 #define QSLIST_HEAD_INITIALIZER(head) \ argument 84 #define QSIMPLEQ_HEAD_INITIALIZER(head) \ argument 85 { NULL, &(head).sqh_first } 101 #define QTAILQ_HEAD_INITIALIZER(head) \ argument 102 { .tqh_circ = { NULL, &(head).tqh_circ } }
|
| /openbmc/u-boot/lib/zlib/ |
| H A D | inflate.c | 21 state->head = Z_NULL; in inflateReset() 376 if (state->head != Z_NULL) in inflate() 377 state->head->done = -1; in inflate() 419 if (state->head != Z_NULL) in inflate() 420 state->head->text = (int)((hold >> 8) & 1); in inflate() 426 if (state->head != Z_NULL) in inflate() 427 state->head->time = hold; in inflate() 433 if (state->head != Z_NULL) { in inflate() 434 state->head->xflags = (int)(hold & 0xff); in inflate() 435 state->head->os = (int)(hold >> 8); in inflate() [all …]
|
| /openbmc/qemu/plugins/ |
| H A D | loader.c | 51 QemuPluginList *head; member 58 .head = QTAILQ_HEAD_INITIALIZER(qemu_plugin_opts.head), 78 static struct qemu_plugin_desc *plugin_find_desc(QemuPluginList *head, in plugin_find_desc() argument 83 QTAILQ_FOREACH(desc, head, entry) { in plugin_find_desc() 109 p = plugin_find_desc(arg->head, value); in plugin_add() 113 QTAILQ_INSERT_TAIL(arg->head, p, entry); in plugin_add() 145 void qemu_plugin_opt_parse(const char *optstr, QemuPluginList *head) in qemu_plugin_opt_parse() argument 154 arg.head = head; in qemu_plugin_opt_parse() 292 int qemu_plugin_load_list(QemuPluginList *head, Error **errp) in qemu_plugin_load_list() argument 303 QTAILQ_FOREACH_SAFE(desc, head, entry, next) { in qemu_plugin_load_list() [all …]
|