Searched refs:zero_buf (Results 1 – 6 of 6) sorted by relevance
/external/e2fsprogs/lib/ext2fs/ |
D | gen_bitmap.c | 417 static const char zero_buf[256]; in ext2fs_mem_is_zero() local 419 while (len >= sizeof(zero_buf)) { in ext2fs_mem_is_zero() 420 if (memcmp(mem, zero_buf, sizeof(zero_buf))) in ext2fs_mem_is_zero() 422 len -= sizeof(zero_buf); in ext2fs_mem_is_zero() 423 mem += sizeof(zero_buf); in ext2fs_mem_is_zero() 427 return !memcmp(mem, zero_buf, len); in ext2fs_mem_is_zero()
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format.c | 375 u_int8_t *zero_buf = NULL; in f2fs_init_sit_area() local 380 zero_buf = calloc(sizeof(u_int8_t), seg_size); in f2fs_init_sit_area() 381 if(zero_buf == NULL) { in f2fs_init_sit_area() 391 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area() 394 free(zero_buf); in f2fs_init_sit_area() 400 free(zero_buf); in f2fs_init_sit_area()
|
/external/e2fsprogs/misc/ |
D | e2image.c | 560 char *buf, *zero_buf; in output_meta_data_blocks() local 575 retval = ext2fs_get_memzero(fs->blocksize, &zero_buf); in output_meta_data_blocks() 674 generic_write(fd, zero_buf, in output_meta_data_blocks() 725 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks() 731 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks() 734 ext2fs_free_mem(&zero_buf); in output_meta_data_blocks()
|
/external/e2fsprogs/debugfs/ |
D | debugfs.c | 1586 char *zero_buf; in copy_file() local 1601 retval = ext2fs_get_memzero(bufsize, &zero_buf); in copy_file() 1621 cmp = memcmp(ptr, zero_buf, got); in copy_file() 1643 ext2fs_free_mem(&zero_buf); in copy_file() 1649 ext2fs_free_mem(&zero_buf); in copy_file()
|
/external/fio/ |
D | verify.c | 671 static char zero_buf[1024]; in verify_trimmed_io_u() local 682 this_len = sizeof(zero_buf); in verify_trimmed_io_u() 685 if (memcmp(p, zero_buf, this_len)) { in verify_trimmed_io_u()
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | header.c | 86 static const char zero_buf[NAME_ALIGN]; in write_padded() local 90 err = do_write(fd, zero_buf, count_aligned - count); in write_padded()
|