Lines Matching defs:mtd
171 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt()
264 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_bbt()
290 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
314 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
344 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
354 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt()
369 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) in bbt_get_ver_offs()
388 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts()
413 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, in scan_block_fast()
454 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt()
524 static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td) in search_bbt()
595 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, in search_read_bbts()
686 struct mtd_info *mtd = nand_to_mtd(this); in mark_bbt_block_bad() local
711 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, in write_bbt()
897 static inline int nand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in nand_memory_bbt()
915 static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd) in check_create()
1040 static void mark_bbt_region(struct mtd_info *mtd, struct nand_bbt_descr *td) in mark_bbt_region()
1100 static void verify_bbt_descr(struct mtd_info *mtd, struct nand_bbt_descr *bd) in verify_bbt_descr()
1152 static int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in nand_scan_bbt()
1225 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs) in nand_update_bbt()
1359 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
1395 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs) in nand_isreserved_bbt()
1410 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in nand_isbad_bbt()
1437 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs) in nand_markbad_bbt()