Home
last modified time | relevance | path

Searched refs:s_mtd (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/fs/romfs/
Dsuper.c469 if (!sb->s_mtd) { in romfs_fill_super()
486 if (sb->s_mtd) in romfs_fill_super()
487 sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, sb->s_mtd->index); in romfs_fill_super()
501 if (sb->s_mtd && img_size > sb->s_mtd->size) in romfs_fill_super()
519 storage = sb->s_mtd ? "MTD" : "the block layer"; in romfs_fill_super()
588 if (sb->s_mtd) { in romfs_kill_sb()
589 put_mtd_device(sb->s_mtd); in romfs_kill_sb()
590 sb->s_mtd = NULL; in romfs_kill_sb()
Dstorage.c18 #define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__)
224 if (sb->s_mtd) in romfs_dev_read()
249 if (sb->s_mtd) in romfs_dev_strnlen()
279 if (sb->s_mtd) in romfs_dev_strcmp()
Dmmap-nommu.c25 struct mtd_info *mtd = inode->i_sb->s_mtd; in romfs_get_unmapped_area()
71 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd; in romfs_mmap_capabilities()
/linux-6.6.21/drivers/mtd/
Dmtdsuper.c54 sb->s_mtd = mtd; in mtd_get_sb()
175 put_mtd_device(sb->s_mtd); in kill_mtd_super()
176 sb->s_mtd = NULL; in kill_mtd_super()
/linux-6.6.21/fs/cramfs/
Dinode.c491 if (IS_ENABLED(CONFIG_CRAMFS_MTD) && sb->s_mtd) { in cramfs_kill_sb()
493 mtd_unpoint(sb->s_mtd, 0, sbi->mtd_point_size); in cramfs_kill_sb()
494 put_mtd_device(sb->s_mtd); in cramfs_kill_sb()
495 sb->s_mtd = NULL; in cramfs_kill_sb()
640 err = mtd_point(sb->s_mtd, 0, PAGE_SIZE, &sbi->mtd_point_size, in cramfs_mtd_fill_super()
644 sb->s_mtd->name); in cramfs_mtd_fill_super()
656 sb->s_mtd->name, sbi->size/1024); in cramfs_mtd_fill_super()
657 mtd_unpoint(sb->s_mtd, 0, PAGE_SIZE); in cramfs_mtd_fill_super()
658 err = mtd_point(sb->s_mtd, 0, sbi->size, &sbi->mtd_point_size, in cramfs_mtd_fill_super()
662 sb->s_mtd->name); in cramfs_mtd_fill_super()
/linux-6.6.21/fs/jffs2/
Dsuper.c263 sb->s_mtd->index, sb->s_mtd->name); in jffs2_fill_super()
265 c->mtd = sb->s_mtd; in jffs2_fill_super()
/linux-6.6.21/include/linux/
Dfs.h1227 struct mtd_info *s_mtd; member