Home
last modified time | relevance | path

Searched refs:malloc (Results 2176 - 2200 of 4919) sorted by relevance

1...<<81828384858687888990>>...197

/third_party/backends/backend/
H A Ddll.c513 src = malloc (src_len); in load()
516 DBG (1, "load: malloc failed: %s\n", strerror (errno)); in load()
780 alias = malloc (sizeof (struct alias)); in add_alias()
783 alias->oldname = malloc (oldlen + newlen + 2); in add_alias()
1122 devlist = malloc (devlist_size * sizeof (devlist[0])); \ in sane_get_devices()
1173 mem = malloc (sizeof (*dev) + len + 1); in sane_get_devices()
1186 mem = malloc (sizeof (*dev) + len + 1); in sane_get_devices()
H A Dcanon630u-common.c424 buf = malloc (bytes); in read_bulk_size()
566 buf = malloc (BUFSIZE); in do_scan()
746 buf = malloc (0x400); in plugin_cal()
877 s->buf = malloc (s->width * s->height * 3); in plugin_cal()
1200 buf = malloc (10208); in install_ogn()
1285 buf = malloc (0x400); in scan()
H A Dhp5400_sane.c65 #include <stdlib.h> /* malloc, free */
258 s->aGammaTableR = malloc( NUM_GAMMA_ENTRIES * sizeof( SANE_Int ) ); in _InitOptions()
259 s->aGammaTableG = malloc( NUM_GAMMA_ENTRIES * sizeof( SANE_Int ) ); in _InitOptions()
260 s->aGammaTableB = malloc( NUM_GAMMA_ENTRIES * sizeof( SANE_Int ) ); in _InitOptions()
556 pNew = malloc(sizeof(TDevListEntry)); in _ReportDevice()
722 _pSaneDevList = malloc (sizeof (*_pSaneDevList) * (iNumSaneDev + 1)); in sane_get_devices()
755 s = malloc (sizeof (TScanner)); in sane_open()
758 HP5400_DBG (DBG_MSG, "malloc failed\n"); in sane_open()
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...]
/third_party/cups-filters/filter/
H A Dimagetopdf.c214 if ((pageObjects = malloc(sizeof(int)*nPages)) == NULL) in allocPageObjects()
229 if ((objects = malloc(sizeof(struct pdfObject)*N_OBJECT_ALLOC)) in newObj()
1574 ppd->jcl_ps = (char *)malloc(size * sizeof(char)); in main()
1612 row = malloc(cupsImageGetWidth(img) * abs(colorspace) + 3); in main()
1752 if ((contentsObjs = malloc(sizeof(int)*xpages*ypages)) == NULL) in main()
1757 if ((imgObjs = malloc(sizeof(int)*xpages*ypages)) == NULL) in main()
/third_party/mesa3d/src/util/format/
H A Du_format.c710 tmp_z = malloc(width * sizeof *tmp_z); in util_format_translate()
714 tmp_s = malloc(width * sizeof *tmp_s); in util_format_translate()
750 tmp_row = malloc(y_step * tmp_stride); in util_format_translate()
781 tmp_row = malloc(y_step * tmp_stride); in util_format_translate()
812 tmp_row = malloc(y_step * tmp_stride); in util_format_translate()
842 tmp_row = malloc(y_step * tmp_stride); in util_format_translate()
/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()
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp31 char *res = static_cast<char *>(malloc(sizeof(char) * len)); in MallocCString()
909 int64_t* head = static_cast<int64_t *>(malloc(sizeof(int64_t) * vec.size())); in SetNotificationSlot()
915 LOGE("SetNotificationSlot malloc vibrationValues.head failed."); in SetNotificationSlot()
1110 LOGE("malloc CNotificationLongTextContent failed, longText is null."); in SetNotificationLongTextContent()
1266 lines.head = static_cast<char **>(malloc(sizeof(char *) * vecs.size())); in SetNotificationMultiLineContent()
1269 LOGE("multiLineContent lines malloc failed"); in SetNotificationMultiLineContent()
1326 names.head = static_cast<char **>(malloc(sizeof(char *) * vecs.size())); in SetButton()
1329 LOGE("NotificationButton names malloc failed"); in SetButton()
1422 LOGE("malloc CNotificationSystemLiveViewContent failed, systemLiveView is null"); in SetNotificationLocalLiveViewContent()
1474 static_cast<CNotificationBasicContent *>(malloc(sizeo in SetNotificationContentDetailed()
[all...]
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/unittest/capturer_test/src/
H A Daudio_capturer_unit_test.cpp1444 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1493 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1540 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1572 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1604 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1639 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1675 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1710 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
1759 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dsynthetic-events.c747 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
751 mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
755 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
759 namespaces_event = malloc(sizeof(namespaces_event->namespaces) + in perf_event__synthesize_thread_map()
829 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in __perf_event__synthesize_threads()
833 mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size); in __perf_event__synthesize_threads()
837 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); in __perf_event__synthesize_threads()
841 namespaces_event = malloc(sizeof(namespaces_event->namespaces) + in __perf_event__synthesize_threads()
2031 ff.buf = malloc(sz); in perf_event__synthesize_features()
/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...]
/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...]
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
H A Ddmesg_catcher.cpp68 char *data = (char *)malloc(size + 1); in DumpDmesgLog()
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
H A Dhilog_vector.cpp91 char *tempStr = static_cast<char*>(malloc(length)); in Push()
/base/location/test/fuzztest/locator/locatorcallbackhost_fuzzer/
H A Dlocatorcallbackhost_fuzzer.cpp67 char* ch = (char *)malloc(size + 1); in ParseData()
/base/account/os_account/interfaces/kits/cj/osaccount/src/
H A Dosaccount_manager_impl.cpp136 char *res = static_cast<char *>(malloc(sizeof(char) * len)); in MallocCString()
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dunwinder_pac_test.cpp21 #include <malloc.h>
/base/powermgr/powermgr_lite/frameworks/src/small/
H A Dpower_screen_saver.c46 uint8_t *client = (uint8_t *)malloc(len); in CreatClient()
/base/notification/eventhandler/test/fuzztest/eventhandler_fuzzer/
H A Deventhandler_fuzzer.cpp122 char* ch = reinterpret_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()

Completed in 51 milliseconds

1...<<81828384858687888990>>...197