Lines Matching refs:blkbuf
492 unsigned char * blkbuf; in test_ro() local
513 blkbuf = allocate_buffer((blocks_at_once + 1) * block_size); in test_ro()
515 blkbuf = allocate_buffer(blocks_at_once * block_size); in test_ro()
517 if (!blkbuf) in test_ro()
530 pattern_fill(blkbuf + blocks_at_once * block_size, in test_ro()
561 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
567 if (memcmp (blkbuf+i*block_size, in test_ro()
568 blkbuf+blocks_at_once*block_size, in test_ro()
592 free (blkbuf); in test_ro()
745 unsigned char *blkbuf, *save_ptr, *test_ptr, *read_ptr; in test_nd() local
774 blkbuf = allocate_buffer(3 * blocks_at_once * block_size); in test_nd()
776 if (!blkbuf || !test_record) { in test_nd()
782 save_base = blkbuf; in test_nd()
783 test_base = blkbuf + (blocks_at_once * block_size); in test_nd()
784 read_base = blkbuf + (2 * blocks_at_once * block_size); in test_nd()
986 free(blkbuf); in test_nd()