| /third_party/f2fs-tools/mkfs/ |
| H A D | f2fs_format_utils.c | 127 char *buf, *zero_buf; in is_wiped_device() local 141 zero_buf = calloc(1, F2FS_BLKSIZE); in is_wiped_device() 142 if (zero_buf == NULL) { in is_wiped_device() 149 free(zero_buf); in is_wiped_device() 157 memcmp(buf, zero_buf, F2FS_BLKSIZE)) { in is_wiped_device() 162 free(zero_buf); in is_wiped_device()
|
| H A 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()
|
| H A D | f2fs_format.c | 628 uint8_t *zero_buf = NULL; in f2fs_init_sit_area() local 633 zero_buf = calloc(sizeof(uint8_t), seg_size); in f2fs_init_sit_area() 634 if(zero_buf == NULL) { in f2fs_init_sit_area() 644 if (dev_fill(zero_buf, sit_seg_addr, seg_size)) { in f2fs_init_sit_area() 647 free(zero_buf); in f2fs_init_sit_area() 653 free(zero_buf); in f2fs_init_sit_area()
|
| /third_party/ltp/testcases/kernel/mem/vmtests/ |
| H A 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()
|
| H A 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/ |
| H A 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() 287 perror("\tmalloc (zero_buf)"); 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()
|
| H A 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() 292 "Test broken due to inability of malloc(zero_buf)."); 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()
|
| /third_party/backends/backend/ |
| H A D | snapscan-scsi.c | 300 static void zero_buf (u_char * buf, size_t len) in zero_buf() function 462 zero_buf (pss->cmd, MAX_SCSI_CMD_LEN); in inquiry() 696 zero_buf (pss->buf, SEND_LENGTH); in send() 797 zero_buf (buf, SEND_LENGTH); in send_calibration_5150() 853 zero_buf (pss->cmd, MAX_SCSI_CMD_LEN); in prepare_set_window() 1091 zero_buf (pss->cmd, MAX_SCSI_CMD_LEN); in set_frame() 1108 zero_buf (pss->cmd, MAX_SCSI_CMD_LEN); in set_focus() 1150 zero_buf (pss->cmd, MAX_SCSI_CMD_LEN); in scan() 1169 zero_buf (pss->cmd, MAX_SCSI_CMD_LEN); in scsi_read() 1421 zero_buf (ps in calibrate_epson() [all...] |
| /third_party/libuv/test/ |
| H A 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()
|