Lines Matching refs:ent
82 struct ext2_extent_entry *ent; in ext2fs_add_extent_entry() local
98 ent = extent->list + curr; in ext2fs_add_extent_entry()
104 ent--; in ext2fs_add_extent_entry()
105 if ((ent->old_loc + ent->size == old_loc) && in ext2fs_add_extent_entry()
106 (ent->new_loc + ent->size == new_loc)) { in ext2fs_add_extent_entry()
107 ent->size++; in ext2fs_add_extent_entry()
113 if (ent->old_loc + ent->size > old_loc) in ext2fs_add_extent_entry()
115 ent++; in ext2fs_add_extent_entry()
117 ent->old_loc = old_loc; in ext2fs_add_extent_entry()
118 ent->new_loc = new_loc; in ext2fs_add_extent_entry()
119 ent->size = 1; in ext2fs_add_extent_entry()
199 struct ext2_extent_entry *ent; in ext2fs_extent_dump() local
204 for (i=0, ent=extent->list; i < extent->num; i++, ent++) { in ext2fs_extent_dump()
205 fprintf(out, _("#\t\t %u -> %u (%d)\n"), ent->old_loc, in ext2fs_extent_dump()
206 ent->new_loc, ent->size); in ext2fs_extent_dump()
216 struct ext2_extent_entry *ent; in ext2fs_iterate_extent() local
230 ent = extent->list + extent->cursor++; in ext2fs_iterate_extent()
232 *old_loc = ent->old_loc; in ext2fs_iterate_extent()
233 *new_loc = ent->new_loc; in ext2fs_iterate_extent()
234 *size = ent->size; in ext2fs_iterate_extent()