Home
last modified time | relevance | path

Searched refs:g_malloc (Results 1 – 25 of 246) sorted by relevance

12345678910

/openbmc/qemu/ui/
H A Dvnc-enc-hextile.c53 last_fg = g_malloc(VNC_SERVER_FB_BYTES); in vnc_hextile_send_framebuffer_update()
54 last_bg = g_malloc(VNC_SERVER_FB_BYTES); in vnc_hextile_send_framebuffer_update()
H A Dshader.c96 errmsg = g_malloc(length); in qemu_gl_create_compile_shader()
121 errmsg = g_malloc(length); in qemu_gl_create_link_program()
H A Dvnc-clipboard.c38 uint8_t *out = g_malloc(out_len); in inflate_buffer()
93 uint8_t *out = g_malloc(out_len); in deflate_buffer()
171 buf = g_malloc(info->types[type].size + 4); in vnc_clipboard_provide()
/openbmc/qemu/qobject/
H A Dqstring.c37 qstring = g_malloc(sizeof(*qstring)); in qstring_from_substr()
63 qstring = g_malloc(sizeof(*qstring)); in qstring_from_gstring()
H A Dqlist.c31 qlist = g_malloc(sizeof(*qlist)); in qlist_new()
61 entry = g_malloc(sizeof(*entry)); in qlist_append_obj()
H A Dqbool.c27 qb = g_malloc(sizeof(*qb)); in qbool_from_bool()
/openbmc/qemu/scripts/coccinelle/
H A Duse-g_new-etc.cocci5 -g_malloc(sizeof(T))
26 -g_malloc(sizeof(T) * (n))
/openbmc/qemu/backends/
H A Drng.c27 req = g_malloc(sizeof(*req)); in rng_backend_request_entropy()
33 req->data = g_malloc(req->size); in rng_backend_request_entropy()
/openbmc/qemu/util/
H A Denvlist.c23 envlist = g_malloc(sizeof(*envlist)); in envlist_create()
91 entry = g_malloc(sizeof(*entry)); in envlist_setenv()
H A Daiocb.c33 acb = g_malloc(aiocb_info->aiocb_size); in qemu_aio_get()
H A Dcompatfd.c61 info = g_malloc(sizeof(*info)); in qemu_signalfd_compat()
/openbmc/qemu/tests/qtest/
H A Dtest-filter-redirector.c119 recv_buf = g_malloc(len); in test_redirector_tx()
187 recv_buf = g_malloc(len); in test_redirector_rx()
H A Dnpcm7xx_sdhci-test.c61 char *rmsg = g_malloc(len); in write_sdread()
93 char *rmsg = g_malloc(len); in sdwrite_read()
/openbmc/qemu/scripts/coverity-scan/
H A Dmodel.c182 void *g_malloc(size_t size) in g_malloc() function
234 return g_malloc(size); in g_try_malloc()
/openbmc/qemu/tests/unit/
H A Dtest-util-sockets.c84 cur_mon = g_malloc(1); /* Fake a monitor */ in test_socket_fd_pass_name_good()
116 cur_mon = g_malloc(1); /* Fake a monitor */ in test_socket_fd_pass_name_bad()
215 cur_mon = g_malloc(1); /* Fake a monitor */ in test_socket_fd_pass_num_nocli()
H A Dtest-xbzrle.c93 uint8_t *compressed = g_malloc(XBZRLE_PAGE_SIZE); in test_encode_decode_1_byte()
136 uint8_t *compressed = g_malloc(XBZRLE_PAGE_SIZE); in encode_decode_range()
H A Dtest-iov.c9 struct iovec *iov = g_malloc(niov * sizeof(*iov)); in iov_random()
13 iov[i].iov_base = g_malloc(iov[i].iov_len); in iov_random()
72 ibuf = g_malloc(sz + 8) + 4; in test_to_from_buf_1()
74 obuf = g_malloc(sz + 8) + 4; in test_to_from_buf_1()
169 buf = g_malloc(sz); in test_io()
H A Dtest-replication.c62 cmp_buf = g_malloc(pattern_count); in test_blk_read()
66 pattern_buf = g_malloc(count); in test_blk_read()
103 pattern_buf = g_malloc(count); in test_blk_write()
/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-page_range_tree.c40 uint64_t *key = g_malloc(sizeof(*key)); in page_range_tree_insert_new()
41 PageRange *range = g_malloc(sizeof(*range)); in page_range_tree_insert_new()
/openbmc/qemu/tests/migration/
H A Dstress.c162 g_autofree char *ram = g_malloc(ramsizeMB * 1024 * 1024); in stressone()
165 g_autofree char *data = g_malloc(RAM_PAGE_SIZE); in stressone()
/openbmc/qemu/disas/
H A Dobjdump.c14 g_autofree uint8_t *buf = g_malloc(n); in print_insn_objdump()
/openbmc/qemu/include/
H A Dglib-compat.h97 new_mem = g_malloc(byte_size); in g_memdup2_qemu()
/openbmc/qemu/include/qapi/
H A Dutil.h40 typeof(list) _tmp = g_malloc(sizeof(*(list))); \
/openbmc/qemu/hw/core/
H A Deif.c526 iov_ptr = g_malloc(sizeof(struct iovec)); in read_eif_file()
566 iov_ptr = g_malloc(sizeof(struct iovec)); in read_eif_file()
598 iov_ptr = g_malloc(sizeof(struct iovec)); in read_eif_file()
701 iov_ptr = g_malloc(sizeof(struct iovec)); in read_eif_file()
/openbmc/qemu/hw/xtensa/
H A Dxtfpga.c163 ram = g_malloc(sizeof(*ram)); in xtfpga_net_init()
294 system_io = g_malloc(sizeof(*system_io)); in xtfpga_init()
299 MemoryRegion *io = g_malloc(sizeof(*io)); in xtfpga_init()
451 MemoryRegion *flash_io = g_malloc(sizeof(*flash_io)); in xtfpga_init()

12345678910