Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:iter

239 	ext2_u32_iterate iter;
244 retval = ext2fs_get_mem(sizeof(struct ext2_struct_u32_iterate), &iter);
248 iter->magic = EXT2_ET_MAGIC_BADBLOCKS_ITERATE;
249 iter->bb = bb;
250 iter->ptr = 0;
251 *ret = iter;
263 int ext2fs_u32_list_iterate(ext2_u32_iterate iter, __u32 *blk)
267 if (iter->magic != EXT2_ET_MAGIC_BADBLOCKS_ITERATE)
270 bb = iter->bb;
275 if (iter->ptr < bb->num) {
276 *blk = bb->list[iter->ptr++];
283 int ext2fs_badblocks_list_iterate(ext2_badblocks_iterate iter, blk_t *blk)
285 return ext2fs_u32_list_iterate((ext2_u32_iterate) iter,
290 void ext2fs_u32_list_iterate_end(ext2_u32_iterate iter)
292 if (!iter || (iter->magic != EXT2_ET_MAGIC_BADBLOCKS_ITERATE))
295 iter->bb = 0;
296 ext2fs_free_mem(&iter);
299 void ext2fs_badblocks_list_iterate_end(ext2_badblocks_iterate iter)
301 ext2fs_u32_list_iterate_end((ext2_u32_iterate) iter);