Home
last modified time | relevance | path

Searched refs:spi_nor (Results 1 – 4 of 4) sorted by relevance

/drivers/mtd/devices/
Dm25p80.c33 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()
[all …]
/drivers/mtd/spi-nor/
Dspi-nor.c82 static int read_sr(struct spi_nor *nor) in read_sr()
101 static int read_fsr(struct spi_nor *nor) in read_fsr()
120 static int read_cr(struct spi_nor *nor) in read_cr()
139 static inline int spi_nor_read_dummy_cycles(struct spi_nor *nor) in spi_nor_read_dummy_cycles()
156 static inline int write_sr(struct spi_nor *nor, u8 val) in write_sr()
166 static inline int write_enable(struct spi_nor *nor) in write_enable()
174 static inline int write_disable(struct spi_nor *nor) in write_disable()
179 static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) in mtd_to_spi_nor()
185 static inline int set_4byte(struct spi_nor *nor, const struct flash_info *info, in set_4byte()
213 static inline int spi_nor_sr_ready(struct spi_nor *nor) in spi_nor_sr_ready()
[all …]
Dnxp-spifi.c63 struct spi_nor nor;
130 static int nxp_spifi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in nxp_spifi_read_reg()
152 static int nxp_spifi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in nxp_spifi_write_reg()
175 static int nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read()
191 static void nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write()
218 static int nxp_spifi_erase(struct spi_nor *nor, loff_t offs) in nxp_spifi_erase()
265 static void nxp_spifi_dummy_id_read(struct spi_nor *nor) in nxp_spifi_dummy_id_read()
Dfsl-quadspi.c263 struct spi_nor nor[FSL_QSPI_MAX_CHIP];
578 static int fsl_qspi_nor_write(struct fsl_qspi *q, struct spi_nor *nor, in fsl_qspi_nor_write()
783 static void fsl_qspi_set_base_addr(struct fsl_qspi *q, struct spi_nor *nor) in fsl_qspi_set_base_addr()
788 static int fsl_qspi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in fsl_qspi_read_reg()
801 static int fsl_qspi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in fsl_qspi_write_reg()
825 static void fsl_qspi_write(struct spi_nor *nor, loff_t to, in fsl_qspi_write()
837 static int fsl_qspi_read(struct spi_nor *nor, loff_t from, in fsl_qspi_read()
884 static int fsl_qspi_erase(struct spi_nor *nor, loff_t offs) in fsl_qspi_erase()
900 static int fsl_qspi_prep(struct spi_nor *nor, enum spi_nor_ops ops) in fsl_qspi_prep()
919 static void fsl_qspi_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in fsl_qspi_unprep()
[all …]