Lines Matching defs:flash
19 #include <linux/spi/flash.h>
25 * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in
47 /* erasing flash */
51 /* move data between buffer and flash */
61 /* write to buffer, then write-erase to flash */
65 /* compare buffer to flash */
69 /* read flash to buffer, then write-erase to flash */
90 unsigned short page_offset; /* offset in flash address */
146 * Erase pages of flash.
180 /* Calculate flash page address; use block erase (for speed) if
224 * from : Start offset in flash device
242 /* Calculate flash page/byte address */
288 * to : Start offset in flash device
914 struct dataflash *flash = spi_get_drvdata(spi);
919 status = mtd_device_unregister(&flash->mtd);
921 kfree(flash);