Lines Matching refs:blkbuf
476 unsigned char * blkbuf; in test_ro() local
497 blkbuf = allocate_buffer((blocks_at_once + 1) * block_size); in test_ro()
499 blkbuf = allocate_buffer(blocks_at_once * block_size); in test_ro()
501 if (!blkbuf) in test_ro()
514 pattern_fill(blkbuf + blocks_at_once * block_size, in test_ro()
545 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
551 if (memcmp (blkbuf+i*block_size, in test_ro()
552 blkbuf+blocks_at_once*block_size, in test_ro()
576 free (blkbuf); in test_ro()
729 unsigned char *blkbuf, *save_ptr, *test_ptr, *read_ptr; in test_nd() local
758 blkbuf = allocate_buffer(3 * blocks_at_once * block_size); in test_nd()
760 if (!blkbuf || !test_record) { in test_nd()
766 save_base = blkbuf; in test_nd()
767 test_base = blkbuf + (blocks_at_once * block_size); in test_nd()
768 read_base = blkbuf + (2 * blocks_at_once * block_size); in test_nd()
970 free(blkbuf); in test_nd()