scan_ai          1490 drivers/mtd/ubi/attach.c 	struct ubi_attach_info *scan_ai;
scan_ai          1494 drivers/mtd/ubi/attach.c 	scan_ai = alloc_ai();
scan_ai          1495 drivers/mtd/ubi/attach.c 	if (!scan_ai)
scan_ai          1498 drivers/mtd/ubi/attach.c 	scan_ai->ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL);
scan_ai          1499 drivers/mtd/ubi/attach.c 	if (!scan_ai->ech)
scan_ai          1502 drivers/mtd/ubi/attach.c 	scan_ai->vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL);
scan_ai          1503 drivers/mtd/ubi/attach.c 	if (!scan_ai->vidb)
scan_ai          1510 drivers/mtd/ubi/attach.c 		err = scan_peb(ubi, scan_ai, pnum, true);
scan_ai          1515 drivers/mtd/ubi/attach.c 	ubi_free_vid_buf(scan_ai->vidb);
scan_ai          1516 drivers/mtd/ubi/attach.c 	kfree(scan_ai->ech);
scan_ai          1518 drivers/mtd/ubi/attach.c 	if (scan_ai->force_full_scan)
scan_ai          1521 drivers/mtd/ubi/attach.c 		err = ubi_scan_fastmap(ubi, *ai, scan_ai);
scan_ai          1529 drivers/mtd/ubi/attach.c 		*ai = scan_ai;
scan_ai          1531 drivers/mtd/ubi/attach.c 		destroy_ai(scan_ai);
scan_ai          1536 drivers/mtd/ubi/attach.c 	ubi_free_vid_buf(scan_ai->vidb);
scan_ai          1538 drivers/mtd/ubi/attach.c 	kfree(scan_ai->ech);
scan_ai          1540 drivers/mtd/ubi/attach.c 	destroy_ai(scan_ai);
scan_ai          1615 drivers/mtd/ubi/attach.c 		struct ubi_attach_info *scan_ai;
scan_ai          1617 drivers/mtd/ubi/attach.c 		scan_ai = alloc_ai();
scan_ai          1618 drivers/mtd/ubi/attach.c 		if (!scan_ai) {
scan_ai          1623 drivers/mtd/ubi/attach.c 		err = scan_all(ubi, scan_ai, 0);
scan_ai          1625 drivers/mtd/ubi/attach.c 			destroy_ai(scan_ai);
scan_ai          1629 drivers/mtd/ubi/attach.c 		err = self_check_eba(ubi, ai, scan_ai);
scan_ai          1630 drivers/mtd/ubi/attach.c 		destroy_ai(scan_ai);
scan_ai           851 drivers/mtd/ubi/fastmap.c 		     struct ubi_attach_info *scan_ai)
scan_ai           864 drivers/mtd/ubi/fastmap.c 	fm_anchor = find_fm_anchor(scan_ai);
scan_ai           869 drivers/mtd/ubi/fastmap.c 	list_for_each_entry(aeb, &scan_ai->fastmap, u.list) {
scan_ai           966 drivers/mtd/ubi/ubi.h 		     struct ubi_attach_info *scan_ai);