Lines Matching refs:mtd_info
18 static struct mtd_info cfi_mtd_info[CFI_MAX_FLASH_BANKS];
24 static int cfi_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in cfi_mtd_erase()
68 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in cfi_mtd_read()
80 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write()
99 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync()
108 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock()
120 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock()
132 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize()
205 struct mtd_info *mtd; in cfi_mtd_init()
210 struct mtd_info *mtd_list[CONFIG_SYS_MAX_FLASH_BANKS]; in cfi_mtd_init()
217 memset(mtd, 0, sizeof(struct mtd_info)); in cfi_mtd_init()