Lines Matching refs:spi_nor
466 struct spi_nor;
475 int (*lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
476 int (*unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
477 int (*is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
517 int (*quad_enable)(struct spi_nor *nor);
518 int (*set_4byte)(struct spi_nor *nor, bool enable);
519 u32 (*convert_addr)(struct spi_nor *nor, u32 addr);
520 int (*setup)(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps);
571 struct spi_nor { struct
591 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
592 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
593 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
594 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
596 ssize_t (*read)(struct spi_nor *nor, loff_t from, argument
598 ssize_t (*write)(struct spi_nor *nor, loff_t to, argument
600 int (*erase)(struct spi_nor *nor, loff_t offs); argument
602 int (*clear_sr_bp)(struct spi_nor *nor); argument
632 static bool __maybe_unused spi_nor_has_uniform_erase(const struct spi_nor *nor) in spi_nor_has_uniform_erase()
637 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node()
643 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
662 int spi_nor_scan(struct spi_nor *nor, const char *name,
669 void spi_nor_restore(struct spi_nor *nor);