| /openbmc/qemu/monitor/ |
| H A D | qmp-cmds-control.c | 142 GenericList *tail; in split_off_generic_list() local 144 for (tail = list; tail; tail = tail->next) { in split_off_generic_list() 145 if (splitp(tail)) { in split_off_generic_list() 146 *split_tailp = tail; in split_off_generic_list() 147 split_tailp = &tail->next; in split_off_generic_list() 149 *keep_tailp = tail; in split_off_generic_list() 150 keep_tailp = &tail->next; in split_off_generic_list() 161 strList *tail; in is_in() local 163 for (tail = list; tail; tail = tail->next) { in is_in() 164 if (!strcmp(tail->value, s)) { in is_in() [all …]
|
| /openbmc/u-boot/lib/ |
| H A D | membuff.c | 18 mb->tail = mb->start; in membuff_purge() 39 if (mb->head >= mb->tail) { in membuff_putrawflex() 53 if ((maxlen < 0 || len < maxlen) && mb->tail != mb->start) { in membuff_putrawflex() 62 len = mb->tail - mb->head - 1; in membuff_putrawflex() 109 if (mb->head > mb->tail) { in membuff_getraw() 111 *data = mb->tail; in membuff_getraw() 112 len = mb->head - mb->tail; in membuff_getraw() 120 mb->tail += len; in membuff_getraw() 128 else if (mb->head < mb->tail) { in membuff_getraw() 130 *data = mb->tail; in membuff_getraw() [all …]
|
| H A D | list_sort.c | 25 struct list_head head, *tail = &head; in merge() local 30 tail->next = a; in merge() 33 tail->next = b; in merge() 36 tail = tail->next; in merge() 38 tail->next = a?:b; in merge() 55 struct list_head *tail = head; in merge_and_restore_back_links() local 60 tail->next = a; in merge_and_restore_back_links() 61 a->prev = tail; in merge_and_restore_back_links() 64 tail->next = b; in merge_and_restore_back_links() 65 b->prev = tail; in merge_and_restore_back_links() [all …]
|
| H A D | strto.c | 55 char *tail; in strict_strtoul() local 64 val = simple_strtoul(cp, &tail, base); in strict_strtoul() 65 if (tail == cp) in strict_strtoul() 68 if ((*tail == '\0') || in strict_strtoul() 69 ((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) { in strict_strtoul()
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | qos_external.c | 42 MachineInfoList *tail; in machines_apply_to_node() local 44 for (tail = mach_info; tail; tail = tail->next) { in machines_apply_to_node() 45 machine_apply_to_node(tail->value->name); in machines_apply_to_node() 46 if (tail->value->alias) { in machines_apply_to_node() 47 machine_apply_to_node(tail->value->alias); in machines_apply_to_node() 62 ObjectTypeInfoList *tail; in types_apply_to_node() local 64 for (tail = type_info; tail; tail = tail->next) { in types_apply_to_node() 65 type_apply_to_node(tail->value->name, tail->value->abstract); in types_apply_to_node()
|
| H A D | e1000e.c | 42 uint32_t tail = e1000e_macreg_read(d, E1000_TDT); in e1000e_tx_ring_push() local 46 d->tx_ring + tail * E1000_RING_DESC_LEN, in e1000e_tx_ring_push() 48 e1000e_macreg_write(d, E1000_TDT, (tail + 1) % len); in e1000e_tx_ring_push() 52 d->tx_ring + tail * E1000_RING_DESC_LEN, in e1000e_tx_ring_push() 59 uint32_t tail = e1000e_macreg_read(d, E1000_RDT); in e1000e_rx_ring_push() local 63 d->rx_ring + tail * E1000_RING_DESC_LEN, in e1000e_rx_ring_push() 65 e1000e_macreg_write(d, E1000_RDT, (tail + 1) % len); in e1000e_rx_ring_push() 69 d->rx_ring + tail * E1000_RING_DESC_LEN, in e1000e_rx_ring_push()
|
| /openbmc/qemu/tests/qtest/ |
| H A D | qmp-cmd-test.c | 136 SchemaInfoList *tail; in qmp_schema_init() local 153 for (tail = schema->list; tail; tail = tail->next) { in qmp_schema_init() 154 g_hash_table_insert(schema->hash, tail->value->name, tail->value); in qmp_schema_init() 171 SchemaInfoObjectMemberList *tail; in object_type_has_mandatory_members() local 175 for (tail = type->u.object.members; tail; tail = tail->next) { in object_type_has_mandatory_members() 176 if (!tail->value->q_default) { in object_type_has_mandatory_members() 186 SchemaInfoList *tail; in add_query_tests() local 191 for (tail = schema->list; tail; tail = tail->next) { in add_query_tests() 192 si = tail->value; in add_query_tests()
|
| /openbmc/qemu/qapi/ |
| H A D | qapi-type-helpers.c | 27 const strList *tail; in strv_from_str_list() local 31 for (tail = list; tail != NULL; tail = tail->next) { in strv_from_str_list() 32 strv[i++] = g_strdup(tail->value); in strv_from_str_list()
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-opts-visitor.c | 180 intList *tail; in test_opts_range_unvisited() local 194 tail = list; in test_opts_range_unvisited() 195 visit_type_int(v, NULL, &tail->value, &error_abort); in test_opts_range_unvisited() 196 g_assert_cmpint(tail->value, ==, 0); in test_opts_range_unvisited() 197 tail = (intList *)visit_next_list(v, (GenericList *)tail, sizeof(*list)); in test_opts_range_unvisited() 198 g_assert(tail); in test_opts_range_unvisited() 199 visit_type_int(v, NULL, &tail->value, &error_abort); in test_opts_range_unvisited() 200 g_assert_cmpint(tail->value, ==, 1); in test_opts_range_unvisited() 201 tail = (intList *)visit_next_list(v, (GenericList *)tail, sizeof(*list)); in test_opts_range_unvisited() 202 g_assert(tail); in test_opts_range_unvisited() [all …]
|
| H A D | test-clone-visitor.c | 155 UserDefOneList *src, *dst, *tail; in test_clone_complex3() local 177 tail = dst; in test_clone_complex3() 178 elt = tail->value; in test_clone_complex3() 182 tail = tail->next; in test_clone_complex3() 183 elt = tail->value; in test_clone_complex3() 187 tail = tail->next; in test_clone_complex3() 188 elt = tail->value; in test_clone_complex3() 193 g_assert(!tail->next); in test_clone_complex3()
|
| H A D | test-string-input-visitor.c | 72 int64List *tail; in check_ilist() local 76 tail = res; in check_ilist() 78 g_assert(tail); in check_ilist() 79 g_assert_cmpint(tail->value, ==, expected[i]); in check_ilist() 80 tail = tail->next; in check_ilist() 82 g_assert(!tail); in check_ilist() 90 uint64List *tail; in check_ulist() local 94 tail = res; in check_ulist() 96 g_assert(tail); in check_ulist() 97 g_assert_cmpuint(tail->value, ==, expected[i]); in check_ulist() [all …]
|
| /openbmc/qemu/hw/net/rocker/ |
| H A D | rocker_desc.c | 29 uint32_t tail; member 101 return ring->head == ring->tail; in desc_ring_empty() 137 ring->head = ring->tail = 0; in desc_ring_set_size() 187 return desc_read(ring, ring->tail); in __desc_ring_fetch_desc() 196 return desc_read(ring, ring->tail); in desc_ring_fetch_desc() 202 DescInfo *info = &ring->info[ring->tail]; in __desc_ring_post_desc() 205 desc_write(ring, ring->tail); in __desc_ring_post_desc() 206 ring->tail = (ring->tail + 1) % ring->size; in __desc_ring_post_desc() 240 while (ring->head != ring->tail) { in ring_pump() 254 uint32_t tail = ring->tail; in desc_ring_set_head() local [all …]
|
| /openbmc/qemu/include/qapi/ |
| H A D | util.h | 53 #define QAPI_LIST_APPEND(tail, element) do { \ argument 54 *(tail) = g_malloc0(sizeof(**(tail))); \ 55 (*(tail))->value = (element); \ 56 (tail) = &(*(tail))->next; \
|
| /openbmc/qemu/util/ |
| H A D | yank.c | 156 YankInstanceList *tail; in qmp_yank() local 161 for (tail = instances; tail; tail = tail->next) { in qmp_yank() 162 entry = yank_find_entry(tail->value); in qmp_yank() 168 for (tail = instances; tail; tail = tail->next) { in qmp_yank() 169 entry = yank_find_entry(tail->value); in qmp_yank()
|
| /openbmc/libpldm/tools/ |
| H A D | pd.c | 20 const char *tail) in pd_print_bytes() argument 34 if (tail) { in pd_print_bytes() 35 printf("%s", tail); in pd_print_bytes() 41 const char *tail) in pd_print_variable_field() argument 51 if (tail) { in pd_print_variable_field() 52 printf("%s", tail); in pd_print_variable_field() 58 const char *tail) in pd_print_typed_string() argument 62 pd_print_variable_field(head, string, tail); in pd_print_typed_string() 72 const char *tail) in pd_print_descriptor() argument 94 if (tail) { in pd_print_descriptor() [all …]
|
| /openbmc/obmc-console/ |
| H A D | ringbuffer.c | 64 rbc->pos = rb->tail; in ringbuffer_consumer_register() 118 if (rbc->pos <= rbc->rb->tail) { in ringbuffer_len() 119 return rbc->rb->tail - rbc->pos; in ringbuffer_len() 121 return rbc->rb->tail + rbc->rb->size - rbc->pos; in ringbuffer_len() 183 wlen = min(len, rb->size - rb->tail); in ringbuffer_queue() 184 memcpy(rb->buf + rb->tail, data, wlen); in ringbuffer_queue() 185 rb->tail = (rb->tail + wlen) % rb->size; in ringbuffer_queue() 190 rb->tail += len; in ringbuffer_queue() 220 if (pos <= rb->tail) { in ringbuffer_dequeue_peek() 221 len = rb->tail - pos; in ringbuffer_dequeue_peek()
|
| /openbmc/u-boot/fs/jffs2/ |
| H A D | mergesort.c | 15 struct b_node *p, *q, *e, **tail; in sort_list() local 22 tail = &list->listHead; in sort_list() 45 *tail = e; in sort_list() 46 tail = &e->next; in sort_list()
|
| /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 140 jr->tail = 0; in jr_sw_cleanup() 262 int tail = jr->tail; in jr_dequeue() local 272 while (sec_in32(®s->orsf) && CIRC_CNT(jr->head, jr->tail, in jr_dequeue() 284 addr_lo = (uint32_t *)(&jr->output_ring[jr->tail].desc); in jr_dequeue() 285 addr_hi = (uint32_t *)(&jr->output_ring[jr->tail].desc) + 1; in jr_dequeue() 287 addr_hi = (uint32_t *)(&jr->output_ring[jr->tail].desc); in jr_dequeue() 288 addr_lo = (uint32_t *)(&jr->output_ring[jr->tail].desc) + 1; in jr_dequeue() 296 addr = (uint32_t *)&jr->output_ring[jr->tail].desc; in jr_dequeue() [all …]
|
| /openbmc/u-boot/scripts/ |
| H A D | gcc-version.sh | 25 MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1) 26 MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1) 28 PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -xc - | tail -n 1)
|
| /openbmc/openbmc/poky/scripts/contrib/bb-perf/ |
| H A D | bb-matrix-plot.sh | 91 MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sed 's/^0*//' | sort -n | uniq | head -n1) 92 MAX=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sed 's/^0*//' | sort -n | uniq | tail -n1) 94 MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sed 's/^0*//' | sort -n | uniq | head -n1) 95 MAX=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sed 's/^0*//' | sort -n | uniq | tail -n1)
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/ |
| H A D | 0002-tests-Use-head-n1-for-busybox-compatibility.patch | 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`" 57 - my_logline="`tail -2 $watch_log | head -1`" 58 + my_logline="`tail -2 $watch_log | head -n1`" 60 my_logline="`tail -1 $watch_log`"
|
| /openbmc/qemu/system/ |
| H A D | tpm.c | 200 TPMInfoList *head = NULL, **tail = &head; in qmp_query_tpm() local 207 QAPI_LIST_APPEND(tail, tpm_backend_query_tpm(drv)); in qmp_query_tpm() 216 TpmTypeList *head = NULL, **tail = &head; in qmp_query_tpm_types() local 222 QAPI_LIST_APPEND(tail, i); in qmp_query_tpm_types() 229 TpmModelList *head = NULL, **tail = &head; in qmp_query_tpm_models() local 235 QAPI_LIST_APPEND(tail, c->model); in qmp_query_tpm_models()
|
| /openbmc/u-boot/cmd/ |
| H A D | ximg.c | 190 size_t tail; in do_imgextract() local 197 tail = (l > CHUNKSZ) ? CHUNKSZ : l; in do_imgextract() 199 memmove(to, from, tail); in do_imgextract() 200 to += tail; in do_imgextract() 201 from += tail; in do_imgextract() 202 l -= tail; in do_imgextract()
|
| /openbmc/qemu/host/include/i386/host/ |
| H A D | bufferiszero.c.inc | 18 /* Unaligned loads at head/tail. */ 21 /* Align head/tail to 16-byte boundaries. */ 26 /* Collect a partial block at tail end. */ 37 * With the head and tail removed, e - p >= 14, so the loop 64 /* Unaligned loads at head/tail. */ 67 /* Align head/tail to 32-byte boundaries. */ 72 /* Collect a partial block at tail end. */
|
| /openbmc/qemu/include/standard-headers/linux/ |
| H A D | virtio_iommu.h | 80 struct virtio_iommu_req_tail tail; member 88 struct virtio_iommu_req_tail tail; member 106 struct virtio_iommu_req_tail tail; member 115 struct virtio_iommu_req_tail tail; member
|