Lines Matching refs:mtd
23 struct mtd_info *mtd = _mtd; in get_sb_mtd_compare() local
25 if (sb->s_mtd == mtd) { in get_sb_mtd_compare()
27 mtd->index, mtd->name); in get_sb_mtd_compare()
32 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); in get_sb_mtd_compare()
43 struct mtd_info *mtd = _mtd; in get_sb_mtd_set() local
45 sb->s_mtd = mtd; in get_sb_mtd_set()
46 sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, mtd->index); in get_sb_mtd_set()
55 struct mtd_info *mtd, in get_sb_mtd_aux() argument
62 sb = sget(fs_type, get_sb_mtd_compare, get_sb_mtd_set, mtd); in get_sb_mtd_aux()
71 mtd->index, mtd->name); in get_sb_mtd_aux()
89 mtd->index, mtd->name); in get_sb_mtd_aux()
96 put_mtd_device(mtd); in get_sb_mtd_aux()
108 struct mtd_info *mtd; in get_sb_mtd_nr() local
110 mtd = get_mtd_device(NULL, mtdnr); in get_sb_mtd_nr()
111 if (IS_ERR(mtd)) { in get_sb_mtd_nr()
113 return PTR_ERR(mtd); in get_sb_mtd_nr()
116 return get_sb_mtd_aux(fs_type, flags, dev_name, data, mtd, fill_super, in get_sb_mtd_nr()
145 struct mtd_info *mtd; in get_sb_mtd() local
152 mtd = get_mtd_device(NULL, mtdnr); in get_sb_mtd()
153 if (!IS_ERR(mtd)) { in get_sb_mtd()
154 if (!strcmp(mtd->name, dev_name + 4)) in get_sb_mtd()
157 dev_name, data, mtd, in get_sb_mtd()
160 put_mtd_device(mtd); in get_sb_mtd()