Lines Matching defs:flash
18 #include <linux/spi/flash.h>
25 * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in
49 /* erasing flash */
53 /* move data between buffer and flash */
63 /* write to buffer, then write-erase to flash */
67 /* compare buffer to flash */
71 /* read flash to buffer, then write-erase to flash */
89 unsigned short page_offset; /* offset in flash address */
143 * Erase pages of flash.
176 /* Calculate flash page address; use block erase (for speed) if
224 * from : Start offset in flash device
250 /* Calculate flash page/byte address */
297 * to : Start offset in flash device
587 struct dataflash *flash = dev_get_drvdata(&spi->dev);
592 if (mtd_has_partitions() && flash->partitioned)
593 status = del_mtd_partitions(&flash->mtd);
595 status = del_mtd_device(&flash->mtd);
597 kfree(flash);