Home
last modified time | relevance | path

Searched full:head (Results 1 – 25 of 1146) sorted by relevance

12345678910>>...46

/openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/
H A Dsys-queue.h45 * head of the list. Elements being removed from the head of the list
55 * or after an existing element or at the head of the list. A list
58 * A simple queue is headed by a pair of pointers, one the head of the
61 * head of the list. New elements can be added to the list after
62 * an existing element, at the head of the list, or at the end of the
65 * A tail queue is headed by a pair of pointers, one to the head of the
69 * after an existing element, at the head of the list, or at the end of
72 * A circle queue is headed by a pair of pointers, one to the head of the
76 * an existing element, at the head of the list, or at the end of the list.
111 #define SLIST_HEAD_INITIALIZER(head) \ argument
[all …]
H A Dsys-tree.h78 #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/u-boot/include/linux/
H A Dlist.h56 * @head: list head to add it after
58 * Insert a new entry after the specified head.
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()
69 * @head: list head to add it before
71 * Insert a new entry before the specified head.
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()
139 * list_move - delete from one list and add as another's head
141 * @head: the head that will precede our entry
[all …]
/openbmc/qemu/include/qemu/
H A Dqueue.h51 * head of the list. Elements being removed from the head of the list
61 * or after an existing element or at the head of the list. A list
64 * A simple queue is headed by a pair of pointers, one the head of the
67 * head of the list. New elements can be added to the list after
68 * an existing element, at the head of the list, or at the end of the
71 * A tail queue is headed by a pair of pointers, one to the head of the
75 * after an existing element, at the head of the list, or at the end of
89 #define QLIST_HEAD_INITIALIZER(head) \ argument
101 #define QLIST_INIT(head) do { \ argument
102 (head)->lh_first = NULL; \
[all …]
H A Drcu_queue.h34 #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
84 /* Upon publication of the head->first value, list readers
85 * will see the new element when following the head, but may
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); \
[all …]
/openbmc/u-boot/scripts/kconfig/
H A Dlist.h46 * @head: the head for your list.
49 #define list_for_each_entry(pos, head, member) \ argument
50 for (pos = list_entry((head)->next, typeof(*pos), member); \
51 &pos->member != (head); \
58 * @head: the head for your list.
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); \
69 * @head: the list to test.
71 static inline int list_empty(const struct list_head *head) in list_empty() argument
[all …]
/openbmc/u-boot/lib/
H A Dmembuff.c16 /* set mb->head and mb->tail so the buffers look empty */ in membuff_purge()
17 mb->head = mb->start; in membuff_purge()
26 /* always write to 'mb->head' */ in membuff_putrawflex()
29 *offsetp = mb->head - mb->start; in membuff_putrawflex()
36 * if head is ahead of tail, we can write from head until the end of in membuff_putrawflex()
39 if (mb->head >= mb->tail) { in membuff_putrawflex()
41 len = mb->end - mb->head - 1; in membuff_putrawflex()
45 /* update the head pointer to mark these bytes as written */ in membuff_putrawflex()
47 mb->head += len; in membuff_putrawflex()
56 mb->head = mb->start; in membuff_putrawflex()
[all …]
H A Dlist_sort.c18 * sentinel head node, "prev" links not maintained.
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()
92 * @head: the list to sort
103 void list_sort(void *priv, struct list_head *head, in list_sort() argument
113 if (list_empty(head)) in list_sort()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-fifo.c31 * head --v-- tail used = 0 in test_fifo8_pop_bufptr_wrap()
37 * head --v ]-- tail used = 4 in test_fifo8_pop_bufptr_wrap()
42 * head --v ]-- tail used = 2 in test_fifo8_pop_bufptr_wrap()
51 * tail --]v-- head used = 8 in test_fifo8_pop_bufptr_wrap()
56 * head --v ]-- tail used = 2 in test_fifo8_pop_bufptr_wrap()
77 * head --v-- tail used = 0 in test_fifo8_pop_bufptr()
83 * head --v ]-- tail used = 4 in test_fifo8_pop_bufptr()
88 * head --v ]-- tail used = 2 in test_fifo8_pop_bufptr()
109 * head --v-- tail used = 0 in test_fifo8_peek_bufptr_wrap()
115 * head --v ]-- tail used = 4 in test_fifo8_peek_bufptr_wrap()
[all …]
/openbmc/qemu/util/
H A Dfifo8.c22 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/hw/net/rocker/
H A Drocker_desc.c28 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()
236 * head (the empty ring condition). in ring_pump()
240 while (ring->head != ring->tail) { in ring_pump()
255 uint32_t head = ring->head; in desc_ring_set_head() local
262 DPRINTF("ERROR: trying to set head (%d) past ring[%d] size (%d)\n", in desc_ring_set_head()
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()
270 "(head %d, tail %d, new head %d)\n", in desc_ring_set_head()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/
H A D0002-tests-Use-head-n1-for-busybox-compatibility.patch4 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/openbmc/meta-openembedded/meta-oe/recipes-benchmark/memtester/files/
H A DMakefile.patch4 …] memtester: Added patch to Makefile to change no-longer-supported 'head -1' syntax to 'head -n 1'.
21 - echo CC=\'`head -1 conf-cc`\'; \
22 - echo LD=\'`head -1 conf-ld`\' \
23 + echo CC=\'`head -n 1 conf-cc`\'; \
24 + echo LD=\'`head -n 1 conf-ld`\' \
/openbmc/qemu/qobject/
H A Dqlist.c33 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/qemu/system/
H A Dmemory_mapping.c30 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 …]
/openbmc/qemu/monitor/
H A Dqemu-config-qmp.c45 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 Dfdc-test.c120 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/u-boot/arch/x86/
H A DMakefile5 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/openbmc/poky/meta/recipes-extended/lsb/lsb-release/
H A D0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch4 Subject: [PATCH] fix lsb_release to work with busybox head and find
17 - TMP_DISTRIB_DESC=$(head -1 $FILENAME 2>/dev/null)
18 + TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null)
30 - | head -1 ) # keep one of the files found (if many)
32 + | head -n 1 ) # keep one of the files found (if many)
/openbmc/libpldm/tools/
H A Dpd.c19 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/openbmc/meta-openembedded/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/
H A D0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch30 @@ -292,7 +292,7 @@ static unsigned long *find_level(struct btree_head *head, struct btree_geo *geo,
39 @@ -311,7 +311,7 @@ static int btree_grow(struct btree_head *head, struct btree_geo *geo)
41 if (head->node) {
42 fill = getfill(geo, head->node, 0);
43 - setkey(geo, node, bkey(geo, head->node, fill - 1), 0);
44 + _setkey(geo, node, bkey(geo, head->node, fill - 1), 0);
45 setval(geo, node, (unsigned long)head->node, 0);
47 head->node = node;
48 @@ -342,16 +342,16 @@ static void steal_l(struct btree_head *head, struct btree_geo *geo, int level,
68 @@ -366,14 +366,14 @@ static void steal_r(struct btree_head *head, struct btree_geo *geo, int level,
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dlibqos-malloc.c32 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/bmcweb/http/
H A Dverb.hpp18 Head, enumerator
36 case boost::beast::http::verb::head: in httpVerbFromBoost()
37 return HttpVerb::Head; in httpVerbFromBoost()
59 case HttpVerb::Head: in httpVerbToString()
60 return "HEAD"; in httpVerbToString()
/openbmc/u-boot/drivers/crypto/fsl/
H A Djr.c18 #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/qemu/include/standard-headers/linux/
H A Dvirtio_iommu.h75 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

12345678910>>...46