| /xen/xen/common/ |
| A D | decompress.h | 14 #define malloc xmalloc_bytes macro 26 #define large_malloc malloc
|
| A D | unxz.c | 189 b.out = malloc(XZ_IOBUF_SIZE); in unxz() 196 in = malloc(XZ_IOBUF_SIZE); in unxz()
|
| A D | inflate.c | 241 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 D | unlzo.c | 147 out_buf = malloc(LZO_BLOCK_SIZE); in unlzo() 163 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); in unlzo()
|
| /xen/stubdom/vtpm/ |
| A D | vtpm_cmd.c | 108 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 D | vtpmblk.c | 157 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 D | fsimage_plugin.c | 46 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 D | fsimage.c | 48 if ((fsi = malloc(sizeof(*fsi))) == NULL) in fsi_open_fsimage() 148 fsi->f_bootstring = malloc(len); in fsi_bootstring_alloc()
|
| /xen/tools/misc/ |
| A D | xen-livepatch.c | 101 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 D | xc_core_x86.c | 55 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 D | xc_sr_restore.c | 141 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 D | xc_core.c | 84 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 D | xc_sr_common_x86.c | 59 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 D | xc_sr_common_x86_pv.c | 115 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 D | xc_sr_save_x86_pv.c | 95 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 D | xc_sr_save.c | 108 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 D | ext2fs-lib.c | 40 fs = malloc(sizeof (*fs)); in ext2lib_mount() 86 f = malloc(sizeof (*f)); in ext2lib_open()
|
| /xen/tools/libxl/ |
| A D | libxlu_cfg.c | 31 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 D | afl-policy-fuzzer.c | 24 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 D | core.c | 37 xenforeignmemory_handle *fmem = malloc(sizeof(*fmem)); in xenforeignmemory_open() 92 err = err_to_free = malloc(num * sizeof(int)); in xenforeignmemory_map2()
|
| A D | compat.c | 37 pfn = malloc(num * sizeof(*pfn)); in osdep_xenforeignmemory_map()
|
| /xen/stubdom/grub/ |
| A D | mini-os.c | 70 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 D | xenstat_netbsd.c | 47 handle->priv = malloc(sizeof(struct priv_data)); in get_priv_data()
|
| /xen/tools/xenstore/ |
| A D | xenstore_control.c | 26 par = malloc(len); in main()
|
| /xen/tools/libs/evtchn/ |
| A D | core.c | 33 xenevtchn_handle *xce = malloc(sizeof(*xce)); in xenevtchn_open()
|