Lines Matching refs:offs
149 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test() local
151 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test()
152 rc = flash_read(flash_dev, offs, buf, len); in multi_sector_test()
159 offs, *(uint32_t *)buf); in multi_sector_test()
162 offs += SPI_FLASH_SECTOR_SIZE; in multi_sector_test()
169 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test() local
171 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test()
172 printf("Attempting to write %zu bytes at offset 0x%x\n", len, offs); in multi_sector_test()
173 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test()
180 rc = flash_read(flash_dev, offs, buf, len); in multi_sector_test()
196 (uint32_t)(offs + (rp - buf)), in multi_sector_test()
202 offs += SPI_FLASH_SECTOR_SIZE; in multi_sector_test()