Home
last modified time | relevance | path

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

1234567

/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/util/
H A Dcoroutine-wasm.c62 co = g_malloc0(sizeof(*co)); in qemu_coroutine_new()
68 co->asyncify_stack = g_malloc0(co->asyncify_stack_size); in qemu_coroutine_new()
104 leaderp = g_malloc0(sizeof(*leaderp)); in qemu_coroutine_self()
105 leaderp->asyncify_stack = g_malloc0(leader_asyncify_stack_size); in qemu_coroutine_self()
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/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/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/monitor/
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/coccinelle/
H A Duse-g_new-etc.cocci15 -g_malloc0(sizeof(T))
38 -g_malloc0(sizeof(T) * (n))
/openbmc/qemu/stubs/
H A Duuid.c7 UuidInfo *info = g_malloc0(sizeof(*info)); in qmp_query_uuid()
/openbmc/qemu/hw/vfio-user/
H A Ddevice.c96 msgp = g_malloc0(size); in vfio_user_get_region_info()
218 msgp = g_malloc0(size); in vfio_user_device_io_set_irqs()
248 msgp = g_malloc0(sizeof(*msgp)); in vfio_user_device_io_set_irqs()
304 msgp = g_malloc0(size); in vfio_user_device_io_region_read()
395 msgp = g_malloc0(size); in vfio_user_device_io_region_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()
/openbmc/qemu/tests/bench/
H A Dbufferiszero-bench.c15 void *buf = g_malloc0(max); in test()
/openbmc/qemu/target/mips/system/
H A Dmips-qmp-cmds.c32 info = g_malloc0(sizeof(*info)); in mips_cpu_add_definition()
/openbmc/qemu/ui/
H A Dspice-core.c63 timer = g_malloc0(sizeof(*timer)); in timer_add()
140 watch = g_malloc0(sizeof(*watch)); in watch_add()
170 item = g_malloc0(sizeof(*item)); in channel_list_add()
213 SpiceServerInfo *server = g_malloc0(sizeof(*server)); in channel_event()
214 SpiceChannel *client = g_malloc0(sizeof(*client)); in channel_event()
392 chan = g_malloc0(sizeof(*chan)); in qmp_query_spice_channels()
537 info = g_malloc0(sizeof(*info)); in qmp_query_spice_real()
H A Dvdagent.c187 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_caps()
220 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_mouse()
342 g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_clipboard_grab()
384 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_clipboard_release()
403 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_send_clipboard_data()
502 g_autofree VDAgentMessage *msg = g_malloc0(sizeof(VDAgentMessage) + in vdagent_clipboard_request()
788 vd->xbuf = g_malloc0(vd->xsize); in vdagent_chr_recv_chunk()
838 vd->msgbuf = g_malloc0(vd->chunk.size); in vdagent_chr_write()
/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.c196 info = g_malloc0(sizeof(*info)); in ppc_cpu_defs_entry()
222 info = g_malloc0(sizeof(*info)); in qmp_query_cpu_definitions()
/openbmc/qemu/include/qapi/
H A Dutil.h54 *(tail) = g_malloc0(sizeof(**(tail))); \
/openbmc/qemu/system/
H A Dballoon.c88 info = g_malloc0(sizeof(*info)); in qmp_query_balloon()
/openbmc/qemu/target/arm/
H A Darm-qmp-cmds.c196 expansion_info->model = g_malloc0(sizeof(*expansion_info->model)); in qmp_query_cpu_model_expansion()
233 info = g_malloc0(sizeof(*info)); in arm_cpu_add_definition()
/openbmc/qemu/fsdev/
H A Dp9array.h111 P9Array##scalar_type *arr = g_malloc0(sizeof(P9Array##scalar_type) + \

1234567