Lines Matching refs:nor
451 int (*quad_enable)(struct spi_nor *nor);
568 int (*setup)(struct spi_nor *nor, const struct flash_info *info,
570 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops);
571 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops);
572 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
573 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
575 ssize_t (*read)(struct spi_nor *nor, loff_t from,
577 ssize_t (*write)(struct spi_nor *nor, loff_t to,
579 int (*erase)(struct spi_nor *nor, loff_t offs);
581 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
582 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
583 int (*flash_is_unlocked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
584 int (*quad_enable)(struct spi_nor *nor);
585 int (*octal_dtr_enable)(struct spi_nor *nor);
586 int (*ready)(struct spi_nor *nor);
603 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
606 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
610 device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node() argument
612 return mtd_get_of_node(&nor->mtd); in spi_nor_get_flash_node()
623 void spi_nor_setup_op(const struct spi_nor *nor,
637 int spi_nor_scan(struct spi_nor *nor);
640 static inline int spi_nor_remove(struct spi_nor *nor) in spi_nor_remove() argument
651 int spi_nor_remove(struct spi_nor *nor);