Home
last modified time | relevance | path

Searched refs:g_memdup2 (Results 1 – 24 of 24) sorted by relevance

/qemu/tests/unit/
H A Dtest-iov.c175 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 Dptimer-test.c828 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 Dglib-compat.h99 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 Dmachine.c211 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 Dlockstep.c113 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 Dmultifd-device-state.c115 device_state->buf = g_memdup2(data, len); in multifd_queue_device_state()
/qemu/ui/
H A Dclipboard.c245 info->types[type].data = g_memdup2(data, size); in qemu_clipboard_set_data()
/qemu/crypto/
H A Drsakey-nettle.c.inc30 mpi->data = g_memdup2(i->data, i->length);
H A Drsakey-builtin.c.inc33 mpi->data = g_memdup2(value, vlen);
H A Dblock.c283 block->key = g_memdup2(key, nkey); in qcrypto_block_init_cipher()
/qemu/hw/virtio/
H A Dvirtio-crypto.c369 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 Dcxl-device-utils.c205 pl_in_copy = g_memdup2(pl, len_in); in mailbox_reg_write()
/qemu/hw/vfio/
H A Dmigration-multifd.c130 lb->data = g_memdup2(&packet->data, packet_total_size - sizeof(*packet)); in vfio_load_state_buffer_insert()
/qemu/hw/mips/
H A Dloongson3_virt.c297 g_memdup2(suspend, sizeof(suspend)), sizeof(suspend)); in fw_conf_init()
/qemu/tests/qtest/libqos/
H A Dahci.c694 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 Dqgraph.c96 edge->arg = g_memdup2(opts->arg, opts->size_arg); in add_edge()
/qemu/hw/i386/
H A Dx86-common.c707 setup = g_memdup2(header, sizeof(header)); in x86_load_linux()
/qemu/target/ppc/
H A Dmmu-hash64.c1240 cpu->hash64_opts = g_memdup2(pcc->hash64_opts, sizeof(*cpu->hash64_opts)); in ppc_hash64_init()
/qemu/hw/ppc/
H A Dspapr_pci.c2138 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 Dsmbios.c1104 smbios_tables = g_memdup2(usr_blobs, usr_blobs_len); in smbios_get_tables_ep()
/qemu/block/
H A Dqcow2-bitmap.c1612 tb = g_memdup2(&bm->table, sizeof(bm->table)); in qcow2_store_persistent_dirty_bitmaps()
/qemu/target/i386/
H A Dsev.c664 ovmf_sev_metadata_table = g_memdup2(metadata, metadata->len); in pc_system_parse_sev_metadata()
/qemu/target/riscv/
H A Dcpu.c2706 mcc->def = g_memdup2(pcc->def, sizeof(*pcc->def)); in riscv_cpu_class_base_init()
/qemu/hw/net/
H A Dvirtio-net.c1573 iov2 = iov = g_memdup2(out_sg, sizeof(struct iovec) * out_num); in virtio_net_handle_ctrl_iov()