Lines Matching defs:spi_nor
162 struct spi_nor { struct
175 struct spi_nor_xfer_cfg cfg; argument
178 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
179 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
180 int (*read_xfer)(struct spi_nor *nor, struct spi_nor_xfer_cfg *cfg, argument
182 int (*write_xfer)(struct spi_nor *nor, struct spi_nor_xfer_cfg *cfg, argument
184 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
185 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len, argument
188 int (*read)(struct spi_nor *nor, loff_t from, argument
190 void (*write)(struct spi_nor *nor, loff_t to, argument
192 int (*erase)(struct spi_nor *nor, loff_t offs); argument
194 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
195 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
202 * @nor: the spi_nor structure argument