Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 2171) sorted by relevance

12345678910>>...87

/qemu/tests/unit/
A Dtest-hbitmap.c107 data->old_size = data->size; in hbitmap_test_truncate_impl()
110 if (data->size == data->old_size) { in hbitmap_test_truncate_impl()
116 data->bits = g_renew(unsigned long, data->bits, n); in hbitmap_test_truncate_impl()
123 if (data->size < data->old_size) { in hbitmap_test_truncate_impl()
137 if (data->hb) { in hbitmap_test_teardown()
469 size_t size = MIN(data->size, data->old_size); in hbitmap_test_check_boundary_bits()
666 hbitmap_serialize_part(data->hb, buf, 0, data->size); in hbitmap_test_serialize_range()
684 hbitmap_serialize_part(data->hb, buf, 0, data->size); in hbitmap_test_serialize_range()
688 hbitmap_deserialize_part(data->hb, buf, 0, data->size, true); in hbitmap_test_serialize_range()
809 hbitmap_set(data->hb, 0, data->size); in test_hbitmap_iter_and_reset()
[all …]
A Dtest-aio.c59 if (++data->n < data->max) { in bh_test_cb()
67 if (++data->n < data->max) { in timer_test_cb()
80 if (++data->n < data->max) { in bh_delete_cb()
96 if (data->auto_set && data->active) { in event_ready_cb()
112 data.bh = aio_bh_new(ctx, bh_test_cb, &data); in test_bh_schedule()
128 data.bh = aio_bh_new(ctx, bh_test_cb, &data); in test_bh_schedule10()
152 data.bh = aio_bh_new(ctx, bh_test_cb, &data); in test_bh_cancel()
168 data.bh = aio_bh_new(ctx, bh_test_cb, &data); in test_bh_delete()
245 data.bh = aio_bh_new(ctx, bh_test_cb, &data); in test_bh_flush()
451 data.bh = aio_bh_new(ctx, bh_test_cb, &data); in test_source_bh_schedule()
[all …]
A Dtest-thread-pool.c38 g_assert(data->ret == -EINPROGRESS || data->ret == -ECANCELED); in done_cb()
39 data->ret = ret; in done_cb()
40 data->aiocb = NULL; in done_cb()
59 data.aiocb = thread_pool_submit_aio(worker_cb, &data, in test_submit_aio()
78 data->n = 0; in co_test_cb()
85 data->ret = 0; in co_test_cb()
122 data[i].n = 0; in test_submit_many()
124 thread_pool_submit_aio(worker_cb, &data[i], done_cb, &data[i]); in test_submit_many()
150 data[i].n = 0; in do_test_cancel()
152 data[i].aiocb = thread_pool_submit_aio(long_cb, &data[i], in do_test_cancel()
[all …]
A Dtest-crypto-xts.c361 T, data->PTLEN, out, data->PTX); in test_xts()
363 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts()
369 T, data->PTLEN, out, data->CTX); in test_xts()
371 g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); in test_xts()
403 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts_split()
440 memcpy(in, data->PTX, data->PTLEN); in test_xts_unaligned()
450 memcpy(in + BAD_ALIGN, data->PTX, data->PTLEN); in test_xts_unaligned()
460 memcpy(in, data->PTX, data->PTLEN); in test_xts_unaligned()
471 memcpy(in, data->CTX, data->PTLEN); in test_xts_unaligned()
481 memcpy(in + BAD_ALIGN, data->CTX, data->PTLEN); in test_xts_unaligned()
[all …]
A Dtest-smp-parse.c890 check_parse(ms, &data->config, &data->expect_prefer_sockets, in smp_parse_test()
894 check_parse(ms, &data->config, &data->expect_prefer_cores, in smp_parse_test()
1014 SMPTestData data = {}; in test_generic_valid() local
1033 SMPTestData data = {}; in test_generic_invalid() local
1052 SMPTestData data = {}; in test_with_modules() local
1102 SMPTestData data = {}; in test_with_dies() local
1152 SMPTestData data = {}; in test_with_modules_dies() local
1213 SMPTestData data = {}; in test_with_clusters() local
1263 SMPTestData data = {}; in test_with_books() local
1313 SMPTestData data = {}; in test_with_drawers() local
[all …]
A Dtest-string-output-visitor.c28 data->human = human; in visitor_output_setup_internal()
29 data->ov = string_output_visitor_new(human, &data->str); in visitor_output_setup_internal()
30 g_assert(data->ov); in visitor_output_setup_internal()
49 data->ov = NULL; in visitor_output_teardown()
50 g_free(data->str); in visitor_output_teardown()
51 data->str = NULL; in visitor_output_teardown()
56 visit_complete(data->ov, &data->str); in visitor_get()
57 g_assert(data->str); in visitor_get()
58 return data->str; in visitor_get()
78 if (data->human) { in test_visitor_out_int()
[all …]
A Dtest-io-task.c82 g_assert(data.err == NULL); in test_task_complete()
91 data->freed = true; in task_data_free()
108 g_assert(data.err == NULL); in test_task_data_free()
130 g_assert(data.err == err); in test_task_failure()
132 error_free(data.err); in test_task_failure()
152 if (data->fail) { in test_task_thread_worker()
186 &data, in test_task_thread_complete()
195 g_main_loop_run(data.loop); in test_task_thread_complete()
201 g_assert(data.err == NULL); in test_task_thread_complete()
224 data.fail = true; in test_task_thread_failure()
[all …]
A Dio-channel-helpers.c42 QIOChannelTest *data = opaque; in test_io_thread_writer() local
56 QIOChannelTest *data = opaque; in test_io_thread_reader() local
58 qio_channel_readv_all(data->dst, in test_io_thread_reader()
79 data->input = g_new0(char, data->len); in qio_channel_test_new()
80 data->output = g_new0(gchar, data->len); in qio_channel_test_new()
88 data->niov = CHUNK_COUNT; in qio_channel_test_new()
89 data->inputv = g_new0(struct iovec, data->niov); in qio_channel_test_new()
90 data->outputv = g_new0(struct iovec, data->niov); in qio_channel_test_new()
93 data->inputv[i].iov_base = data->input + offset; in qio_channel_test_new()
94 data->outputv[i].iov_base = data->output + offset; in qio_channel_test_new()
[all …]
A Dtest-string-input-visitor.c26 if (data->v) { in visitor_input_teardown()
27 visit_free(data->v); in visitor_input_teardown()
28 data->v = NULL; in visitor_input_teardown()
39 visitor_input_teardown(data, NULL); in visitor_input_test_init()
42 g_assert(data->v); in visitor_input_test_init()
43 return data->v; in visitor_input_test_init()
63 v = visitor_input_test_init(data, ""); in test_visitor_in_int()
127 v = visitor_input_test_init(data, in test_visitor_in_intList()
134 v = visitor_input_test_init(data, in test_visitor_in_intList()
236 v = visitor_input_test_init(data, in test_visitor_in_uintList()
[all …]
A Dtest-qobject-output-visitor.c33 data->ov = qobject_output_visitor_new(&data->obj); in visitor_output_setup()
34 g_assert(data->ov); in visitor_output_setup()
40 visit_free(data->ov); in visitor_output_teardown()
41 data->ov = NULL; in visitor_output_teardown()
43 data->obj = NULL; in visitor_output_teardown()
48 visit_complete(data->ov, &data->obj); in visitor_get()
49 g_assert(data->obj); in visitor_get()
50 return data->obj; in visitor_get()
311 visitor_reset(data); in test_visitor_out_any()
377 visitor_reset(data); in test_visitor_out_union_in_union()
[all …]
A Dtest-crypto-akcipher.c889 data->pub_key, data->pub_key_len, in test_akcipher()
894 data->priv_key, data->priv_key_len, in test_akcipher()
901 g_assert(qcrypto_akcipher_encrypt(pub_key, data->plaintext, data->plen, in test_akcipher()
915 g_assert(!memcmp(plaintext, data->plaintext, data->plen)); in test_akcipher()
920 g_assert(qcrypto_akcipher_sign(priv_key, data->dgst, data->dlen, in test_akcipher()
927 g_assert(qcrypto_akcipher_verify(pub_key, data->signature, data->slen, in test_akcipher()
928 data->dgst, data->dlen, in test_akcipher()
931 data->dgst, data->dlen, in test_akcipher()
936 data->dgst, data->dlen, NULL) != 0); in test_akcipher()
954 &opt, data->key_type, data->key, data->keylen, NULL); in test_rsakey()
[all …]
A Dtest-qobject-input-visitor.c37 qobject_unref(data->obj); in visitor_input_teardown()
38 data->obj = NULL; in visitor_input_teardown()
40 if (data->qiv) { in visitor_input_teardown()
41 visit_free(data->qiv); in visitor_input_teardown()
42 data->qiv = NULL; in visitor_input_teardown()
53 visitor_input_teardown(data, NULL); in test_init_internal()
55 data->obj = obj; in test_init_internal()
58 data->qiv = qobject_input_visitor_new_keyval(data->obj); in test_init_internal()
60 data->qiv = qobject_input_visitor_new(data->obj); in test_init_internal()
62 g_assert(data->qiv); in test_init_internal()
[all …]
/qemu/tests/qtest/
A Dbios-tables-test.c259 const char *ext = data->variant ? data->variant : ""; in dump_aml_files()
397 const char *ext = data->variant ? data->variant : ""; in load_expected_aml()
802 if (data->uefi_fl1 && data->uefi_fl2) { /* use UEFI */ in test_acpi_load_tables()
805 data->ram_start, data->scan_len); in test_acpi_load_tables()
808 data->rsdp_addr = acpi_find_rsdp_address(data->qts); in test_acpi_load_tables()
822 if (data->uefi_fl1 && data->uefi_fl2) { /* use UEFI */ in test_acpi_create_args()
832 data->machine, data->machine_param ?: "", in test_acpi_create_args()
834 data->uefi_fl1, data->uefi_fl2, data->cd, params ? params : ""); in test_acpi_create_args()
840 data->machine, data->machine_param ?: "", in test_acpi_create_args()
849 data->machine, data->machine_param ?: "", in test_acpi_create_args()
[all …]
A Dcpu-plug-test.c92 data->device_model = g_strdup_printf("%s-%s-cpu", data->cpu_model, in add_pc_test_case()
95 data->cores = 3; in add_pc_test_case()
97 data->maxcpus = data->sockets * data->cores * data->threads; in add_pc_test_case()
100 mname, data->sockets, data->cores, in add_pc_test_case()
101 data->threads, data->maxcpus); in add_pc_test_case()
123 data->maxcpus = data->sockets * data->cores * data->threads; in add_pseries_test_case()
126 mname, data->sockets, data->cores, in add_pseries_test_case()
127 data->threads, data->maxcpus); in add_pseries_test_case()
149 data->maxcpus = data->sockets * data->cores * data->threads; in add_s390x_test_case()
152 mname, data->sockets, data->cores, in add_s390x_test_case()
[all …]
/qemu/hw/display/
A Dpl110_template.h41 uint32_t data; in glue() local
69 uint32_t data; in glue() local
97 uint32_t data; in glue() local
125 uint32_t data; in glue() local
148 uint32_t data; in glue() local
153 data = bswap32(data); in glue()
194 uint32_t data; in glue() local
225 uint32_t data; in glue() local
230 data = bswap32(data); in glue()
263 uint32_t data; in glue() local
[all …]
A Dati.c144 uint8_t data[1024]; in ati_cursor_define() local
164 &data[512], 1, &data[0]); in ati_cursor_define()
237 bool c = (data & BIT(base + 17) ? !!(data & BIT(base + 1)) : 1); in ati_i2c()
238 bool d = (data & BIT(base + 16) ? !!(data & BIT(base)) : 1); in ati_i2c()
243 data &= ~0xf00ULL; in ati_i2c()
250 return data; in ati_i2c()
525 *reg = data; in ati_reg_write_offs()
678 data = bswap32(data) >> 8; in ati_mm_write()
680 data >>= 8; in ati_mm_write()
682 data >>= 8; in ati_mm_write()
[all …]
/qemu/tests/qtest/libqos/
A Di2c-omap.c46 uint16_t data = addr; in omap_i2c_set_slave_addr() local
57 uint16_t data; in omap_i2c_send() local
61 data = len; in omap_i2c_send()
64 data = OMAP_I2C_CON_I2C_EN | in omap_i2c_send()
89 data = buf[0]; in omap_i2c_send()
101 uint16_t data, stat; in omap_i2c_recv() local
106 data = len; in omap_i2c_recv()
109 data = OMAP_I2C_CON_I2C_EN | in omap_i2c_recv()
143 buf[0] = data & 0xff; in omap_i2c_recv()
148 buf[1] = data >> 8; in omap_i2c_recv()
[all …]
/qemu/tests/qemu-iotests/
A D146.out5 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c…
9 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c…
13 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c…
17 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c…
21 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c…
25 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c…
420 [{ "start": 0, "length": 4295467008, "depth": 0, "present": true, "zero": true, "data": false, "com…
424 [{ "start": 0, "length": 4295467008, "depth": 0, "present": true, "zero": true, "data": false, "com…
428 [{ "start": 0, "length": 4295467008, "depth": 0, "present": true, "zero": true, "data": false, "com…
436 [{ "start": 0, "length": 4294967296, "depth": 0, "present": true, "zero": true, "data": false, "com…
[all …]
/qemu/target/loongarch/
A Dcpu.c396 data = FIELD_DP32(data, CPUCFG1, UAL, 1); in loongarch_la464_initfn()
397 data = FIELD_DP32(data, CPUCFG1, RI, 1); in loongarch_la464_initfn()
398 data = FIELD_DP32(data, CPUCFG1, EP, 1); in loongarch_la464_initfn()
400 data = FIELD_DP32(data, CPUCFG1, HP, 1); in loongarch_la464_initfn()
405 data = FIELD_DP32(data, CPUCFG2, FP, 1); in loongarch_la464_initfn()
409 data = FIELD_DP32(data, CPUCFG2, LSX, 1), in loongarch_la464_initfn()
414 data = FIELD_DP32(data, CPUCFG2, LAM, 1); in loongarch_la464_initfn()
495 data = FIELD_DP32(data, CPUCFG1, UAL, 1); in loongarch_la132_initfn()
496 data = FIELD_DP32(data, CPUCFG1, RI, 0); in loongarch_la132_initfn()
497 data = FIELD_DP32(data, CPUCFG1, EP, 0); in loongarch_la132_initfn()
[all …]
/qemu/tests/qapi-schema/
A Dqapi-schema-test.json36 'data': { } }
48 'data': { 'string': 'str',
61 'data': { 'string1': 'str',
66 'data': { 'string0': 'str',
208 'data': {
221 'data': { } }
254 'data': { 'foo': 'int',
275 'data': { 'foo': 'int',
285 'data': 'TestIfStruct',
293 'data': 'TestIfStruct',
[all …]
/qemu/replay/
A Dreplay-input.c30 key = evt->u.key.data; in replay_save_input_event()
48 btn = evt->u.btn.data; in replay_save_input_event()
53 move = evt->u.rel.data; in replay_save_input_event()
58 move = evt->u.abs.data; in replay_save_input_event()
63 mtt = evt->u.mtt.data; in replay_save_input_event()
90 evt.u.key.data = &key; in replay_read_input_event()
95 evt.u.key.data->key->u.number.data = replay_get_qword(); in replay_read_input_event()
99 evt.u.key.data->key->u.qcode.data = (QKeyCode)replay_get_dword(); in replay_read_input_event()
108 evt.u.btn.data = &btn; in replay_read_input_event()
113 evt.u.rel.data = &rel; in replay_read_input_event()
[all …]
/qemu/target/i386/whpx/
A Dwhpx-apic.c25 uint32_t data; member
36 kapic->fields[0x2].data = s->id << 24; in whpx_put_apic_state()
38 kapic->fields[0x8].data = s->tpr; in whpx_put_apic_state()
48 kapic->fields[0x28].data = s->esr; in whpx_put_apic_state()
49 kapic->fields[0x30].data = s->icr[0]; in whpx_put_apic_state()
50 kapic->fields[0x31].data = s->icr[1]; in whpx_put_apic_state()
65 s->tpr = kapic->fields[0x8].data; in whpx_get_apic_state()
66 s->arb_id = kapic->fields[0x9].data; in whpx_get_apic_state()
76 s->esr = kapic->fields[0x28].data; in whpx_get_apic_state()
189 uint32_t data = msg->data; in whpx_send_msi() local
[all …]
/qemu/hw/tpm/
A Dtpm_tis_i2c.c145 i2cst->data[1] = data; in tpm_tis_i2c_set_data()
146 i2cst->data[2] = data >> 8; in tpm_tis_i2c_set_data()
147 i2cst->data[3] = data >> 16; in tpm_tis_i2c_set_data()
148 i2cst->data[4] = data >> 24; in tpm_tis_i2c_set_data()
213 memset(i2cst->data, 0, sizeof(i2cst->data)); in tpm_tis_i2c_clear_data()
221 uint32_t data; in tpm_tis_i2c_tpm_send() local
251 data = i2cst->data[1]; in tpm_tis_i2c_tpm_send()
252 data |= i2cst->data[2] << 8; in tpm_tis_i2c_tpm_send()
253 data |= i2cst->data[3] << 16; in tpm_tis_i2c_tpm_send()
254 data |= i2cst->data[4] << 24; in tpm_tis_i2c_tpm_send()
[all …]
/qemu/ui/
A Dcursor.c54 c->data[pixel] = ctab[idx]; in cursor_parse_xpm()
63 uint32_t *data = c->data; in cursor_print_ascii_art() local
68 for (x = 0; x < c->width; x++, data++) { in cursor_print_ascii_art()
135 uint32_t *data = c->data; in cursor_set_mono() local
152 *data = inverted; in cursor_set_mono()
155 *data = 0x00000000; in cursor_set_mono()
158 *data = 0x00000000; in cursor_set_mono()
179 data = c->data; in cursor_set_mono()
191 data = c->data; in cursor_set_mono()
193 if (*data == inverted) { in cursor_set_mono()
[all …]
/qemu/tests/migration/guestperf/
A Dprogress.py60 def deserialize(cls, data): argument
64 data["total_bytes"],
67 data["normal_pages"],
68 data["normal_bytes"],
71 data["iterations"])
118 def deserialize(cls, data): argument
120 data["status"],
122 data["now"],
123 data["duration"],
124 data["downtime"],
[all …]

Completed in 92 milliseconds

12345678910>>...87