Home
last modified time | relevance | path

Searched full:data (Results 1 – 25 of 3244) sorted by relevance

12345678910>>...130

/qemu/tests/unit/
H A Dtest-hbitmap.c32 /* Check that the HBitmap and the shadow bitmap contain the same data,
35 static void hbitmap_test_check(TestHBitmapData *data, in hbitmap_test_check() argument
44 hbitmap_iter_init(&hbi, data->hb, first); in hbitmap_test_check()
50 next = data->size; in hbitmap_test_check()
57 g_assert_cmpint(data->bits[pos] & (1UL << bit), ==, 0); in hbitmap_test_check()
60 if (next == data->size) { in hbitmap_test_check()
68 g_assert_cmpint(data->bits[pos] & (1UL << bit), !=, 0); in hbitmap_test_check()
72 g_assert_cmpint(count << data->granularity, ==, hbitmap_count(data->hb)); in hbitmap_test_check()
78 static void hbitmap_test_init(TestHBitmapData *data, in hbitmap_test_init() argument
82 data->hb = hbitmap_alloc(size, granularity); in hbitmap_test_init()
[all …]
H A Dtest-aio.c32 static void wait_until_inactive(EventNotifierTestData *data) in wait_until_inactive() argument
34 while (data->active > 0) { in wait_until_inactive()
58 BHTestData *data = opaque; in bh_test_cb() local
59 if (++data->n < data->max) { in bh_test_cb()
60 qemu_bh_schedule(data->bh); in bh_test_cb()
66 TimerTestData *data = opaque; in timer_test_cb() local
67 if (++data->n < data->max) { in timer_test_cb()
68 timer_mod(&data->timer, in timer_test_cb()
69 qemu_clock_get_ns(data->clock_type) + data->ns); in timer_test_cb()
79 BHTestData *data = opaque; in bh_delete_cb() local
[all …]
H A Dtest-io-task.c58 struct TestTaskData *data = opaque; in task_callback() local
60 data->source = qio_task_get_source(task); in task_callback()
61 qio_task_propagate_error(task, &data->err); in task_callback()
70 struct TestTaskData data = { NULL, NULL, false }; in test_task_complete() local
72 task = qio_task_new(obj, task_callback, &data, NULL); in test_task_complete()
81 g_assert(data.source == obj); in test_task_complete()
82 g_assert(data.err == NULL); in test_task_complete()
83 g_assert(data.freed == false); in test_task_complete()
89 struct TestTaskData *data = opaque; in task_data_free() local
91 data->freed = true; in task_data_free()
[all …]
H A Dtest-thread-pool.c21 WorkerTestData *data = opaque; in worker_cb() local
22 return qatomic_fetch_inc(&data->n); in worker_cb()
27 WorkerTestData *data = opaque; in long_cb() local
28 if (qatomic_cmpxchg(&data->n, 0, 1) == 0) { in long_cb()
30 qatomic_or(&data->n, 2); in long_cb()
37 WorkerTestData *data = opaque; in done_cb() local
38 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()
48 WorkerTestData data = { .n = 0 }; in test_submit_no_complete() local
[all …]
H A Dtest-string-output-visitor.c25 static void visitor_output_setup_internal(TestOutputVisitorData *data, in visitor_output_setup_internal() argument
28 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()
33 static void visitor_output_setup(TestOutputVisitorData *data, in visitor_output_setup() argument
36 return visitor_output_setup_internal(data, false); in visitor_output_setup()
39 static void visitor_output_setup_human(TestOutputVisitorData *data, in visitor_output_setup_human() argument
42 return visitor_output_setup_internal(data, true); in visitor_output_setup_human()
45 static void visitor_output_teardown(TestOutputVisitorData *data, in visitor_output_teardown() argument
48 visit_free(data->ov); in visitor_output_teardown()
[all …]
H A Dio-channel-helpers.c39 /* This thread sends all data using iovecs */
42 QIOChannelTest *data = opaque; in test_io_thread_writer() local
44 qio_channel_writev_all(data->src, in test_io_thread_writer()
45 data->inputv, in test_io_thread_writer()
46 data->niov, in test_io_thread_writer()
47 &data->writeerr); in test_io_thread_writer()
53 /* This thread receives all data using iovecs */
56 QIOChannelTest *data = opaque; in test_io_thread_reader() local
58 qio_channel_readv_all(data->dst, in test_io_thread_reader()
59 data->outputv, in test_io_thread_reader()
[all …]
H A Dtest-smp-parse.c885 static void smp_parse_test(MachineState *ms, SMPTestData *data, bool is_valid) in smp_parse_test() argument
890 check_parse(ms, &data->config, &data->expect_prefer_sockets, in smp_parse_test()
891 data->expect_error, is_valid); in smp_parse_test()
894 check_parse(ms, &data->config, &data->expect_prefer_cores, in smp_parse_test()
895 data->expect_error, is_valid); in smp_parse_test()
899 static void unsupported_params_init(const MachineClass *mc, SMPTestData *data) in unsupported_params_init() argument
902 data->expect_prefer_sockets.modules = 1; in unsupported_params_init()
903 data->expect_prefer_cores.modules = 1; in unsupported_params_init()
907 data->expect_prefer_sockets.dies = 1; in unsupported_params_init()
908 data->expect_prefer_cores.dies = 1; in unsupported_params_init()
[all …]
H A Dtest-string-input-visitor.c23 static void visitor_input_teardown(TestInputVisitorData *data, in visitor_input_teardown() argument
26 if (data->v) { in visitor_input_teardown()
27 visit_free(data->v); in visitor_input_teardown()
28 data->v = NULL; in visitor_input_teardown()
36 Visitor *visitor_input_test_init(TestInputVisitorData *data, in visitor_input_test_init() argument
39 visitor_input_teardown(data, NULL); in visitor_input_test_init()
41 data->v = string_input_visitor_new(string); in visitor_input_test_init()
42 g_assert(data->v); in visitor_input_test_init()
43 return data->v; in visitor_input_test_init()
46 static void test_visitor_in_int(TestInputVisitorData *data, in test_visitor_in_int() argument
[all …]
/qemu/tests/qtest/
H A Dcpu-plug-test.c27 static void test_plug_with_device_add(gconstpointer data) in test_plug_with_device_add() argument
29 const PlugTestData *td = data; in test_plug_with_device_add()
72 static void test_data_free(gpointer data) in test_data_free() argument
74 PlugTestData *pc = data; in test_data_free()
84 PlugTestData *data; in add_pc_test_case() local
89 data = g_new(PlugTestData, 1); in add_pc_test_case()
90 data->machine = g_strdup(mname); in add_pc_test_case()
91 data->cpu_model = "Haswell"; /* 1.3+ theoretically */ in add_pc_test_case()
92 data->device_model = g_strdup_printf("%s-%s-cpu", data->cpu_model, in add_pc_test_case()
94 data->sockets = 1; in add_pc_test_case()
[all …]
H A Dbios-tables-test.c16 * 1. add empty files for new tables, if any, under tests/data/acpi
38 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
108 static const char *data_dir = "tests/data/acpi";
116 static GArray *load_expected_aml(test_data *data);
140 static void free_test_data(test_data *data) in free_test_data() argument
144 if (!data->tables) { in free_test_data()
147 for (i = 0; i < data->tables->len; ++i) { in free_test_data()
148 cleanup_table_descriptor(&g_array_index(data->tables, AcpiSdtTable, i)); in free_test_data()
151 g_array_free(data->tables, true); in free_test_data()
154 static void test_acpi_rsdp_table(test_data *data) in test_acpi_rsdp_table() argument
[all …]
H A Daspeed_smc-test.c32 static void test_palmetto_bmc(AspeedSMCTestData *data) in test_palmetto_bmc() argument
37 fd = g_file_open_tmp("qtest.m25p80.n25q256a.XXXXXX", &data->tmp_path, NULL); in test_palmetto_bmc()
43 data->s = qtest_initf("-m 256 -machine palmetto-bmc " in test_palmetto_bmc()
45 data->tmp_path); in test_palmetto_bmc()
48 data->flash_base = 0x20000000; in test_palmetto_bmc()
49 data->spi_base = 0x1E620000; in test_palmetto_bmc()
50 data->jedec_id = 0x20ba19; in test_palmetto_bmc()
51 data->cs = 0; in test_palmetto_bmc()
52 data->node = "/machine/soc/fmc/ssi.0/child[0]"; in test_palmetto_bmc()
54 data->page_addr = 0x14000 * FLASH_PAGE_SIZE; in test_palmetto_bmc()
[all …]
/qemu/hw/display/
H A Dpl110_template.h41 uint32_t data; in glue() local
43 data = *(uint32_t *)src; in glue()
45 #define FN(x, y) COPY_PIXEL(d, palette[(data >> (y + 7 - (x))) & 1]); in glue()
47 #define FN(x, y) COPY_PIXEL(d, palette[(data >> ((x) + y)) & 1]); in glue()
69 uint32_t data; in glue() local
71 data = *(uint32_t *)src; in glue()
73 #define FN(x, y) COPY_PIXEL(d, palette[(data >> (y + 6 - (x)*2)) & 3]); in glue()
75 #define FN(x, y) COPY_PIXEL(d, palette[(data >> ((x)*2 + y)) & 3]); in glue()
97 uint32_t data; in glue() local
99 data = *(uint32_t *)src; in glue()
[all …]
/qemu/tests/qemu-iotests/
H 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…
29 [{ "start": 0, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "compre…
30 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "c…
31 { "start": 4194304, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "c…
32 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "c…
[all …]
H A D2444 # Test qcow2 with external data files
33 _rm_test_img "$TEST_IMG.data"
46 # External data files do not work with compat=0.10, and because we use
47 # our own external data file, we cannot let the user specify one
51 echo "=== Create and open image with external data file ==="
54 echo "With data file name in the image:"
55 _make_test_img -o "data_file=$TEST_IMG.data" 64M
59 $QEMU_IO -c "open -odata-file.filename=$TEST_IMG.data $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filte…
63 echo "Data file required, but without data file name in the image:"
67 $QEMU_IO -c "open -odata-file.filename=$TEST_IMG.data $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filte…
[all …]
H A D109.out15 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "creat…
16 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "runni…
18 …s": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src",…
19 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "abort…
20 … TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src",…
21 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concl…
22 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null"…
26 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"g…
35 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "creat…
36 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "runni…
[all …]
H A D185.out39 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "creat…
40 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "runni…
43 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"g…
44 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pause…
45 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "runni…
46 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pause…
47 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "runni…
48 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "abort…
49 … TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_CANCELLED", "data": {"device": "disk"…
50 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concl…
[all …]
H A D179.out16 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr…
17 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
18 { "start": 4194304, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "…
19 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
20 { "start": 8388608, "length": 58720256, "depth": 0, "present": false, "zero": true, "data": false, …
34 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr…
35 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
36 { "start": 4194304, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "…
37 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
38 { "start": 8388608, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "…
[all …]
/qemu/tests/qapi-schema/
H A Dqapi-schema-test.json19 'data': { 'integer': {'type': 'int'}, 'boolean': 'bool', 'string': 'str' } }
23 'data': { 'enum1': 'EnumOne', # Intentional forward reference
27 { 'enum': 'MyEnum', 'data': [ ] }
30 { 'struct': 'Empty1', 'data': { } }
31 { 'struct': 'Empty2', 'base': 'Empty1', 'data': { } }
36 'data': { } }
38 { 'command': 'user-def-cmd0', 'data': 'Empty2', 'returns': 'Empty2' }
43 'data': [ 'value1', 'value2' ] }
48 'data': { 'string': 'str',
52 'data': [ 'value1', 'value2', 'value3', 'value4' ] }
[all …]
/qemu/crypto/
H A Dder.h43 * @data: pointer to address of input data
44 * @dlen: pointer to length of input data
49 * Decode integer from DER-encoded data.
51 * Returns: On success, *data points to rest data, and *dlen
52 * will be set to the rest length of data, if cb is not NULL, must
53 * return 0 to make decode success, at last, the length of the data
55 * returned and the valued of *data and *dlen keep unchanged.
57 int qcrypto_der_decode_int(const uint8_t **data,
65 * Decode sequence from DER-encoded data, similar with der_decode_int.
67 * @data: pointer to address of input data
[all …]
/qemu/tests/qtest/libqos/
H A Di2c-omap.c46 uint16_t data = addr; in omap_i2c_set_slave_addr() local
48 qtest_writew(s->parent.qts, s->addr + OMAP_I2C_SA, data); in omap_i2c_set_slave_addr()
49 data = qtest_readw(s->parent.qts, s->addr + OMAP_I2C_SA); in omap_i2c_set_slave_addr()
50 g_assert_cmphex(data, ==, addr); in omap_i2c_set_slave_addr()
57 uint16_t data; in omap_i2c_send() local
61 data = len; in omap_i2c_send()
62 qtest_writew(i2c->qts, s->addr + OMAP_I2C_CNT, data); in omap_i2c_send()
64 data = OMAP_I2C_CON_I2C_EN | in omap_i2c_send()
69 qtest_writew(i2c->qts, s->addr + OMAP_I2C_CON, data); in omap_i2c_send()
70 data = qtest_readw(i2c->qts, s->addr + OMAP_I2C_CON); in omap_i2c_send()
[all …]
/qemu/hw/misc/
H A Dtrace-events5 allwinner_cpucfg_read(uint64_t offset, uint64_t data, unsigned size) "offset 0x%" PRIx64 " data 0x%…
6 allwinner_cpucfg_write(uint64_t offset, uint64_t data, unsigned size) "offset 0x%" PRIx64 " data 0x…
11 …lwinner_h3_dramcom_read(uint64_t offset, uint64_t data, unsigned size) "Read: offset 0x%" PRIx64 "…
12 …inner_h3_dramcom_write(uint64_t offset, uint64_t data, unsigned size) "Write: offset 0x%" PRIx64 "…
13 …lwinner_h3_dramctl_read(uint64_t offset, uint64_t data, unsigned size) "Read: offset 0x%" PRIx64 "…
14 …inner_h3_dramctl_write(uint64_t offset, uint64_t data, unsigned size) "Write: offset 0x%" PRIx64 "…
15 …lwinner_h3_dramphy_read(uint64_t offset, uint64_t data, unsigned size) "Read: offset 0x%" PRIx64 "…
16 …inner_h3_dramphy_write(uint64_t offset, uint64_t data, unsigned size) "write: offset 0x%" PRIx64 "…
23 allwinner_r40_dramc_detect_cell_write(uint64_t offset, uint64_t data) "offset 0x%" PRIx64 " data 0x…
24 allwinner_r40_dramc_detect_cell_read(uint64_t offset, uint64_t data) "offset 0x%" PRIx64 " data 0x%…
[all …]
/qemu/target/riscv/insn_trans/
H A Dtrans_rvbf16.c.inc73 uint32_t data = 0;
77 data = FIELD_DP32(data, VDATA, VM, a->vm);
78 data = FIELD_DP32(data, VDATA, LMUL, ctx->lmul);
79 data = FIELD_DP32(data, VDATA, VTA, ctx->vta);
80 data = FIELD_DP32(data, VDATA, VMA, ctx->vma);
84 ctx->cfg_ptr->vlenb, data,
98 uint32_t data = 0;
102 data = FIELD_DP32(data, VDATA, VM, a->vm);
103 data = FIELD_DP32(data, VDATA, LMUL, ctx->lmul);
104 data = FIELD_DP32(data, VDATA, VTA, ctx->vta);
[all …]
/qemu/tests/qemu-iotests/tests/
H A Dmirror-sparse.out22 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "creat…
23 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "runni…
25 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready…
28 …s": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "job2"…
32 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiti…
33 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pendi…
34 … TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "job2"…
35 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concl…
36 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null"…
52 …: TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "creat…
[all …]
/qemu/qapi/
H A Dchar.json30 'data': { 'label': 'str',
78 { 'struct': 'ChardevBackendInfo', 'data': {'name': 'str'} }
114 # An enumeration of data format.
116 # @utf8: Data is a UTF-8 string (RFC 3629)
118 # @base64: Data is Base64 encoded binary (RFC 3548)
123 'data': [ 'utf8', 'base64' ] }
132 # @data: data to write
134 # @format: data encoding (default 'utf8').
136 # - base64: data must be base64 encoded text. Its binary decoding
138 # - utf8: data's UTF-8 encoding is written
[all …]
/qemu/include/migration/
H A Dregister.h37 * @f: QEMUFile where to send the data
38 * @opaque: data pointer passed to register_savevm_live()
48 * @opaque: data pointer passed to register_savevm_live()
58 * Initializes the data structures on the source and transmits
61 * @f: QEMUFile where to send the data
62 * @opaque: data pointer passed to register_savevm_live()
72 * Uninitializes the data structures on the source.
76 * @opaque: data pointer passed to register_savevm_live()
85 * @f: QEMUFile where to send the data
86 * @opaque: data pointer passed to register_savevm_live()
[all …]

12345678910>>...130