Lines Matching defs:spi_nor
309 struct spi_nor { struct
326 enum spi_nor_protocol read_proto; argument
327 enum spi_nor_protocol write_proto; argument
328 enum spi_nor_protocol reg_proto; argument
333 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
334 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
335 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
336 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
338 ssize_t (*read)(struct spi_nor *nor, loff_t from, argument
340 ssize_t (*write)(struct spi_nor *nor, loff_t to, argument
342 int (*erase)(struct spi_nor *nor, loff_t offs); argument
344 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
345 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
346 int (*flash_is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
347 int (*quad_enable)(struct spi_nor *nor); argument
358 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument