Lines Matching refs:nor
329 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops);
330 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops);
331 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
332 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
334 ssize_t (*read)(struct spi_nor *nor, loff_t from,
336 ssize_t (*write)(struct spi_nor *nor, loff_t to,
338 int (*erase)(struct spi_nor *nor, loff_t offs);
340 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
341 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
342 int (*flash_is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
343 int (*quad_enable)(struct spi_nor *nor);
353 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
356 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
360 device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node() argument
362 return mtd_get_of_node(&nor->mtd); in spi_nor_get_flash_node()
436 int spi_nor_scan(struct spi_nor *nor);