Home
last modified time | relevance | path

Searched defs:nor (Results 1 – 18 of 18) sorted by relevance

/drivers/mtd/spi-nor/
Dcore.c58 static u8 spi_nor_get_cmd_ext(const struct spi_nor *nor, in spi_nor_get_cmd_ext()
81 void spi_nor_spimem_setup_op(const struct spi_nor *nor, in spi_nor_spimem_setup_op()
129 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce()
150 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op()
161 int spi_nor_controller_ops_read_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_read_reg()
170 int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_write_reg()
179 static int spi_nor_controller_ops_erase(struct spi_nor *nor, loff_t offs) in spi_nor_controller_ops_erase()
197 static ssize_t spi_nor_spimem_read_data(struct spi_nor *nor, loff_t from, in spi_nor_spimem_read_data()
243 ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, u8 *buf) in spi_nor_read_data()
261 static ssize_t spi_nor_spimem_write_data(struct spi_nor *nor, loff_t to, in spi_nor_spimem_write_data()
[all …]
Dspansion.c52 static int cypress_nor_octal_dtr_en(struct spi_nor *nor) in cypress_nor_octal_dtr_en()
91 static int cypress_nor_octal_dtr_dis(struct spi_nor *nor) in cypress_nor_octal_dtr_dis()
137 static int cypress_nor_quad_enable_volatile(struct spi_nor *nor) in cypress_nor_quad_enable_volatile()
196 static int cypress_nor_set_page_size(struct spi_nor *nor) in cypress_nor_set_page_size()
215 static void cypress_nor_ecc_init(struct spi_nor *nor) in cypress_nor_ecc_init()
227 s25hx_t_post_bfpt_fixup(struct spi_nor *nor, in s25hx_t_post_bfpt_fixup()
237 static void s25hx_t_post_sfdp_fixup(struct spi_nor *nor) in s25hx_t_post_sfdp_fixup()
261 static void s25hx_t_late_init(struct spi_nor *nor) in s25hx_t_late_init()
285 static int cypress_nor_octal_dtr_enable(struct spi_nor *nor, bool enable) in cypress_nor_octal_dtr_enable()
291 static void s28hs512t_post_sfdp_fixup(struct spi_nor *nor) in s28hs512t_post_sfdp_fixup()
[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 …]
Dotp.c14 #define spi_nor_otp_region_len(nor) ((nor)->params->otp.org->len) argument
15 #define spi_nor_otp_n_regions(nor) ((nor)->params->otp.org->n_regions) argument
36 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()
[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 …]
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()
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() local
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()
152 static int winbond_nor_write_ear(struct spi_nor *nor, u8 ear) in winbond_nor_write_ear()
185 static int winbond_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in winbond_nor_set_4byte_addr_mode()
217 static void winbond_nor_default_init(struct spi_nor *nor) in winbond_nor_default_init()
222 static void winbond_nor_late_init(struct spi_nor *nor) in winbond_nor_late_init()
Dsysfs.c15 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in manufacturer_show() local
26 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in partname_show() local
37 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in jedec_id_show() local
56 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in sfdp_read() local
75 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in spi_nor_sysfs_is_visible() local
88 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in spi_nor_sysfs_is_bin_visible() local
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()
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 …]
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()
92 static void issi_nor_default_init(struct spi_nor *nor) in issi_nor_default_init()
Ddebugfs.c77 struct spi_nor *nor = s->private; in spi_nor_params_show() local
185 struct spi_nor *nor = s->private; in spi_nor_capabilities_show() local
225 struct spi_nor *nor = data; in spi_nor_debugfs_unregister() local
233 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()
Dgigadevice.c12 gd25q256_post_bfpt(struct spi_nor *nor, in gd25q256_post_bfpt()
Dcore.h720 static inline void spi_nor_debugfs_register(struct spi_nor *nor) {} in spi_nor_debugfs_register()
/drivers/mtd/spi-nor/controllers/
Dhisi-sfc.c99 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; member
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() local
Dnxp-spifi.c59 struct spi_nor nor; member
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()