Lines Matching full:c
25 #define OFNI_BS_2SFFJ(c) ((struct super_block *)c->os_priv) argument
63 #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & SB_RDONLY) argument
65 #define SECTOR_ADDR(x) ( (((unsigned long)(x) / c->sector_size) * c->sector_size) )
70 #define jffs2_can_mark_obsolete(c) (0) argument
72 #define jffs2_can_mark_obsolete(c) (1) argument
75 #define jffs2_is_writebuffered(c) (0) argument
76 #define jffs2_cleanmarker_oob(c) (0) argument
77 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) argument
79 #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, b… argument
80 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf)) argument
81 #define jffs2_flush_wbuf_pad(c) ({ do{} while(0); (void)(c), 0; }) argument
82 #define jffs2_flush_wbuf_gc(c, i) ({ do{} while(0); (void)(c), (void) i, 0; }) argument
83 #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1) argument
84 #define jffs2_nand_flash_setup(c) (0) argument
85 #define jffs2_nand_flash_cleanup(c) do {} while(0) argument
86 #define jffs2_wbuf_dirty(c) (0) argument
87 #define jffs2_flash_writev(a,b,c,d,e,f) jffs2_flash_direct_writev(a,b,c,d,e) argument
90 #define jffs2_dataflash(c) (0) argument
91 #define jffs2_dataflash_setup(c) (0) argument
92 #define jffs2_dataflash_cleanup(c) do {} while (0) argument
93 #define jffs2_nor_wbuf_flash(c) (0) argument
94 #define jffs2_nor_wbuf_flash_setup(c) (0) argument
95 #define jffs2_nor_wbuf_flash_cleanup(c) do {} while (0) argument
96 #define jffs2_ubivol(c) (0) argument
97 #define jffs2_ubivol_setup(c) (0) argument
98 #define jffs2_ubivol_cleanup(c) do {} while (0) argument
99 #define jffs2_dirty_trigger(c) do {} while (0) argument
103 #define jffs2_is_writebuffered(c) (c->wbuf != NULL) argument
106 #define jffs2_can_mark_obsolete(c) (0) argument
108 #define jffs2_can_mark_obsolete(c) (c->mtd->flags & (MTD_BIT_WRITEABLE)) argument
111 #define jffs2_cleanmarker_oob(c) (c->mtd->type == MTD_NANDFLASH) argument
113 #define jffs2_wbuf_dirty(c) (!!(c)->wbuf_len) argument
115 /* wbuf.c */
116 int jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_…
117 int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char…
118 int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf);
119 int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode);
120 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
121 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
122 int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_o…
125 int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino);
126 int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c);
127 int jffs2_nand_flash_setup(struct jffs2_sb_info *c);
128 void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c);
130 #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH) argument
131 int jffs2_dataflash_setup(struct jffs2_sb_info *c);
132 void jffs2_dataflash_cleanup(struct jffs2_sb_info *c);
133 #define jffs2_ubivol(c) (c->mtd->type == MTD_UBIVOLUME) argument
134 int jffs2_ubivol_setup(struct jffs2_sb_info *c);
135 void jffs2_ubivol_cleanup(struct jffs2_sb_info *c);
137 #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEAB… argument
138 int jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info *c);
139 void jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info *c);
140 void jffs2_dirty_trigger(struct jffs2_sb_info *c);
144 /* background.c */
145 int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c);
146 void jffs2_stop_garbage_collect_thread(struct jffs2_sb_info *c);
147 void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c);
149 /* dir.c */
153 /* file.c */
160 /* ioctl.c */
163 /* symlink.c */
166 /* fs.c */
177 void jffs2_gc_release_inode(struct jffs2_sb_info *c,
179 struct jffs2_inode_info *jffs2_gc_fetch_inode(struct jffs2_sb_info *c,
182 unsigned char *jffs2_gc_fetch_page(struct jffs2_sb_info *c,
186 void jffs2_flash_cleanup(struct jffs2_sb_info *c);
189 /* writev.c */
190 int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs,
192 int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len,