/linux/drivers/mtd/spi-nor/ |
H A D | core.c | 57 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() 131 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce() 152 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op() 163 int spi_nor_controller_ops_read_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_read_reg() 172 int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_write_reg() 181 static int spi_nor_controller_ops_erase(struct spi_nor *nor, loff_t offs) in spi_nor_controller_ops_erase() 199 static ssize_t spi_nor_spimem_read_data(struct spi_nor *nor, loff_t from, in spi_nor_spimem_read_data() 245 ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, u8 *buf) in spi_nor_read_data() 263 static ssize_t spi_nor_spimem_write_data(struct spi_nor *nor, loff_t to, in spi_nor_spimem_write_data() [all …]
|
H A D | spansion.c | 80 static void spansion_nor_clear_sr(struct spi_nor *nor) in spansion_nor_clear_sr() 100 static int cypress_nor_sr_ready_and_clear_reg(struct spi_nor *nor, u64 addr) in cypress_nor_sr_ready_and_clear_reg() 143 static int cypress_nor_sr_ready_and_clear(struct spi_nor *nor) in cypress_nor_sr_ready_and_clear() 162 static int cypress_nor_set_memlat(struct spi_nor *nor, u64 addr) in cypress_nor_set_memlat() 192 static int cypress_nor_set_octal_dtr_bits(struct spi_nor *nor, u64 addr) in cypress_nor_set_octal_dtr_bits() 206 static int cypress_nor_octal_dtr_en(struct spi_nor *nor) in cypress_nor_octal_dtr_en() 239 static int cypress_nor_set_single_spi_bits(struct spi_nor *nor, u64 addr) in cypress_nor_set_single_spi_bits() 256 static int cypress_nor_octal_dtr_dis(struct spi_nor *nor) in cypress_nor_octal_dtr_dis() 283 static int cypress_nor_quad_enable_volatile_reg(struct spi_nor *nor, u64 addr) in cypress_nor_quad_enable_volatile_reg() 342 static int cypress_nor_quad_enable_volatile(struct spi_nor *nor) in cypress_nor_quad_enable_volatile() [all …]
|
H A D | swp.c | 13 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() 55 static void spi_nor_get_locked_range_sr(struct spi_nor *nor, u8 sr, loff_t *ofs, in spi_nor_get_locked_range_sr() 92 static bool spi_nor_check_lock_status_sr(struct spi_nor *nor, loff_t ofs, in spi_nor_check_lock_status_sr() 114 static bool spi_nor_is_locked_sr(struct spi_nor *nor, loff_t ofs, u64 len, u8 sr) in spi_nor_is_locked_sr() 119 static bool spi_nor_is_unlocked_sr(struct spi_nor *nor, loff_t ofs, u64 len, in spi_nor_is_unlocked_sr() 158 static int spi_nor_sr_lock(struct spi_nor *nor, loff_t ofs, u64 len) in spi_nor_sr_lock() 248 static int spi_nor_sr_unlock(struct spi_nor *nor, loff_t ofs, u64 len) in spi_nor_sr_unlock() 333 static int spi_nor_sr_is_locked(struct spi_nor *nor, loff_t ofs, u64 len) in spi_nor_sr_is_locked() [all …]
|
H A D | otp.c | 14 #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 …]
|
H A D | micron-st.c | 51 static int micron_st_nor_octal_dtr_en(struct spi_nor *nor) in micron_st_nor_octal_dtr_en() 88 static int micron_st_nor_octal_dtr_dis(struct spi_nor *nor) in micron_st_nor_octal_dtr_dis() 124 static int micron_st_nor_set_octal_dtr(struct spi_nor *nor, bool enable) in micron_st_nor_set_octal_dtr() 130 static void mt35xu512aba_default_init(struct spi_nor *nor) in mt35xu512aba_default_init() 135 static int mt35xu512aba_post_sfdp_fixup(struct spi_nor *nor) in mt35xu512aba_post_sfdp_fixup() 184 static int mt25qu512a_post_bfpt_fixup(struct spi_nor *nor, in mt25qu512a_post_bfpt_fixup() 196 static int st_nor_four_die_late_init(struct spi_nor *nor) in st_nor_four_die_late_init() 212 static int st_nor_two_die_late_init(struct spi_nor *nor) in st_nor_two_die_late_init() 511 static int micron_st_nor_read_fsr(struct spi_nor *nor, u8 *fsr) in micron_st_nor_read_fsr() 546 static void micron_st_nor_clear_fsr(struct spi_nor *nor) in micron_st_nor_clear_fsr() [all …]
|
H A D | atmel.c | 19 static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, u64 len) in at25fs_nor_lock() 24 static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, u64 len) in at25fs_nor_unlock() 40 static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, u64 len) in at25fs_nor_is_locked() 51 static int at25fs_nor_late_init(struct spi_nor *nor) in at25fs_nor_late_init() 71 static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_nor_set_global_protection() 121 static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, u64 len) in atmel_nor_global_protect() 126 static int atmel_nor_global_unprotect(struct spi_nor *nor, loff_t ofs, u64 len) 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 int atmel_nor_global_protection_late_init(struct spi_nor *nor) in atmel_nor_global_protection_late_init()
|
H A D | sst.c | 16 static int sst26vf_nor_lock(struct spi_nor *nor, loff_t ofs, u64 len) in sst26vf_nor_lock() 21 static int sst26vf_nor_unlock(struct spi_nor *nor, loff_t ofs, u64 len) in sst26vf_nor_unlock() 41 static int sst26vf_nor_is_locked(struct spi_nor *nor, loff_t ofs, u64 len) in sst26vf_nor_is_locked() 52 static int sst26vf_nor_late_init(struct spi_nor *nor) in sst26vf_nor_late_init() 170 static int sst_nor_write_data(struct spi_nor *nor, loff_t to, size_t len, in sst_nor_write_data() 188 struct spi_nor *nor = mtd_to_spi_nor(mtd); in sst_nor_write() local 255 static int sst_nor_late_init(struct spi_nor *nor) in sst_nor_late_init()
|
H A D | macronix.c | 29 mx25l25635_post_bfpt_fixups(struct spi_nor *nor, in mx25l25635_post_bfpt_fixups() 212 static int macronix_nor_octal_dtr_en(struct spi_nor *nor) in macronix_nor_octal_dtr_en() 247 static int macronix_nor_octal_dtr_dis(struct spi_nor *nor) in macronix_nor_octal_dtr_dis() 279 static int macronix_nor_set_octal_dtr(struct spi_nor *nor, bool enable) in macronix_nor_set_octal_dtr() 284 static void macronix_nor_default_init(struct spi_nor *nor) in macronix_nor_default_init() 289 static int macronix_nor_late_init(struct spi_nor *nor) in macronix_nor_late_init()
|
H A D | winbond.c | 21 w25q128_post_bfpt_fixups(struct spi_nor *nor, in w25q128_post_bfpt_fixups() 46 w25q256_post_bfpt_fixups(struct spi_nor *nor, in w25q256_post_bfpt_fixups() 268 static int winbond_nor_write_ear(struct spi_nor *nor, u8 ear) in winbond_nor_write_ear() 301 static int winbond_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in winbond_nor_set_4byte_addr_mode() 333 static int winbond_nor_late_init(struct spi_nor *nor) in winbond_nor_late_init()
|
H A D | sfdp.c | 151 static int spi_nor_read_raw(struct spi_nor *nor, u32 addr, size_t len, u8 *buf) in spi_nor_read_raw() 182 static int spi_nor_read_sfdp(struct spi_nor *nor, u32 addr, in spi_nor_read_sfdp() 218 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() 687 static u8 spi_nor_smpt_addr_nbytes(const struct spi_nor *nor, const u32 settings) in spi_nor_smpt_addr_nbytes() 710 static u8 spi_nor_smpt_read_dummy(const struct spi_nor *nor, const u32 settings) in spi_nor_smpt_read_dummy() 727 static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 *smpt, in spi_nor_get_map_in_use() 837 static int spi_nor_init_non_uniform_erase_map(struct spi_nor *nor, in spi_nor_init_non_uniform_erase_map() 926 static int spi_nor_parse_smpt(struct spi_nor *nor, in spi_nor_parse_smpt() 974 static int spi_nor_parse_4bait(struct spi_nor *nor, in spi_nor_parse_4bait() [all …]
|
H A D | issi.c | 12 is25lp256_post_bfpt_fixups(struct spi_nor *nor, in is25lp256_post_bfpt_fixups() 32 static int pm25lv_nor_late_init(struct spi_nor *nor) in pm25lv_nor_late_init() 132 static void issi_nor_default_init(struct spi_nor *nor) in issi_nor_default_init()
|
H A D | debugfs.c | 78 struct spi_nor *nor = s->private; in spi_nor_params_show() local 184 struct spi_nor *nor = s->private; in spi_nor_capabilities_show() local 224 struct spi_nor *nor = data; in spi_nor_debugfs_unregister() local 232 void spi_nor_debugfs_register(struct spi_nor *nor) in spi_nor_debugfs_register()
|
H A D | everspin.c | 37 static void everspin_nor_default_init(struct spi_nor *nor) in everspin_nor_default_init()
|
H A D | gigadevice.c | 12 gd25q256_post_bfpt(struct spi_nor *nor, in gd25q256_post_bfpt()
|
H A D | core.h | 687 static inline bool spi_nor_needs_sfdp(const struct spi_nor *nor) in spi_nor_needs_sfdp() 702 static inline void spi_nor_debugfs_register(struct spi_nor *nor) {} in spi_nor_debugfs_register()
|
/linux/drivers/mtd/spi-nor/controllers/ |
H A D | nxp-spifi.c | 58 struct spi_nor nor; member 125 static int nxp_spifi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in nxp_spifi_read_reg() 148 static int nxp_spifi_write_reg(struct spi_nor *nor, u8 opcode, const u8 *buf, in nxp_spifi_write_reg() 172 static ssize_t nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read() 187 static ssize_t nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write() 218 static int nxp_spifi_erase(struct spi_nor *nor, loff_t offs) in nxp_spifi_erase() 264 static void nxp_spifi_dummy_id_read(struct spi_nor *nor) in nxp_spifi_dummy_id_read()
|
H A D | hisi-sfc.c | 99 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
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | sama5d3xcm.dtsi | 55 nor: flash@0,0 { label
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx1-apf9328.dts | 48 nor: flash@0,0 { label
|
H A D | imx1-ads.dts | 68 nor: flash@0,0 { label
|
H A D | imx27-eukrea-cpuimx27.dtsi | 93 nor: flash@0,0 { label
|
H A D | imx27-phytec-phycore-som.dtsi | 311 nor: flash@0,0 { label
|
/linux/include/linux/mtd/ |
H A D | spi-nor.h | 425 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() 431 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
|