Lines Matching refs:spi_nor
33 struct spi_nor spi_nor; member
37 static int m25p80_read_reg(struct spi_nor *nor, u8 code, u8 *val, int len) in m25p80_read_reg()
50 static void m25p_addr2cmd(struct spi_nor *nor, unsigned int addr, u8 *cmd) in m25p_addr2cmd()
59 static int m25p_cmdsz(struct spi_nor *nor) in m25p_cmdsz()
64 static int m25p80_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in m25p80_write_reg()
76 static void m25p80_write(struct spi_nor *nor, loff_t to, size_t len, in m25p80_write()
106 static inline unsigned int m25p80_rx_nbits(struct spi_nor *nor) in m25p80_rx_nbits()
122 static int m25p80_read(struct spi_nor *nor, loff_t from, size_t len, in m25p80_read()
155 static int m25p80_erase(struct spi_nor *nor, loff_t offset) in m25p80_erase()
160 flash->spi_nor.mtd.erasesize / 1024, (u32)offset); in m25p80_erase()
181 struct spi_nor *nor; in m25p_probe()
192 nor = &flash->spi_nor; in m25p_probe()
243 return mtd_device_unregister(&flash->spi_nor.mtd); in m25p_remove()