Home
last modified time | relevance | path

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

/third_party/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.c560 u_int8_t *zero_buf = NULL; in f2fs_init_sit_area() local
565 zero_buf = calloc(sizeof(u_int8_t), seg_size); in f2fs_init_sit_area()
566 if(zero_buf == NULL) { in f2fs_init_sit_area()
576 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area()
579 free(zero_buf); in f2fs_init_sit_area()
585 free(zero_buf); in f2fs_init_sit_area()
/third_party/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);
/third_party/ltp/testcases/kernel/fs/ftest/
Dftest01.c259 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local
289 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
327 memset(zero_buf, 0, csize); in dotest()
362 if (memcmp(buf, zero_buf, csize)) { in dotest()
367 xfr, file_max, zero_buf[0]); in dotest()
Dftest05.c260 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local
286 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
322 memset(zero_buf, 0, csize); in dotest()
355 if (memcmp(buf, zero_buf, csize)) { in dotest()
359 xfr, file_max, zero_buf[0]); in dotest()
/third_party/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()
/third_party/e2fsprogs/misc/
De2image.c580 char *buf, *zero_buf; in output_meta_data_blocks() local
596 retval = ext2fs_get_memzero(fs->blocksize, &zero_buf); in output_meta_data_blocks()
700 generic_write(fd, zero_buf, in output_meta_data_blocks()
753 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks()
759 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks()
762 ext2fs_free_mem(&zero_buf); in output_meta_data_blocks()
Dmke2fs.c110 static __u32 zero_buf[4]; variable
3164 if (memcmp(fs_param.s_hash_seed, zero_buf, in main()
/third_party/libuv/test/
Dtest-ipc.c829 uv_buf_t zero_buf; in ipc_helper_send_zero() local
831 zero_buf = uv_buf_init(0, 0); in ipc_helper_send_zero()
844 &zero_buf, in ipc_helper_send_zero()