Lines Matching defs:flash
18 #include <linux/spi/flash.h>
24 * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in
46 /* erasing flash */
50 /* move data between buffer and flash */
60 /* write to buffer, then write-erase to flash */
64 /* compare buffer to flash */
68 /* read flash to buffer, then write-erase to flash */
89 unsigned short page_offset; /* offset in flash address */
152 * Erase pages of flash.
186 /* Calculate flash page address; use block erase (for speed) if
230 * from : Start offset in flash device
248 /* Calculate flash page/byte address */
294 * to : Start offset in flash device
920 struct dataflash *flash = spi_get_drvdata(spi);
924 WARN_ON(mtd_device_unregister(&flash->mtd));
926 kfree(flash);