Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/mtd/spi-nor/
Dcore.h286 int (*lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
287 int (*unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
288 int (*is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
315 int (*read)(struct spi_nor *nor, loff_t addr, size_t len, u8 *buf);
316 int (*write)(struct spi_nor *nor, loff_t addr, size_t len,
318 int (*lock)(struct spi_nor *nor, unsigned int region);
319 int (*erase)(struct spi_nor *nor, loff_t addr);
320 int (*is_locked)(struct spi_nor *nor, unsigned int region);
392 int (*octal_dtr_enable)(struct spi_nor *nor, bool enable);
393 int (*quad_enable)(struct spi_nor *nor);
[all …]
Dcore.c57 static u8 spi_nor_get_cmd_ext(const struct spi_nor *nor, in spi_nor_get_cmd_ext()
80 void spi_nor_spimem_setup_op(const struct spi_nor *nor, in spi_nor_spimem_setup_op()
128 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce()
149 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op()
160 int spi_nor_controller_ops_read_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_read_reg()
169 int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_write_reg()
178 static int spi_nor_controller_ops_erase(struct spi_nor *nor, loff_t offs) in spi_nor_controller_ops_erase()
196 static ssize_t spi_nor_spimem_read_data(struct spi_nor *nor, loff_t from, in spi_nor_spimem_read_data()
242 ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, u8 *buf) in spi_nor_read_data()
260 static ssize_t spi_nor_spimem_write_data(struct spi_nor *nor, loff_t to, in spi_nor_spimem_write_data()
[all …]
Dswp.c13 static u8 spi_nor_get_sr_bp_mask(struct spi_nor *nor) in spi_nor_get_sr_bp_mask()
26 static u8 spi_nor_get_sr_tb_mask(struct spi_nor *nor) in spi_nor_get_sr_tb_mask()
34 static u64 spi_nor_get_min_prot_length_sr(struct spi_nor *nor) in spi_nor_get_min_prot_length_sr()
50 static void spi_nor_get_locked_range_sr(struct spi_nor *nor, u8 sr, loff_t *ofs, in spi_nor_get_locked_range_sr()
87 static bool spi_nor_check_lock_status_sr(struct spi_nor *nor, loff_t ofs, in spi_nor_check_lock_status_sr()
109 static bool spi_nor_is_locked_sr(struct spi_nor *nor, loff_t ofs, uint64_t len, in spi_nor_is_locked_sr()
115 static bool spi_nor_is_unlocked_sr(struct spi_nor *nor, loff_t ofs, in spi_nor_is_unlocked_sr()
154 static int spi_nor_sr_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in spi_nor_sr_lock()
239 static int spi_nor_sr_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in spi_nor_sr_unlock()
324 static int spi_nor_sr_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in spi_nor_sr_is_locked()
[all …]
Datmel.c19 static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_lock()
24 static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_unlock()
40 static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_is_locked()
51 static void at25fs_nor_late_init(struct spi_nor *nor) in at25fs_nor_late_init()
69 static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_nor_set_global_protection()
119 static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, in atmel_nor_global_protect()
125 static int atmel_nor_global_unprotect(struct spi_nor *nor, loff_t ofs, in atmel_nor_global_unprotect()
131 static int atmel_nor_is_global_protected(struct spi_nor *nor, loff_t ofs, in atmel_nor_is_global_protected()
152 static void atmel_nor_global_protection_late_init(struct spi_nor *nor) in atmel_nor_global_protection_late_init()
Dotp.c36 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()
[all …]
Dspansion.c47 static int cypress_nor_octal_dtr_en(struct spi_nor *nor) in cypress_nor_octal_dtr_en()
86 static int cypress_nor_octal_dtr_dis(struct spi_nor *nor) in cypress_nor_octal_dtr_dis()
132 static int cypress_nor_quad_enable_volatile(struct spi_nor *nor) in cypress_nor_quad_enable_volatile()
191 static int cypress_nor_set_page_size(struct spi_nor *nor) in cypress_nor_set_page_size()
211 s25hx_t_post_bfpt_fixup(struct spi_nor *nor, in s25hx_t_post_bfpt_fixup()
221 static void s25hx_t_post_sfdp_fixup(struct spi_nor *nor) in s25hx_t_post_sfdp_fixup()
245 static void s25hx_t_late_init(struct spi_nor *nor) in s25hx_t_late_init()
272 static int cypress_nor_octal_dtr_enable(struct spi_nor *nor, bool enable) in cypress_nor_octal_dtr_enable()
278 static void s28hs512t_default_init(struct spi_nor *nor) in s28hs512t_default_init()
284 static void s28hs512t_post_sfdp_fixup(struct spi_nor *nor) in s28hs512t_post_sfdp_fixup()
[all …]
Dmicron-st.c50 static int micron_st_nor_octal_dtr_en(struct spi_nor *nor) in micron_st_nor_octal_dtr_en()
84 static int micron_st_nor_octal_dtr_dis(struct spi_nor *nor) in micron_st_nor_octal_dtr_dis()
119 static int micron_st_nor_octal_dtr_enable(struct spi_nor *nor, bool enable) in micron_st_nor_octal_dtr_enable()
125 static void mt35xu512aba_default_init(struct spi_nor *nor) in mt35xu512aba_default_init()
130 static void mt35xu512aba_post_sfdp_fixup(struct spi_nor *nor) in mt35xu512aba_post_sfdp_fixup()
307 static int micron_st_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in micron_st_nor_set_4byte_addr_mode()
331 static int micron_st_nor_read_fsr(struct spi_nor *nor, u8 *fsr) in micron_st_nor_read_fsr()
366 static void micron_st_nor_clear_fsr(struct spi_nor *nor) in micron_st_nor_clear_fsr()
393 static int micron_st_nor_ready(struct spi_nor *nor) in micron_st_nor_ready()
441 static void micron_st_nor_default_init(struct spi_nor *nor) in micron_st_nor_default_init()
[all …]
Dsysfs.c15 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in manufacturer_show()
26 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in partname_show()
37 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in jedec_id_show()
56 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in sfdp_read()
75 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in spi_nor_sysfs_is_bin_visible()
Dxilinx.c56 static u32 s3an_nor_convert_addr(struct spi_nor *nor, u32 addr) in s3an_nor_convert_addr()
76 static int xilinx_nor_read_sr(struct spi_nor *nor, u8 *sr) in xilinx_nor_read_sr()
104 static int xilinx_nor_sr_ready(struct spi_nor *nor) in xilinx_nor_sr_ready()
115 static int xilinx_nor_setup(struct spi_nor *nor, in xilinx_nor_setup()
157 static void xilinx_nor_late_init(struct spi_nor *nor) in xilinx_nor_late_init()
Dsst.c16 static int sst26vf_nor_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in sst26vf_nor_lock()
21 static int sst26vf_nor_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in sst26vf_nor_unlock()
41 static int sst26vf_nor_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in sst26vf_nor_is_locked()
52 static void sst26vf_nor_late_init(struct spi_nor *nor) in sst26vf_nor_late_init()
123 struct spi_nor *nor = mtd_to_spi_nor(mtd); in sst_nor_write()
206 static void sst_nor_late_init(struct spi_nor *nor) in sst_nor_late_init()
Dwinbond.c21 w25q256_post_bfpt_fixups(struct spi_nor *nor, in w25q256_post_bfpt_fixups()
151 static int winbond_nor_write_ear(struct spi_nor *nor, u8 ear) in winbond_nor_write_ear()
184 static int winbond_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in winbond_nor_set_4byte_addr_mode()
216 static void winbond_nor_default_init(struct spi_nor *nor) in winbond_nor_default_init()
221 static void winbond_nor_late_init(struct spi_nor *nor) in winbond_nor_late_init()
Dissi.c12 is25lp256_post_bfpt_fixups(struct spi_nor *nor, in is25lp256_post_bfpt_fixups()
32 static void pm25lv_nor_late_init(struct spi_nor *nor) in pm25lv_nor_late_init()
91 static void issi_nor_default_init(struct spi_nor *nor) in issi_nor_default_init()
Dsfdp.c147 static int spi_nor_read_raw(struct spi_nor *nor, u32 addr, size_t len, u8 *buf) in spi_nor_read_raw()
178 static int spi_nor_read_sfdp(struct spi_nor *nor, u32 addr, in spi_nor_read_sfdp()
214 static int spi_nor_read_sfdp_dma_unsafe(struct spi_nor *nor, u32 addr, in spi_nor_read_sfdp_dma_unsafe()
432 static int spi_nor_parse_bfpt(struct spi_nor *nor, in spi_nor_parse_bfpt()
647 static u8 spi_nor_smpt_addr_nbytes(const struct spi_nor *nor, const u32 settings) in spi_nor_smpt_addr_nbytes()
670 static u8 spi_nor_smpt_read_dummy(const struct spi_nor *nor, const u32 settings) in spi_nor_smpt_read_dummy()
687 static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 *smpt, in spi_nor_get_map_in_use()
807 static int spi_nor_init_non_uniform_erase_map(struct spi_nor *nor, in spi_nor_init_non_uniform_erase_map()
895 static int spi_nor_parse_smpt(struct spi_nor *nor, in spi_nor_parse_smpt()
943 static int spi_nor_parse_4bait(struct spi_nor *nor, in spi_nor_parse_4bait()
[all …]
Ddebugfs.c75 struct spi_nor *nor = s->private; in spi_nor_params_show()
183 struct spi_nor *nor = s->private; in spi_nor_capabilities_show()
223 struct spi_nor *nor = data; in spi_nor_debugfs_unregister()
229 void spi_nor_debugfs_register(struct spi_nor *nor) in spi_nor_debugfs_register()
Dmacronix.c12 mx25l25635_post_bfpt_fixups(struct spi_nor *nor, in mx25l25635_post_bfpt_fixups()
105 static void macronix_nor_default_init(struct spi_nor *nor) in macronix_nor_default_init()
Dsfdp.h110 int spi_nor_parse_sfdp(struct spi_nor *nor);
Dgigadevice.c11 static void gd25q256_default_init(struct spi_nor *nor) in gd25q256_default_init()
/Linux-v6.1/include/linux/mtd/
Dspi-nor.h289 struct spi_nor;
307 int (*prepare)(struct spi_nor *nor);
308 void (*unprepare)(struct spi_nor *nor);
309 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len);
310 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf,
313 ssize_t (*read)(struct spi_nor *nor, loff_t from, size_t len, u8 *buf);
314 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len,
316 int (*erase)(struct spi_nor *nor, loff_t offs);
375 struct spi_nor { struct
410 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
[all …]
/Linux-v6.1/drivers/mtd/spi-nor/controllers/
Dhisi-sfc.c99 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()
Dnxp-spifi.c59 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()
/Linux-v6.1/arch/arm/boot/dts/
Dbcm47094-luxul-xwc-2000.dts50 &spi_nor {
Dbcm47081-luxul-xap-1410.dts56 &spi_nor {
Dbcm47094-luxul-xap-1610.dts54 &spi_nor {
Dbcm4708-luxul-xap-1510.dts56 &spi_nor {
Dbcm4708-luxul-xwc-1000.dts63 &spi_nor {

12