/third_party/backends/backend/ |
H A D | mustek_usb.c | 480 dev = malloc (sizeof (Mustek_Usb_Device)); in attach() 483 DBG (1, "attach: couldn't malloc Mustek_Usb_Device\n"); in attach() 574 new_dev = malloc (new_dev_alloced * sizeof (new_dev[0])); in attach_one_device() 977 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 1036 s = malloc (sizeof (*s)); in sane_open() 1054 s->hw->scan_buffer = (SANE_Byte *) malloc (SCAN_BUFFER_SIZE * 2); in sane_open() 1057 DBG (5, "sane_open: couldn't malloc s->hw->scan_buffer (%d bytes)\n", in sane_open() 1064 s->hw->temp_buffer = (SANE_Byte *) malloc (SCAN_BUFFER_SIZE); in sane_open() 1067 DBG (5, "sane_open: couldn't malloc s->hw->temp_buffer (%d bytes)\n", in sane_open()
|
H A D | snapscan.c | 229 (SANE_Int *) malloc(4 * ps->gamma_length * sizeof(SANE_Int)); in alloc_gamma_tables() 248 gamma = (u_char*) malloc(ps->gamma_length * sizeof(u_char) * 2); in init_gamma() 471 (*pd) = (SnapScan_Device *) malloc (sizeof (SnapScan_Device)); in snapscani_init_device_structure() 825 (const SANE_Device **) malloc ((n_devices + 1) * sizeof (SANE_Device *)); in sane_get_devices() 910 pss->buf = (u_char *) malloc(pss->phys_buf_sz); in sane_open() 1168 wbuf = (SANE_Byte*) malloc(READER_WRITE_SIZE); in reader()
|
H A D | microtek2.c | 147 /* free malloc'ed stuff */ in sane_close() 258 malloc( (md_num_devices + 1) * sizeof(SANE_Device **)); in sane_get_devices() 259 DBG(100, "sane_get_devices: sd_list=%p, malloc'd %lu bytes\n", in sane_get_devices() 264 DBG(1, "sane_get_devices: malloc() for sd_list failed\n"); in sane_get_devices() 540 ms = malloc(sizeof(Microtek2_Scanner)); in sane_open() 541 DBG(100, "sane_open: ms=%p, malloc'd %lu bytes\n", in sane_open() 545 DBG(1, "sane_open: malloc() for ms failed\n"); in sane_open() 695 DBG(5, "add_device_list: malloc() for hdev failed\n"); in add_device_list() 719 md = (Microtek2_Device *) malloc(sizeof(Microtek2_Device)); in add_device_list() 720 DBG(100, "add_device_list: md=%p, malloc' in add_device_list() [all...] |
H A D | sm3600.c | 335 q = malloc (sizeof (*q)); in RegisterSaneDev() 439 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices()
|
H A D | hp5590_low.c | 573 bulk_read_state = malloc (sizeof (struct bulk_read_state)); in hp5590_low_init_bulk_read_state() 578 bulk_read_state->buffer = malloc (ALLOCATE_BULK_READ_PAGES in hp5590_low_init_bulk_read_state()
|
/third_party/alsa-lib/src/alisp/ |
H A D | alisp.c | 134 p = (struct alisp_object *)malloc(sizeof(struct alisp_object)); in new_object() 519 if ((instance->token_buffer = (char *)malloc(instance->token_buffer_max)) == NULL) { in init_lex() 834 p = (struct alisp_object_pair *)malloc(sizeof(struct alisp_object_pair)); in set_object_direct() 888 p = (struct alisp_object_pair *)malloc(sizeof(struct alisp_object_pair)); in set_object() 2314 eval_objs = malloc(2 * i * sizeof(struct alisp_object *)); in eval_func() 2476 *s = malloc(*len = size + 1); in append_to_string() 2517 s1 = malloc(64); in format_parse_integer() 2538 s1 = malloc(64); in format_parse_float()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | growfiles.c | 49 * malloc space or i/o buffer 226 int *Seeds; /* malloc'ed arrary of ints holding user spec seeds */ 816 Seeds = malloc(Nseeds * sizeof(int)); in main() 820 * the newly malloc'ed Seeds arrary. in main() 1219 argv[0] = malloc(strlen(exec_path) + 2); in main() 1257 if ((filenames = malloc(num_files * PATH_MAX)) == NULL) { in main() 1258 fprintf(stderr, "%s%s: %d %s/%d: malloc(%d) failed: %s\n", in main() 1307 if ((Buffer = malloc(grow_incr + Alignment)) == NULL) { in main() 1309 "%s%s: %d %s/%d: malloc(%d) failed: %s\n", in main() 2758 if ((buf = malloc(MAX_FC_REA in check_file() [all...] |
/third_party/skia/third_party/externals/libpng/contrib/gregbook/ |
H A D | rpng2-x.c | 792 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height); in rpng2_x_init() 798 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_x_init() 1006 xdata = (uch *)malloc(4*rpng2_info.width*rpng2_info.height); in rpng2_x_create_window() 1009 xdata = (uch *)malloc(2*rpng2_info.width*rpng2_info.height); in rpng2_x_create_window() 1012 xdata = (uch *)malloc(rpng2_info.width*rpng2_info.height); in rpng2_x_create_window() 1106 bg_data = (uch *)malloc(bg_rowbytes * rpng2_info.height); in rpng2_x_load_bg_image()
|
/third_party/python/PC/ |
H A D | launcher.c | 127 wchar_t *buf2 = (wchar_t*)malloc(sizeof(wchar_t) * (result+1)); in get_env() 1675 wchar_t *r = (wchar_t *)malloc(len * sizeof(wchar_t)); in wcsdup_pad() 1695 r = (wchar_t *)malloc(bufferLen * sizeof(wchar_t)); in get_process_name() 1787 version_data = malloc(size); in process() 1889 newcommand = malloc(sizeof(wchar_t) * newlen); in process() 1930 executable = (wchar_t *)malloc(cch * sizeof(wchar_t)); in process()
|
/third_party/alsa-utils/aplay/ |
H A D | aplay.c | 34 #include <malloc.h> 878 audiobuf = (uint8_t *)malloc(1024); 2104 tmp = malloc(chunk_bytes); 2134 tmp = malloc(sizeof(*tmp) * hwparams.channels); 2366 buf = (uint8_t *) malloc(chunk_bytes); 2415 data = buf = (uint8_t *)malloc(64 * 1024); 2418 error(_("malloc error")); 3476 names = malloc(sizeof(*names) * channels); 3478 names[channel] = malloc(len); 3529 names = malloc(sizeo [all...] |
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fuse.c | 193 char *soname = malloc(strlen(module) + 64); in fuse_load_so_module() 516 buf = malloc(bufsize); in get_path_name() 1206 c = (struct fuse_context_i *) malloc(sizeof(struct fuse_context_i)); in fuse_get_context_internal() 1937 buf = (char *) malloc(size); in fuse_lib_read() 2052 dh = (struct fuse_dh *) malloc(sizeof(struct fuse_dh)); in fuse_lib_opendir() 2368 char *value = (char *) malloc(size); in fuse_lib_getxattr() 2414 char *list = (char *) malloc(size); in fuse_lib_listxattr() 2488 newl1 = malloc(sizeof(struct lock)); in locks_insert() 2489 newl2 = malloc(sizeof(struct lock)); in locks_insert() 2760 out_buf = malloc(out_bufs in fuse_lib_ioctl() [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/test/unittest/renderer_test/src/ |
H A D | audio_renderer_unit_test.cpp | 1767 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1820 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1852 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1886 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1924 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1963 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2003 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2041 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2111 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2637 uint8_t *buffer = (uint8_t *) malloc(bufferLe in HWTEST() [all...] |
/base/account/os_account/services/accountmgr/src/bundle_manager_adapter/ |
H A D | bundle_manager_adapter_proxy.cpp | 388 buffer = malloc(size);
in GetData() 390 ACCOUNT_LOGE("GetData failed duo to malloc buffer failed");
in GetData() 724 buffer = malloc(size);
in SendData() 726 ACCOUNT_LOGE("buffer malloc failed");
in SendData()
|
/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 727 hnpSignMapInfos = (HnpSignMapInfo *)malloc(sizeof(HnpSignMapInfo) * count);
in HnpInsatllPre() 739 data.entries = malloc(sizeof(struct EntryMapEntry) * count);
in HnpInsatllPre()
|
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/ |
H A D | fft.cpp | 67 // use malloc for 16 byte alignment in AlgInitFFT() 68 fftBitTable_ = (uint32_t **)malloc(MAX_FAST_BITS * sizeof(uint32_t *)); in AlgInitFFT() 72 fftBitTable_[j - 1] = (uint32_t *)malloc(length * sizeof(uint32_t)); in AlgInitFFT()
|
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_json.c | 35 linkArray = (NativeBinLink*)malloc(sizeof(NativeBinLink) * linkArrayNum); in ParseLinksJsonToCfgInfo() 37 HNP_LOGE("malloc unsuccess."); in ParseLinksJsonToCfgInfo() 406 ptr = malloc(sizeof(HnpPackageInfo) * sum); in HnpPackageInfoGetOut() 408 HNP_LOGE("malloc hnp info unsuccess."); in HnpPackageInfoGetOut()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/ |
H A D | sample_comm_region.c | 81 pstBitmap->pData = malloc(s32BytesPerPix * (bmpInfo.bmiHeader.biWidth) * (bmpInfo.bmiHeader.biHeight)); in REGION_MST_LoadBmp() 83 printf("malloc osd memory err!\n"); in REGION_MST_LoadBmp() 93 pu8Data = malloc((s32Width) * (bmpInfo.bmiHeader.biHeight)); in REGION_MST_LoadBmp() 95 printf("malloc osd memory err!\n"); in REGION_MST_LoadBmp() 170 printf("malloc osd memory err!\n"); in REGION_MST_UpdateCanvas()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/ |
H A D | image_packer_native.cpp | 162 format->data = static_cast<char *>(malloc(format->size)); in OH_PackingOptions_GetMimeType() 188 options->mimeType.data = static_cast<char *>(malloc(options->mimeType.size)); in OH_PackingOptions_SetMimeType()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/texture_encode/ |
H A D | image_compressor.cpp | 1367 uint8_t *programBinaries = static_cast<uint8_t *>(malloc(programBinarySizes)); in SaveClBin() 1369 IMAGE_LOGE("astc programBinaries malloc failed!"); in SaveClBin() 1509 static_cast<uint32_t *>(malloc((numMaxBlocks * sizeof(uint32_t)))); // 8MB mem Max in AstcClCreate() 1511 IMAGE_LOGE("astc blockErrs_ malloc failed!"); in AstcClCreate()
|
/foundation/window/window_manager/dm/src/ |
H A D | oh_display_manager.cpp | 291 static_cast<NativeDisplayManager_Rect*>(malloc(sizeof(NativeDisplayManager_Rect) * boundSize)); in OH_CreateBoundingRects() 328 static_cast<NativeDisplayManager_CutoutInfo*>(malloc(sizeof(NativeDisplayManager_CutoutInfo))); in OH_CreateCutoutInfoObject()
|
/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/ |
H A D | ipc_invoker.c | 61 IpcConnector *connector = (IpcConnector *)malloc(sizeof(IpcConnector)); in OpenDriver() 63 RPC_LOG_ERROR("liteipc malloc failed: %d.", errno); in OpenDriver() 382 HdlerArg *tArg = (HdlerArg *)malloc(sizeof(HdlerArg)); in CallbackDispatchLoop()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/file/ |
H A D | proxy_session_file_test.cpp | 439 char *data = (char *)malloc(SEND_DATA_SIZE_1M); in TransTest() 448 char *data = (char *)malloc(SEND_DATA_SIZE_1M); in TransTest()
|
/third_party/curl/lib/vauth/ |
H A D | digest.c | 178 dest = malloc(n); in auth_digest_string_quoted() 827 realm_quoted = malloc(1); in auth_create_digest_http_message()
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_mmap.c | 24 #include <malloc.h> 401 ptr = malloc(size); in snd_pcm_mmap() 403 SYSERR("malloc failed"); in snd_pcm_mmap()
|
/third_party/backends/lib/ |
H A D | getopt.c | 268 that we can compare them later. But we must not use malloc(3). */ 333 char *new_str = malloc (top + 1); 445 (char *) malloc (nonoption_flags_max_len);
|