Lines Matching refs:expected
72 const uint8_t expected[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in single_sector_test() local
74 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test()
76 const size_t len = sizeof(expected); in single_sector_test()
77 uint8_t buf[sizeof(expected)]; in single_sector_test()
113 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test()
126 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
129 const uint8_t *wp = expected; in single_sector_test()
148 const uint8_t expected[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in multi_sector_test() local
150 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test()
152 const size_t len = sizeof(expected); in multi_sector_test()
153 uint8_t buf[sizeof(expected)]; in multi_sector_test()
199 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test()
212 if (memcmp(expected, buf, len) == 0) { in multi_sector_test()
215 const uint8_t *wp = expected; in multi_sector_test()