Home
last modified time | relevance | path

Searched refs:malloc (Results 1076 - 1100 of 4604) sorted by relevance

1...<<41424344454647484950>>...185

/foundation/ai/ai_engine/services/common/platform/os_wrapper/ipc/source/
H A Daie_ipc.cpp144 dataInfo->data = reinterpret_cast<unsigned char *>(malloc(dataInfo->length)); in IpcIoPopSharedMemory()
148 HILOGE("[AieIpc]Failed to malloc memory."); in IpcIoPopSharedMemory()
196 dataInfo->data = reinterpret_cast<unsigned char *>(malloc(dataBufSize)); in IpcIoPopMemory()
198 HILOGE("[AieIpc]Failed to malloc memory."); in IpcIoPopMemory()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dzip_internal.cpp61 free(opaque); // malloc'ed in FillFdOpenFileFunc() in FdCloseFileFunc()
75 int *ptrFd = static_cast<int *>(malloc(sizeof(fd))); in FillFdOpenFileFunc()
233 ZipBuffer *buffer = static_cast<ZipBuffer *>(malloc(sizeof(ZipBuffer))); in PrepareMemoryForUnzipping()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/
H A Dimage_loader_common.h110 rowPointers = (T **)malloc(height * sizeof(T *)); in RowPointers()
112 CORE_LOG_E("malloc fail return null"); in RowPointers()
120 rowPointers[i] = (T *)malloc(rowbytes); in RowPointers()
122 CORE_LOG_E("malloc fail return null"); in RowPointers()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dinterface_test.cpp214 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(bufferSize)); in HWTEST_F()
254 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(bufferSize)); in HWTEST_F()
/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_core.cpp79 ffrt_task_attr_t* attr = (ffrt_task_attr_t *) malloc(sizeof(ffrt_task_attr_t)); in HWTEST_F()
174 ffrt_task_attr_t* attr = (ffrt_task_attr_t *) malloc(sizeof(ffrt_task_attr_t)); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/discovery/dfinder/
H A Dnstackx_test.c141 NSTACKX_LocalDeviceInfo *localDevInfo = (NSTACKX_LocalDeviceInfo *)malloc(sizeof(NSTACKX_LocalDeviceInfo)); in TestRegisterDeviceInfo()
143 printf("nstackx local device info malloc failed.\n"); in TestRegisterDeviceInfo()
227 g_capData = (char *)malloc(NSTACKX_MAX_SERVICE_DATA_LEN); in TestInit()
/foundation/communication/ipc/ipc/test/unittest/rpc/samgr/
H A DRpcSamgrTest.cpp129 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); in AddRemoteSystemAbilityTransaction()
153 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); in RemoteRequest()
/foundation/communication/netstack/interfaces/kits/c/net_ssl/src/
H A Dnet_ssl_c.cpp105 char *key = (char *)malloc(size); in OH_NetStack_GetPinSetForHostName()
107 NETSTACK_LOGE("OH_NetStack_GetPinSetForHostName malloc failed"); in OH_NetStack_GetPinSetForHostName()
151 char *ptr = (char *)malloc(totalMallocSize); in OH_NetStack_GetCertificatesForHostName()
153 NETSTACK_LOGE("OH_NetStack_GetCertificatesForHostName malloc failed"); in OH_NetStack_GetCertificatesForHostName()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
H A Dshader_cache.cpp106 void* valueBuffer = malloc(bufferSize_); in Load()
130 void* newValueBuffer = malloc(valueSize); in Load()
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Dmain.c61 * to an area allocated with malloc() (somewhere past _end). in prep_kernel()
131 initrd_addr = (unsigned long)malloc(initrd_size); in prep_initrd()
173 esm_blob_addr = (unsigned long)malloc(esm_blob_size); in prep_esm_blob()
234 /* Do this first, because malloc() could clobber the loader's in start()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Dmain.c61 * to an area allocated with malloc() (somewhere past _end). in prep_kernel()
131 initrd_addr = (unsigned long)malloc(initrd_size); in prep_initrd()
173 esm_blob_addr = (unsigned long)malloc(esm_blob_size); in prep_esm_blob()
234 /* Do this first, because malloc() could clobber the loader's in start()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c63 *buf = malloc(buf_size); in read_entire_file()
90 path = malloc(len); in open_prop_file()
/kernel/linux/linux-5.10/tools/testing/selftests/ia64/
H A Daliasing-test.c83 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
168 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_rom()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
H A Dmkregtable.c123 offset = (struct offset *)malloc(sizeof(struct offset)); in offset_new()
175 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); in table_build()
/kernel/linux/linux-5.10/scripts/basic/
H A Dfixdep.c199 struct item *aux = malloc(sizeof(*aux) + len); in define_config()
202 perror("fixdep:malloc"); in define_config()
278 buf = malloc(st.st_size + 1); in read_file()
280 perror("fixdep: malloc"); in read_file()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dhashmap.c55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new()
194 entry = malloc(sizeof(struct hashmap_entry)); in hashmap__insert()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dexpr.c46 data_ptr = malloc(sizeof(*data_ptr)); in expr__add_id()
68 data_ptr = malloc(sizeof(*data_ptr)); in expr__add_id_val()
H A Dhashmap.c55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new()
194 entry = malloc(sizeof(struct hashmap_entry)); in hashmap__insert()
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
H A Dmkregtable.c123 offset = (struct offset *)malloc(sizeof(struct offset)); in offset_new()
175 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); in table_build()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dhashmap.c55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new()
194 entry = malloc(sizeof(struct hashmap_entry)); in hashmap_insert()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/
H A Ddemand_paging_test.c144 guest_data_prototype = malloc(demand_paging_size); in run_test()
158 uffd_descs = malloc(nr_vcpus * sizeof(struct uffd_desc *)); in run_test()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dmigration.c51 self->threads = malloc(self->nthreads * sizeof(*self->threads)); in FIXTURE_SETUP()
53 self->pids = malloc(self->nthreads * sizeof(*self->pids)); in FIXTURE_SETUP()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dhashmap.c55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new()
194 entry = malloc(sizeof(struct hashmap_entry)); in hashmap_insert()
/kernel/linux/linux-6.6/tools/testing/selftests/ia64/
H A Daliasing-test.c83 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
168 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_rom()
/kernel/liteos_m/components/shell/src/base/
H A Dshmsg.c82 cmdName = (CHAR *)malloc(len + 1); in GetCmdName()
84 PRINTK("malloc failure in %s[%d]\n", __FUNCTION__, __LINE__); in GetCmdName()
118 CHAR *shiftStr = (CHAR *)malloc(cmdBufLen + 1); in PreHandleCmdline()
121 PRINTK("malloc failure in %s[%d]\n", __FUNCTION__, __LINE__); in PreHandleCmdline()
153 PRINTK("malloc failure in %s[%d]\n", __FUNCTION__, __LINE__); in ParseAndExecCmdline()

Completed in 13 milliseconds

1...<<41424344454647484950>>...185