Lines Matching refs:spi_nor
293 struct spi_nor;
311 int (*prepare)(struct spi_nor *nor);
312 void (*unprepare)(struct spi_nor *nor);
313 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len);
314 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf,
317 ssize_t (*read)(struct spi_nor *nor, loff_t from, size_t len, u8 *buf);
318 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len,
320 int (*erase)(struct spi_nor *nor, loff_t offs);
361 struct spi_nor { struct
395 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
401 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
420 int spi_nor_scan(struct spi_nor *nor, const char *name,
427 void spi_nor_restore(struct spi_nor *nor);