Lines Matching full:nor

291  * struct spi_nor_controller_ops - SPI NOR controller driver specific
299 * @read: read data from the SPI NOR.
300 * @write: write data to the SPI NOR.
301 * @erase: erase a sector of the SPI NOR at the offset @offs; if
302 * not provided by the driver, SPI NOR will send the erase
306 int (*prepare)(struct spi_nor *nor);
307 void (*unprepare)(struct spi_nor *nor);
308 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len);
309 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf,
312 ssize_t (*read)(struct spi_nor *nor, loff_t from, size_t len, u8 *buf);
313 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len,
315 int (*erase)(struct spi_nor *nor, loff_t offs);
343 * struct spi_nor - Structure for defining the SPI NOR layer
352 * @dev: pointer to an SPI device or an SPI NOR controller device
359 * @info: SPI NOR part JEDEC MFR ID and other info
360 * @manufacturer: SPI NOR manufacturer
367 * @flags: flag options for the current SPI NOR (SNOR_F_*)
374 * @controller_ops: SPI NOR controller driver specific operations.
375 * @params: [FLASH-SPECIFIC] SPI NOR flash parameters and settings.
425 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
428 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
431 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node() argument
433 return mtd_get_of_node(&nor->mtd); in spi_nor_get_flash_node()
437 * spi_nor_scan() - scan the SPI NOR
438 * @nor: the spi_nor structure
442 * The drivers can use this function to scan the SPI NOR.
450 int spi_nor_scan(struct spi_nor *nor, const char *name,