/qemu/tests/unit/ |
H A D | test-iov.c | 175 siov = g_memdup2(iov, sizeof(*iov) * niov); in test_io() 354 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo() 365 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo() 377 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo() 389 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo() 401 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo() 412 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo() 503 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_back_undo() 513 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_back_undo() 524 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_back_undo() [all …]
|
H A D | ptimer-test.c | 828 g_memdup2(&policy, 1), check_set_count, g_free); in add_ptimer_tests() 833 g_memdup2(&policy, 1), check_set_limit, g_free); in add_ptimer_tests() 838 g_memdup2(&policy, 1), check_oneshot, g_free); in add_ptimer_tests() 843 g_memdup2(&policy, 1), check_periodic, g_free); in add_ptimer_tests() 849 g_memdup2(&policy, 1), check_on_the_fly_mode_change, g_free); in add_ptimer_tests() 855 g_memdup2(&policy, 1), check_on_the_fly_period_change, g_free); in add_ptimer_tests() 861 g_memdup2(&policy, 1), check_on_the_fly_freq_change, g_free); in add_ptimer_tests() 867 g_memdup2(&policy, 1), check_run_with_period_0, g_free); in add_ptimer_tests() 873 g_memdup2(&policy, 1), check_run_with_delta_0, g_free); in add_ptimer_tests() 879 g_memdup2(&policy, 1), check_periodic_with_load_0, g_free); in add_ptimer_tests() [all …]
|
/qemu/include/ |
H A D | glib-compat.h | 99 return g_memdup2(mem, byte_size); in g_memdup2_qemu() 113 #define g_memdup2(m, s) g_memdup2_qemu(m, s) macro
|
/qemu/hw/hppa/ |
H A D | machine.c | 211 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg() 215 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg() 219 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg() 223 g_memdup2(mc->name, len), len); in create_fw_cfg() 227 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg() 231 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg() 235 g_memdup2(&val, sizeof(val)), sizeof(val)); in create_fw_cfg() 241 g_memdup2(qemu_version, sizeof(qemu_version)), in create_fw_cfg()
|
/qemu/contrib/plugins/ |
H A D | lockstep.c | 113 return g_memdup2(mem, byte_size); in g_memdup2_qemu() 127 #define g_memdup2(m, s) g_memdup2_qemu(m, s) macro 159 g_memdup2(&divrec, sizeof(divrec))); in report_divergance()
|
/qemu/migration/ |
H A D | multifd-device-state.c | 115 device_state->buf = g_memdup2(data, len); in multifd_queue_device_state()
|
/qemu/ui/ |
H A D | clipboard.c | 245 info->types[type].data = g_memdup2(data, size); in qemu_clipboard_set_data()
|
/qemu/crypto/ |
H A D | rsakey-nettle.c.inc | 30 mpi->data = g_memdup2(i->data, i->length);
|
H A D | rsakey-builtin.c.inc | 33 mpi->data = g_memdup2(value, vlen);
|
H A D | block.c | 283 block->key = g_memdup2(key, nkey); in qcrypto_block_init_cipher()
|
/qemu/hw/virtio/ |
H A D | virtio-crypto.c | 369 out_iov_copy = g_memdup2(elem->out_sg, sizeof(out_iov[0]) * out_num); in virtio_crypto_handle_ctrl() 842 out_iov_copy = g_memdup2(elem->out_sg, sizeof(out_iov[0]) * out_num); in virtio_crypto_handle_request() 846 in_iov_copy = g_memdup2(elem->in_sg, sizeof(in_iov[0]) * in_num); in virtio_crypto_handle_request()
|
/qemu/hw/cxl/ |
H A D | cxl-device-utils.c | 205 pl_in_copy = g_memdup2(pl, len_in); in mailbox_reg_write()
|
/qemu/hw/vfio/ |
H A D | migration-multifd.c | 130 lb->data = g_memdup2(&packet->data, packet_total_size - sizeof(*packet)); in vfio_load_state_buffer_insert()
|
/qemu/hw/mips/ |
H A D | loongson3_virt.c | 297 g_memdup2(suspend, sizeof(suspend)), sizeof(suspend)); in fw_conf_init()
|
/qemu/tests/qtest/libqos/ |
H A D | ahci.c | 694 opts = g_memdup2((opts_in == NULL ? &default_opts : opts_in), in ahci_exec() 915 cmd->props = g_memdup2(props, sizeof(AHCICommandProp)); in ahci_command_create()
|
H A D | qgraph.c | 96 edge->arg = g_memdup2(opts->arg, opts->size_arg); in add_edge()
|
/qemu/hw/i386/ |
H A D | x86-common.c | 707 setup = g_memdup2(header, sizeof(header)); in x86_load_linux()
|
/qemu/target/ppc/ |
H A D | mmu-hash64.c | 1240 cpu->hash64_opts = g_memdup2(pcc->hash64_opts, sizeof(*cpu->hash64_opts)); in ppc_hash64_init()
|
/qemu/hw/ppc/ |
H A D | spapr_pci.c | 2138 key = g_memdup2(&sphb->msi_devs[i].key, sizeof(sphb->msi_devs[i].key)); in spapr_pci_post_load() 2139 value = g_memdup2(&sphb->msi_devs[i].value, in spapr_pci_post_load()
|
/qemu/hw/smbios/ |
H A D | smbios.c | 1104 smbios_tables = g_memdup2(usr_blobs, usr_blobs_len); in smbios_get_tables_ep()
|
/qemu/block/ |
H A D | qcow2-bitmap.c | 1612 tb = g_memdup2(&bm->table, sizeof(bm->table)); in qcow2_store_persistent_dirty_bitmaps()
|
/qemu/target/i386/ |
H A D | sev.c | 664 ovmf_sev_metadata_table = g_memdup2(metadata, metadata->len); in pc_system_parse_sev_metadata()
|
/qemu/target/riscv/ |
H A D | cpu.c | 2706 mcc->def = g_memdup2(pcc->def, sizeof(*pcc->def)); in riscv_cpu_class_base_init()
|
/qemu/hw/net/ |
H A D | virtio-net.c | 1573 iov2 = iov = g_memdup2(out_sg, sizeof(struct iovec) * out_num); in virtio_net_handle_ctrl_iov()
|