Lines Matching +full:0 +full:x99
14 #define SPI_FLASH_TEST_REGION_OFFSET 0xff000
22 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test()
35 /* Full flash erase if SPI_FLASH_TEST_REGION_OFFSET = 0 and in single_sector_test()
40 if (rc != 0) { in single_sector_test()
50 if (rc != 0) { in single_sector_test()
55 memset(buf, 0, len); in single_sector_test()
57 if (rc != 0) { in single_sector_test()
62 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
84 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test()
98 /* Full flash erase if SPI_FLASH_TEST_REGION_OFFSET = 0 and in multi_sector_test()
103 if (rc != 0) { in multi_sector_test()
107 memset(buf, 0, len); in multi_sector_test()
112 if (rc != 0) { in multi_sector_test()
116 if (buf[0] != 0xff) { in multi_sector_test()
117 printf("Flash erase failed at offset 0x%x got 0x%x\n", in multi_sector_test()
118 offs, buf[0]); in multi_sector_test()
131 printf("Attempting to write %zu bytes at offset 0x%x\n", len, offs); in multi_sector_test()
133 if (rc != 0) { in multi_sector_test()
138 memset(buf, 0, len); in multi_sector_test()
140 if (rc != 0) { in multi_sector_test()
145 if (memcmp(expected, buf, len) == 0) { in multi_sector_test()
188 return 0; in main()