Lines Matching refs:spi_flash
62 struct spi_flash { struct
88 int (*flash_lock)(struct spi_flash *flash, u32 ofs, size_t len); argument
89 int (*flash_unlock)(struct spi_flash *flash, u32 ofs, size_t len); argument
90 int (*flash_is_locked)(struct spi_flash *flash, u32 ofs, size_t len); argument
103 int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf); argument
104 int (*write)(struct spi_flash *flash, u32 offset, size_t len, argument
106 int (*erase)(struct spi_flash *flash, u32 offset, size_t len); argument
161 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
165 void spi_flash_free(struct spi_flash *flash);
167 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read()
173 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write()
179 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase()
193 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
196 void spi_flash_free(struct spi_flash *flash);
198 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read()
204 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write()
210 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase()
217 static inline int spi_flash_protect(struct spi_flash *flash, u32 ofs, u32 len, in spi_flash_protect()