Searched refs:zero_buf (Results 1 – 8 of 8) sorted by relevance
/external/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);
|
/external/e2fsprogs/lib/ext2fs/ |
D | gen_bitmap.c | 418 static const char zero_buf[256]; in ext2fs_mem_is_zero() local 420 while (len >= sizeof(zero_buf)) { in ext2fs_mem_is_zero() 421 if (memcmp(mem, zero_buf, sizeof(zero_buf))) in ext2fs_mem_is_zero() 423 len -= sizeof(zero_buf); in ext2fs_mem_is_zero() 424 mem += sizeof(zero_buf); in ext2fs_mem_is_zero() 428 return !memcmp(mem, zero_buf, len); in ext2fs_mem_is_zero()
|
/external/ltp/testcases/kernel/fs/ftest/ |
D | ftest01.c | 262 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local 292 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest() 330 memset(zero_buf, 0, csize); in dotest() 365 if (memcmp(buf, zero_buf, csize)) { in dotest() 370 xfr, file_max, zero_buf[0]); in dotest()
|
D | ftest05.c | 265 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local 291 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest() 327 memset(zero_buf, 0, csize); in dotest() 360 if (memcmp(buf, zero_buf, csize)) { in dotest() 364 xfr, file_max, zero_buf[0]); in dotest()
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format.c | 432 u_int8_t *zero_buf = NULL; in f2fs_init_sit_area() local 437 zero_buf = calloc(sizeof(u_int8_t), seg_size); in f2fs_init_sit_area() 438 if(zero_buf == NULL) { in f2fs_init_sit_area() 448 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area() 451 free(zero_buf); in f2fs_init_sit_area() 457 free(zero_buf); in f2fs_init_sit_area()
|
/external/e2fsprogs/misc/ |
D | e2image.c | 566 char *buf, *zero_buf; in output_meta_data_blocks() local 582 retval = ext2fs_get_memzero(fs->blocksize, &zero_buf); in output_meta_data_blocks() 685 generic_write(fd, zero_buf, in output_meta_data_blocks() 737 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks() 743 generic_write(fd, zero_buf, 1, NO_BLK); in output_meta_data_blocks() 746 ext2fs_free_mem(&zero_buf); in output_meta_data_blocks()
|
D | mke2fs.c | 108 static __u32 zero_buf[4]; variable 2962 if (memcmp(fs_param.s_hash_seed, zero_buf, in main()
|