Home
last modified time | relevance | path

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

/linux-2.4.37.9/fs/jffs/
Djffs_fm.c26 static int jffs_mark_obsolete(struct jffs_fmcontrol *fmc, __u32 fm_offset);
36 struct jffs_fmcontrol *fmc; in jffs_build_begin() local
40 fmc = (struct jffs_fmcontrol *)kmalloc(sizeof(struct jffs_fmcontrol), in jffs_build_begin()
42 if (!fmc) { in jffs_build_begin()
52 kfree(fmc); in jffs_build_begin()
58 fmc->flash_size = mtd->size; in jffs_build_begin()
59 D3(printk(" fmc->flash_size = %d bytes\n", fmc->flash_size)); in jffs_build_begin()
61 fmc->used_size = 0; in jffs_build_begin()
62 fmc->dirty_size = 0; in jffs_build_begin()
63 fmc->free_size = mtd->size; in jffs_build_begin()
[all …]
Dintrep.c394 static __inline__ void jffs_fm_write_lock(struct jffs_fmcontrol *fmc) in jffs_fm_write_lock() argument
399 static __inline__ void jffs_fm_write_unlock(struct jffs_fmcontrol *fmc) in jffs_fm_write_unlock() argument
454 if (!(c->fmc = jffs_build_begin(c, dev))) { in jffs_create_control()
499 jffs_cleanup_fmcontrol(c->fmc); in jffs_cleanup_control()
652 int check_partly_erased_sectors(struct jffs_fmcontrol *fmc){ in check_partly_erased_sectors() argument
667 loff_t end = fmc->flash_size; in check_partly_erased_sectors()
687 retlen = flash_safe_read(fmc->mtd, pos, in check_partly_erased_sectors()
692 (void)flash_safe_read(fmc->mtd, pos, in check_partly_erased_sectors()
710 offset = (((__u32)pos+i)/(__u32)fmc->sector_size) * (__u32)fmc->sector_size; in check_partly_erased_sectors()
715 if (flash_erase_region(fmc->mtd, in check_partly_erased_sectors()
[all …]
Djffs_fm.h126 void jffs_build_end(struct jffs_fmcontrol *fmc);
127 void jffs_cleanup_fmcontrol(struct jffs_fmcontrol *fmc);
129 int jffs_fmalloc(struct jffs_fmcontrol *fmc, __u32 size,
131 int jffs_fmfree(struct jffs_fmcontrol *fmc, struct jffs_fm *fm,
134 __u32 jffs_free_size1(struct jffs_fmcontrol *fmc);
135 __u32 jffs_free_size2(struct jffs_fmcontrol *fmc);
136 void jffs_sync_erase(struct jffs_fmcontrol *fmc, int erased_size);
137 struct jffs_fm *jffs_cut_node(struct jffs_fmcontrol *fmc, __u32 size);
138 struct jffs_node *jffs_get_oldest_node(struct jffs_fmcontrol *fmc);
139 long jffs_erasable_size(struct jffs_fmcontrol *fmc);
[all …]
Djffs_proc.c197 (unsigned long) c->fmc->flash_size, c->fmc->flash_size, in jffs_proc_info_read()
198 (unsigned long) c->fmc->sector_size, c->fmc->sector_size, in jffs_proc_info_read()
199 (unsigned long) c->fmc->used_size, c->fmc->used_size, in jffs_proc_info_read()
200 (unsigned long) c->fmc->dirty_size, c->fmc->dirty_size, in jffs_proc_info_read()
201 (unsigned long) (c->fmc->flash_size - in jffs_proc_info_read()
202 (c->fmc->used_size + c->fmc->dirty_size)), in jffs_proc_info_read()
203 c->fmc->flash_size - (c->fmc->used_size + c->fmc->dirty_size)); in jffs_proc_info_read()
225 fm = c->fmc->head; in jffs_proc_layout_read()
255 && (last_fm->offset < c->fmc->flash_size)) { in jffs_proc_layout_read()
260 (unsigned long) (c->fmc->flash_size - in jffs_proc_layout_read()
Dinode-v23.c129 c->gc_minfree_threshold = c->fmc->flash_size / 20; in jffs_read_super()
131 if (c->gc_minfree_threshold < c->fmc->sector_size) in jffs_read_super()
132 c->gc_minfree_threshold = c->fmc->sector_size; in jffs_read_super()
135 c->gc_maxdirty_threshold = c->fmc->flash_size / 3; in jffs_read_super()
137 if (c->gc_maxdirty_threshold < c->fmc->sector_size) in jffs_read_super()
138 c->gc_maxdirty_threshold = c->fmc->sector_size; in jffs_read_super()
197 struct jffs_fmcontrol *fmc; in jffs_setattr() local
208 fmc = c->fmc; in jffs_setattr()
211 down(&fmc->biglock); in jffs_setattr()
219 up(&fmc->biglock); in jffs_setattr()
[all …]
Dintrep.h64 struct jffs_fmcontrol *fmc = c->fmc; in JFFS_ENOUGH_SPACE() local
67 if ((fmc->flash_size - (fmc->used_size + fmc->dirty_size)) in JFFS_ENOUGH_SPACE()
68 >= fmc->min_free_size + space) { in JFFS_ENOUGH_SPACE()
71 if (fmc->dirty_size < fmc->sector_size) in JFFS_ENOUGH_SPACE()
/linux-2.4.37.9/include/linux/
Djffs.h184 struct jffs_fmcontrol *fmc; /* Flash memory control structure. */ member