/kernel/liteos_a/apps/lms/src/ |
H A D | sample_usr_lms.c | 55 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-6.6/tools/net/ynl/generated/ |
H A D | devlink-user.h | 96 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_get_req_set_bus_name() 105 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_get_req_set_dev_name() 170 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_port_get_req_set_bus_name() 180 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_port_get_req_set_dev_name() 236 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_port_get_req_dump_set_bus_name() 246 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_port_get_req_dump_set_dev_name() 300 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_sb_get_req_set_bus_name() 310 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_sb_get_req_set_dev_name() 365 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_sb_get_req_dump_set_bus_name() 375 req->dev_name = malloc(re in devlink_sb_get_req_dump_set_dev_name() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | hmm-tests.c | 306 buffer = malloc(sizeof(*buffer)); in TEST_F() 311 buffer->mirror = malloc(size); in TEST_F() 369 buffer = malloc(sizeof(*buffer)); in TEST_F() 374 buffer->mirror = malloc(size); in TEST_F() 428 buffer = malloc(sizeof(*buffer)); in TEST_F() 433 buffer->mirror = malloc(size); in TEST_F() 476 buffer = malloc(sizeof(*buffer)); in TEST_F() 481 buffer->mirror = malloc(size); in TEST_F() 544 buffer = malloc(sizeof(*buffer)); in TEST_F() 549 buffer->mirror = malloc(siz in TEST_F() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | hmm-tests.c | 234 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(siz in TEST_F() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 14 #include <malloc.h> 150 reg = malloc(sizeof(unsigned long)); in show_tar_registers() 152 perror("malloc() failed"); in show_tar_registers() 196 reg = malloc(sizeof(unsigned long)); in write_tar_registers() 198 perror("malloc() failed"); in write_tar_registers() 239 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state() 241 perror("malloc() failed"); in show_tm_checkpointed_state() 287 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers() 289 perror("malloc() failed"); in write_ckpt_tar_registers() 330 regs = (struct fpr_regs *) malloc(sizeo in show_fpr() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 11 #include <malloc.h> 146 reg = malloc(sizeof(unsigned long)); in show_tar_registers() 148 perror("malloc() failed"); in show_tar_registers() 192 reg = malloc(sizeof(unsigned long)); in write_tar_registers() 194 perror("malloc() failed"); in write_tar_registers() 235 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state() 237 perror("malloc() failed"); in show_tm_checkpointed_state() 283 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers() 285 perror("malloc() failed"); in write_ckpt_tar_registers() 326 regs = (struct fpr_regs *) malloc(sizeo in show_fpr() [all...] |
/kernel/linux/linux-5.10/include/linux/decompress/ |
H A D | mm.h | 28 /* A trivial malloc implementation, adapted from 29 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 34 static void *malloc(size_t size) in malloc() function 62 #define large_malloc(a) malloc(a) 81 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
|
/kernel/linux/linux-6.6/include/linux/decompress/ |
H A D | mm.h | 29 * When an architecture needs to share the malloc()/free() implementation 36 /* A trivial malloc implementation, adapted from 37 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 42 MALLOC_VISIBLE void *malloc(int size) in malloc() function 70 #define large_malloc(a) malloc(a) 89 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
|
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
H A D | IO_test_confstr_001.cpp | 42 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()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/tde/driver/src/src/ |
H A D | wmalloc.c | 110 tde_info("eUnitSize %d, malloc units:%d, first malloc unit:%d...\n", block->n_unit_size, block->n_free, in malloc_unit() 134 hi_void *malloc = HI_NULL; in wmalloc() local 141 malloc = malloc_unit(i); in wmalloc() 142 if (malloc != HI_NULL) { in wmalloc() 143 return malloc; in wmalloc() 149 malloc = malloc_unit(i); in wmalloc() 150 if (malloc != HI_NULL) { in wmalloc() 151 return malloc; in wmalloc() 157 malloc in wmalloc() [all...] |
/kernel/linux/linux-5.10/tools/vm/ |
H A D | page_owner_sort.c | 74 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/tools/testing/radix-tree/ |
H A D | linux.c | 4 #include <malloc.h> 49 p = malloc(cachep->size); in kmem_cache_alloc() 88 ret = malloc(size); in kmalloc() 91 printf("Allocating %p from malloc\n", ret); in kmalloc() 103 printf("Freeing %p to malloc\n", p); in kfree() 111 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
|
/kernel/linux/linux-5.10/lib/ |
H A D | decompress_inflate.c | 55 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()
|
H A D | decompress_unxz.c | 157 #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-6.6/lib/ |
H A D | decompress_inflate.c | 55 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()
|
/kernel/linux/linux-5.10/tools/power/cpupower/lib/ |
H A D | cpufreq.c | 231 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(sizeo in sysfs_get_cpu_list() [all...] |
/kernel/linux/linux-6.6/tools/power/cpupower/lib/ |
H A D | cpufreq.c | 240 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy() 290 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors() 295 first = malloc(sizeof(*first)); in cpufreq_get_available_governors() 303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors() 367 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies() 372 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies() 423 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies() 428 first = malloc(sizeof(*first)); in cpufreq_get_boost_frequencies() 498 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list() 503 first = malloc(sizeo in sysfs_get_cpu_list() [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | bpf_map.c | 23 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()
|
H A D | levenshtein.c | 48 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()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | bpf_map.c | 23 return malloc(round_up(bpf_map__value_size(map), 8) * in bpf_map__alloc_value() 26 return malloc(bpf_map__value_size(map)); in bpf_map__alloc_value() 42 key = malloc(bpf_map__key_size(map)); in bpf_map__fprintf()
|
H A D | levenshtein.c | 48 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()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_005.cpp | 51 void *pstk = malloc(STACK_SIZE); in ChildFunClone2() 98 void *pstk = malloc(STACK_SIZE); in ChildFunClone1() 127 void *pstk = malloc(STACK_SIZE); in ItPidContainer005()
|
H A D | It_pid_container_004.cpp | 41 void *pstk = malloc(STACK_SIZE); in ChildFunClone2() 62 void *pstk = malloc(STACK_SIZE); in ChildFunClone1() 94 void *pstk = malloc(STACK_SIZE); in ItPidContainer004()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_pid_container_028.cpp | 51 void *pstk = malloc(STACK_SIZE); in ChildFunClone2() 99 void *pstk = malloc(STACK_SIZE); in ChildFunClone1() 131 void *pstk = malloc(STACK_SIZE); in ItPidContainer028()
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpuidle_sysfs.c | 178 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()
|