Lines Matching refs:spi_nor
291 struct spi_nor;
309 int (*prepare)(struct spi_nor *nor);
310 void (*unprepare)(struct spi_nor *nor);
311 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len);
312 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf,
315 ssize_t (*read)(struct spi_nor *nor, loff_t from, size_t len, u8 *buf);
316 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len,
318 int (*erase)(struct spi_nor *nor, loff_t offs);
359 struct spi_nor { struct
392 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
398 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
417 int spi_nor_scan(struct spi_nor *nor, const char *name,
424 void spi_nor_restore(struct spi_nor *nor);