Home
last modified time | relevance | path

Searched refs:malloc (Results 2351 - 2375 of 3619) sorted by relevance

1...<<919293949596979899100>>...145

/third_party/skia/third_party/externals/microhttpd/src/testspdy/
H A Dtest_request_response.c133 dst = malloc(len+1); in strcopy()
909 if(NULL == (rcvbuf = malloc(strlen(RESPONSE_BODY)+1))) in childproc()
/third_party/skia/third_party/externals/zlib/
H A Dgzwrite.c24 state->in = (unsigned char *)malloc(state->want << 1);
33 state->out = (unsigned char *)malloc(state->want);
/third_party/zlib/
H A Dgzwrite.c19 state->in = (unsigned char *)malloc(state->want << 1); in gz_init()
28 state->out = (unsigned char *)malloc(state->want); in gz_init()
/kernel/linux/linux-6.6/tools/objtool/
H A Dcheck.c408 WARN("malloc failed"); in decode_instructions()
1739 orig_alt_group = malloc(sizeof(*orig_alt_group)); in handle_group_alt()
1741 WARN("malloc failed"); in handle_group_alt()
1775 new_alt_group = malloc(sizeof(*new_alt_group)); in handle_group_alt()
1777 WARN("malloc failed"); in handle_group_alt()
1789 nop = malloc(sizeof(*nop)); in handle_group_alt()
1791 WARN("malloc failed"); in handle_group_alt()
1975 alt = malloc(sizeof(*alt)); in add_special_section_alts()
1977 WARN("malloc failed"); in add_special_section_alts()
2039 alt = malloc(sizeo in add_jump_table()
[all...]
/third_party/backends/backend/
H A Dartec.c300 word_list = (SANE_Word *) malloc (sizeof (SANE_Word)); in artec_str_list_to_word_list()
905 tmp_line_buf = malloc (*len); in artec_buffer_line_offset()
915 line_buffer = malloc (r_buf_lines * sizeof (SANE_Byte *)); in artec_buffer_line_offset()
924 line_buffer[count] = malloc ((*len) * sizeof (SANE_Byte)); in artec_buffer_line_offset()
2084 dev = malloc (sizeof (*dev)); in attach()
2096 str = malloc (17); in attach()
2132 str = malloc (9); in attach()
2687 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices()
2733 s = malloc (sizeof (*s)); in sane_open()
H A Dteco2.c549 dev = malloc (sizeof (Teco_Scanner)); in teco_init()
559 dev->buffer = malloc (dev->buffer_size); in teco_init()
1045 image_buf = malloc (s1); in teco_get_scan_size()
1228 tmp_buf = malloc (tmp_buf_size); in teco_do_calibration()
1229 tmp_min_buf = malloc (tmp_min_buf_size); in teco_do_calibration()
1230 tmp_max_buf = malloc (tmp_max_buf_size); in teco_do_calibration()
1804 dev->resolutions_list = malloc (sizeof (SANE_Word) * (num_entries + 1)); in attach_scanner()
2568 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices()
3186 dev->image = malloc (dev->image_size); in sane_start()
H A Dtest.c398 test_device->val[opt_mode].s = malloc ((size_t) od->size); in init_options()
465 test_device->val[opt_three_pass_order].s = malloc ((size_t) od->size); in init_options()
494 test_device->val[opt_scan_source].s = malloc ((size_t) od->size); in init_options()
530 test_device->val[opt_test_picture].s = malloc ((size_t) od->size); in init_options()
625 test_device->val[opt_read_status_code].s = malloc ((size_t) od->size); in init_options()
1176 test_device->val[opt_string].s = malloc ((size_t) od->size); in init_options()
1195 test_device->val[opt_string_constraint_string_list].s = malloc ((size_t) od->size); in init_options()
1216 malloc ((size_t) od->size); in init_options()
1845 malloc ((size_t) (init_number_of_devices + 1) * sizeof (sane_device)); in sane_init()
H A Dxerox_mfp.c838 dev->sane.vendor = optr = (SANE_Char *) malloc(33); in dev_inquiry()
846 dev->sane.model = optr = (SANE_Char *) malloc(33); in dev_inquiry()
1115 devlist = malloc((dev_count + 1) * sizeof(*devlist)); in sane_get_devices()
1117 DBG(1, "%s: malloc: no memory\n", __func__); in sane_get_devices()
1492 if (!dev->data && !(dev->data = malloc(DATASIZE))) in sane_start()
1496 if (!dev->decData && !(dev->decData = malloc(POST_DATASIZE))) in sane_start()
H A Dmustek_pp.c261 if (!(buffer = malloc (hndl->params.bytes_per_line))) in reader_process()
330 if ((dev = malloc (sizeof (Mustek_pp_Device))) == NULL) { in sane_attach()
634 ports = malloc (sizeof(char *) * 2); in attach_device()
1050 devarray = malloc ((num_devices + 1) * sizeof (devarray[0])); in sane_get_devices()
1124 if ((hndl = malloc (sizeof (Mustek_pp_Handle))) == NULL) { in sane_open()
H A Dqcam.c873 extra = malloc (num_bytes); in reader_process()
876 DBG (1, "reader_process: malloc(%ld) failed\n", in reader_process()
887 buffer = malloc (num_bytes); in reader_process()
890 DBG (1, "reader_process: malloc(%ld) failed\n", in reader_process()
1119 q = malloc (sizeof (*q)); in attach()
1519 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices()
1556 s = malloc (sizeof (*s)); in sane_open()
H A Dsnapscan-scsi.c795 SANE_Byte* buf = malloc (length + SEND_LENGTH); in send_calibration_5150()
1387 bins = (int *) malloc (num_bins * sizeof (int)); in calibrate_epson()
1395 buf = (u_char *) malloc (expected_read_bytes); in calibrate_epson()
1571 buf = (u_char *) malloc(num_lines * line_length); in calibrate()
1690 pCDB = (unsigned char *)malloc(bufLength + cdbLength); in download_firmware()
H A Davision.c4418 dev = malloc (sizeof (*dev)); in attach()
5365 conv_out_data = (uint16_t*) malloc (conv_out_size); in set_calib_data()
5431 sort_data = malloc (format->lines * 2); in sort_and_average()
5435 avg_data = malloc (elements_per_line * 2); in sort_and_average()
5634 calib_tmp_data = malloc (calib_data_size); in normal_calibration()
5840 gamma_data = malloc (gamma_table_raw_size); in send_gamma()
6091 table_data = malloc (accel_info.total_steps + 1000); in send_acceleration_table()
6584 uint8_t* tmp_data = malloc ((size_t) bytes_per_line); in get_background_raster()
6607 uint8_t* deinterlaced = malloc (size * 2); in get_background_raster()
7344 s->val[OPT_MESSAGE].s = malloc((size_ in init_options()
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dcreststn.c650 expectedEscaped = (UChar*)malloc(U_SIZEOF_UCHAR * patternLen); in TestNewTypes()
700 char *testDataFileName = (char *) malloc( srcPathLen+ deltaPathLen + 50 ); in TestNewTypes()
1033 utestdatapath = (UChar*) malloc((len+10)*sizeof(UChar)); in TestAPI()
1196 utestdatapath = (UChar*) malloc(sizeof(UChar) *(len+10)); in TestErrorConditions()
1739 base=(UChar*)malloc(sizeof(UChar)*(strlen(NAME[j]) + 1)); in testTag()
1749 base = (UChar*) malloc(sizeof(UChar) * 1); in testTag()
1770 expected_string=(UChar*)malloc(sizeof(UChar)*(u_strlen(base) + 4)); in testTag()
1774 expected_string = (UChar*)malloc(sizeof(UChar)*(u_strlen(kERROR) + 1)); in testTag()
2949 p8 = (char *)malloc(++length8); in tres_getString()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/
H A Dsample_comm_venc.c122 HI_CHAR *cDstBuf = (HI_CHAR *)malloc(endpos - startpos); in FileTrans_GetThmFromJpg()
124 printf("memory malloc fail!\n"); in FileTrans_GetThmFromJpg()
1055 stStream.pstPack = (VENC_PACK_S *)malloc(sizeof(VENC_PACK_S) * stStat.u32CurPacks); in SAMPLE_COMM_VENC_SnapProcess()
1057 SAMPLE_PRT("malloc memory failed!\n"); in SAMPLE_COMM_VENC_SnapProcess()
1198 stStream.pstPack = (VENC_PACK_S *)malloc(sizeof(VENC_PACK_S) * stStat.u32CurPacks); in SAMPLE_COMM_VENC_SaveJpeg()
1200 SAMPLE_PRT("malloc memory failed!\n"); in SAMPLE_COMM_VENC_SaveJpeg()
1620 stStream.pstPack = (VENC_PACK_S *)malloc(sizeof(VENC_PACK_S) * stStat.u32CurPacks); in SAMPLE_COMM_VENC_GetVencStreamProc()
1622 SAMPLE_PRT("malloc stream pack failed!\n"); in SAMPLE_COMM_VENC_GetVencStreamProc()
1846 stStream.pstPack = (VENC_PACK_S *)malloc(sizeof(VENC_PACK_S) * stStat.u32CurPacks); in SAMPLE_COMM_VENC_GetVencStreamProc()
1848 SAMPLE_PRT("malloc strea in SAMPLE_COMM_VENC_GetVencStreamProc()
[all...]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dprog.c215 value = malloc(map_info->value_size); in find_metadata()
529 fds = malloc(sizeof(int)); in do_show_subset()
809 fds = malloc(sizeof(int)); in do_dump()
1038 *data_ptr = malloc(block_size); in get_run_data()
1401 type = malloc(strlen(*argv) + 2); in load_with_options()
/kernel/linux/linux-5.10/tools/lib/traceevent/
H A Dparse-filter.c75 *tok = malloc(3); in filter_read_token()
168 filter = malloc(sizeof(*filter)); in tep_filter_alloc()
231 list = malloc(sizeof(*list)); in add_event()
558 op->str.buffer = malloc(op->str.field->size + 1); in add_right()
1288 this_event = malloc(len + 1); in tep_filter_add_filter_str()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dsymbol.c95 return malloc(sizeof(struct map_list_node)); in map_list_node__new()
460 result = malloc(sizeof(*result) * size); in symbols__sort_by_name()
1717 symbols = malloc(symbols_size); in dso__load_bfd_symbols()
1936 name = malloc(PATH_MAX); in dso__load()
2517 vmlinux_path = malloc(sizeof(char *) * (ARRAY_SIZE(vmlinux_paths) + in vmlinux_path__init()
/test/xts/acts/bundlemanager/zlib/actszlibtest/
H A DActsZlibTest.cpp725 outBuf = reinterpret_cast<uint8_t *>(malloc(estimateLen)); in HWTEST_F()
1450 zone = (struct mem_zone *)malloc(sizeof(struct mem_zone)); in HWTEST_F()
1470 out = (unsigned char *)malloc(len); in HWTEST_F()
1495 zone = (struct mem_zone *)malloc(sizeof(struct mem_zone)); in HWTEST_F()
1557 zone = (struct mem_zone *)malloc(sizeof(struct mem_zone)); in HWTEST_F()
/third_party/libsnd/src/
H A Dogg_opus.c642 oopus->buffer = malloc (sizeof (float) * psf->sf.channels * oopus->buffersize) ; in ogg_opus_setup_decoder()
740 oopus->buffer = malloc (sizeof (float) * psf->sf.channels * oopus->len) ; in ogg_opus_setup_encoder()
750 odata->opacket.packet = malloc (oopus->buffersize) ; in ogg_opus_setup_encoder()
1018 oopus->buffer = malloc (sizeof (float) * oopus->buffersize * psf->sf.channels) ; in ogg_opus_read_refill()
1074 oopus->buffer = malloc (sizeof (float) * oopus->buffersize * psf->sf.channels) ; in ogg_opus_read_refill()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dturbojpeg-jni.c1129 (unsigned char **)malloc(sizeof(unsigned char *) * n)) == NULL) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1131 if ((jdstBufs = (jbyteArray *)malloc(sizeof(jbyteArray) * n)) == NULL) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1133 if ((dstSizes = (unsigned long *)malloc(sizeof(unsigned long) * n)) == NULL) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1135 if ((t = (tjtransform *)malloc(sizeof(tjtransform) * n)) == NULL) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1137 if ((params = (JNICustomFilterParams *)malloc(sizeof(JNICustomFilterParams) * in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/third_party/
H A Dvulkan_command_buffer_utils.cpp616 VkBool32 *pSupportsPresent = (VkBool32 *)malloc(info.queue_family_count * sizeof(VkBool32)); in init_swapchain_extension()
669 (VkSurfaceFormatKHR *)malloc(formatCount * sizeof(VkSurfaceFormatKHR)); in init_swapchain_extension()
814 (VkPresentModeKHR *)malloc(presentModeCount * sizeof(VkPresentModeKHR)); in init_swap_chain()
941 VkImage *swapchainImages = (VkImage *)malloc(info.swapchainImageCount * sizeof(VkImage)); in init_swap_chain()
1309 info.framebuffers = (VkFramebuffer *)malloc(info.swapchainImageCount * sizeof(VkFramebuffer)); in init_framebuffers()
/third_party/backends/sanei/
H A Dsanei_scsi.c1191 guid = (UInt8 *) malloc (len); in sanei_scsi_open_extended()
1334 pdata = fdpa = malloc (sizeof (fdparms)); in sanei_scsi_open_extended()
1468 fd_info = malloc (new_size); in sanei_scsi_open_extended()
2108 req = malloc (size); in sanei_scsi_req_enter2()
2111 DBG (1, "sanei_scsi_req_enter: failed to malloc %lu bytes\n", in sanei_scsi_req_enter2()
3375 cdm.matches = (struct dev_match_result *) malloc (cdm.match_buf_len); in cam_compare_inquiry()
3381 cdm.patterns = (struct dev_match_pattern *) malloc (cdm.pattern_buf_len); in cam_compare_inquiry()
3461 cdm.matches = (struct dev_match_result *) malloc (cdm.match_buf_len); in sanei_scsi_find_devices()
3467 cdm.patterns = (struct dev_match_pattern *) malloc (cdm.pattern_buf_len); in sanei_scsi_find_devices()
4395 cmdbuf = malloc (6 in sanei_scsi_cmd2()
[all...]
/third_party/libfuse/lib/
H A Dfuse.c250 tmp = malloc(strlen(module) + 64); in fuse_load_so_module()
1003 buf = malloc(bufsize); in try_get_path()
1758 buf = malloc(sizeof(struct fuse_bufvec)); in fuse_fs_read_buf()
1762 mem = malloc(size); in fuse_fs_read_buf()
1866 mem = malloc(size); in fuse_fs_write_buf()
3352 dh = (struct fuse_dh *) malloc(sizeof(struct fuse_dh)); in fuse_lib_opendir()
3426 de = malloc(sizeof(struct fuse_direntry)); in fuse_add_direntry_to_dh()
3851 char *value = (char *) malloc(size); in fuse_lib_getxattr()
3894 char *list = (char *) malloc(size); in fuse_lib_listxattr()
3966 newl1 = malloc(sizeo in locks_insert()
[all...]
/third_party/musl/ldso/linux/
H A Ddynlink.c76 #define malloc __libc_malloc macro
702 p->parents = (struct dso **)malloc(sizeof(struct dso *) * PARENTS_BASE_CAPACITY); in add_dso_parent()
742 (struct dso **)malloc(sizeof(struct dso *) * RELOC_CAN_SEARCH_DSO_BASE_CAPACITY); in add_reloc_can_search_dso()
1214 struct td_index *new = malloc(sizeof *new); in do_relocs()
1498 sh_buf = malloc(shsize); in is_section_exist()
1519 shstrtab_content = (char *)malloc(shstrtab.sh_size); in is_section_exist()
1600 allocated_buf = malloc(phsize); in map_library()
1941 p->rpath = malloc(strlen(p->rpath_orig) + n*l + 1); in fixup_rpath()
2033 p->funcdescs = malloc(size); in makefuncdescs()
2066 char *new_syspath = malloc(newle in get_sys_path()
[all...]
/kernel/linux/linux-5.10/tools/objtool/
H A Dcheck.c376 insn = malloc(sizeof(*insn)); in decode_instructions()
378 WARN("malloc failed"); in decode_instructions()
1323 orig_alt_group = malloc(sizeof(*orig_alt_group)); in handle_group_alt()
1325 WARN("malloc failed"); in handle_group_alt()
1349 new_alt_group = malloc(sizeof(*new_alt_group)); in handle_group_alt()
1351 WARN("malloc failed"); in handle_group_alt()
1363 nop = malloc(sizeof(*nop)); in handle_group_alt()
1365 WARN("malloc failed"); in handle_group_alt()
1532 alt = malloc(sizeof(*alt)); in add_special_section_alts()
1534 WARN("malloc faile in add_special_section_alts()
[all...]

Completed in 73 milliseconds

1...<<919293949596979899100>>...145