/linux/drivers/mtd/spi-nor/ |
A D | core.c | 316 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() local 1908 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_read() local 1952 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_write() local 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() local 2911 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_resume() local 2952 void spi_nor_restore(struct spi_nor *nor) in spi_nor_restore() [all …]
|
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() 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() local 363 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_unlock() local 378 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_is_locked() local 403 void spi_nor_try_unlock_all(struct spi_nor *nor) in spi_nor_try_unlock_all() [all …]
|
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 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() 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() local 311 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_read_write() local 397 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_erase() local 450 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_mtd_otp_lock() local [all …]
|
A D | atmel.c | 19 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 D | sst.c | 13 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() local 180 static void sst_post_sfdp_fixups(struct spi_nor *nor) in sst_post_sfdp_fixups()
|
A D | spansion.c | 32 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 D | micron-st.c | 19 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 D | sysfs.c | 15 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_bin_visible() local
|
A 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()
|
A D | winbond.c | 12 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 D | sfdp.c | 147 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 D | macronix.c | 12 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 D | issi.c | 12 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 D | gigadevice.c | 11 static void gd25q256_default_init(struct spi_nor *nor) in gd25q256_default_init()
|
/linux/drivers/mtd/spi-nor/controllers/ |
A D | nxp-spifi.c | 59 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()
|
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
|
A D | aspeed-smc.c | 100 struct spi_nor nor; member 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 D | intel-spi.c | 146 struct spi_nor nor; member 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 D | sama5d3xcm.dtsi | 55 nor: flash@0,0 { label
|
A D | imx1-apf9328.dts | 48 nor: nor@0,0 { label
|
A D | imx1-ads.dts | 68 nor: nor@0,0 { label
|
A D | imx27-eukrea-cpuimx27.dtsi | 93 nor: nor@0,0 { label
|
A D | imx27-phytec-phycore-som.dtsi | 325 nor: nor@0,0 { label
|
/linux/include/linux/mtd/ |
A D | spi-nor.h | 430 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() 436 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node()
|