Home
last modified time | relevance | path

Searched refs:g_malloc0 (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/openbmc/qemu/tests/unit/
H A Dtest-xbzrle.c43 uint8_t *buffer = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_zero()
44 uint8_t *compressed = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_zero()
67 uint8_t *compressed = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_unchanged()
68 uint8_t *test = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_unchanged()
91 uint8_t *buffer = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_1_byte()
92 uint8_t *test = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_1_byte()
114 uint8_t *compressed = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_overflow()
115 uint8_t *test = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_overflow()
116 uint8_t *buffer = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_overflow()
135 uint8_t *buffer = g_malloc0(XBZRLE_PAGE_SIZE); in encode_decode_range()
[all …]
H A Dtest-visitor-serialization.c187 TestStruct *ts = g_malloc0(sizeof(*ts)); in struct_create()
216 UserDefTwo *udnp = g_malloc0(sizeof(*udnp)); in nested_struct_create()
218 udnp->dict1 = g_malloc0(sizeof(*udnp->dict1)); in nested_struct_create()
220 udnp->dict1->dict2 = g_malloc0(sizeof(*udnp->dict1->dict2)); in nested_struct_create()
225 udnp->dict1->dict3 = g_malloc0(sizeof(*udnp->dict1->dict3)); in nested_struct_create()
298 PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); in test_primitives()
928 QmpSerializeData *d = g_malloc0(sizeof(*d)); in qmp_serialize()
972 StringSerializeData *d = g_malloc0(sizeof(*d)); in string_serialize()
1037 args = g_malloc0(sizeof(*args)); in add_visitor_type()
1047 args = g_malloc0(sizeof(*args)); in add_visitor_type()
[all …]
H A Dtest-qobject-output-visitor.c172 ud2 = g_malloc0(sizeof(*ud2)); in test_visitor_out_struct_nested()
175 ud2->dict1 = g_malloc0(sizeof(*ud2->dict1)); in test_visitor_out_struct_nested()
178 ud2->dict1->dict2 = g_malloc0(sizeof(*ud2->dict1->dict2)); in test_visitor_out_struct_nested()
184 ud2->dict1->dict3 = g_malloc0(sizeof(*ud2->dict1->dict3)); in test_visitor_out_struct_nested()
235 value = g_malloc0(sizeof(*value)); in test_visitor_out_list()
276 value = g_malloc0(sizeof(*value)); in test_visitor_out_list_qapi_free()
/openbmc/qemu/hw/core/
H A Dmachine-qmp-cmds.c43 CpuInfoFast *value = g_malloc0(sizeof(*value)); in qmp_query_cpus_fast()
51 props = g_malloc0(sizeof(*props)); in qmp_query_cpus_fast()
77 info = g_malloc0(sizeof(*info)); in qmp_query_machines()
111 prop = g_malloc0(sizeof(*prop)); in qmp_query_machines()
129 CurrentMachineParams *params = g_malloc0(sizeof(*params)); in qmp_query_current_machine()
137 TargetInfo *info = g_malloc0(sizeof(*info)); in qmp_query_target()
177 m = g_malloc0(sizeof(*m)); in query_memdev()
258 KvmInfo *info = g_malloc0(sizeof(*info)); in qmp_query_kvm()
268 UuidInfo *info = g_malloc0(sizeof(*info)); in qmp_query_uuid()
405 info = g_malloc0(sizeof(*info)); in qmp_query_vm_generation_id()
/openbmc/qemu/tests/qtest/
H A Dvirtio-blk-test.c145 req.data = g_malloc0(512); in test_basic()
169 req.data = g_malloc0(512); in test_basic()
186 data = g_malloc0(512); in test_basic()
229 req.data = g_malloc0(512); in test_basic()
247 expected = g_malloc0(512); in test_basic()
289 req.data = g_malloc0(512); in test_basic()
311 req.data = g_malloc0(512); in test_basic()
327 data = g_malloc0(512); in test_basic()
380 req.data = g_malloc0(512); in indirect()
405 req.data = g_malloc0(512); in indirect()
[all …]
H A Dvhost-user-blk-test.c247 req.data = g_malloc0(512); in test_basic()
271 req.data = g_malloc0(512); in test_basic()
288 data = g_malloc0(512); in test_basic()
331 req.data = g_malloc0(512); in test_basic()
349 expected = g_malloc0(512); in test_basic()
398 req.data = g_malloc0(512); in test_basic()
420 req.data = g_malloc0(512); in test_basic()
436 data = g_malloc0(512); in test_basic()
489 req.data = g_malloc0(512); in indirect()
514 req.data = g_malloc0(512); in indirect()
[all …]
H A Dboot-sector.c104 boot_code = g_malloc0(len); in boot_sector_init()
114 boot_code = g_malloc0(len); in boot_sector_init()
/openbmc/qemu/monitor/
H A Dqemu-config-qmp.c17 info = g_malloc0(sizeof(*info)); in query_option_descs()
102 info = g_malloc0(sizeof(*info)); in objprop_to_cmdline_prop()
164 info = g_malloc0(sizeof(*info)); in query_all_machine_properties()
182 info = g_malloc0(sizeof(*info)); in qmp_query_command_line_options()
195 info = g_malloc0(sizeof(*info)); in qmp_query_command_line_options()
H A Dfds.c314 FdsetInfo *fdset_info = g_malloc0(sizeof(*fdset_info)); in qmp_query_fdsets()
321 fdsetfd_info = g_malloc0(sizeof(*fdsetfd_info)); in qmp_query_fdsets()
383 mon_fdset = g_malloc0(sizeof(*mon_fdset)); in monitor_fdset_add_fd()
400 mon_fdset_fd = g_malloc0(sizeof(*mon_fdset_fd)); in monitor_fdset_add_fd()
405 fdinfo = g_malloc0(sizeof(*fdinfo)); in monitor_fdset_add_fd()
465 mon_fdset_fd_dup = g_malloc0(sizeof(*mon_fdset_fd_dup)); in monitor_fdset_dup_fd_add()
/openbmc/qemu/scripts/coverity-scan/
H A Dmodel.c196 void *g_malloc0(size_t size) in g_malloc0() function
244 return g_malloc0(size); in g_try_malloc0()
272 GIOChannel *c = g_malloc0(20 * sizeof(void *)); in g_io_channel_unix_new()
/openbmc/qemu/scripts/coccinelle/
H A Duse-g_new-etc.cocci15 -g_malloc0(sizeof(T))
38 -g_malloc0(sizeof(T) * (n))
/openbmc/qemu/ui/
H A Dspice-core.c63 timer = g_malloc0(sizeof(*timer)); in timer_add()
138 watch = g_malloc0(sizeof(*watch)); in watch_add()
168 item = g_malloc0(sizeof(*item)); in channel_list_add()
211 SpiceServerInfo *server = g_malloc0(sizeof(*server)); in channel_event()
212 SpiceChannel *client = g_malloc0(sizeof(*client)); in channel_event()
390 chan = g_malloc0(sizeof(*chan)); in qmp_query_spice_channels()
529 info = g_malloc0(sizeof(*info)); in qmp_query_spice_real()
H A Dvdagent.c190 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_caps()
223 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_mouse()
336 g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_clipboard_grab()
380 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_clipboard_release()
399 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_clipboard_data()
495 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_clipboard_request()
779 vd->xbuf = g_malloc0(vd->xsize); in vdagent_chr_recv_chunk()
829 vd->msgbuf = g_malloc0(vd->chunk.size); in vdagent_chr_write()
/openbmc/qemu/qapi/
H A Dopts-visitor.c144 *obj = g_malloc0(size); in opts_start_struct()
160 ov->fake_id_opt = g_malloc0(sizeof *ov->fake_id_opt); in opts_start_struct()
243 *list = g_malloc0(size); in opts_start_list()
287 tail->next = g_malloc0(size); in opts_next_list()
558 ov = g_malloc0(sizeof *ov); in opts_visitor_new()
H A Dstring-input-visitor.c79 *list = g_malloc0(size); in start_list()
102 tail->next = g_malloc0(size); in next_list()
395 v = g_malloc0(sizeof(*v)); in string_input_visitor_new()
H A Dqobject-input-visitor.c299 *obj = g_malloc0(size); in qobject_input_start_struct()
336 *list = g_malloc0(size); in qobject_input_start_list()
352 tail->next = g_malloc0(size); in qobject_input_next_list()
391 *obj = g_malloc0(size); in qobject_input_start_alternate()
695 QObjectInputVisitor *v = g_malloc0(sizeof(*v)); in qobject_input_visitor_base_new()
/openbmc/qemu/rust/qemu-api/src/
H A Dlib.rs61 fn g_malloc0(n_bytes: bindings::gsize) -> bindings::gpointer; in g_malloc0() function
129 unsafe { g_malloc0(layout.size().try_into().unwrap()).cast::<u8>() } in alloc()
/openbmc/qemu/tests/qtest/libqos/
H A Dfw_cfg.c119 QFWCFG *fw_cfg = g_malloc0(sizeof(*fw_cfg)); in mm_fw_cfg_init()
151 QFWCFG *fw_cfg = g_malloc0(sizeof(*fw_cfg)); in io_fw_cfg_init()
/openbmc/qemu/stubs/
H A Duuid.c7 UuidInfo *info = g_malloc0(sizeof(*info)); in qmp_query_uuid()
/openbmc/qemu/hw/smbios/
H A Dsmbios_legacy.c62 smbios_entries = g_malloc0(smbios_entries_len); in smbios_add_field()
152 smbios_entries = g_malloc0(smbios_entries_len); in smbios_get_table_legacy()
/openbmc/qemu/target/ppc/
H A Dppc-qmp-cmds.c186 info = g_malloc0(sizeof(*info)); in ppc_cpu_defs_entry()
212 info = g_malloc0(sizeof(*info)); in qmp_query_cpu_definitions()
/openbmc/qemu/util/
H A Dcoroutine-sigaltstack.c66 s = g_malloc0(sizeof(*s)); in coroutine_get_thread_state()
170 co = g_malloc0(sizeof(*co)); in qemu_coroutine_new()
/openbmc/qemu/migration/
H A Dtarget.c21 info->vfio = g_malloc0(sizeof(*info->vfio)); in migration_populate_vfio_info()
/openbmc/qemu/target/arm/
H A Darm-qmp-cmds.c194 expansion_info->model = g_malloc0(sizeof(*expansion_info->model)); in qmp_query_cpu_model_expansion()
231 info = g_malloc0(sizeof(*info)); in arm_cpu_add_definition()
/openbmc/qemu/qom/
H A Dqom-qmp-cmds.c98 info = g_malloc0(sizeof(*info)); in qom_list_types_tramp()
211 info = g_malloc0(sizeof(*info)); in qmp_qom_list_properties()

12345678910>>...12