Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 1127) sorted by relevance

12345678910>>...46

/third_party/mesa3d/src/panfrost/util/
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(sizeof(l->solutions[0]), node_count); in lcra_alloc_equations()
/third_party/musl/libc-test/src/functionalext/supplement/malloc/malloc_gtest/
Dmalloc_calloc_test.cpp24 void* memoryBlock = calloc(-1, LEN);
37 void* block = calloc(1, SIZE);
51 void* memoryBlock = calloc(0, 0);
64 void* memoryBlock = calloc(0, 1);
77 void* memoryBlock = calloc(1, 0);
/third_party/exfatprogs/lib/
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/
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/
Dmusl_preinit_common.c23 .calloc = libc_gwp_asan_calloc,
34 .calloc = MuslFunc(calloc),
/third_party/musl/src/hook/linux/
Dmusl_preinit_common.c38 .calloc = libc_gwp_asan_calloc,
49 .calloc = MuslFunc(calloc),
/third_party/cups-filters/cupsfilters/
Drgb.c359 if ((samples = calloc(num_samples, sizeof(cups_sample_t))) == NULL) in cupsRGBLoad()
450 if ((rgbptr = calloc(1, sizeof(cups_rgb_t))) == NULL) in cupsRGBNew()
459 tempc = calloc(tempsize, num_channels); in cupsRGBNew()
460 tempb = calloc(tempsize, sizeof(unsigned char *)); in cupsRGBNew()
461 tempg = calloc(cube_size * cube_size, sizeof(unsigned char **)); in cupsRGBNew()
462 tempr = calloc(cube_size, sizeof(unsigned char ***)); in cupsRGBNew()
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/curl/lib/
Dcurl_memory.h65 #undef calloc
156 #undef calloc
157 #define calloc(nbelem,size) Curl_ccalloc(nbelem, size) macro
/third_party/mesa3d/src/mesa/program/
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/node/deps/ngtcp2/ngtcp2/lib/
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()
/third_party/node/deps/ngtcp2/nghttp3/lib/
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()
/third_party/glfw/src/
Dwl_monitor.c145 monitor->wl.modes = calloc(4, sizeof(_GLFWvidmodeWayland)); in _glfwAddOutputWayland()
181 monitors = calloc(monitorsCount, sizeof(_GLFWmonitor*)); in _glfwPlatformGetMonitors()
186 monitor = calloc(1, sizeof(_GLFWmonitor)); in _glfwPlatformGetMonitors()
221 modes = calloc(modesCount, sizeof(GLFWvidmode)); in _glfwPlatformGetVideoModes()
/third_party/musl/porting/liteos_a/user/src/aio/
Daio.c16 #define calloc __libc_calloc macro
101 if (!map) map = calloc(sizeof *map, (-1U/2+1)>>24); in __aio_get_queue()
103 if (!map[a]) map[a] = calloc(sizeof **map, 256); in __aio_get_queue()
105 if (!map[a][b]) map[a][b] = calloc(sizeof ***map, 256); in __aio_get_queue()
107 if (!map[a][b][c]) map[a][b][c] = calloc(sizeof ****map, 256); in __aio_get_queue()
110 map[a][b][c][d] = q = calloc(sizeof *****map, 1); in __aio_get_queue()
/third_party/musl/src/aio/
Daio.c16 #define calloc __libc_calloc macro
102 if (!map) map = calloc(sizeof *map, (-1U/2+1)>>24); in __aio_get_queue()
104 if (!map[a]) map[a] = calloc(sizeof **map, 256); in __aio_get_queue()
106 if (!map[a][b]) map[a][b] = calloc(sizeof ***map, 256); in __aio_get_queue()
108 if (!map[a][b][c]) map[a][b][c] = calloc(sizeof ****map, 256); in __aio_get_queue()
111 map[a][b][c][d] = q = calloc(sizeof *****map, 1); in __aio_get_queue()
/third_party/musl/porting/linux/user/src/aio/
Daio.c15 #define calloc __libc_calloc macro
101 if (!map) map = calloc(sizeof *map, (-1U/2+1)>>24); in __aio_get_queue()
103 if (!map[a]) map[a] = calloc(sizeof **map, 256); in __aio_get_queue()
105 if (!map[a][b]) map[a][b] = calloc(sizeof ***map, 256); in __aio_get_queue()
107 if (!map[a][b][c]) map[a][b][c] = calloc(sizeof ****map, 256); in __aio_get_queue()
110 map[a][b][c][d] = q = calloc(sizeof *****map, 1); in __aio_get_queue()
/third_party/mbedtls/programs/
Dwince_main.c31 argv = (char **) calloc(argc, sizeof(char *)); in _tmain()
36 argv[i] = (char *) calloc(len, sizeof(char)); in _tmain()
/third_party/elfutils/libelf/
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/cups-filters/fontembed/
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/alsa-lib/src/
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/f2fs-tools/fsck/
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()
/third_party/libdrm/intel/
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/
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()
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/mesa3d/src/etnaviv/drm/
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()

12345678910>>...46