Home
last modified time | relevance | path

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

123

/linux/drivers/mtd/spi-nor/
A Dcore.h218 int (*erase)(struct spi_nor *nor, loff_t addr);
282 int (*quad_enable)(struct spi_nor *nor);
306 void (*default_init)(struct spi_nor *nor);
307 int (*post_bfpt)(struct spi_nor *nor,
310 void (*post_sfdp)(struct spi_nor *nor);
498 int spi_nor_write_enable(struct spi_nor *nor);
499 int spi_nor_write_disable(struct spi_nor *nor);
502 int spi_nor_wait_till_ready(struct spi_nor *nor);
504 int spi_nor_lock_and_prep(struct spi_nor *nor);
509 int spi_nor_read_sr(struct spi_nor *nor, u8 *sr);
[all …]
A Dcore.c316 int spi_nor_write_enable(struct spi_nor *nor) in spi_nor_write_enable()
347 int spi_nor_write_disable(struct spi_nor *nor) in spi_nor_write_disable()
793 static int spi_nor_ready(struct spi_nor *nor) in spi_nor_ready()
1646 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_erase()
1908 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_read()
1952 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_write()
2791 static int spi_nor_init(struct spi_nor *nor) in spi_nor_init()
2897 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_suspend()
2911 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_resume()
2952 void spi_nor_restore(struct spi_nor *nor) in spi_nor_restore()
[all …]
A 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()
87 static bool spi_nor_check_lock_status_sr(struct spi_nor *nor, loff_t ofs, in spi_nor_check_lock_status_sr()
115 static bool spi_nor_is_unlocked_sr(struct spi_nor *nor, loff_t ofs, in spi_nor_is_unlocked_sr()
341 void spi_nor_init_default_locking_ops(struct spi_nor *nor) in spi_nor_init_default_locking_ops()
348 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_lock()
363 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_unlock()
378 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_is_locked()
403 void spi_nor_try_unlock_all(struct spi_nor *nor) in spi_nor_try_unlock_all()
[all …]
A Datmel.c19 static int atmel_at25fs_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_at25fs_lock()
24 static int atmel_at25fs_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_at25fs_unlock()
40 static int atmel_at25fs_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_at25fs_is_locked()
51 static void atmel_at25fs_default_init(struct spi_nor *nor) in atmel_at25fs_default_init()
69 static int atmel_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_set_global_protection()
119 static int atmel_global_protect(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_global_protect()
124 static int atmel_global_unprotect(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_global_unprotect()
129 static int atmel_is_global_protected(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_is_global_protected()
149 static void atmel_global_protection_default_init(struct spi_nor *nor) in atmel_global_protection_default_init()
A 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()
230 static size_t spi_nor_otp_size(struct spi_nor *nor) in spi_nor_otp_size()
249 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_info()
311 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_read_write()
397 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_erase()
450 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_lock()
[all …]
A 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()
A Dsst.c13 static int sst26vf_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in sst26vf_lock()
18 static int sst26vf_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in sst26vf_unlock()
38 static int sst26vf_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in sst26vf_is_locked()
49 static void sst26vf_default_init(struct spi_nor *nor) in sst26vf_default_init()
97 struct spi_nor *nor = mtd_to_spi_nor(mtd); in sst_write()
180 static void sst_post_sfdp_fixups(struct spi_nor *nor) in sst_post_sfdp_fixups()
A Dspansion.c32 static int spi_nor_cypress_octal_dtr_enable(struct spi_nor *nor, bool enable) in spi_nor_cypress_octal_dtr_enable()
109 static void s28hs512t_default_init(struct spi_nor *nor) in s28hs512t_default_init()
115 static void s28hs512t_post_sfdp_fixup(struct spi_nor *nor) in s28hs512t_post_sfdp_fixup()
143 static int s28hs512t_post_bfpt_fixup(struct spi_nor *nor, in s28hs512t_post_bfpt_fixup()
178 s25fs_s_post_bfpt_fixups(struct spi_nor *nor, in s25fs_s_post_bfpt_fixups()
279 static void spansion_post_sfdp_fixups(struct spi_nor *nor) in spansion_post_sfdp_fixups()
A Dmicron-st.c19 static int spi_nor_micron_octal_dtr_enable(struct spi_nor *nor, bool enable) in spi_nor_micron_octal_dtr_enable()
91 static void mt35xu512aba_default_init(struct spi_nor *nor) in mt35xu512aba_default_init()
96 static void mt35xu512aba_post_sfdp_fixup(struct spi_nor *nor) in mt35xu512aba_post_sfdp_fixup()
237 static int st_micron_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in st_micron_set_4byte_addr_mode()
252 static void micron_st_default_init(struct spi_nor *nor) in micron_st_default_init()
A Dxilinx.c29 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()
A 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()
685 static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 *smpt, in spi_nor_get_map_in_use()
805 static int spi_nor_init_non_uniform_erase_map(struct spi_nor *nor, in spi_nor_init_non_uniform_erase_map()
893 static int spi_nor_parse_smpt(struct spi_nor *nor, in spi_nor_parse_smpt()
941 static int spi_nor_parse_4bait(struct spi_nor *nor, in spi_nor_parse_4bait()
1126 static int spi_nor_parse_profile1(struct spi_nor *nor, in spi_nor_parse_profile1()
1204 static int spi_nor_parse_sccr(struct spi_nor *nor, in spi_nor_parse_sccr()
[all …]
A Dwinbond.c12 w25q256_post_bfpt_fixups(struct spi_nor *nor, in w25q256_post_bfpt_fixups()
115 static int winbond_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in winbond_set_4byte_addr_mode()
147 static void winbond_default_init(struct spi_nor *nor) in winbond_default_init()
A Dissi.c12 is25lp256_post_bfpt_fixups(struct spi_nor *nor, in is25lp256_post_bfpt_fixups()
68 static void issi_default_init(struct spi_nor *nor) in issi_default_init()
A Dmacronix.c12 mx25l25635_post_bfpt_fixups(struct spi_nor *nor, in mx25l25635_post_bfpt_fixups()
92 static void macronix_default_init(struct spi_nor *nor) in macronix_default_init()
A Dsfdp.h110 int spi_nor_parse_sfdp(struct spi_nor *nor);
A Dgigadevice.c11 static void gd25q256_default_init(struct spi_nor *nor) in gd25q256_default_init()
/linux/include/linux/mtd/
A Dspi-nor.h309 struct spi_nor;
327 int (*prepare)(struct spi_nor *nor);
328 void (*unprepare)(struct spi_nor *nor);
329 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len);
330 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf,
334 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len,
336 int (*erase)(struct spi_nor *nor, loff_t offs);
395 struct spi_nor { struct
430 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument
455 int spi_nor_scan(struct spi_nor *nor, const char *name,
[all …]
/linux/drivers/mtd/spi-nor/controllers/
A 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()
A 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()
A Daspeed-smc.c100 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 …]
A Dintel-spi.c146 struct spi_nor nor;
557 static int intel_spi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in intel_spi_read_reg()
578 static int intel_spi_write_reg(struct spi_nor *nor, u8 opcode, const u8 *buf, in intel_spi_write_reg()
636 static ssize_t intel_spi_read(struct spi_nor *nor, loff_t from, size_t len, in intel_spi_read()
707 static ssize_t intel_spi_write(struct spi_nor *nor, loff_t to, size_t len, in intel_spi_write()
770 static int intel_spi_erase(struct spi_nor *nor, loff_t offs) in intel_spi_erase()
/linux/arch/arm/boot/dts/
A Dbcm47094-luxul-xwc-2000.dts52 &spi_nor {
A Dbcm47081-luxul-xap-1410.dts56 &spi_nor {
A Dbcm47094-luxul-xap-1610.dts54 &spi_nor {
A Dbcm4708-luxul-xap-1510.dts56 &spi_nor {

Completed in 36 milliseconds

123