Lines Matching refs:spi_flash
31 static int read_sr(struct spi_flash *flash, u8 *rs) in read_sr()
46 static int read_fsr(struct spi_flash *flash, u8 *fsr) in read_fsr()
60 static int write_sr(struct spi_flash *flash, u8 ws) in write_sr()
76 static int read_cr(struct spi_flash *flash, u8 *rc) in read_cr()
91 static int write_cr(struct spi_flash *flash, u8 wc) in write_cr()
124 static int clean_bar(struct spi_flash *flash) in clean_bar()
136 static int write_bar(struct spi_flash *flash, u32 offset) in write_bar()
157 static int read_bar(struct spi_flash *flash, const struct spi_flash_info *info) in read_bar()
189 static void spi_flash_dual(struct spi_flash *flash, u32 *addr) in spi_flash_dual()
210 static int spi_flash_sr_ready(struct spi_flash *flash) in spi_flash_sr_ready()
222 static int spi_flash_fsr_ready(struct spi_flash *flash) in spi_flash_fsr_ready()
234 static int spi_flash_ready(struct spi_flash *flash) in spi_flash_ready()
252 static int spi_flash_wait_till_ready(struct spi_flash *flash, in spi_flash_wait_till_ready()
273 int spi_flash_write_common(struct spi_flash *flash, const u8 *cmd, in spi_flash_write_common()
314 int spi_flash_cmd_erase_ops(struct spi_flash *flash, u32 offset, size_t len) in spi_flash_cmd_erase_ops()
369 int spi_flash_cmd_write_ops(struct spi_flash *flash, u32 offset, in spi_flash_cmd_write_ops()
431 int spi_flash_read_common(struct spi_flash *flash, const u8 *cmd, in spi_flash_read_common()
467 int spi_flash_cmd_read_ops(struct spi_flash *flash, u32 offset, in spi_flash_cmd_read_ops()
575 static int sst26_lock_ctl(struct spi_flash *flash, u32 ofs, size_t len, enum lock_ctl ctl) in sst26_lock_ctl()
673 static int sst26_unlock(struct spi_flash *flash, u32 ofs, size_t len) in sst26_unlock()
678 static int sst26_lock(struct spi_flash *flash, u32 ofs, size_t len) in sst26_lock()
687 static int sst26_is_locked(struct spi_flash *flash, u32 ofs, size_t len) in sst26_is_locked()
701 static int sst_byte_write(struct spi_flash *flash, u32 offset, const void *buf) in sst_byte_write()
726 int sst_write_wp(struct spi_flash *flash, u32 offset, size_t len, in sst_write_wp()
794 int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len, in sst_write_bp()
828 static void stm_get_locked_range(struct spi_flash *flash, u8 sr, loff_t *ofs, in stm_get_locked_range()
849 static int stm_is_locked_sr(struct spi_flash *flash, loff_t ofs, u64 len, in stm_is_locked_sr()
867 int stm_is_locked(struct spi_flash *flash, u32 ofs, size_t len) in stm_is_locked()
902 int stm_lock(struct spi_flash *flash, u32 ofs, size_t len) in stm_lock()
956 int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len) in stm_unlock()
1004 static int macronix_quad_enable(struct spi_flash *flash) in macronix_quad_enable()
1032 static int spansion_quad_enable(struct spi_flash *flash) in spansion_quad_enable()
1059 static const struct spi_flash_info *spi_flash_read_id(struct spi_flash *flash) in spi_flash_read_id()
1084 static int set_quad_mode(struct spi_flash *flash, in set_quad_mode()
1110 int spi_flash_decode_fdt(struct spi_flash *flash) in spi_flash_decode_fdt()
1133 int spi_flash_scan(struct spi_flash *flash) in spi_flash_scan()