Lines Matching refs:spi_nor
36 int spi_nor_otp_read_secr(struct spi_nor *nor, loff_t addr, size_t len, u8 *buf) in spi_nor_otp_read_secr()
83 int spi_nor_otp_write_secr(struct spi_nor *nor, loff_t addr, size_t len, in spi_nor_otp_write_secr()
137 int spi_nor_otp_erase_secr(struct spi_nor *nor, loff_t addr) in spi_nor_otp_erase_secr()
175 int spi_nor_otp_lock_sr2(struct spi_nor *nor, unsigned int region) in spi_nor_otp_lock_sr2()
207 int spi_nor_otp_is_locked_sr2(struct spi_nor *nor, unsigned int region) in spi_nor_otp_is_locked_sr2()
223 static loff_t spi_nor_otp_region_start(const struct spi_nor *nor, unsigned int region) in spi_nor_otp_region_start()
230 static size_t spi_nor_otp_size(struct spi_nor *nor) in spi_nor_otp_size()
236 static loff_t spi_nor_otp_region_to_offset(struct spi_nor *nor, unsigned int region) in spi_nor_otp_region_to_offset()
241 static unsigned int spi_nor_otp_offset_to_region(struct spi_nor *nor, loff_t ofs) in spi_nor_otp_offset_to_region()
249 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_info()
284 static int spi_nor_mtd_otp_range_is_locked(struct spi_nor *nor, loff_t ofs, in spi_nor_mtd_otp_range_is_locked()
311 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_read_write()
397 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_erase()
450 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_lock()
483 void spi_nor_set_mtd_otp_ops(struct spi_nor *nor) in spi_nor_set_mtd_otp_ops()