/Linux-v5.10/drivers/mtd/spi-nor/ |
D | core.h | 180 int (*lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); 181 int (*unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); 182 int (*is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len); 222 int (*quad_enable)(struct spi_nor *nor); 223 int (*set_4byte_addr_mode)(struct spi_nor *nor, bool enable); 224 u32 (*convert_addr)(struct spi_nor *nor, u32 addr); 225 int (*setup)(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps); 246 void (*default_init)(struct spi_nor *nor); 247 int (*post_bfpt)(struct spi_nor *nor, 251 void (*post_sfdp)(struct spi_nor *nor); [all …]
|
D | core.c | 53 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce() 74 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op() 95 static ssize_t spi_nor_spimem_read_data(struct spi_nor *nor, loff_t from, in spi_nor_spimem_read_data() 143 ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, u8 *buf) in spi_nor_read_data() 161 static ssize_t spi_nor_spimem_write_data(struct spi_nor *nor, loff_t to, in spi_nor_spimem_write_data() 204 ssize_t spi_nor_write_data(struct spi_nor *nor, loff_t to, size_t len, in spi_nor_write_data() 219 int spi_nor_write_enable(struct spi_nor *nor) in spi_nor_write_enable() 248 int spi_nor_write_disable(struct spi_nor *nor) in spi_nor_write_disable() 279 static int spi_nor_read_sr(struct spi_nor *nor, u8 *sr) in spi_nor_read_sr() 310 static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) in spi_nor_read_fsr() [all …]
|
D | xilinx.c | 29 static u32 s3an_convert_addr(struct spi_nor *nor, u32 addr) in s3an_convert_addr() 40 static int xilinx_nor_setup(struct spi_nor *nor, in xilinx_nor_setup() 80 static void xilinx_post_sfdp_fixups(struct spi_nor *nor) in xilinx_post_sfdp_fixups()
|
D | winbond.c | 12 w25q256_post_bfpt_fixups(struct spi_nor *nor, in w25q256_post_bfpt_fixups() 110 static int winbond_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in winbond_set_4byte_addr_mode() 134 static void winbond_default_init(struct spi_nor *nor) in winbond_default_init()
|
D | sfdp.c | 140 static int spi_nor_read_raw(struct spi_nor *nor, u32 addr, size_t len, u8 *buf) in spi_nor_read_raw() 171 static int spi_nor_read_sfdp(struct spi_nor *nor, u32 addr, in spi_nor_read_sfdp() 207 static int spi_nor_read_sfdp_dma_unsafe(struct spi_nor *nor, u32 addr, in spi_nor_read_sfdp_dma_unsafe() 427 static int spi_nor_parse_bfpt(struct spi_nor *nor, in spi_nor_parse_bfpt() 619 static u8 spi_nor_smpt_addr_width(const struct spi_nor *nor, const u32 settings) in spi_nor_smpt_addr_width() 642 static u8 spi_nor_smpt_read_dummy(const struct spi_nor *nor, const u32 settings) in spi_nor_smpt_read_dummy() 659 static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 *smpt, in spi_nor_get_map_in_use() 782 spi_nor_init_non_uniform_erase_map(struct spi_nor *nor, in spi_nor_init_non_uniform_erase_map() 874 static int spi_nor_parse_smpt(struct spi_nor *nor, in spi_nor_parse_smpt() 924 static int spi_nor_parse_4bait(struct spi_nor *nor, in spi_nor_parse_4bait() [all …]
|
D | sst.c | 47 struct spi_nor *nor = mtd_to_spi_nor(mtd); in sst_write() 130 static void sst_default_init(struct spi_nor *nor) in sst_default_init() 135 static void sst_post_sfdp_fixups(struct spi_nor *nor) in sst_post_sfdp_fixups()
|
D | issi.c | 12 is25lp256_post_bfpt_fixups(struct spi_nor *nor, in is25lp256_post_bfpt_fixups() 69 static void issi_default_init(struct spi_nor *nor) in issi_default_init()
|
D | macronix.c | 12 mx25l25635_post_bfpt_fixups(struct spi_nor *nor, in mx25l25635_post_bfpt_fixups() 95 static void macronix_default_init(struct spi_nor *nor) in macronix_default_init()
|
D | spansion.c | 12 s25fs_s_post_bfpt_fixups(struct spi_nor *nor, in s25fs_s_post_bfpt_fixups() 109 static void spansion_post_sfdp_fixups(struct spi_nor *nor) in spansion_post_sfdp_fixups()
|
D | micron-st.c | 122 static int st_micron_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in st_micron_set_4byte_addr_mode() 137 static void micron_st_default_init(struct spi_nor *nor) in micron_st_default_init()
|
D | intel.c | 18 static void intel_default_init(struct spi_nor *nor) in intel_default_init()
|
D | atmel.c | 32 static void atmel_default_init(struct spi_nor *nor) in atmel_default_init()
|
D | sfdp.h | 102 int spi_nor_parse_sfdp(struct spi_nor *nor,
|
D | gigadevice.c | 11 static void gd25q256_default_init(struct spi_nor *nor) in gd25q256_default_init()
|
/Linux-v5.10/include/linux/mtd/ |
D | spi-nor.h | 291 struct spi_nor; 309 int (*prepare)(struct spi_nor *nor); 310 void (*unprepare)(struct spi_nor *nor); 311 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len); 312 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf, 315 ssize_t (*read)(struct spi_nor *nor, loff_t from, size_t len, u8 *buf); 316 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len, 318 int (*erase)(struct spi_nor *nor, loff_t offs); 359 struct spi_nor { struct 392 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument [all …]
|
/Linux-v5.10/drivers/mtd/spi-nor/controllers/ |
D | hisi-sfc.c | 99 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; 147 static int hisi_spi_nor_prep(struct spi_nor *nor) in hisi_spi_nor_prep() 170 static void hisi_spi_nor_unprep(struct spi_nor *nor) in hisi_spi_nor_unprep() 179 static int hisi_spi_nor_op_reg(struct spi_nor *nor, in hisi_spi_nor_op_reg() 202 static int hisi_spi_nor_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in hisi_spi_nor_read_reg() 217 static int hisi_spi_nor_write_reg(struct spi_nor *nor, u8 opcode, in hisi_spi_nor_write_reg() 229 static int hisi_spi_nor_dma_transfer(struct spi_nor *nor, loff_t start_off, in hisi_spi_nor_dma_transfer() 268 static ssize_t hisi_spi_nor_read(struct spi_nor *nor, loff_t from, size_t len, in hisi_spi_nor_read() 291 static ssize_t hisi_spi_nor_write(struct spi_nor *nor, loff_t to, in hisi_spi_nor_write() 337 struct spi_nor *nor; in hisi_spi_nor_register()
|
D | nxp-spifi.c | 59 struct spi_nor nor; 126 static int nxp_spifi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in nxp_spifi_read_reg() 149 static int nxp_spifi_write_reg(struct spi_nor *nor, u8 opcode, const u8 *buf, in nxp_spifi_write_reg() 173 static ssize_t nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read() 188 static ssize_t nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write() 219 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()
|
D | aspeed-smc.c | 100 struct spi_nor nor; 277 static void aspeed_smc_start_user(struct spi_nor *nor) in aspeed_smc_start_user() 296 static void aspeed_smc_stop_user(struct spi_nor *nor) in aspeed_smc_stop_user() 308 static int aspeed_smc_prep(struct spi_nor *nor) in aspeed_smc_prep() 316 static void aspeed_smc_unprep(struct spi_nor *nor) in aspeed_smc_unprep() 323 static int aspeed_smc_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in aspeed_smc_read_reg() 335 static int aspeed_smc_write_reg(struct spi_nor *nor, u8 opcode, const u8 *buf, in aspeed_smc_write_reg() 347 static void aspeed_smc_send_cmd_addr(struct spi_nor *nor, u8 cmd, u32 addr) in aspeed_smc_send_cmd_addr() 373 static ssize_t aspeed_smc_read_user(struct spi_nor *nor, loff_t from, in aspeed_smc_read_user() 390 static ssize_t aspeed_smc_write_user(struct spi_nor *nor, loff_t to, in aspeed_smc_write_user() [all …]
|
D | intel-spi.c | 147 struct spi_nor nor; 558 static int intel_spi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in intel_spi_read_reg() 579 static int intel_spi_write_reg(struct spi_nor *nor, u8 opcode, const u8 *buf, in intel_spi_write_reg() 637 static ssize_t intel_spi_read(struct spi_nor *nor, loff_t from, size_t len, in intel_spi_read() 708 static ssize_t intel_spi_write(struct spi_nor *nor, loff_t to, size_t len, in intel_spi_write() 771 static int intel_spi_erase(struct spi_nor *nor, loff_t offs) in intel_spi_erase()
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | bcm47094-luxul-abr-4500.dts | 59 &spi_nor {
|
D | bcm47094-luxul-xap-1610.dts | 54 &spi_nor {
|
D | bcm47094-luxul-xbr-4500.dts | 59 &spi_nor {
|
D | bcm47094-luxul-xwc-2000.dts | 52 &spi_nor {
|
D | bcm47081-luxul-xap-1410.dts | 56 &spi_nor {
|
D | bcm4708-luxul-xap-1510.dts | 56 &spi_nor {
|