Lines Matching refs:flash
22 #include <linux/spi/flash.h>
29 * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in
51 /* erasing flash */
55 /* move data between buffer and flash */
65 /* write to buffer, then write-erase to flash */
69 /* compare buffer to flash */
73 /* read flash to buffer, then write-erase to flash */
92 unsigned short page_offset; /* offset in flash address */
140 * Erase pages of flash.
178 /* Calculate flash page address; use block erase (for speed) if
226 * from : Start offset in flash device
252 /* Calculate flash page/byte address */
299 * to : Start offset in flash device
937 struct dataflash *flash = dev_get_drvdata(&spi->dev);
942 if (mtd_has_partitions() && flash->partitioned)
943 status = del_mtd_partitions(&flash->mtd);
945 status = del_mtd_device(&flash->mtd);
948 kfree(flash);