Home
last modified time | relevance | path

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

1234567

/openbmc/qemu/hw/uefi/
H A Dvar-service-json.c37 dest = g_malloc(len * 2 + 1); in generate_hexstr()
127 var->name = g_malloc(var->name_size); in uefi_vars_from_qapi()
134 var->data = data = g_malloc(var->data_size); in uefi_vars_from_qapi()
144 var->digest = g_malloc(var->digest_size); in uefi_vars_from_qapi()
234 str = g_malloc(len + 1); in uefi_vars_json_load()
H A Dvar-service-pkcs7.c36 sdata->data = g_malloc(sdata->size); in build_signed_data()
85 wrap.data = g_malloc(wrap.size); in wrap_pkcs7()
112 pkcs7->data = g_malloc(pkcs7->size); in build_pkcs7()
193 cn = g_malloc(cn_size); in build_digest_authvar()
406 *digest = g_malloc(*digest_size); in uefi_vars_check_pkcs7_2()
H A Dvar-service-siglist.c32 c = g_malloc(sizeof(*c) + size); in uefi_vars_siglist_add_x509()
55 h = g_malloc(sizeof(*h) + 32); in uefi_vars_siglist_add_sha256()
/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()
H A Dgetauxval.c58 auxv = a = g_malloc(size); in qemu_init_auxval()
/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/disas/
H A Dobjdump.c14 g_autofree uint8_t *buf = g_malloc(n); in print_insn_objdump()
/openbmc/qemu/tests/unit/
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()
/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/include/qapi/
H A Dutil.h40 typeof(list) _tmp = g_malloc(sizeof(*(list))); \
/openbmc/qemu/include/
H A Dglib-compat.h104 new_mem = g_malloc(byte_size); in g_memdup2_qemu()
/openbmc/qemu/crypto/
H A Drsakey.c78 *dst = g_malloc(*dlen); in qcrypto_akcipher_rsakey_export_p8info()
/openbmc/qemu/tests/migration-stress/
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()

1234567