• Home
  • Raw
  • Download

Lines Matching refs: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);
591 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops);
592 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops);
593 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
594 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
596 ssize_t (*read)(struct spi_nor *nor, loff_t from,
598 ssize_t (*write)(struct spi_nor *nor, loff_t to,
600 int (*erase)(struct spi_nor *nor, loff_t offs);
602 int (*clear_sr_bp)(struct spi_nor *nor);
632 static bool __maybe_unused spi_nor_has_uniform_erase(const struct spi_nor *nor) in spi_nor_has_uniform_erase() argument
634 return !!nor->params.erase_map.uniform_erase_type; 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() argument
640 mtd_set_of_node(&nor->mtd, np); 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() argument
645 return mtd_get_of_node(&nor->mtd); 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);