Home
last modified time | relevance | path

Searched refs:g_try_malloc (Results 1 – 23 of 23) sorted by relevance

/openbmc/qemu/migration/
H A Dpage_cache.c61 cache = g_try_malloc(sizeof(*cache)); in cache_init()
73 cache->page_cache = g_try_malloc((cache->max_num_items) * in cache_init()
161 it->it_data = g_try_malloc(cache->page_size); in cache_insert()
H A Dmultifd-zlib.c52 z->zbuff = g_try_malloc(z->zbuff_len); in multifd_zlib_send_setup()
57 z->buf = g_try_malloc(qemu_target_page_size()); in multifd_zlib_send_setup()
180 z->zbuff = g_try_malloc(z->zbuff_len); in multifd_zlib_recv_setup()
H A Dmultifd-zstd.c62 z->zbuff = g_try_malloc(z->zbuff_len); in multifd_zstd_send_setup()
174 z->zbuff = g_try_malloc(z->zbuff_len); in multifd_zstd_recv_setup()
H A Dmultifd-uadk.c77 wd->buf = g_try_malloc(size); in multifd_uadk_init_sess()
H A Dram.c2668 XBZRLE.current_buf = g_try_malloc(TARGET_PAGE_SIZE); in xbzrle_init()
/openbmc/qemu/hw/core/
H A Deif.c285 sig = g_try_malloc(size); in get_signature_fingerprint_sha384()
332 cert = g_try_malloc(len); in get_signature_fingerprint_sha384()
520 ptr = g_try_malloc(hdr.section_size); in read_eif_file()
549 *cmdline = g_try_malloc(size + 1); in read_eif_file()
592 ptr = g_try_malloc(hdr.section_size); in read_eif_file()
635 buf = g_try_malloc(size); in read_eif_file()
695 ptr = g_try_malloc(machine_initrd_size); in read_eif_file()
/openbmc/qemu/scripts/coccinelle/
H A Duse-g_new-etc.cocci10 -g_try_malloc(sizeof(T))
32 -g_try_malloc(sizeof(T) * (n))
/openbmc/qemu/block/
H A Dcloop.c138 s->offsets = g_try_malloc(offsets_size); in cloop_open()
184 s->compressed_block = g_try_malloc(max_compressed_block_size + 1); in cloop_open()
191 s->uncompressed_block = g_try_malloc(s->block_size); in cloop_open()
H A Dnfs.c309 buf = g_try_malloc(bytes); in nfs_co_pwritev()
H A Dqcow2-refcount.c114 s->refcount_table = g_try_malloc(refcount_table_size2); in qcow2_refcount_init()
1885 l1_table = g_try_malloc(l1_size_bytes); in check_refcounts_l1()
3009 l1 = g_try_malloc(l1_sz2); in qcow2_check_metadata_overlap()
H A Dcurl.c926 state->orig_buf = g_try_malloc(state->buf_len); in curl_setup_preadv()
H A Dqcow2-bitmap.c576 dir = g_try_malloc(size); in bitmap_list_load()
H A Dvmdk.c608 extent->l1_table = g_try_malloc(l1_size); in vmdk_init_tables()
633 extent->l1_backup_table = g_try_malloc(l1_size); in vmdk_init_tables()
H A Dvvfat.c1551 buf = g_try_malloc(bytes); in vvfat_co_preadv()
3122 buf = g_try_malloc(bytes); in vvfat_co_pwritev()
H A Dqcow2.c4837 buf = g_try_malloc(csize); in qcow2_co_preadv_compressed()
/openbmc/qemu/hw/s390x/
H A Ds390-stattrib.c83 vals = g_try_malloc(buflen); in hmp_info_cmma()
131 buf = g_try_malloc(count); in cmma_load()
210 buf = g_try_malloc(buflen); in cmma_save()
H A Ds390-skeys.c177 buf = g_try_malloc(S390_SKEYS_BUFFER_SIZE); in qmp_dump_skeys()
341 buf = g_try_malloc(S390_SKEYS_BUFFER_SIZE); in s390_storage_keys_save()
422 uint8_t *buf = g_try_malloc(S390_SKEYS_BUFFER_SIZE); in s390_storage_keys_load()
/openbmc/qemu/gdbstub/
H A Duser-target.c347 g_autofree char *buf = g_try_malloc(bufsiz); in gdb_handle_v_file_pread()
366 g_autofree char *buf = g_try_malloc(BUFSIZ); in gdb_handle_v_file_readlink()
/openbmc/qemu/scripts/coverity-scan/
H A Dmodel.c227 void *g_try_malloc(size_t size) in g_try_malloc() function
/openbmc/qemu/backends/tpm/
H A Dtpm_emulator.c763 tsb->buffer = g_try_malloc(totlength); in tpm_emulator_get_state_blob()
/openbmc/qemu/linux-user/
H A Delfload.c3669 strings = g_try_malloc(segsz); in load_symbols()
3686 syms = g_try_malloc(segsz); in load_symbols()
H A Dsyscall.c4278 host_mb = g_try_malloc(msgsz + sizeof(long)); in do_msgsnd()
4336 host_mb = g_try_malloc(msgsz + sizeof(long)); in do_msgrcv()
4687 fm = g_try_malloc(outbufsz); in do_ioctl_fs_ioc_fiemap()
4775 host_ifconf = g_try_malloc(outbufsz); in do_ioctl_ifconf()
8774 hdirp = g_try_malloc(count); in do_getdents()
8861 hdirp = g_try_malloc(count); in do_getdents64()
/openbmc/qemu/target/s390x/kvm/
H A Dkvm.c923 hw_breakpoints = (struct kvm_hw_breakpoint *)g_try_malloc(size); in insert_hw_breakpoint()