Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 115) sorted by relevance

12345

/xen/xen/common/
A Ddecompress.h14 #define malloc xmalloc_bytes macro
26 #define large_malloc malloc
A Dunxz.c189 b.out = malloc(XZ_IOBUF_SIZE); in unxz()
196 in = malloc(XZ_IOBUF_SIZE); in unxz()
A Dinflate.c241 static void *INIT malloc(int size) in malloc() function
269 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
360 stk = malloc(sizeof(*stk)); in huft_build()
484 if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) == in huft_build()
775 l = malloc(sizeof(*l) * 288); in inflate_fixed()
848 ll = malloc(sizeof(*ll) * (288+32)); /* literal/length and distance code lengths */ in inflate_dynamic()
850 ll = malloc(sizeof(*ll) * (286+30)); /* literal/length and distance code lengths */ in inflate_dynamic()
A Dunlzo.c147 out_buf = malloc(LZO_BLOCK_SIZE); in unlzo()
163 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); in unlzo()
/xen/stubdom/vtpm/
A Dvtpm_cmd.c108 bptr = cmdbuf = malloc(size); in VTPM_GetRandom()
151 bptr = cmdbuf = malloc(size); in VTPM_LoadHashKey()
170 *data = malloc(*data_length); in VTPM_LoadHashKey()
195 bptr = cmdbuf = malloc(size); in VTPM_SaveHashKey()
236 bptr = cmdbuf = malloc(size); in VTPM_GetParentQuote()
280 bptr = cmdbuf = malloc(size); in VTPM_PCRRead()
A Dvtpmblk.c157 clbuf = malloc(clen); in encrypt_vtpmblk()
170 cptr = *cipher = malloc(*cipher_len); in encrypt_vtpmblk()
209 if((*clear = malloc(clen)) == NULL) { in decrypt_vtpmblk()
/xen/tools/libfsimage/common/
A Dfsimage_plugin.c46 fsi_file_t *ffi = malloc(sizeof (fsi_file_t)); in fsip_file_alloc()
90 fsi_plugin_t *fp = malloc(sizeof (fsi_plugin_t)); in init_plugin()
138 if ((tmp = malloc(name_max + 1)) == NULL) in load_plugins()
A Dfsimage.c48 if ((fsi = malloc(sizeof(*fsi))) == NULL) in fsi_open_fsimage()
148 fsi->f_bootstring = malloc(len); in fsi_bootstring_alloc()
/xen/tools/misc/
A Dxen-livepatch.c101 info = malloc(nr * sizeof(*info)); in list_func()
105 name = malloc(name_total_size * sizeof(*name)); in list_func()
109 len = malloc(nr * sizeof(*len)); in list_func()
113 metadata = malloc(metadata_total_size * sizeof(*metadata) + 1); in list_func()
117 metadata_len = malloc(nr * sizeof(*metadata_len)); in list_func()
510 apply_argv = (char **) malloc(argc * sizeof(*apply_argv)); in load_func()
/xen/tools/libxc/
A Dxc_core_x86.c55 map = malloc(sizeof(*map)); in xc_core_arch_memory_map_get()
110 if ( !(p2m_frame_list_list = malloc(PAGE_SIZE)) ) in xc_core_arch_map_p2m_rw()
140 if ( !(p2m_frame_list = malloc(P2M_TOOLS_FL_SIZE)) ) in xc_core_arch_map_p2m_rw()
A Dxc_sr_restore.c141 xen_pfn_t *mfns = malloc(count * sizeof(*mfns)), in populate_pfns()
142 *pfns = malloc(count * sizeof(*pfns)); in populate_pfns()
209 xen_pfn_t *mfns = malloc(count * sizeof(*mfns)); in process_page_data()
210 int *map_errs = malloc(count * sizeof(*map_errs)); in process_page_data()
390 pfns = malloc(pages->count * sizeof(*pfns)); in handle_page_data()
391 types = malloc(pages->count * sizeof(*types)); in handle_page_data()
478 pfns = malloc(count * sizeof(*pfns)); in send_checkpoint_dirty_pfn_list()
501 iov = malloc(3 * sizeof(*iov)); in send_checkpoint_dirty_pfn_list()
757 ctx->restore.buffered_records = malloc( in setup()
A Dxc_core.c84 strtab = malloc(sizeof(*strtab)); in xc_core_strtab_init()
88 strings = malloc(PAGE_SIZE); in xc_core_strtab_init()
167 sheaders = malloc(sizeof(*sheaders)); in xc_core_shdr_init()
173 sheaders->shdrs = malloc(sizeof(sheaders->shdrs[0]) * sheaders->num_max); in xc_core_shdr_init()
463 if ( (dump_mem_start = malloc(DUMP_INCREMENT*PAGE_SIZE)) == NULL ) in xc_domain_dumpcore_via_callback()
568 p2m_array = malloc(nr_pages * sizeof(p2m_array[0])); in xc_domain_dumpcore_via_callback()
582 pfn_array = malloc(nr_pages * sizeof(pfn_array[0])); in xc_domain_dumpcore_via_callback()
A Dxc_sr_common_x86.c59 cpuid.data = malloc(nr_leaves * sizeof(xen_cpuid_leaf_t)); in write_x86_cpu_policy_records()
60 msrs.data = malloc(nr_msrs * sizeof(xen_msr_entry_t)); in write_x86_cpu_policy_records()
A Dxc_sr_common_x86_pv.c115 extents_start = malloc(m2p_chunks * sizeof(xen_pfn_t)); in x86_pv_map_m2p()
129 entries = malloc(m2p_chunks * sizeof(privcmd_mmap_entry_t)); in x86_pv_map_m2p()
A Dxc_sr_save_x86_pv.c95 ctx->x86.pv.p2m_pfns = malloc(n_mfns * sizeof(*mfns)); in map_p2m_leaves()
173 local_fll = malloc(local_fll_size); in map_p2m_tree()
236 local_fl = malloc(local_fl_size); in map_p2m_tree()
374 mfns = malloc(sizeof(*mfns)); in map_p2m_list()
400 mfns = malloc(sizeof(*mfns) * idx); in map_p2m_list()
831 if ( !(data = malloc(datasz)) ) in write_x86_pv_p2m_frames()
1013 local_page = malloc(PAGE_SIZE); in x86_pv_normalise_page()
A Dxc_sr_save.c108 mfns = malloc(nr_pfns * sizeof(*mfns)); in write_batch()
110 types = malloc(nr_pfns * sizeof(*types)); in write_batch()
112 errors = malloc(nr_pfns * sizeof(*errors)); in write_batch()
118 iov = malloc((nr_pfns + 4) * sizeof(*iov)); in write_batch()
215 rec_pfns = malloc(nr_pfns * sizeof(*rec_pfns)); in write_batch()
810 ctx->save.batch_pfns = malloc(MAX_BATCH_SIZE * in setup()
/xen/tools/libfsimage/ext2fs-lib/
A Dext2fs-lib.c40 fs = malloc(sizeof (*fs)); in ext2lib_mount()
86 f = malloc(sizeof (*f)); in ext2lib_open()
/xen/tools/libxl/
A Dlibxlu_cfg.c31 cfg= malloc(sizeof(*cfg)); in xlu_cfg_init()
371 sl = malloc(sizeof(char*)*(nr + 1)); in xlu_cfg_get_list_as_string_list()
399 value = malloc(sizeof(*value)); in xlu__cfg_string_mk()
424 values = malloc(sizeof(*values)); in xlu__cfg_list_mk()
428 value = malloc(sizeof(*value)); in xlu__cfg_list_mk()
572 set = malloc(sizeof(*set)); in xlu__cfg_set_store()
610 result= malloc(len-1); in xlu__cfgl_dequote()
/xen/tools/fuzz/cpu-policy/
A Dafl-policy-fuzzer.c24 xen_cpuid_leaf_t *leaves = malloc(CPUID_MAX_SERIALISED_LEAVES * in check_cpuid()
83 xen_msr_entry_t *msrs = malloc(MSR_MAX_SERIALISED_ENTRIES * in check_msr()
/xen/tools/libs/foreignmemory/
A Dcore.c37 xenforeignmemory_handle *fmem = malloc(sizeof(*fmem)); in xenforeignmemory_open()
92 err = err_to_free = malloc(num * sizeof(int)); in xenforeignmemory_map2()
A Dcompat.c37 pfn = malloc(num * sizeof(*pfn)); in osdep_xenforeignmemory_map()
/xen/stubdom/grub/
A Dmini-os.c70 blk_dev = malloc(blk_nb * sizeof(*blk_dev)); in init_disk()
71 blk_info = malloc(blk_nb * sizeof(*blk_info)); in init_disk()
153 buf = malloc(allocated); in load_file()
674 mfns = malloc(numpages * sizeof(*mfns)); in fb_open()
/xen/tools/xenstat/libxenstat/src/
A Dxenstat_netbsd.c47 handle->priv = malloc(sizeof(struct priv_data)); in get_priv_data()
/xen/tools/xenstore/
A Dxenstore_control.c26 par = malloc(len); in main()
/xen/tools/libs/evtchn/
A Dcore.c33 xenevtchn_handle *xce = malloc(sizeof(*xce)); in xenevtchn_open()

Completed in 45 milliseconds

12345