Lines Matching refs:pattern_buf
56 void *pattern_buf = NULL; in test_blk_read() local
66 pattern_buf = g_malloc(count); in test_blk_read()
68 memset(pattern_buf, pattern, count); in test_blk_read()
70 memset(pattern_buf, 0x00, count); in test_blk_read()
74 qemu_iovec_add(&qiov, pattern_buf, count); in test_blk_read()
86 g_assert(memcmp(pattern_buf + pattern_offset, in test_blk_read()
91 g_free(pattern_buf); in test_blk_read()
99 void *pattern_buf = NULL; in test_blk_write() local
103 pattern_buf = g_malloc(count); in test_blk_write()
105 memset(pattern_buf, pattern, count); in test_blk_write()
107 memset(pattern_buf, 0x00, count); in test_blk_write()
111 qemu_iovec_add(&qiov, pattern_buf, count); in test_blk_write()
124 g_free(pattern_buf); in test_blk_write()