/third_party/mesa3d/src/panfrost/util/ |
D | lcra.c | 46 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/ |
D | malloc_calloc_test.cpp | 24 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/ |
D | exfat_fs.c | 25 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/ |
D | frame-cache.c | 69 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/ |
D | musl_preinit_common.c | 23 .calloc = libc_gwp_asan_calloc, 34 .calloc = MuslFunc(calloc),
|
/third_party/musl/src/hook/linux/ |
D | musl_preinit_common.c | 38 .calloc = libc_gwp_asan_calloc, 49 .calloc = MuslFunc(calloc),
|
/third_party/cups-filters/cupsfilters/ |
D | rgb.c | 359 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()
|
D | image-sgilib.c | 214 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/ |
D | curl_memory.h | 65 #undef calloc 156 #undef calloc 157 #define calloc(nbelem,size) Curl_ccalloc(nbelem, size) macro
|
/third_party/mesa3d/src/mesa/program/ |
D | symbol_table.c | 121 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/ |
D | ngtcp2_mem.c | 45 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/ |
D | nghttp3_mem.c | 46 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/ |
D | wl_monitor.c | 145 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/ |
D | aio.c | 16 #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/ |
D | aio.c | 16 #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/ |
D | aio.c | 15 #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/ |
D | wince_main.c | 31 argv = (char **) calloc(argc, sizeof(char *)); in _tmain() 36 argv[i] = (char *) calloc(len, sizeof(char)); in _tmain()
|
/third_party/elfutils/libelf/ |
D | elf_newscn.c | 97 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/ |
D | fontfile.c | 22 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/ |
D | input.c | 184 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/ |
D | xattr.c | 32 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/ |
D | mm.c | 65 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/ |
D | ftest05.c | 266 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()
|
D | ftest01.c | 266 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/ |
D | etnaviv_perfmon.c | 46 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()
|