Lines Matching refs:spi_nor
283 struct spi_nor { struct
301 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
302 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
303 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
304 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
306 ssize_t (*read)(struct spi_nor *nor, loff_t from, argument
308 ssize_t (*write)(struct spi_nor *nor, loff_t to, argument
310 int (*erase)(struct spi_nor *nor, loff_t offs); argument
312 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
313 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
314 int (*flash_is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
315 int (*quad_enable)(struct spi_nor *nor); argument
320 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
326 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
406 int spi_nor_scan(struct spi_nor *nor, const char *name,
413 void spi_nor_restore(struct spi_nor *nor);