Home
last modified time | relevance | path

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

12345

/linux-3.4.99/include/linux/decompress/
Dmm.h33 static void *malloc(int size) in malloc() function
61 #define large_malloc(a) malloc(a)
80 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/linux-3.4.99/lib/
Ddecompress_inflate.c49 out_buf = malloc(out_len); in gunzip()
61 zbuf = malloc(GZIP_IOBUF_SIZE); in gunzip()
69 strm = malloc(sizeof(*strm)); in gunzip()
75 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in gunzip()
Ddecompress_unxz.c157 #define kmalloc(size, flags) malloc(size)
159 #define vmalloc(size) malloc(size)
282 b.out = malloc(XZ_IOBUF_SIZE); in unxz()
289 in = malloc(XZ_IOBUF_SIZE); in unxz()
Dinflate.c244 static void *malloc(int size) in malloc() function
272 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
363 stk = malloc(sizeof(*stk)); in huft_build()
487 if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) == in huft_build()
778 l = malloc(sizeof(*l) * 288); in inflate_fixed()
851 ll = malloc(sizeof(*ll) * (288+32)); /* literal/length and distance code lengths */ in inflate_dynamic()
853 ll = malloc(sizeof(*ll) * (286+30)); /* literal/length and distance code lengths */ in inflate_dynamic()
Ddecompress_unlzo.c130 out_buf = malloc(LZO_BLOCK_SIZE); in unlzo()
146 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); in unlzo()
/linux-3.4.99/tools/perf/util/
Dlevenshtein.c45 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
46 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
47 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
Dvalues.c9 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
10 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
11 values->value = malloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
17 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
19 values->countername = malloc(values->counters_max in perf_read_values_init()
72 values->value[i] = malloc(values->counters_max * sizeof(**values->value)); in perf_read_values__findnew_thread()
137 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
Dtrace-event-scripting.c90 scripting_context = malloc(sizeof(struct scripting_context)); in register_python_scripting()
151 scripting_context = malloc(sizeof(struct scripting_context)); in register_perl_scripting()
Dcpumap.c16 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); in cpu_map__default_new()
31 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()
182 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); in cpu_map__dummy_new()
Dthread_map.c35 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
51 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid()
67 struct thread_map *threads = malloc(sizeof(*threads) + in thread_map__new_by_uid()
230 threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid_str()
Dstrlist.c15 struct str_node *self = malloc(sizeof(*self)); in str_node__new()
156 struct strlist *self = malloc(sizeof(*self)); in strlist__new()
/linux-3.4.99/tools/power/cpupower/lib/
Dsysfs.c251 policy = malloc(sizeof(struct cpufreq_policy)); in sysfs_get_freq_policy()
290 current->next = malloc(sizeof(*current)); in sysfs_get_freq_available_governors()
295 first = malloc(sizeof(*first)); in sysfs_get_freq_available_governors()
303 current->governor = malloc(i - pos + 1); in sysfs_get_freq_available_governors()
349 current->next = malloc(sizeof(*current)); in sysfs_get_available_frequencies()
354 first = malloc(sizeof(*first)); in sysfs_get_available_frequencies()
404 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
409 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
471 current->next = malloc(sizeof(*current)); in sysfs_get_freq_stats()
476 first = malloc(sizeof(*first)); in sysfs_get_freq_stats()
/linux-3.4.99/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c162 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
163 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
165 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
167 current_count[num] = malloc(sizeof(long long) * in cpuidle_register()
/linux-3.4.99/arch/powerpc/boot/
Dops.h28 void * (*malloc)(unsigned long size); member
217 static inline void *malloc(unsigned long size) in malloc() function
219 return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; in malloc()
/linux-3.4.99/tools/perf/
Dbuiltin-timechart.c171 cursor = malloc(sizeof(struct per_pid)); in find_create_pid()
198 c = malloc(sizeof(struct per_pidcomm)); in pid_set_comm()
242 c = malloc(sizeof(struct per_pidcomm)); in pid_put_sample()
250 sample = malloc(sizeof(struct cpu_sample)); in pid_put_sample()
377 pwr = malloc(sizeof(struct power_event)); in c_state_end()
395 pwr = malloc(sizeof(struct power_event)); in p_state_change()
436 we = malloc(sizeof(struct wake_event)); in sched_wakeup()
582 pwr = malloc(sizeof(struct power_event)); in end_sample_processing()
600 pwr = malloc(sizeof(struct power_event)); in end_sample_processing()
740 task_from = malloc(40); in draw_wakeups()
[all …]
/linux-3.4.99/drivers/staging/iio/Documentation/
Diio_utils.h322 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
466 filename = malloc(strlen(iio_dir) in find_type_by_name()
495 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
542 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
601 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
623 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
/linux-3.4.99/tools/perf/bench/
Dsched-messaging.c206 struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) in group()
214 struct receiver_context *ctx = malloc(sizeof(*ctx)); in group()
282 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in bench_sched_messaging()
/linux-3.4.99/drivers/scsi/aic7xxx/aicasm/
Daicasm.c231 (path_entry_t)malloc(sizeof(*include_dir)); in main()
500 new_patch = (patch_t *)malloc(sizeof(*new_patch)); in emit_patch()
553 func_values = (int *)malloc(func_count * sizeof(int)); in output_listing()
737 new_instr = (struct instruction *)malloc(sizeof(struct instruction)); in seq_alloc()
751 new_cs= (critical_section_t *)malloc(sizeof(critical_section_t)); in cs_alloc()
765 new_scope = (scope_t *)malloc(sizeof(scope_t)); in scope_alloc()
/linux-3.4.99/scripts/kconfig/
Dutil.c26 file = malloc(sizeof(*file)); in file_lookup()
84 gs.s = malloc(sizeof(char) * 64); in str_new()
Dzconf.l43 text = malloc(START_STRSIZE); in new_string()
65 text = malloc(size + 1); in alloc_string()
/linux-3.4.99/arch/um/os-Linux/
Dmain.c103 new_path = malloc(path_len); in setup_env_path()
126 new_argv = malloc((argc + 1) * sizeof(char *)); in main()
Dmem.c45 tempdir = malloc(strlen(dir) + 2); in find_tempdir()
171 tempname = malloc(MAXPATHLEN); in make_tempfile()
/linux-3.4.99/tools/power/cpupower/bench/
Dparse.c83 filename = malloc(sizeof(char) * len); in prepare_output()
125 struct config *config = malloc(sizeof(struct config)); in prepare_default_config()
/linux-3.4.99/Documentation/infiniband/
Duser_mad.txt41 mad = malloc(sizeof *mad + 256);
50 mad = malloc(sizeof *mad + 256);
55 mad = malloc(sizeof *mad + length);
82 mad = malloc(sizeof *mad + mad_length);
/linux-3.4.99/scripts/dtc/
Dutil.h35 void *new = malloc(len); in xmalloc()

12345