Home
last modified time | relevance | path

Searched refs:malloc (Results 1 - 25 of 2175) sorted by relevance

12345678910>>...87

/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/unittest/
H A Degl_blob_test.cpp57 void *a = malloc(4); in HWTEST_F()
58 void *b = malloc(4); in HWTEST_F()
69 void *value2 = malloc(4); in HWTEST_F()
86 void *a = malloc(4); in HWTEST_F()
87 void *b = malloc(4); in HWTEST_F()
99 void *value2 = malloc(4); in HWTEST_F()
116 void *a = malloc(4); in HWTEST_F()
117 void *b = malloc(4); in HWTEST_F()
128 void *value2 = malloc(4); in HWTEST_F()
145 void *a = malloc( in HWTEST_F()
[all...]
H A Degl_blobfile_test.cpp58 void *a = malloc(4); in HWTEST_F()
59 void *b = malloc(4); in HWTEST_F()
70 void *value2 = malloc(4); in HWTEST_F()
94 void *a = malloc(4); in HWTEST_F()
95 void *b = malloc(4); in HWTEST_F()
106 void *value2 = malloc(4); in HWTEST_F()
/kernel/liteos_a/apps/lms/src/
H A 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-6.6/tools/net/ynl/generated/
H A Ddevlink-user.h96 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 Dhmm-tests.c306 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...]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dctypendk.cpp18 #include <malloc.h>
65 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in IsalnumL()
84 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in Isalpha()
103 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in IsalphaL()
139 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in Isblank()
158 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in IsblankL()
211 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in Isdigit()
229 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in IsdigitL()
248 char *ch = static_cast<char *>(malloc(sizeof(char) * length)); in Isgraph()
266 char *ch = static_cast<char *>(malloc(sizeo in IsgraphL()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixel_convert_adapter_test.cpp55 void *srcPixels = malloc(bufferSize); in HWTEST_F()
68 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
121 void *srcPixels = malloc(bufferSize); in HWTEST_F()
134 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
191 void *srcPixels = malloc(bufferSize); in HWTEST_F()
240 void *srcPixels = malloc(bufferSize); in HWTEST_F()
253 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
283 void *srcPixels = malloc(bufferSize); in HWTEST_F()
296 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
326 void *srcPixels = malloc(bufferSiz in HWTEST_F()
[all...]
/test/xts/hats/kernel/freelist/safe_unlink/
H A DMalloc_safe_unlink.cpp86 if (!(tmp = malloc(size))) { in set_devide_chunk()
105 c1_tmp = (uint8_t *)malloc(MALLOC_SIZE_S + 0x10 * i); in child()
106 c2_tmp = (uint8_t *)malloc(MALLOC_SIZE_L + 0x10 * i); in child()
108 c1 = (uint8_t *)malloc(MALLOC_SIZE_S + 0x10 * i); in child()
115 c2 = (uint8_t *)malloc(MALLOC_SIZE_L + 0x10 * i); in child()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A 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(siz in TEST_F()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/
H A Drfcomm_api.c144 RfcommAssignScnInfo *ctx = malloc(sizeof(RfcommAssignScnInfo)); in RFCOMM_AssignServerNum()
198 RfcommFreeScnInfo *ctx = malloc(sizeof(RfcommFreeScnInfo)); in RFCOMM_FreeServerNum()
253 RfcommConnectDlcInfo *ctx = malloc(sizeof(RfcommConnectDlcInfo)); in RFCOMM_ConnectChannel()
325 RfcommRegistServerInfo *ctx = malloc(sizeof(RfcommRegistServerInfo)); in RFCOMM_RegisterServer()
387 RfcommAcceptConnectionInfo *ctx = malloc(sizeof(RfcommAcceptConnectionInfo)); in RFCOMM_AcceptConnection()
436 RfcommRejectConnectionInfo *ctx = malloc(sizeof(RfcommRejectConnectionInfo)); in RFCOMM_RejectConnection()
483 RfcommDisconnectChannelInfo *ctx = malloc(sizeof(RfcommDisconnectChannelInfo)); in RFCOMM_DisconnectChannel()
535 RfcommDeregisterServerInfo *ctx = malloc(sizeof(RfcommDeregisterServerInfo)); in RFCOMM_DeregisterServer()
595 RfcommSetRpnInfo *ctx = malloc(sizeof(RfcommSetRpnInfo)); in RFCOMM_SetPortConfig()
644 RfcommReqPortConfigInfo *ctx = malloc(sizeo in RFCOMM_ReqPortConfig()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h14 #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/include/linux/decompress/
H A Dmm.h28 /* 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-5.10/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h11 #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...]
/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/
H A Dipc_proxy_inner.c92 current->sessionName = (char *)malloc(sessionNameLen + 1); in InvokerListenThread()
101 StubObject *stubObject = (StubObject *)malloc(sizeof(StubObject)); in InvokerListenThread()
130 proxyObject->sessionName = (char *)malloc(sessionNameLen + 1); in GetPidAndUidInfo()
160 HandleSessionList *sessionObject = (HandleSessionList *)malloc(sizeof(HandleSessionList)); in GetSessionFromDBinderService()
162 RPC_LOG_ERROR("UpdateDatabusClientSession sessionObject malloc failed"); in GetSessionFromDBinderService()
166 HandleToIndexList *handleToIndex = (HandleToIndexList *)malloc(sizeof(HandleToIndexList)); in GetSessionFromDBinderService()
168 RPC_LOG_ERROR("UpdateDatabusClientSession handleToIndex malloc failed"); in GetSessionFromDBinderService()
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/gestureScroll/
H A Dgesture_interfaceTest.cpp30 char *nodeId = static_cast<char*>(malloc(nodeIdNumber)); in GestureInterruptFunc()
31 int *result = static_cast<int*>(malloc(sizeof(int))); in GestureInterruptFunc()
49 int *count = (int *)malloc(sizeof(int)); in GestureInterruptFunc()
62 char* childNodeId = static_cast<char*>(malloc(nodeIdNumber)); in GestureInterruptFunc()
63 int* childResult = static_cast<int*>(malloc(sizeof(int))); in GestureInterruptFunc()
87 bool* childIsEnd = static_cast<bool*>(malloc(sizeof(bool))); in GestureInterruptFunc()
90 bool* childIsBegin = static_cast<bool*>(malloc(sizeof(bool))); in GestureInterruptFunc()
135 char *nodeId = static_cast<char*>(malloc(nodeIdNumber)); in ParallelInnerGestureFunc()
136 int *result = static_cast<int*>(malloc(sizeof(int))); in ParallelInnerGestureFunc()
326 (ArkUI_GestureRecognizerState *)malloc(sizeo in CreateNativeNode()
[all...]
/kernel/linux/linux-6.6/include/linux/decompress/
H A Dmm.h29 * 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 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()
/foundation/arkui/ace_engine/test/unittest/interfaces/
H A Djs_drawable_descriptor_test.cpp74 JsDrawableDescriptor::baseConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
90 JsDrawableDescriptor::layeredConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
106 JsDrawableDescriptor::animatedConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
122 JsDrawableDescriptor::pixelMapConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/
H A Dinit_utils.c41 buffer = (char*)malloc((size_t)(fileStat.st_size + 1)); in ReadFileToBuf()
104 char **items = (char **)malloc(sizeof(char*) * itemCounts); in SplitStringExt()
114 char **expand = (char **)malloc(sizeof(char*) * itemCounts); in SplitStringExt()
127 items[count] = (char *)malloc(len + 1); in SplitStringExt()
/kernel/linux/linux-5.10/tools/vm/
H A 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/tools/testing/radix-tree/
H A Dlinux.c4 #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 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()
/kernel/linux/linux-6.6/lib/
H A 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()
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/
H A Dmemory_adapter.c16 #include <malloc.h>
23 return malloc(size); in SAMGR_Malloc()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/tde/driver/src/src/
H A Dwmalloc.c110 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...]

Completed in 16 milliseconds

12345678910>>...87