Lines Matching refs:c
25 #define OFNI_BS_2SFFJ(c) ((struct super_block *)c->os_priv) argument
62 #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & MS_RDONLY) argument
64 #define SECTOR_ADDR(x) ( (((unsigned long)(x) / c->sector_size) * c->sector_size) )
69 #define jffs2_can_mark_obsolete(c) (0) argument
71 #define jffs2_can_mark_obsolete(c) (1) argument
74 #define jffs2_is_writebuffered(c) (0) argument
75 #define jffs2_cleanmarker_oob(c) (0) argument
76 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) argument
78 #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, b… argument
79 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf)) argument
80 #define jffs2_flush_wbuf_pad(c) ({ do{} while(0); (void)(c), 0; }) argument
81 #define jffs2_flush_wbuf_gc(c, i) ({ do{} while(0); (void)(c), (void) i, 0; }) argument
82 #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1) argument
83 #define jffs2_nand_flash_setup(c) (0) argument
84 #define jffs2_nand_flash_cleanup(c) do {} while(0) argument
85 #define jffs2_wbuf_dirty(c) (0) argument
86 #define jffs2_flash_writev(a,b,c,d,e,f) jffs2_flash_direct_writev(a,b,c,d,e) argument
89 #define jffs2_dataflash(c) (0) argument
90 #define jffs2_dataflash_setup(c) (0) argument
91 #define jffs2_dataflash_cleanup(c) do {} while (0) argument
92 #define jffs2_nor_wbuf_flash(c) (0) argument
93 #define jffs2_nor_wbuf_flash_setup(c) (0) argument
94 #define jffs2_nor_wbuf_flash_cleanup(c) do {} while (0) argument
95 #define jffs2_ubivol(c) (0) argument
96 #define jffs2_ubivol_setup(c) (0) argument
97 #define jffs2_ubivol_cleanup(c) do {} while (0) argument
98 #define jffs2_dirty_trigger(c) do {} while (0) argument
102 #define jffs2_is_writebuffered(c) (c->wbuf != NULL) argument
105 #define jffs2_can_mark_obsolete(c) (0) argument
107 #define jffs2_can_mark_obsolete(c) (c->mtd->flags & (MTD_BIT_WRITEABLE)) argument
110 #define jffs2_cleanmarker_oob(c) (c->mtd->type == MTD_NANDFLASH) argument
112 #define jffs2_wbuf_dirty(c) (!!(c)->wbuf_len) argument
115 int jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_…
116 int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char…
117 int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf);
118 int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode);
119 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
120 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
121 int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_o…
124 int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino);
125 int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c);
126 int jffs2_nand_flash_setup(struct jffs2_sb_info *c);
127 void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c);
129 #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH) argument
130 int jffs2_dataflash_setup(struct jffs2_sb_info *c);
131 void jffs2_dataflash_cleanup(struct jffs2_sb_info *c);
132 #define jffs2_ubivol(c) (c->mtd->type == MTD_UBIVOLUME) argument
133 int jffs2_ubivol_setup(struct jffs2_sb_info *c);
134 void jffs2_ubivol_cleanup(struct jffs2_sb_info *c);
136 #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEAB… argument
137 int jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info *c);
138 void jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info *c);
139 void jffs2_dirty_trigger(struct jffs2_sb_info *c);
144 int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c);
145 void jffs2_stop_garbage_collect_thread(struct jffs2_sb_info *c);
146 void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c);
176 void jffs2_gc_release_inode(struct jffs2_sb_info *c,
178 struct jffs2_inode_info *jffs2_gc_fetch_inode(struct jffs2_sb_info *c,
181 unsigned char *jffs2_gc_fetch_page(struct jffs2_sb_info *c,
185 void jffs2_gc_release_page(struct jffs2_sb_info *c,
188 void jffs2_flash_cleanup(struct jffs2_sb_info *c);
192 int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs,
194 int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len,