/drivers/mtd/spi-nor/ |
D | spi-nor.c | 89 static int read_sr(struct spi_nor *nor) in read_sr() 108 static int read_fsr(struct spi_nor *nor) in read_fsr() 127 static int read_cr(struct spi_nor *nor) in read_cr() 146 static inline int spi_nor_read_dummy_cycles(struct spi_nor *nor) in spi_nor_read_dummy_cycles() 163 static inline int write_sr(struct spi_nor *nor, u8 val) in write_sr() 173 static inline int write_enable(struct spi_nor *nor) in write_enable() 181 static inline int write_disable(struct spi_nor *nor) in write_disable() 192 static inline int set_4byte(struct spi_nor *nor, const struct flash_info *info, in set_4byte() 220 static inline int spi_nor_sr_ready(struct spi_nor *nor) in spi_nor_sr_ready() 229 static inline int spi_nor_fsr_ready(struct spi_nor *nor) in spi_nor_fsr_ready() [all …]
|
D | cadence-quadspi.c | 44 struct spi_nor nor; member 280 static unsigned int cqspi_calc_rdreg(struct spi_nor *nor, const u8 opcode) in cqspi_calc_rdreg() 349 static int cqspi_command_read(struct spi_nor *nor, in cqspi_command_read() 398 static int cqspi_command_write(struct spi_nor *nor, const u8 opcode, in cqspi_command_write() 429 static int cqspi_command_write_addr(struct spi_nor *nor, in cqspi_command_write_addr() 447 static int cqspi_indirect_read_setup(struct spi_nor *nor, in cqspi_indirect_read_setup() 490 static int cqspi_indirect_read_execute(struct spi_nor *nor, in cqspi_indirect_read_execute() 566 static int cqspi_indirect_write_setup(struct spi_nor *nor, in cqspi_indirect_write_setup() 589 static int cqspi_indirect_write_execute(struct spi_nor *nor, in cqspi_indirect_write_execute() 660 static void cqspi_chipselect(struct spi_nor *nor) in cqspi_chipselect() [all …]
|
D | nxp-spifi.c | 63 struct spi_nor nor; member 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 ssize_t nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read() 190 static ssize_t nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write() 221 static int nxp_spifi_erase(struct spi_nor *nor, loff_t offs) in nxp_spifi_erase() 268 static void nxp_spifi_dummy_id_read(struct spi_nor *nor) in nxp_spifi_dummy_id_read()
|
D | hisi-sfc.c | 111 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; member 154 static int hisi_spi_nor_prep(struct spi_nor *nor, enum spi_nor_ops ops) in hisi_spi_nor_prep() 177 static void hisi_spi_nor_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in hisi_spi_nor_unprep() 186 static int hisi_spi_nor_op_reg(struct spi_nor *nor, in hisi_spi_nor_op_reg() 209 static int hisi_spi_nor_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in hisi_spi_nor_read_reg() 224 static int hisi_spi_nor_write_reg(struct spi_nor *nor, u8 opcode, in hisi_spi_nor_write_reg() 236 static int hisi_spi_nor_dma_transfer(struct spi_nor *nor, loff_t start_off, in hisi_spi_nor_dma_transfer() 272 static ssize_t hisi_spi_nor_read(struct spi_nor *nor, loff_t from, size_t len, in hisi_spi_nor_read() 295 static ssize_t hisi_spi_nor_write(struct spi_nor *nor, loff_t to, in hisi_spi_nor_write() 325 struct spi_nor *nor; in hisi_spi_nor_register() local
|
D | mtk-quadspi.c | 113 struct spi_nor nor; member 122 struct spi_nor *nor = &mt8173_nor->nor; in mt8173_nor_set_read_mode() local 245 static ssize_t mt8173_nor_read(struct spi_nor *nor, loff_t from, size_t length, in mt8173_nor_read() 299 static ssize_t mt8173_nor_write(struct spi_nor *nor, loff_t to, size_t len, in mt8173_nor_write() 339 static int mt8173_nor_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in mt8173_nor_read_reg() 361 static int mt8173_nor_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in mt8173_nor_write_reg() 385 struct spi_nor *nor; in mtk_nor_init() local
|
D | fsl-quadspi.c | 272 struct spi_nor nor[FSL_QSPI_MAX_CHIP]; member 621 static ssize_t fsl_qspi_nor_write(struct fsl_qspi *q, struct spi_nor *nor, in fsl_qspi_nor_write() 829 static void fsl_qspi_set_base_addr(struct fsl_qspi *q, struct spi_nor *nor) in fsl_qspi_set_base_addr() 834 static int fsl_qspi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in fsl_qspi_read_reg() 847 static int fsl_qspi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in fsl_qspi_write_reg() 873 static ssize_t fsl_qspi_write(struct spi_nor *nor, loff_t to, in fsl_qspi_write() 885 static ssize_t fsl_qspi_read(struct spi_nor *nor, loff_t from, in fsl_qspi_read() 931 static int fsl_qspi_erase(struct spi_nor *nor, loff_t offs) in fsl_qspi_erase() 947 static int fsl_qspi_prep(struct spi_nor *nor, enum spi_nor_ops ops) in fsl_qspi_prep() 966 static void fsl_qspi_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in fsl_qspi_unprep() [all …]
|
D | atmel-quadspi.c | 162 struct spi_nor nor; member 424 static int atmel_qspi_read_reg(struct spi_nor *nor, u8 opcode, in atmel_qspi_read_reg() 440 static int atmel_qspi_write_reg(struct spi_nor *nor, u8 opcode, in atmel_qspi_write_reg() 456 static ssize_t atmel_qspi_write(struct spi_nor *nor, loff_t to, size_t len, in atmel_qspi_write() 476 static int atmel_qspi_erase(struct spi_nor *nor, loff_t offs) in atmel_qspi_erase() 490 static ssize_t atmel_qspi_read(struct spi_nor *nor, loff_t from, size_t len, in atmel_qspi_read() 596 struct spi_nor *nor; in atmel_qspi_probe() local
|
/drivers/mtd/devices/ |
D | m25p80.c | 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 ssize_t m25p80_write(struct spi_nor *nor, loff_t to, size_t len, in m25p80_write() 112 static inline unsigned int m25p80_rx_nbits(struct spi_nor *nor) in m25p80_rx_nbits() 128 static ssize_t m25p80_read(struct spi_nor *nor, loff_t from, size_t len, in m25p80_read() 197 struct spi_nor *nor; in m25p_probe() local
|