Lines Matching refs:flash_info_t
63 flash_info_t flash_info[CFI_MAX_FLASH_BANKS]; /* FLASH chips info */
182 static flash_info_t *flash_get_info(ulong base) in flash_get_info()
185 flash_info_t *info; in flash_get_info()
198 unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect) in flash_sector_size()
210 flash_map(flash_info_t *info, flash_sect_t sect, uint offset) in flash_map()
217 static inline void flash_unmap(flash_info_t *info, flash_sect_t sect, in flash_unmap()
225 static void flash_make_cmd(flash_info_t *info, u32 cmd, void *cmdbuf) in flash_make_cmd()
289 static inline uchar flash_read_uchar(flash_info_t *info, uint offset) in flash_read_uchar()
307 static inline ushort flash_read_word(flash_info_t *info, uint offset) in flash_read_word()
321 static ulong flash_read_long (flash_info_t *info, flash_sect_t sect, in flash_read_long()
357 static void flash_write_cmd(flash_info_t *info, flash_sect_t sect, in flash_write_cmd()
405 static void flash_unlock_seq(flash_info_t *info, flash_sect_t sect) in flash_unlock_seq()
413 static int flash_isequal(flash_info_t *info, flash_sect_t sect, uint offset, in flash_isequal()
461 static int flash_isset(flash_info_t *info, flash_sect_t sect, uint offset, in flash_isset()
494 static int flash_toggle(flash_info_t *info, flash_sect_t sect, uint offset, in flash_toggle()
532 static int flash_is_busy(flash_info_t *info, flash_sect_t sect) in flash_is_busy()
569 static int flash_status_check(flash_info_t *info, flash_sect_t sector, in flash_status_check()
608 static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, in flash_full_status_check()
650 static int use_flash_status_poll(flash_info_t *info) in use_flash_status_poll()
660 static int flash_status_poll(flash_info_t *info, void *src, void *dst, in flash_status_poll()
714 static void flash_add_byte(flash_info_t *info, cfiword_t *cword, uchar c) in flash_add_byte()
760 static flash_sect_t find_sector(flash_info_t *info, ulong addr) in find_sector()
763 static flash_info_t *saved_info; /* previously used flash bank */ in find_sector()
786 static int flash_write_cfiword(flash_info_t *info, ulong dest, cfiword_t cword) in flash_write_cfiword()
873 static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, in flash_write_cfibuffer()
1056 int flash_erase(flash_info_t *info, int s_first, int s_last) in flash_erase()
1183 static int sector_erased(flash_info_t *info, int i) in sector_erased()
1206 void flash_print_info(flash_info_t *info) in flash_print_info()
1318 int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) in write_buff()
1437 static inline int manufact_match(flash_info_t *info, u32 manu) in manufact_match()
1446 static int cfi_protect_bugfix(flash_info_t *info, long sector, int prot) in cfi_protect_bugfix()
1480 int flash_real_protect(flash_info_t *info, long sector, int prot) in flash_real_protect()
1606 void flash_read_user_serial(flash_info_t *info, void *buffer, int offset, in flash_read_user_serial()
1624 void flash_read_factory_serial(flash_info_t *info, void *buffer, int offset, in flash_read_factory_serial()
1663 static void cmdset_intel_read_jedec_ids(flash_info_t *info) in cmdset_intel_read_jedec_ids()
1677 static int cmdset_intel_init(flash_info_t *info, struct cfi_qry *qry) in cmdset_intel_init()
1695 static void cmdset_amd_read_jedec_ids(flash_info_t *info) in cmdset_amd_read_jedec_ids()
1756 static int cmdset_amd_init(flash_info_t *info, struct cfi_qry *qry) in cmdset_amd_init()
1776 static void flash_read_jedec_ids(flash_info_t *info) in flash_read_jedec_ids()
1804 flash_info_t *info = &flash_info[banknum]; in flash_detect_legacy()
1872 static void flash_read_cfi(flash_info_t *info, void *buf, unsigned int start, in flash_read_cfi()
1882 static void __flash_cmd_reset(flash_info_t *info) in __flash_cmd_reset()
1894 void flash_cmd_reset(flash_info_t *info)
1897 static int __flash_detect_cfi(flash_info_t *info, struct cfi_qry *qry) in __flash_detect_cfi()
1950 static int flash_detect_cfi(flash_info_t *info, struct cfi_qry *qry) in flash_detect_cfi()
1970 static void flash_fixup_amd(flash_info_t *info, struct cfi_qry *qry) in flash_fixup_amd()
1987 static void flash_fixup_atmel(flash_info_t *info, struct cfi_qry *qry) in flash_fixup_atmel()
2006 static void flash_fixup_stm(flash_info_t *info, struct cfi_qry *qry) in flash_fixup_stm()
2026 static void flash_fixup_sst(flash_info_t *info, struct cfi_qry *qry) in flash_fixup_sst()
2045 static void flash_fixup_num(flash_info_t *info, struct cfi_qry *qry) in flash_fixup_num()
2071 flash_info_t *info = &flash_info[banknum]; in flash_get_size()