Home
last modified time | relevance | path

Searched refs:zero_buf (Results 1 – 11 of 11) sorted by relevance

/external/f2fs-tools/mkfs/
Df2fs_format_utils.c119 char *buf, *zero_buf; in is_wiped_device() local
129 zero_buf = calloc(1, F2FS_BLKSIZE); in is_wiped_device()
130 if (zero_buf == NULL) { in is_wiped_device()
137 free(zero_buf); in is_wiped_device()
145 memcmp(buf, zero_buf, F2FS_BLKSIZE)) { in is_wiped_device()
150 free(zero_buf); in is_wiped_device()
Df2fs_format.c605 u_int8_t *zero_buf = NULL; in f2fs_init_sit_area() local
610 zero_buf = calloc(sizeof(u_int8_t), seg_size); in f2fs_init_sit_area()
611 if(zero_buf == NULL) { in f2fs_init_sit_area()
621 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area()
624 free(zero_buf); in f2fs_init_sit_area()
630 free(zero_buf); in f2fs_init_sit_area()
/external/ltp/testcases/kernel/mem/vmtests/
Dstack_space.c209 char *zero_buf; in dotest() local
220 zero_buf = (char *)(malloc(csize)); in dotest()
222 if (bits == 0 || val_buf == 0 || zero_buf == 0) { in dotest()
248 bfill(zero_buf, 0, csize); in dotest()
267 if (memcmp(buf, zero_buf, csize)) { in dotest()
317 bfill(zero_buf, val, csize); in dotest()
322 free(zero_buf); in dotest()
Ddata_space.c225 char *zero_buf; local
249 zero_buf = (char *)(malloc(csize));
250 if (zero_buf == 0)
280 bfill(zero_buf, 0, csize);
299 if (memcmp(buf, zero_buf, csize)) {
353 bfill(zero_buf, val, csize);
/external/ltp/testcases/kernel/fs/ftest/
Dftest05.c261 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local
287 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
323 memset(zero_buf, 0, csize); in dotest()
356 if (memcmp(buf, zero_buf, csize)) { in dotest()
360 xfr, file_max, zero_buf[0]); in dotest()
Dftest01.c260 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local
290 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
328 memset(zero_buf, 0, csize); in dotest()
363 if (memcmp(buf, zero_buf, csize)) { in dotest()
368 xfr, file_max, zero_buf[0]); in dotest()
/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c448 static const char zero_buf[256]; in ext2fs_mem_is_zero() local
450 while (len >= sizeof(zero_buf)) { in ext2fs_mem_is_zero()
451 if (memcmp(mem, zero_buf, sizeof(zero_buf))) in ext2fs_mem_is_zero()
453 len -= sizeof(zero_buf); in ext2fs_mem_is_zero()
454 mem += sizeof(zero_buf); in ext2fs_mem_is_zero()
458 return !memcmp(mem, zero_buf, len); in ext2fs_mem_is_zero()
/external/tensorflow/tensorflow/core/kernels/
Dxsmm_conv2d_test.cc86 LIBXSMM_INLINE void zero_buf(float* buf, long size) { in zero_buf() function
101 zero_buf(buf, size); in init_buf()
230 zero_buf(naive_output, nImg * nOfm * ofhp * ofwp); in TEST_F()
/external/e2fsprogs/misc/
De2image.c576 char *buf, *zero_buf; in output_meta_data_blocks() local
592 retval = ext2fs_get_memzero(fs->blocksize, &zero_buf); in output_meta_data_blocks()
695 generic_write(fd, zero_buf, in output_meta_data_blocks()
747 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks()
753 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks()
756 ext2fs_free_mem(&zero_buf); in output_meta_data_blocks()
Dmke2fs.c109 static __u32 zero_buf[4]; variable
3098 if (memcmp(fs_param.s_hash_seed, zero_buf, in main()
/external/llvm-project/lldb/source/Expression/
DIRMemoryMap.cpp398 std::vector<uint8_t> zero_buf(size, 0); in Malloc() local
399 WriteMemory(aligned_address, zero_buf.data(), size, write_error); in Malloc()