Home
last modified time | relevance | path

Searched refs:calloc (Results 1 - 25 of 1086) sorted by relevance

12345678910>>...44

/third_party/mesa3d/src/panfrost/util/
H A Dlcra.c46 struct lcra_state *l = calloc(1, sizeof(*l)); in lcra_alloc_equations()
51 l->alignment = calloc(sizeof(l->alignment[0]), node_count); in lcra_alloc_equations()
52 l->linear = calloc(sizeof(l->linear[0]), node_count * node_count); in lcra_alloc_equations()
53 l->modulus = calloc(sizeof(l->modulus[0]), node_count); in lcra_alloc_equations()
54 l->class = calloc(sizeof(l->class[0]), node_count); in lcra_alloc_equations()
55 l->class_start = calloc(sizeof(l->class_start[0]), class_count); in lcra_alloc_equations()
56 l->class_disjoint = calloc(sizeof(l->class_disjoint[0]), class_count * class_count); in lcra_alloc_equations()
57 l->class_size = calloc(sizeof(l->class_size[0]), class_count); in lcra_alloc_equations()
58 l->spill_cost = calloc(sizeof(l->spill_cost[0]), node_count); in lcra_alloc_equations()
59 l->solutions = calloc(sizeo in lcra_alloc_equations()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/malloc/malloc_gtest/
H A Dmalloc_calloc_test.cpp18 * @tc.desc: The testing viewpoint is to verify whether the calloc function can correctly handle errors and return
24 void* memoryBlock = calloc(-1, LEN); in HWTEST_F()
31 * @tc.desc: This test verifies that the calloc function can successfully allocate a memory block of the specified size,
37 void* block = calloc(1, SIZE); in HWTEST_F()
45 * @tc.desc: This test verifies that when calling the calloc function, passing 0 as the number and size of elements, the
51 void* memoryBlock = calloc(0, 0); in HWTEST_F()
58 * @tc.desc: This test verifies that when calling the calloc function, passing 0 as the number of elements and non-zero
64 void* memoryBlock = calloc(0, 1); in HWTEST_F()
71 * @tc.desc: This test verifies that when calling the calloc function, the function can successfully allocate memory and
77 void* memoryBlock = calloc( in HWTEST_F()
[all...]
/third_party/exfatprogs/lib/
H A Dexfat_fs.c25 node = (struct exfat_inode *)calloc(1, size); in exfat_alloc_inode()
130 exfat = (struct exfat *)calloc(1, sizeof(*exfat)); in exfat_alloc_exfat()
142 exfat->alloc_bitmap = (char *)calloc(1, in exfat_alloc_exfat()
150 calloc(1, EXFAT_BITMAP_SIZE(exfat->clus_count)); in exfat_alloc_exfat()
157 calloc(1, EXFAT_BITMAP_SIZE(exfat->clus_count)); in exfat_alloc_exfat()
163 exfat->zero_cluster = calloc(1, exfat->clus_size); in exfat_alloc_exfat()
182 bd = (struct buffer_desc *)calloc(sizeof(*bd), count); in exfat_alloc_buffer()
190 bd[i].dirty = (char *)calloc(clu_size / sect_size, 1); in exfat_alloc_buffer()
/third_party/alsa-utils/axfer/
H A Dframe-cache.c69 buf = calloc(frames_per_cache, in frame_cache_init()
76 char **bufs = calloc(samples_per_frame, sizeof(*bufs)); in frame_cache_init()
77 char **buf_ptrs = calloc(samples_per_frame, sizeof(*buf_ptrs)); in frame_cache_init()
85 bufs[i] = calloc(frames_per_cache, bytes_per_sample); in frame_cache_init()
/third_party/musl/porting/linux/user/src/hook/
H A Dmusl_preinit_common.c23 .calloc = libc_gwp_asan_calloc,
35 .calloc = MuslFunc(calloc),
/third_party/musl/src/hook/linux/
H A Dmusl_preinit_common.c38 .calloc = libc_gwp_asan_calloc,
50 .calloc = MuslFunc(calloc),
/third_party/curl/lib/
H A Dcurl_memory.h31 * that use memory related functions strdup, malloc, calloc, realloc
65 #undef calloc macro
144 * libcurl's 'memory tracking' system defines strdup, malloc, calloc,
156 #undef calloc macro
157 #define calloc(nbelem,size) Curl_ccalloc(nbelem, size) macro
/third_party/mesa3d/src/mesa/program/
H A Dsymbol_table.c121 struct scope_level *const scope = calloc(1, sizeof(*scope)); in _mesa_symbol_table_push_scope()
186 new_sym = calloc(1, sizeof(*sym)); in _mesa_symbol_table_add_symbol()
255 sym = calloc(1, sizeof(*sym)); in _mesa_symbol_table_add_global_symbol()
292 struct _mesa_symbol_table *table = calloc(1, sizeof(*table)); in _mesa_symbol_table_ctor()
/third_party/mbedtls/programs/
H A Dwince_main.c31 argv = (char **) calloc(argc, sizeof(char *)); in _tmain()
36 argv[i] = (char *) calloc(len, sizeof(char)); in _tmain()
/third_party/cups-filters/fontembed/
H A Dfontfile.c22 FONTFILE *ret=calloc(1,sizeof(FONTFILE)); in fontfile_open_sfnt()
33 FONTFILE *ret=calloc(1,sizeof(FONTFILE)); in fontfile_open_std()
/third_party/elfutils/libelf/
H A Delf_newscn.c97 newp = calloc (sizeof (Elf_ScnList) in elf_newscn()
125 result->shdr.e32 = calloc (1, sizeof (Elf32_Shdr)); in elf_newscn()
134 result->shdr.e64 = calloc (1, sizeof (Elf64_Shdr)); in elf_newscn()
/third_party/libdrm/etnaviv/
H A Detnaviv_perfmon.c46 sig = calloc(1, sizeof(*sig)); in etna_perfmon_query_signals()
78 dom = calloc(1, sizeof(*dom)); in etna_perfmon_query_domains()
129 pm = calloc(1, sizeof(*pm)); in etna_perfmon_create()
/third_party/mesa3d/src/etnaviv/drm/
H A Detnaviv_perfmon.c46 sig = calloc(1, sizeof(*sig)); in etna_perfmon_query_signals()
78 dom = calloc(1, sizeof(*dom)); in etna_perfmon_query_domains()
129 pm = calloc(1, sizeof(*pm)); in etna_perfmon_create()
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_mem.c45 return calloc(nmemb, size); in default_calloc()
69 return mem->calloc(nmemb, size, mem->user_data); in ngtcp2_mem_calloc()
95 void *nptr = mem->calloc(nmemb, size, mem->user_data); in ngtcp2_mem_calloc_debug()
97 fprintf(stderr, "calloc %p nmemb=%zu size=%zu in %s at %s:%zu\n", nptr, nmemb, in ngtcp2_mem_calloc_debug()
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_mem.c46 return calloc(nmemb, size); in default_calloc()
70 return mem->calloc(nmemb, size, mem->user_data); in nghttp3_mem_calloc()
106 void *nptr = mem->calloc(nmemb, size, mem->user_data); in nghttp3_mem_calloc_debug()
108 fprintf(stderr, "calloc %p nmemb=%zu size=%zu in %s at %s:%zu\n", nptr, nmemb, in nghttp3_mem_calloc_debug()
/third_party/f2fs-tools/fsck/
H A Dxattr.c32 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in read_all_xattrs()
42 txattr_addr = calloc(inline_size + BLOCK_SZ, 1); in read_all_xattrs()
114 xattr_node = calloc(BLOCK_SZ, 1); in write_all_xattrs()
164 inode = calloc(BLOCK_SZ, 1); in f2fs_setxattr()
H A Ddir.c133 dentry_blk = calloc(BLOCK_SZ, 1); in find_in_level()
246 dentry_blk = calloc(BLOCK_SZ, 1); in f2fs_add_link()
348 dent_blk = calloc(BLOCK_SZ, 1); in make_empty_dir()
397 data_blk = calloc(BLOCK_SZ, 1); in page_symlink()
577 dentry_blk = calloc(BLOCK_SZ, 1); in convert_inline_dentry()
661 find_hardlink = calloc(1, sizeof(struct hardlink_cache_entry)); in f2fs_search_hardlink()
697 parent = calloc(BLOCK_SZ, 1); in f2fs_create()
719 child = calloc(BLOCK_SZ, 1); in f2fs_create()
765 child = calloc(BLOCK_SZ, 1); in f2fs_create()
833 parent = calloc(BLOCK_S in f2fs_find_path()
[all...]
H A Ddump.c46 nat_block = (struct f2fs_nat_block *)calloc(BLOCK_SZ, 1); in nat_dump()
48 node_block = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in nat_dump()
323 node_blk = calloc(BLOCK_SZ, 1); in dump_node_blk()
551 node_blk = calloc(BLOCK_SZ, 1); in dump_node_scan_disk()
583 node_blk = calloc(BLOCK_SZ, 1); in dump_node()
627 node_blk = calloc(BLOCK_SZ, 1); in dump_node_from_blkaddr()
670 node_blk = calloc(BLOCK_SZ, 1); in dump_data_offset()
692 node_blk = calloc(BLOCK_SZ, 1); in dump_node_offset()
707 node_blk = calloc(BLOCK_SZ, 1); in has_dirent()
732 blk = calloc(BLOCK_S in dump_dirent()
[all...]
/third_party/alsa-lib/src/
H A Dinput.c184 stdio = calloc(1, sizeof(*stdio)); in snd_input_stdio_attach()
187 input = calloc(1, sizeof(*input)); in snd_input_stdio_attach()
311 buffer = calloc(1, sizeof(*buffer)); in snd_input_buffer_open()
314 input = calloc(1, sizeof(*input)); in snd_input_buffer_open()
/third_party/libdrm/intel/
H A Dmm.c65 heap = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
69 block = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
102 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
127 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest05.c266 if ((bits = calloc((nchunks + 7) / 8, 1)) == NULL) { in dotest()
271 if ((hold_bits = calloc((nchunks + 7) / 8, 1)) == NULL) { in dotest()
276 if ((buf = (calloc(csize, 1))) == NULL) { in dotest()
281 if ((val_buf = (calloc(csize, 1))) == NULL) { in dotest()
286 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
H A Dftest01.c266 if ((bits = calloc((nchunks + 7) / 8, 1)) == 0) { in dotest()
272 if ((hold_bits = calloc((nchunks + 7) / 8, 1)) == 0) { in dotest()
278 if ((buf = (calloc(csize, 1))) == 0) { in dotest()
283 if ((val_buf = (calloc(csize, 1))) == 0) { in dotest()
289 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
/third_party/cups-filters/cupsfilters/
H A Dimage-sgilib.c214 if ((sgip = calloc(sizeof(sgi_t), 1)) == NULL) in sgiOpenFile()
248 if ((sgip->table = calloc(sgip->zsize, sizeof(long *))) == NULL) in sgiOpenFile()
254 if ((sgip->table[0] = calloc(sgip->ysize * sgip->zsize, in sgiOpenFile()
330 sgip->arle_row = calloc(xsize, sizeof(unsigned short)); in sgiOpenFile()
343 if ((sgip->table = calloc(sgip->zsize, sizeof(long *))) == NULL) in sgiOpenFile()
349 if ((sgip->table[0] = calloc(sgip->ysize * sgip->zsize, in sgiOpenFile()
360 if ((sgip->length = calloc(sgip->zsize, sizeof(long *))) == NULL) in sgiOpenFile()
367 if ((sgip->length[0] = calloc(sgip->ysize * sgip->zsize, in sgiOpenFile()
/third_party/nghttp2/lib/
H A Dnghttp2_mem.c42 return calloc(nmemb, size); in default_calloc()
69 return mem->calloc(nmemb, size, mem->mem_user_data); in nghttp2_mem_calloc()
/third_party/musl/src/exit/
H A Datexit.c8 #define calloc __libc_calloc macro
52 struct fl *new_fl = calloc(sizeof(struct fl), 1); in __cxa_atexit()

Completed in 12 milliseconds

12345678910>>...44