Home
last modified time | relevance | path

Searched refs:mtd (Results 1 – 12 of 12) sorted by relevance

/fs/romfs/
Dmmap-nommu.c25 struct mtd_info *mtd = inode->i_sb->s_mtd; in romfs_get_unmapped_area() local
29 if (!mtd) in romfs_get_unmapped_area()
44 if (len > mtd->size || pgoff >= (mtd->size >> PAGE_SHIFT)) in romfs_get_unmapped_area()
48 if (offset >= mtd->size) in romfs_get_unmapped_area()
51 if ((offset + len) > mtd->size) in romfs_get_unmapped_area()
52 len = mtd->size - offset; in romfs_get_unmapped_area()
54 ret = mtd_get_unmapped_area(mtd, len, offset, flags); in romfs_get_unmapped_area()
71 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd; in romfs_mmap_capabilities() local
73 if (!mtd) in romfs_mmap_capabilities()
75 return mtd_mmap_capabilities(mtd); in romfs_mmap_capabilities()
/fs/jffs2/
Dwbuf.c237 ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify); in jffs2_verify_write()
288 if (c->wbuf_ofs % c->mtd->erasesize) in jffs2_wbuf_recover()
348 ret = mtd_read(c->mtd, start, c->wbuf_ofs - start, &retlen, in jffs2_wbuf_recover()
425 mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); in jffs2_wbuf_recover()
429 ret = mtd_write(c->mtd, ofs, towrite, &retlen, in jffs2_wbuf_recover()
632 mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, in __jffs2_flush_wbuf()
638 ret = mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, in __jffs2_flush_wbuf()
876 ret = mtd_write(c->mtd, outvec_to, PAGE_DIV(vlen), in jffs2_flash_writev()
963 return mtd_read(c->mtd, ofs, len, retlen, buf); in jffs2_flash_read()
967 ret = mtd_read(c->mtd, ofs, len, retlen, buf); in jffs2_flash_read()
[all …]
Dos-linux.h80 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf))
108 #define jffs2_can_mark_obsolete(c) (c->mtd->flags & (MTD_BIT_WRITEABLE))
111 #define jffs2_cleanmarker_oob(c) (c->mtd->type == MTD_NANDFLASH)
130 #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH)
133 #define jffs2_ubivol(c) (c->mtd->type == MTD_UBIVOLUME)
137 #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEAB…
Dwritev.c29 return mtd_writev(c->mtd, vecs, count, to, retlen); in jffs2_flash_direct_writev()
36 ret = mtd_write(c->mtd, ofs, len, retlen, buf); in jffs2_flash_direct_write()
Dsuper.c265 c->mtd = sb->s_mtd; in jffs2_fill_super()
268 if (c->mount_opts.rp_size > c->mtd->size) in jffs2_fill_super()
270 c->mtd->size / 1024); in jffs2_fill_super()
339 mtd_sync(c->mtd); in jffs2_put_super()
Derase.c65 ret = mtd_erase(c->mtd, instr); in jffs2_erase_block()
321 ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen, in jffs2_block_check_erase()
332 mtd_unpoint(c->mtd, jeb->offset, retlen); in jffs2_block_check_erase()
341 mtd_unpoint(c->mtd, jeb->offset, c->sector_size); in jffs2_block_check_erase()
367 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase()
Dfs.c222 buf->f_fsid.val[1] = c->mtd->index; in jffs2_statfs()
524 if (c->mtd->type == MTD_MLCNANDFLASH) in jffs2_do_fill_super()
528 if (c->mtd->type == MTD_NANDFLASH) { in jffs2_do_fill_super()
532 if (c->mtd->type == MTD_DATAFLASH) { in jffs2_do_fill_super()
538 c->flash_size = c->mtd->size; in jffs2_do_fill_super()
539 c->sector_size = c->mtd->erasesize; in jffs2_do_fill_super()
Dscan.c101 ret = mtd_point(c->mtd, 0, c->mtd->size, &pointlen, in jffs2_scan_medium()
103 if (!ret && pointlen < c->mtd->size) { in jffs2_scan_medium()
107 mtd_unpoint(c->mtd, 0, pointlen); in jffs2_scan_medium()
124 flashbuf = mtd_kmalloc_up_to(c->mtd, &try_size); in jffs2_scan_medium()
285 mtd_unpoint(c->mtd, 0, c->mtd->size); in jffs2_scan_medium()
468 if (mtd_block_isbad(c->mtd, jeb->offset)) in jffs2_scan_eraseblock()
Djffs2_fs_sb.h50 struct mtd_info *mtd; member
Dbackground.c45 tsk = kthread_run(jffs2_garbage_collect_thread, c, "jffs2_gcd_mtd%d", c->mtd->index); in jffs2_start_garbage_collect_thread()
Dreadinode.c67 err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); in check_node_data()
70 mtd_unpoint(c->mtd, ofs, retlen); in check_node_data()
104 mtd_unpoint(c->mtd, ofs, len); in check_node_data()
140 mtd_unpoint(c->mtd, ofs, len); in check_node_data()
/fs/cramfs/
DKconfig52 mount -t cramfs mtd:xip_fs /mnt