Lines Matching refs:spi_nor
262 #define spi_flash spi_nor
303 struct spi_nor { struct
326 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
327 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
328 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
329 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
331 ssize_t (*read)(struct spi_nor *nor, loff_t from, argument
333 ssize_t (*write)(struct spi_nor *nor, loff_t to, argument
335 int (*erase)(struct spi_nor *nor, loff_t offs); argument
337 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
338 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
339 int (*flash_is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
340 int (*quad_enable)(struct spi_nor *nor); argument
350 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
357 device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
433 int spi_nor_scan(struct spi_nor *nor);