Lines Matching defs:nor

15 #define spi_nor_otp_region_len(nor) ((nor)->params->otp.org->len)  argument
16 #define spi_nor_otp_n_regions(nor) ((nor)->params->otp.org->n_regions) argument
37 int spi_nor_otp_read_secr(struct spi_nor *nor, loff_t addr, size_t len, u8 *buf) in spi_nor_otp_read_secr()
84 int spi_nor_otp_write_secr(struct spi_nor *nor, loff_t addr, size_t len, in spi_nor_otp_write_secr()
138 int spi_nor_otp_erase_secr(struct spi_nor *nor, loff_t addr) in spi_nor_otp_erase_secr()
176 int spi_nor_otp_lock_sr2(struct spi_nor *nor, unsigned int region) in spi_nor_otp_lock_sr2()
208 int spi_nor_otp_is_locked_sr2(struct spi_nor *nor, unsigned int region) in spi_nor_otp_is_locked_sr2()
224 static loff_t spi_nor_otp_region_start(const struct spi_nor *nor, unsigned int region) in spi_nor_otp_region_start()
231 static size_t spi_nor_otp_size(struct spi_nor *nor) in spi_nor_otp_size()
237 static loff_t spi_nor_otp_region_to_offset(struct spi_nor *nor, unsigned int region) in spi_nor_otp_region_to_offset()
242 static unsigned int spi_nor_otp_offset_to_region(struct spi_nor *nor, loff_t ofs) in spi_nor_otp_offset_to_region()
250 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_info() local
285 static int spi_nor_mtd_otp_range_is_locked(struct spi_nor *nor, loff_t ofs, in spi_nor_mtd_otp_range_is_locked()
312 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_read_write() local
398 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_erase() local
451 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_lock() local
484 void spi_nor_set_mtd_otp_ops(struct spi_nor *nor) in spi_nor_set_mtd_otp_ops()