Home
last modified time | relevance | path

Searched refs:malloc (Results 1151 - 1175 of 2800) sorted by relevance

1...<<41424344454647484950>>...112

/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dtjunittest.c384 if ((srcBuf = (unsigned char *)malloc(w * h * tjPixelSize[pf])) == NULL) in compTest()
398 if ((yuvBuf = (unsigned char *)malloc(yuvSize)) == NULL) in compTest()
449 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
460 if ((yuvBuf = (unsigned char *)malloc(yuvSize)) == NULL) in _decompTest()
627 if ((srcBuf = (unsigned char *)malloc(w * h * 4)) == NULL) in bufSizeTest()
654 if ((srcBuf = (unsigned char *)malloc(h * w * 4)) == NULL) in bufSizeTest()
/third_party/skia/third_party/externals/libpng/contrib/libtests/
H A Dmakepng.c955 row = malloc(rowbytes); in write_png()
1043 png_bytep data = malloc((total+3)&~3); in load_file()
1112 if (result == size && (*profile = malloc(result)) != NULL) in load_fake()
1465 cip = malloc(offsetof(chunk_insert,parameters) + in make_insert()
1572 png_charp bar = malloc(strlen(foo)+1); in strstash()
1589 result = bar = malloc(foo+1); in strstash_list()
/third_party/backends/backend/
H A Dmustek_pp_ccd300.c1685 if ((priv = malloc (sizeof (mustek_pp_ccd300_priv))) == NULL) in ccd300_setup()
1898 if ((priv->calib_g = malloc (dev->params.pixels_per_line)) == NULL) in ccd300_start()
1907 priv->calib_r = malloc (dev->params.pixels_per_line); in ccd300_start()
1908 priv->calib_b = malloc (dev->params.pixels_per_line); in ccd300_start()
1954 priv->red = malloc (sizeof (SANE_Byte *) * priv->green_offs); in ccd300_start()
1955 priv->blue = malloc (sizeof (SANE_Byte *) * priv->blue_offs); in ccd300_start()
1956 priv->green = malloc (dev->params.pixels_per_line); in ccd300_start()
1979 if ((priv->red[cnt] = malloc (dev->params.pixels_per_line)) == NULL) in ccd300_start()
1983 if ((priv->blue[cnt] = malloc (dev->params.pixels_per_line)) == NULL) in ccd300_start()
H A Dnet.c73 # include <avahi-common/malloc.h>
217 nd = malloc (sizeof (Net_Device)); in add_device()
284 nd = malloc (sizeof (*nd)); in add_device()
579 malloc (s->opt.num_options * sizeof (s->local_opt.desc));
582 DBG (1, "fetch_options: couldn't malloc s->local_opt.desc\n");
590 malloc (sizeof (SANE_Option_Descriptor));
593 DBG (1, "fetch_options: couldn't malloc "
650 net_resource = malloc (strlen (resource) + 6 + strlen (dev->name));
1212 devlist = malloc (devlist_size * sizeof (devlist[0])); \
1298 mem = malloc (sizeo
[all...]
H A Dmagicolor.c296 unsigned char *new_buf = malloc(len); in sanei_magicolor_net_write()
445 *buf = b = malloc (buf_len); in mc_create_buffer()
478 *buf = b = malloc (buf_len); in mc_create_buffer2()
1057 buf = malloc(len + 1); in mc_set_model()
1176 s->line_buffer = malloc(s->scan_bytes_per_line); in mc_setup_block_mode()
1734 s = malloc(sizeof(struct Magicolor_Scanner)); in scanner_create()
1770 dev = malloc(sizeof(*dev)); in device_detect()
1892 snmp_ip *new_handled = malloc(sizeof(snmp_ip)); in mc_network_discovery_handle()
1951 snmp_ip *new_detected = malloc(sizeof(snmp_ip)); in mc_network_discovery_handle()
2337 devlist = malloc((num_device in sane_get_devices()
[all...]
H A Dhp5590.c407 scanner = malloc (sizeof(struct hp5590_scanner)); in attach_usb_device()
589 *device_list = malloc (found * sizeof (SANE_Device)); in sane_get_devices()
657 opts = malloc (sizeof (SANE_Option_Descriptor) * HP5590_OPT_LAST); in sane_open()
1753 scanner->eop_last_line_data = malloc(bytes_per_line); in convert_gray_and_lineart()
1831 scanner->adf_next_page_lines_data = malloc(buf_size); in convert_gray_and_lineart()
1927 bufptr = malloc (size); in convert_to_rgb()
2006 scanner->eop_last_line_data = malloc(bytes_per_line); in convert_to_rgb()
2081 scanner->adf_next_page_lines_data = malloc(buf_size); in convert_to_rgb()
2217 scanner->one_line_read_buffer = malloc (bytes_per_line); in sane_read_internal()
2510 scanner->color_shift_line_buffer1 = malloc (bytes_per_lin in sane_read()
[all...]
H A Dcanon_lide70.c171 dev = malloc (sizeof (*dev)); in attach_scanner()
301 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices()
363 chndl->val[opt_mode].s = malloc (od->size); in init_options()
517 scanner = malloc (sizeof (*scanner)); in sane_open()
H A Dgt68xx_low.c153 dev = (GT68xx_Device *) malloc (sizeof (GT68xx_Device)); in gt68xx_device_new()
157 DBG (3, "gt68xx_device_new: couldn't malloc %lu bytes for device\n", in gt68xx_device_new()
382 dev->afe = malloc (sizeof (*dev->afe)); in gt68xx_device_activate()
383 dev->exposure = malloc (sizeof (*dev->exposure)); in gt68xx_device_activate()
766 dev->read_buffer = (SANE_Byte *) malloc (buffer_size); in gt68xx_device_read_prepare()
/third_party/mesa3d/src/mesa/vbo/
H A Dvbo_save_api.c162 save->copied.buffer = malloc(sizeof(fi_type) * sz * prim->count); in copy_vertices()
467 struct vertex_key *key = malloc(sizeof(struct vertex_key)); in add_vertex()
535 node->cold->prims = malloc(sizeof(struct _mesa_prim) * save->prim_store->used); in compile_vertex_list()
548 node->cold->current_data = malloc(current_size * sizeof(GLfloat)); in compile_vertex_list()
603 uint32_t* indices = (uint32_t*) malloc(max_index_count * sizeof(uint32_t)); in compile_vertex_list()
604 void *tmp_indices = all_prims_supported ? NULL : malloc(max_index_count * sizeof(uint32_t)); in compile_vertex_list()
616 temp_vertices_buffer = malloc(save->vertex_store->buffer_in_ram_size); in compile_vertex_list()
891 node->modes = malloc(merged_prim_count * sizeof(unsigned char)); in compile_vertex_list()
892 node->start_counts = malloc(merged_prim_count * sizeof(struct pipe_draw_start_count_bias)); in compile_vertex_list()
/third_party/mesa3d/src/virtio/venus-protocol/
H A Dvn_protocol_driver_buffer.h1092 cmd_data = malloc(cmd_size); in vn_submit_vkGetBufferMemoryRequirements()
1113 cmd_data = malloc(cmd_size); in vn_submit_vkBindBufferMemory()
1134 cmd_data = malloc(cmd_size); in vn_submit_vkCreateBuffer()
1155 cmd_data = malloc(cmd_size); in vn_submit_vkDestroyBuffer()
1176 cmd_data = malloc(cmd_size); in vn_submit_vkBindBufferMemory2()
1197 cmd_data = malloc(cmd_size); in vn_submit_vkGetBufferMemoryRequirements2()
1218 cmd_data = malloc(cmd_size); in vn_submit_vkGetDeviceBufferMemoryRequirements()
1239 cmd_data = malloc(cmd_size); in vn_submit_vkGetBufferOpaqueCaptureAddress()
1260 cmd_data = malloc(cmd_size); in vn_submit_vkGetBufferDeviceAddress()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dunistdndk.cpp205 char *salt = static_cast<char *>(malloc(sizeof(char) * lenV)); in Crypt()
301 char *strTemp = static_cast<char *>(malloc(sizeof(char) * length)); in GetOpt()
625 buf = static_cast<char *>(malloc(sb.st_size + PARAM_1)); in Readlink()
1198 char *strTemp = static_cast<char *>(malloc(sizeof(char) * length)); in LChOwn()
1214 char *oldPath = static_cast<char *>(malloc(sizeof(char) * lenV)); in Link()
1215 char *newPath = static_cast<char *>(malloc(sizeof(char) * lenV)); in Link()
1235 char *oldPath = static_cast<char *>(malloc(sizeof(char) * lenV)); in LinkAt()
1236 char *newPath = static_cast<char *>(malloc(sizeof(char) * lenV)); in LinkAt()
1255 char *path = static_cast<char *>(malloc(sizeof(char) * lenV)); in LockF()
1276 char *path = static_cast<char *>(malloc(sizeo in LockF64()
[all...]
H A Dfcntl1ndk.cpp23 #include <malloc.h>
198 struct file_handle *handle = (struct file_handle *)malloc(tempHandle.handle_bytes); in NameToHandleAt()
287 struct file_handle *handle = (struct file_handle *)malloc(tempHandle.handle_bytes); in OpenByHandleAt()
/third_party/f2fs-tools/fsck/
H A Dmount.c1046 sbi->raw_super = malloc(sizeof(struct f2fs_super_block)); in validate_super_block()
1187 cp_page = malloc(F2FS_BLKSIZE); in get_checkpoint_version()
1255 sbi->ckpt = malloc(cp_blks * blk_size); in get_valid_checkpoint()
1571 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap()
1632 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits()
1787 nm_i->nat_bitmap = malloc(nm_i->bitmap_size); in init_node_manager()
1802 sbi->nm_info = malloc(sizeof(struct f2fs_nm_info)); in build_node_manager()
1824 sit_i = malloc(sizeof(struct sit_info)); in build_sit_info()
1865 dst_bitmap = malloc(bitmap_size); in build_sit_info()
1920 kaddr = malloc(F2FS_BLKSIZ in read_compacted_summaries()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_demo_hks.c97 hi_u32 *cert_len_array = (hi_u32 *)malloc(cert_key_cnt * sizeof(hi_u32)); in app_hks_get_cert_store_addr()
173 /* free mem before malloc again */ in hks_set_blob()
178 hks_blob_param->data = malloc(hks_blob_param->size + 1); in hks_set_blob()
180 printf("blob malloc fail\r\n"); in hks_set_blob()
242 /* free mem before malloc again */ in hks_set_conn_key_param()
365 flash_write_buffer = malloc(blob_key.size + sizeof(uint32_t)); in app_hks_generate_conn_key()
726 flash_write_buffer = malloc(blob_key.size + sizeof(uint32_t)); in app_hks_generate_cert_key()
/test/xts/acts/telephony/networkmanager/ndk/networkndk/entry/src/main/cpp/
H A Dnet_stack_ndk_test.cpp424 hostname = reinterpret_cast<char *>(malloc(hostnameSize + 1)); // 加一用于存储字符串结束符 in OHNetStackGetPinSetForHostName()
477 hostname = reinterpret_cast<char *>(malloc(hostnameSize + 1)); // 加一用于存储字符串结束符 in OHNetStackGetCertificatesForHostName()
506 hostname = reinterpret_cast<char *>(malloc(hostnameSize + 1)); // 加一用于存储字符串结束符 in OHNetStackGetPinSetForHostName2()
549 hostname = reinterpret_cast<char *>(malloc(hostnameSize + 1)); // 加一用于存储字符串结束符 in OHNetStackGetCertificatesForHostName2()
/third_party/elfutils/libdwfl/
H A Dlink_map.c395 r_debug_info_module = malloc (sizeof (*r_debug_info_module) in report_r_debug()
861 in.d_buf = malloc (in.d_size); in dwfl_link_map_report()
901 void *buf = malloc (nbytes); in dwfl_link_map_report()
1041 void *buf = malloc (dyn_filesz); in dwfl_link_map_report()
H A Ddwfl_segment_report_module.c462 phdrsp = malloc (phdrsp_bytes); in dwfl_segment_report_module()
565 notes = malloc (filesz); in dwfl_segment_report_module()
631 build_id.memory = malloc (build_id.len); in dwfl_segment_report_module()
833 void *dyns = malloc (dyn_filesz); in dwfl_segment_report_module()
/third_party/curl/lib/
H A Dcontent_encoding.c197 decomp = malloc(DSIZ); in inflate_stream()
479 * malloc a block and copy what we have then wait for the next call. If in gzip_do_write()
503 * possible that the memory block we malloc here will never be freed if in gzip_do_write()
510 z->next_in = malloc(z->avail_in); in gzip_do_write()
678 decomp = malloc(DSIZ); in brotli_do_write()
769 zp->decomp = malloc(DSIZ); in zstd_do_write()
H A Deasy.c123 curl_malloc_callback Curl_cmalloc = (curl_malloc_callback)malloc;
151 Curl_cmalloc = (curl_malloc_callback)malloc; in global_init()
201 leakpointer = malloc(1); in global_init()
508 m = malloc(sizeof(struct socketmonitor)); in events_socket()
/third_party/libsnd/src/
H A Dmpeg_l3_encode.c182 if (! (id3v2_buffer = malloc (id3v2_size))) in mpeg_l3_encoder_write_id3tag()
302 if (! (buffer = malloc (len))) in mpeg_l3_encoder_close()
331 if (! (buffer = malloc (len))) in mpeg_l3_encoder_close()
426 pmpeg->block = malloc (pmpeg->block_len) ; in mpeg_l3_encoder_construct()
/third_party/nghttp2/tests/
H A Dnghttp2_frame_test.c51 nghttp2_nv *nva = mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in headers()
185 big_hds[i].value = mem->malloc(big_vallen + 1, NULL); in test_nghttp2_frame_pack_headers_frame_too_large()
391 opaque_data = mem->malloc(opaque_data_len, NULL); in test_nghttp2_frame_pack_goaway()
642 bignv.value = mem->malloc(bignv.valuelen, NULL); in test_nghttp2_nv_array_copy()
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_batch.c182 rlist->relocs = malloc(rlist->reloc_array_size * in init_reloc_list()
233 malloc(batch->exec_array_size * sizeof(batch->exec_bos[0])); in crocus_init_batch()
235 malloc(batch->exec_array_size * sizeof(batch->validation_list[0])); in crocus_init_batch()
649 * malloc a new copy and memcpy it like the normal BO path. in crocus_grow_buffer()
654 grow->map = malloc(new_bo->size); in crocus_grow_buffer()
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
H A Drpng2-win.c659 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height); in rpng2_win_init()
665 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_win_init()
712 if (!(dib = (uch *)malloc(sizeof(BITMAPINFOHEADER) +
857 bg_data = (uch *)malloc(bg_rowbytes * rpng2_info.height);
/third_party/toybox/kconfig/
H A Dsymbol.c606 sym->def[S_DEF_USER].val = val = malloc(size); in sym_set_string_value()
610 sym->def[S_DEF_USER].val = val = malloc(size); in sym_set_string_value()
681 symbol = malloc(sizeof(*symbol)); in sym_lookup()
838 prop = malloc(sizeof(*prop)); in prop_alloc()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/
H A Dloadbmp.c161 pOrigBMPBuf = (HI_U8 *)malloc(h * stride); in LoadBMP()
163 printf("not enough memory to malloc!\n"); in LoadBMP()
287 pOrigBMPBuf = (HI_U8 *)malloc(h * stride); in LoadBMPEx()
289 printf("not enough memory to malloc!\n"); in LoadBMPEx()
441 pOrigBMPBuf = (HI_U8 *)malloc(h * stride); in LoadBMPCanvas()
443 printf("not enough memory to malloc!\n"); in LoadBMPCanvas()

Completed in 45 milliseconds

1...<<41424344454647484950>>...112