/qemu/tests/tcg/hexagon/ |
H A D | misc.c | 413 memcpy(array, init, sizeof(array)); in main() 430 memcpy(array, init, sizeof(array)); in main() 436 memcpy(array, init, sizeof(array)); in main() 442 memcpy(array, init, sizeof(array)); in main() 448 memcpy(array, init, sizeof(array)); in main() 455 memcpy(array, init, sizeof(array)); in main() 461 memcpy(array, init, sizeof(array)); in main() 467 memcpy(array, init, sizeof(array)); in main() 473 memcpy(array, init, sizeof(array)); in main() 480 memcpy(array, init, sizeof(array)); in main() [all …]
|
/qemu/util/ |
H A D | defer-call.c | 77 GArray *array = thread_state->deferred_call_array; in defer_call() local 78 if (!array) { in defer_call() 80 thread_state->deferred_call_array = array; in defer_call() 85 DeferredCall *fns = (DeferredCall *)array->data; in defer_call() 96 for (guint i = 0; i < array->len; i++) { in defer_call() 102 g_array_append_val(array, new_fn); in defer_call() 140 GArray *array = thread_state->deferred_call_array; in defer_call_end() local 141 if (!array) { in defer_call_end() 145 DeferredCall *fns = (DeferredCall *)array->data; in defer_call_end() 147 for (guint i = 0; i < array->len; i++) { in defer_call_end() [all …]
|
H A D | qemu-option.c | 183 GPtrArray *array = g_ptr_array_new(); in qemu_opts_print_help() local 197 g_ptr_array_add(array, g_string_free(str, false)); in qemu_opts_print_help() 201 g_ptr_array_sort(array, (GCompareFunc)qemu_pstrcmp0); in qemu_opts_print_help() 202 if (print_caption && array->len > 0) { in qemu_opts_print_help() 208 } else if (array->len == 0) { in qemu_opts_print_help() 215 for (i = 0; i < array->len; i++) { in qemu_opts_print_help() 216 printf("%s\n", (char *)array->pdata[i]); in qemu_opts_print_help() 218 g_ptr_array_set_free_func(array, g_free); in qemu_opts_print_help() 219 g_ptr_array_free(array, true); in qemu_opts_print_help()
|
/qemu/target/s390x/ |
H A D | cpu_features.h | 86 static inline void clear_be_bit(unsigned int bit_nr, uint8_t *array) in clear_be_bit() argument 88 array[bit_nr / 8] &= ~(0x80 >> (bit_nr % 8)); in clear_be_bit() 90 static inline void set_be_bit(unsigned int bit_nr, uint8_t *array) in set_be_bit() argument 92 array[bit_nr / 8] |= 0x80 >> (bit_nr % 8); in set_be_bit() 94 static inline bool test_be_bit(unsigned int bit_nr, const uint8_t *array) in test_be_bit() argument 96 return array[bit_nr / 8] & (0x80 >> (bit_nr % 8)); in test_be_bit()
|
/qemu/hw/acpi/ |
H A D | aml-build.c | 42 g_array_free(array, true); in build_free_array() 47 g_array_prepend_val(array, val); in build_prepend_byte() 52 g_array_append_val(array, val); in build_append_byte() 62 g_array_append_vals(array, str, len); in build_append_padded_str() 64 g_array_append_val(array, pad); in build_append_padded_str() 237 build_append_byte(array, *s); in build_append_namestringv() 355 build_append_array(array, tmp); in build_append_pkg_length() 439 offset = array->len; in build_append_named_dword() 441 assert(array->len == offset + 4); in build_append_named_dword() 505 build_package(array, op); in build_buffer() [all …]
|
/qemu/qom/ |
H A D | object_interfaces.c | 206 GPtrArray *array; in type_print_class_properties() local 214 array = g_ptr_array_new(); in type_print_class_properties() 221 g_ptr_array_add(array, in type_print_class_properties() 225 g_ptr_array_sort(array, (GCompareFunc)qemu_pstrcmp0); in type_print_class_properties() 226 if (array->len > 0) { in type_print_class_properties() 231 for (i = 0; i < array->len; i++) { in type_print_class_properties() 232 qemu_printf("%s\n", (char *)array->pdata[i]); in type_print_class_properties() 234 g_ptr_array_set_free_func(array, g_free); in type_print_class_properties() 235 g_ptr_array_free(array, true); in type_print_class_properties()
|
/qemu/tests/qtest/ |
H A D | aspeed_hace-test.c | 270 struct AspeedSgList array[] = { in test_sha256_sg() local 286 qtest_memwrite(s, src_addr, array, sizeof(array)); in test_sha256_sg() 321 struct AspeedSgList array[] = { in test_sha512_sg() local 337 qtest_memwrite(s, src_addr, array, sizeof(array)); in test_sha512_sg() 370 struct AspeedSgList array[] = { in test_sha256_accum() local 381 qtest_memwrite(s, src_addr, array, sizeof(array)); in test_sha256_accum() 411 struct AspeedSgList array[] = { in test_sha512_accum() local 422 qtest_memwrite(s, src_addr, array, sizeof(array)); in test_sha512_accum()
|
/qemu/block/ |
H A D | vvfat.c | 100 array->size=array->next=0; in array_free() 107 return array->pointer + index * array->item_size; in array_get() 112 if((index + 1) * array->item_size > array->size) { in array_ensure_allocated() 116 memset(array->pointer + array->size, 0, new_size - array->size); in array_ensure_allocated() 131 if((array->next+count)*array->item_size>array->size) { in array_insert() 133 array->pointer=g_realloc(array->pointer,array->size+increment); in array_insert() 139 array->pointer+index*array->item_size, in array_insert() 140 (array->next-index)*array->item_size); in array_insert() 142 return array->pointer+index*array->item_size; in array_insert() 151 memmove(array->pointer + index * array->item_size, in array_remove_slice() [all …]
|
/qemu/tests/qapi-schema/ |
H A D | returns-array-bad.err | 1 returns-array-bad.json: In command 'oops': 2 returns-array-bad.json:2: 'returns': array type must contain single type name
|
H A D | args-array-empty.err | 1 args-array-empty.json: In command 'oops': 2 args-array-empty.json:2: 'data' member 'empty': array type must contain single type name
|
H A D | args-member-array-bad.err | 1 args-member-array-bad.json: In command 'oops': 2 args-member-array-bad.json:2: 'data' member 'member': array type must contain single type name
|
H A D | args-array-unknown.err | 1 args-array-unknown.json: In command 'oops': 2 args-array-unknown.json:2: command uses unknown type 'NoSuchType'
|
H A D | args-array-unknown.json | 1 # we reject an array for data if it does not contain a known type 2 { 'command': 'oops', 'data': { 'array': [ 'NoSuchType' ] } }
|
H A D | union-array-branch.err | 1 union-array-branch.json: In union 'TestUnion': 2 union-array-branch.json:8: 'data' member 'value1' should be a type name
|
H A D | reserved-type-list.json | 2 # We reserve names ending in 'List' for use by array types. 3 # TODO - we could choose array names to avoid collision with user types,
|
H A D | meson.build | 7 'alternate-array.json', 25 'args-array-empty.json', 26 'args-array-unknown.json', 34 'args-member-array-bad.json', 131 'missing-array-rsqb.json', 163 'returns-array-bad.json', 184 'union-array-branch.json',
|
/qemu/include/gdbstub/ |
H A D | helpers.h | 73 static inline int gdb_get_zeroes(GByteArray *array, size_t len) in gdb_get_zeroes() argument 75 guint oldlen = array->len; in gdb_get_zeroes() 76 g_byte_array_set_size(array, oldlen + len); in gdb_get_zeroes() 77 memset(array->data + oldlen, 0, len); in gdb_get_zeroes()
|
/qemu/hw/nvram/ |
H A D | npcm7xx_otp.c | 96 uint8_t *dst = &s->array[offset]; in npcm7xx_otp_array_write() 139 s->regs[NPCM7XX_OTP_FDATA] = s->array[FADDR_BYTEADDR(faddr)]; in npcm7xx_otp_read_array() 149 s->array[FADDR_BYTEADDR(faddr)] |= (1U << FADDR_BITPOS(faddr)); in npcm7xx_otp_program_array() 271 memcpy(fustrap, &s->array[0], sizeof(fustrap)); in npcm7xx_fuse_array_read() 376 memset(s->array, 0, sizeof(s->array)); in npcm7xx_otp_realize() 389 VMSTATE_UINT8_ARRAY(array, NPCM7xxOTPState, NPCM7XX_OTP_ARRAY_BYTES),
|
/qemu/nbd/ |
H A D | client.c | 1171 NBDExportInfo *array = NULL; in nbd_receive_export_list() local 1204 array = g_renew(NBDExportInfo, array, ++count); in nbd_receive_export_list() 1205 memset(&array[count - 1], 0, sizeof(*array)); in nbd_receive_export_list() 1206 array[count - 1].name = name; in nbd_receive_export_list() 1212 array[i].request_sizes = true; in nbd_receive_export_list() 1239 array = g_new0(NBDExportInfo, 1); in nbd_receive_export_list() 1240 array->name = g_strdup(""); in nbd_receive_export_list() 1241 array->mode = NBD_MODE_OLDSTYLE; in nbd_receive_export_list() 1260 *info = array; in nbd_receive_export_list() 1261 array = NULL; in nbd_receive_export_list() [all …]
|
/qemu/qapi/ |
H A D | introspect.json | 19 # Command query-qmp-schema exposes the QMP wire ABI as an array of 37 # Returns: array of @SchemaInfo, where each element describes an 64 # @array: an array type 77 'data': [ 'builtin', 'enum', 'array', 'object', 'alternate', 105 'array': 'SchemaInfoArray', 134 'object', 'array', 'value' ] } 179 # Additional SchemaInfo members for meta-type 'array'. 181 # @element-type: the array type's element type. 183 # Values of this type are JSON array on the wire.
|
H A D | qapi-util.c | 65 return lookup->array[val]; in qapi_enum_lookup() 78 if (!strcmp(buf, lookup->array[i])) { in qapi_enum_parse()
|
/qemu/storage-daemon/qapi/ |
H A D | qapi-schema.json | 10 # not in the main schema, be aware that array types of types defined in shared 11 # modules are only generated if an array of the respective type is already used 13 # the array type in the main schema, even if it is unused outside of the
|
/qemu/target/sh4/ |
H A D | helper.c | 541 int array = (addr & 0x00800000) >> 23; in cpu_sh4_read_mmaped_itlb_data() local 545 if (array == 0) { in cpu_sh4_read_mmaped_itlb_data() 564 int array = (addr & 0x00800000) >> 23; in cpu_sh4_write_mmaped_itlb_data() local 568 if (array == 0) { in cpu_sh4_write_mmaped_itlb_data() 681 int array = (addr & 0x00800000) >> 23; in cpu_sh4_read_mmaped_utlb_data() local 687 if (array == 0) { in cpu_sh4_read_mmaped_utlb_data() 708 int array = (addr & 0x00800000) >> 23; in cpu_sh4_write_mmaped_utlb_data() local 714 if (array == 0) { in cpu_sh4_write_mmaped_utlb_data()
|
/qemu/docs/devel/ |
H A D | rcu.txt | 236 array example below 345 (or call_rcu) only needs to take place when the array is resized. 348 - ensuring that the old version of the array is available between removal 351 - avoiding mismatches in the read side between the array data and the 352 array size. 355 each resize will allocate a new array and copy the old data into it. 367 Instead, we store the size of the array with the array itself: 378 struct arr *array = qatomic_rcu_read(&global_array); 379 x = i < array->size ? array->data[i] : -1;
|
/qemu/scripts/ |
H A D | analyse-locks-simpletrace.py | 83 acquire_times = np.array(val["acquire_times"]) 89 held_times = np.array(val["held_times"])
|