Home
last modified time | relevance | path

Searched refs:malloc (Results 376 - 400 of 3620) sorted by relevance

1...<<11121314151617181920>>...145

/kernel/linux/linux-6.6/tools/include/nolibc/
H A Dstring.h12 static void *malloc(size_t len);
174 ret = malloc(len + 1); in strdup()
188 ret = malloc(len + 1); in strndup()
/test/testfwk/arkxtest/uitest/cj/
H A Dui_event_observer_impl.cpp119 result.bundleName = static_cast<char *>(malloc(bundleName.size() + 1)); in CreateElementInfo()
124 result.componentType = static_cast<char *>(malloc(type.size() + 1)); in CreateElementInfo()
130 result.text = static_cast<char *>(malloc(text.size() + 1)); in CreateElementInfo()
/third_party/exfatprogs/dump/
H A Ddump.c79 ppbr = malloc(EXFAT_MAX_SECTOR_SIZE); in exfat_show_ondisk_all_info()
141 ed = malloc(sizeof(struct exfat_dentry)*3); in exfat_show_ondisk_all_info()
182 bitmap = malloc(bitmap_len); in exfat_show_ondisk_all_info()
/third_party/libsnd/src/
H A Dogg_vcomment.c101 tag = malloc (tag_size) ; in vorbiscomment_read_tags()
122 tag = malloc (tag_size) ; in vorbiscomment_read_tags()
152 tag = malloc (tag_size) ; in vorbiscomment_read_tags()
/third_party/mesa3d/src/freedreno/drm/virtio/
H A Dvirtio_ringbuffer.c135 submit_bos = malloc(fd_submit->nr_bos * sizeof(submit_bos[0])); in flush_submit_list()
136 guest_handles = malloc(fd_submit->nr_bos * sizeof(guest_handles[0])); in flush_submit_list()
160 struct msm_ccmd_gem_submit_req *req = malloc(req_len); in flush_submit_list()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-raw-proxy/
H A Dminimal-ws-raw-proxy.c85 pc = malloc(sizeof(*pc)); in callback_proxy_ws_server()
203 msg = (proxy_msg_t *)malloc(sizeof(*msg) + LWS_PRE + len); in callback_proxy_ws_server()
312 msg = (proxy_msg_t *)malloc(sizeof(*msg) + LWS_PRE + len); in callback_proxy_raw_client()
/third_party/mesa3d/src/mesa/program/
H A Dprog_cache.c93 items = malloc(size * sizeof(*items)); in rehash()
214 c->key = malloc(keysize); in _mesa_program_cache_insert()
243 c->key = malloc(keysize); in _mesa_shader_cache_insert()
/third_party/icu/icu4c/source/samples/ucnv/
H A Dflagcb.c24 ctx = (FromUFLAGContext*) malloc(sizeof(FromUFLAGContext)); in flagCB_fromU_openContext()
161 newCtx = malloc(sizeof(debugCBContext)); in debugCB_clone()
276 ctx = malloc(sizeof(debugCBContext)); in debugCB_openContext()
/third_party/ltp/testcases/realtime/perf/latency/
H A Dpthread_cond_many.c199 pt = malloc(sizeof(*pt) * nthreads); in test_signal()
307 child_waiting = malloc(sizeof(*child_waiting) * nthreads); in main()
308 condlist = malloc(sizeof(*condlist) * nthreads); in main()
/third_party/musl/libc-test/src/functional/
H A Ddl_multithread_lock.c114 char *memory = (char *)malloc(TEST_SIZE); in CallBack004()
177 pthread_t *threads = (pthread_t *) malloc(sizeof(pthread_t) * num_threads); in do_test_concurrently()
205 pthread_t *threads = (pthread_t *) malloc(sizeof(pthread_t) * (num_threads1 + num_threads2)); in do_test_double_concurrently()
346 * @tc.desc : malloc and fork in different threads to check that there is no ABBA deadlock
H A Dtest-malloc-info-stats-print.h22 #include <malloc.h>
28 #include "test-malloc-stats-common.h"
85 ptrs[i] = malloc(sizes[i]); in get_main_thread_test_results()
138 allocs[i] = malloc(sizes[i]); in allocate_and_abandon()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Djdatadst.c26 #ifndef HAVE_STDLIB_H /* <stdlib.h> should declare malloc(),free() */
27 extern void *malloc(size_t size);
139 nextbuffer = (JOCTET *)malloc(nextsize); in METHODDEF()
241 * The standard library functions malloc/free are used for allocating
283 dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest()
/third_party/skia/third_party/externals/icu/source/samples/ucnv/
H A Dflagcb.c24 ctx = (FromUFLAGContext*) malloc(sizeof(FromUFLAGContext)); in flagCB_fromU_openContext()
161 newCtx = malloc(sizeof(debugCBContext)); in debugCB_clone()
276 ctx = malloc(sizeof(debugCBContext)); in debugCB_openContext()
/third_party/selinux/libsepol/src/
H A Dibpkey_record.c82 tmp_subnet_prefix = malloc(INET6_ADDRSTRLEN); in ibpkey_alloc_subnet_prefix_string()
104 (sepol_ibpkey_key_t *)malloc(sizeof(sepol_ibpkey_key_t)); in sepol_ibpkey_key_create()
290 sepol_ibpkey_t *tmp_ibpkey = (sepol_ibpkey_t *)malloc(sizeof(sepol_ibpkey_t)); in sepol_ibpkey_create()
/third_party/lz4/programs/
H A Dlz4io.c51 #include <stdlib.h> /* malloc, free */
150 LZ4IO_prefs_t* const ret = (LZ4IO_prefs_t*)malloc(sizeof(*ret)); in LZ4IO_defaultPreferences()
438 in_buff = (char*)malloc(LEGACY_BLOCKSIZE); in LZ4IO_compressFilename_Legacy()
439 out_buff = (char*)malloc((size_t)outBuffSize + 4); in LZ4IO_compressFilename_Legacy()
505 char* dstFileName = (char*)malloc(FNSPACE); in LZ4IO_compressMultipleFilenames_Legacy()
524 dstFileName = (char*)malloc(ofnSize); in LZ4IO_compressMultipleFilenames_Legacy()
562 char* circularBuf = (char*)malloc(circularBufSize); in LZ4IO_createDict()
598 dictBuf = (char *)malloc(dictLen ? dictLen : 1); in LZ4IO_createDict()
633 ress.srcBuffer = malloc(blockSize); in LZ4IO_createCResources()
636 ress.dstBuffer = malloc(res in LZ4IO_createCResources()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dcgroup_util.c61 char *ret = malloc(len); in cg_name()
71 char *ret = malloc(len); in cg_name_indexed()
81 char *ret = malloc(len); in cg_control()
113 buf = malloc(size); in cg_read_strcmp()
487 buf = malloc(size); in alloc_anon()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
H A Ddemand_paging_test.c268 guest_data_prototype = malloc(perf_test_args.host_page_size); in run_test()
273 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
280 malloc(nr_vcpus * sizeof(*uffd_handler_threads)); in run_test()
283 uffd_args = malloc(nr_vcpus * sizeof(*uffd_args)); in run_test()
286 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dvalues.c15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
25 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
27 values->countername = malloc(values->counters_max in perf_read_values_init()
208 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dvalues.c15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
25 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
27 values->countername = malloc(values->counters_max in perf_read_values_init()
208 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dcgroup_util.c58 char *ret = malloc(len); in cg_name()
68 char *ret = malloc(len); in cg_name_indexed()
78 char *ret = malloc(len); in cg_control()
110 buf = malloc(size); in cg_read_strcmp()
500 buf = malloc(size); in alloc_anon()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dmmanndk.cpp25 #include <malloc.h>
190 char *memory = static_cast<char *>(malloc(TEST_SIZE)); in MUnLock()
205 char *memory = static_cast<char *>(malloc(TEST_SIZE)); in MUnLockAll()
244 char *mem = static_cast<char *>(malloc(sizeof(char) * lenV)); in MLock()
269 char *mem = static_cast<char *>(malloc(sizeof(char) * lenV)); in MLock2()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/
H A Dsendresponse_func_test.c361 request.data = malloc(request.len);
393 request.data = malloc(request.len);
425 request.data = malloc(request.len);
457 request.data = malloc(request.len);
491 request.data = malloc(request.len);
/third_party/ffmpeg/libavutil/
H A Dmem.c37 #include <malloc.h>
51 #define malloc AV_JOIN(MALLOC_PREFIX, malloc) macro
57 void *malloc(size_t size);
137 * BTW, malloc seems to do 8-byte alignment by default here. in av_malloc()
140 ptr = malloc(size); in av_malloc()
/third_party/alsa-utils/bat/
H A Danalyze.c307 na.source = (float *)malloc(sizeof(float) * nsamples); in calculate_noise()
313 na.target = (float *)malloc(sizeof(float) * nsamples); in calculate_noise()
379 source = (float *)malloc(sizeof(float) * bat->frames); in find_and_check_noise()
404 p = malloc(bat->frames * bat->frame_size); in reorder_data()
457 bat->buf = malloc(bat->frames * bat->frame_size); in analyze_capture()
/third_party/icu/tools/multi/proj/icu4cscan/
H A Dtestxml.cpp227 rootdata = (UChar***)malloc((sizeof(scanArray)/sizeof(scanArray[0]))*sizeof(rootdata[0])); in initroot()
228 starts = (int*)malloc((sizeof(scanArray)/sizeof(scanArray[0]))*sizeof(starts[0])); in initroot()
232 rootdata[i]=(UChar**)malloc(thisCount*sizeof(rootdata[i][0])); in initroot()
242 rootdata[i][j]=(UChar*)malloc(1024); in initroot()
280 s = (UChar*) malloc(sizeof(UChar) * (len+1)); in date()

Completed in 17 milliseconds

1...<<11121314151617181920>>...145