Home
last modified time | relevance | path

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

12345678910>>...17

/kernel/liteos_a/apps/lms/src/
Dsample_usr_lms.c55 char *buf = (char *)malloc(TEST_SIZE); in LmsMallocTest()
73 char *buf = (char *)malloc(TEST_SIZE); in LmsReallocTest()
135 char *buf = (char *)malloc(TEST_SIZE); in LmsMemsetTest()
149 char *buf = (char *)malloc(TEST_SIZE); in LmsMemcpyTest()
164 char *buf = (char *)malloc(TEST_SIZE); in LmsMemmoveTest()
178 char *buf = (char *)malloc(TEST_SIZE); in LmsStrcpyTest()
194 char *buf = (char *)malloc(TEST_SIZE); in LmsStrcatTest()
214 char *buf = (char *)malloc(TEST_SIZE); in LmsFreeTest()
232 char *tmp = (char *)malloc(5000); /* 5000: test mem size */ in main()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dhmm-tests.c234 buffer = malloc(sizeof(*buffer)); in TEST_F()
239 buffer->mirror = malloc(size); in TEST_F()
297 buffer = malloc(sizeof(*buffer)); in TEST_F()
302 buffer->mirror = malloc(size); in TEST_F()
356 buffer = malloc(sizeof(*buffer)); in TEST_F()
361 buffer->mirror = malloc(size); in TEST_F()
404 buffer = malloc(sizeof(*buffer)); in TEST_F()
409 buffer->mirror = malloc(size); in TEST_F()
472 buffer = malloc(sizeof(*buffer)); in TEST_F()
477 buffer->mirror = malloc(size); in TEST_F()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
Dptrace.h146 reg = malloc(sizeof(unsigned long)); in show_tar_registers()
192 reg = malloc(sizeof(unsigned long)); in write_tar_registers()
235 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state()
283 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers()
326 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_fpr()
345 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_fpr()
369 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_ckpt_fpr()
393 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_ckpt_fpr()
420 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in show_gpr()
445 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in write_gpr()
[all …]
/kernel/linux/linux-5.10/include/linux/decompress/
Dmm.h34 static void *malloc(int size) in malloc() function
62 #define large_malloc(a) malloc(a)
81 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/kernel/linux/linux-5.10/tools/power/cpupower/lib/
Dcpufreq.c231 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
281 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
286 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
358 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
363 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies()
414 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies()
419 first = malloc(sizeof(*first)); in cpufreq_get_boost_frequencies()
489 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
494 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
[all …]
/kernel/liteos_a/testsuites/unittest/libc/io/full/
DIO_test_confstr_001.cpp42 pathbuf = (char *)malloc(n); in testcase()
54 gun_libpthread_version_buf = (char *)malloc(n); in testcase()
67 gun_libc_version_buf = (char *)malloc(n); in testcase()
/kernel/linux/linux-5.10/tools/perf/util/
Dlevenshtein.c48 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
49 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
50 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
Dbpf_map.c23 return malloc(round_up(def->value_size, 8) * sysconf(_SC_NPROCESSORS_CONF)); in bpf_map_def__alloc_value()
25 return malloc(def->value_size); in bpf_map_def__alloc_value()
42 key = malloc(def->key_size); in bpf_map__fprintf()
Dblock-range.c120 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
143 entry = malloc(sizeof(struct block_range)); in block_range__create()
167 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
205 struct block_range *tail = malloc(sizeof(struct block_range)); in block_range__create()
252 tail = malloc(sizeof(struct block_range)); in block_range__create()
275 struct block_range *hole = malloc(sizeof(struct block_range)); in block_range__create()
Dtrace-event-read.c136 str = malloc(size); in read_string()
176 buf = malloc(size + 1); in read_ftrace_printk()
210 header_page = malloc(size); in read_header_files()
249 buf = malloc(size); in read_ftrace_file()
275 buf = malloc(size); in read_event_file()
353 buf = malloc(size + 1); in read_saved_cmdline()
/kernel/linux/linux-5.10/tools/vm/
Dpage_owner_sort.c74 list[list_size].txt = malloc(len+1); in add_list()
113 list = malloc(max_size * sizeof(*list)); in main()
114 buf = malloc(BUF_SIZE); in main()
134 list2 = malloc(sizeof(*list) * list_size); in main()
/kernel/linux/linux-5.10/lib/
Ddecompress_inflate.c55 out_buf = malloc(out_len); in __gunzip()
68 zbuf = malloc(GZIP_IOBUF_SIZE); in __gunzip()
76 strm = malloc(sizeof(*strm)); in __gunzip()
82 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()
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c178 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
179 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
181 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
183 current_count[num] = malloc(sizeof(long long) * in cpuidle_register()
/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c227 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main()
274 buf_in = malloc(BUF_LEN); in main()
275 buf_out = malloc(BUF_LEN); in main()
276 iocb_in = malloc(sizeof(*iocb_in)); in main()
277 iocb_out = malloc(sizeof(*iocb_out)); in main()
/kernel/liteos_m/testsuites/unittest/posix/src/string/
Dmemory_func_test.c262 char *source = (char *)malloc(20);
274 mem = malloc(mlen);
308 char *source = (char *)malloc(20);
320 void *mem = malloc(len);
355 char *source = (char *)malloc(20);
/kernel/linux/linux-5.10/tools/spi/
Dspidev_test.c318 tx = malloc(size); in transfer_escaped_string()
322 rx = malloc(size); in transfer_escaped_string()
347 tx = malloc(sb.st_size); in transfer_file()
351 rx = malloc(sb.st_size); in transfer_file()
388 tx = malloc(len); in transfer_buf()
394 rx = malloc(len); in transfer_buf()
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dlinux.c49 p = malloc(cachep->size); in kmem_cache_alloc()
88 ret = malloc(size); in kmalloc()
111 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dumid.c52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
142 file = malloc(filelen); in is_umdir_used()
217 file = malloc(n); in create_pid_file()
372 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
396 dir = malloc(strlen(uml_dir) + UMID_LEN + 1); in remove_umid_dir()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/
Darray_map_batch_ops.c71 keys = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops()
72 values = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops()
73 visited = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops()
/kernel/liteos_a/lib/libscrew/src/
Dlos_seq_buf.c50 newBuf = (char*)malloc(seqBuf->size <<= 1); in ExpandSeqBuf()
80 seqBuf = (struct SeqBuf *)malloc(sizeof(struct SeqBuf)); in LosBufCreat()
101 seqBuf->buf = (char *)malloc(seqBuf->size); in LosBufVprintf()
/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c211 iobuf->buf = malloc(n*sizeof(*iobuf->buf)); in init_bufs()
212 iobuf->iocb = malloc(n*sizeof(*iobuf->iocb)); in init_bufs()
217 iobuf->buf[i] = malloc(len*sizeof(**iobuf->buf)); in init_bufs()
218 iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb)); in init_bufs()
256 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf_prog_linfo.c127 prog_linfo->raw_linfo = malloc(data_sz); in bpf_prog_linfo__new()
147 prog_linfo->raw_jited_linfo = malloc(data_sz); in bpf_prog_linfo__new()
154 prog_linfo->nr_jited_linfo_per_func = malloc(nr_jited_func * in bpf_prog_linfo__new()
163 prog_linfo->jited_linfo_func_idx = malloc(nr_jited_func * in bpf_prog_linfo__new()
/kernel/uniproton/src/fs/vfs/
Dvfs_partition.c97 prev = (struct TagDeviceDesc *)malloc(sizeof(struct TagDeviceDesc)); in OsAddDevice()
104 prev->dAddrArray = (S32 *)malloc(partNum * sizeof(S32)); in OsAddDevice()
113 prev->dLengthArray = (S32 *)malloc(partNum * sizeof(S32)); in OsAddDevice()
/kernel/linux/linux-5.10/arch/parisc/boot/compressed/
Dmisc.c22 #define malloc malloc_gzip macro
206 #undef malloc
207 void *malloc(size_t size) in malloc() function
258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()

12345678910>>...17