Searched refs:zero_buf (Results 1 – 8 of 8) sorted by relevance
/third_party/f2fs-tools/mkfs/ |
D | f2fs_format_utils.c | 122 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()
|
D | f2fs_format_main.c | 453 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()
|
D | f2fs_format.c | 624 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/ |
D | stack_space.c | 209 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()
|
D | data_space.c | 225 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/ |
D | ftest01.c | 259 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()
|
D | ftest05.c | 260 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/ |
D | test-ipc.c | 829 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()
|