Lines Matching defs:flash
18 struct spi_flash *flash;
20 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
22 if (flash == NULL) {
27 spi_flash_read(flash, offs, size, vdst);
42 struct spi_flash *flash;
44 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
46 if (flash == NULL) {
56 * Load U-Boot image from SPI flash into RAM
58 buf = malloc(flash->page_size);
63 memset(buf, 0, flash->page_size);
65 spi_flash_read(flash, CFG_CFG_DATA_SECTOR,
66 flash->page_size, (void *)buf);
78 spi_flash_read(flash, offset + copy_len, 0x2000,