Lines Matching refs:flash
114 void spi_flash_free(struct spi_flash *flash);
116 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() argument
119 return spi_flash_read_dm(flash->dev, offset, len, buf); in spi_flash_read()
122 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write() argument
125 return spi_flash_write_dm(flash->dev, offset, len, buf); in spi_flash_write()
128 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase() argument
131 return spi_flash_erase_dm(flash->dev, offset, len); in spi_flash_erase()
145 void spi_flash_free(struct spi_flash *flash);
147 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() argument
150 struct mtd_info *mtd = &flash->mtd; in spi_flash_read()
156 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write() argument
159 struct mtd_info *mtd = &flash->mtd; in spi_flash_write()
165 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase() argument
168 struct mtd_info *mtd = &flash->mtd; in spi_flash_erase()
184 static inline int spi_flash_protect(struct spi_flash *flash, u32 ofs, u32 len, in spi_flash_protect() argument
187 if (!flash->flash_lock || !flash->flash_unlock) in spi_flash_protect()
191 return flash->flash_lock(flash, ofs, len); in spi_flash_protect()
193 return flash->flash_unlock(flash, ofs, len); in spi_flash_protect()