Lines Matching refs:expected
22 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test() local
23 const size_t len = sizeof(expected); in single_sector_test()
24 uint8_t buf[sizeof(expected)]; in single_sector_test()
49 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test()
62 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
65 const uint8_t *wp = expected; in single_sector_test()
84 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test() local
85 const size_t len = sizeof(expected); in multi_sector_test()
86 uint8_t buf[sizeof(expected)]; in multi_sector_test()
132 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test()
145 if (memcmp(expected, buf, len) == 0) { in multi_sector_test()
148 const uint8_t *wp = expected; in multi_sector_test()