Lines Matching refs:mtd
28 struct mtd_info *mtd = _mtd; in get_sb_mtd_compare() local
30 if (sb->s_mtd == mtd) { in get_sb_mtd_compare()
32 mtd->index, mtd->name); in get_sb_mtd_compare()
37 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); in get_sb_mtd_compare()
48 struct mtd_info *mtd = _mtd; in get_sb_mtd_set() local
50 sb->s_mtd = mtd; in get_sb_mtd_set()
51 sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, mtd->index); in get_sb_mtd_set()
52 sb->s_bdi = mtd->backing_dev_info; in get_sb_mtd_set()
61 struct mtd_info *mtd, in mount_mtd_aux() argument
67 sb = sget(fs_type, get_sb_mtd_compare, get_sb_mtd_set, flags, mtd); in mount_mtd_aux()
76 mtd->index, mtd->name); in mount_mtd_aux()
91 mtd->index, mtd->name); in mount_mtd_aux()
92 put_mtd_device(mtd); in mount_mtd_aux()
96 put_mtd_device(mtd); in mount_mtd_aux()
107 struct mtd_info *mtd; in mount_mtd_nr() local
109 mtd = get_mtd_device(NULL, mtdnr); in mount_mtd_nr()
110 if (IS_ERR(mtd)) { in mount_mtd_nr()
112 return ERR_CAST(mtd); in mount_mtd_nr()
115 return mount_mtd_aux(fs_type, flags, dev_name, data, mtd, fill_super); in mount_mtd_nr()
142 struct mtd_info *mtd; in mount_mtd() local
148 mtd = get_mtd_device_nm(dev_name + 4); in mount_mtd()
149 if (!IS_ERR(mtd)) in mount_mtd()
152 dev_name, data, mtd, in mount_mtd()