Lines Matching refs:scratch_buf
62 static uint8_t scratch_buf[2][SECTOR_COUNT4 * SECTOR_SIZE + 4]; variable
237 test_sector_read(scratch_buf[0], SECTOR_COUNT1); in ZTEST()
238 test_sector_read(scratch_buf[0], SECTOR_COUNT2); in ZTEST()
239 test_sector_read(scratch_buf[0], SECTOR_COUNT3); in ZTEST()
240 test_sector_read(scratch_buf[0], SECTOR_COUNT4); in ZTEST()
243 memset(scratch_buf[0], 0, SECTOR_COUNT1 * disk_sector_size); in ZTEST()
244 rc = read_sector(scratch_buf[0], 0, SECTOR_COUNT1); in ZTEST()
248 memset(scratch_buf[1], 0xff, SECTOR_COUNT1 * disk_sector_size); in ZTEST()
249 rc = read_sector(scratch_buf[1], 0, SECTOR_COUNT1); in ZTEST()
251 zassert_mem_equal(scratch_buf[1], scratch_buf[0], in ZTEST()
265 test_sector_write(scratch_buf[0], scratch_buf[1], SECTOR_COUNT1); in ZTEST()
266 test_sector_write(scratch_buf[0], scratch_buf[1], SECTOR_COUNT2); in ZTEST()
267 test_sector_write(scratch_buf[0], scratch_buf[1], SECTOR_COUNT3); in ZTEST()
268 test_sector_write(scratch_buf[0], scratch_buf[1], SECTOR_COUNT4); in ZTEST()
273 rc = write_sector_checked(scratch_buf[0], scratch_buf[1], 0, SECTOR_COUNT1); in ZTEST()