Home
last modified time | relevance | path

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

/third_party/f2fs-tools/mkfs/
Df2fs_format_utils.c122 char *buf, *zero_buf; in is_wiped_device() local
132 zero_buf = calloc(1, F2FS_BLKSIZE); in is_wiped_device()
133 if (zero_buf == NULL) { in is_wiped_device()
140 free(zero_buf); in is_wiped_device()
148 memcmp(buf, zero_buf, F2FS_BLKSIZE)) { in is_wiped_device()
153 free(zero_buf); in is_wiped_device()
Df2fs_format_main.c453 char *zero_buf = NULL; in main() local
460 zero_buf = calloc(F2FS_BLKSIZE, 1); in main()
461 if (!zero_buf) { in main()
467 if (dev_fill_block(zero_buf, i)) in main()
469 free(zero_buf); in main()
Df2fs_format.c624 uint8_t *zero_buf = NULL; in f2fs_init_sit_area() local
629 zero_buf = calloc(sizeof(uint8_t), seg_size); in f2fs_init_sit_area()
630 if(zero_buf == NULL) { in f2fs_init_sit_area()
640 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area()
643 free(zero_buf); in f2fs_init_sit_area()
649 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/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()