Home
last modified time | relevance | path

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

/external/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);
/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c418 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/
Dftest05.c261 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local
287 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
323 memset(zero_buf, 0, csize); in dotest()
356 if (memcmp(buf, zero_buf, csize)) { in dotest()
360 xfr, file_max, zero_buf[0]); in dotest()
Dftest01.c260 char *bits, *hold_bits, *buf, *val_buf, *zero_buf; in dotest() local
290 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
328 memset(zero_buf, 0, csize); in dotest()
363 if (memcmp(buf, zero_buf, csize)) { in dotest()
368 xfr, file_max, zero_buf[0]); in dotest()
/external/tensorflow/tensorflow/core/kernels/
Dxsmm_conv2d_test.cc86 LIBXSMM_INLINE void zero_buf(float* buf, long size) { in zero_buf() function
101 zero_buf(buf, size); in init_buf()
230 zero_buf(naive_output, nImg * nOfm * ofhp * ofwp); in TEST_F()
/external/f2fs-tools/mkfs/
Df2fs_format.c461 u_int8_t *zero_buf = NULL; in f2fs_init_sit_area() local
466 zero_buf = calloc(sizeof(u_int8_t), seg_size); in f2fs_init_sit_area()
467 if(zero_buf == NULL) { in f2fs_init_sit_area()
477 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area()
480 free(zero_buf); in f2fs_init_sit_area()
486 free(zero_buf); in f2fs_init_sit_area()
/external/e2fsprogs/misc/
De2image.c566 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()
Dmke2fs.c108 static __u32 zero_buf[4]; variable
2962 if (memcmp(fs_param.s_hash_seed, zero_buf, in main()