Lines Matching refs:iter
18 #include "iter.h"
57 _next_dirent_(struct diri *iter, struct _dirent_info_ *oinfo, char *filename,
69 if (iter->current_block == NULL)
77 buffer = iter->current_block
78 + ((iter->current_index) % (iter->csi.vol->bytes_per_sector / 0x20)) * 0x20;
80 for (; buffer != NULL; buffer = diri_next_entry(iter)) {
81 DPRINTF(2, ("_next_dirent_: %lx/%lx/%lx\n", iter->csi.cluster,
82 iter->csi.sector, iter->current_index));
112 start_index = iter->current_index;
169 diri_free(iter);
170 diri_init(iter->csi.vol, iter->starting_cluster, start_index, iter);
182 start_index = iter->current_index;
189 oinfo->eindex = iter->current_index;
192 if (iter->csi.vol->fat_bits == 32)
198 diri_next_entry(iter);
205 get_next_dirent(nspace *vol, vnode *dir, struct diri *iter, ino_t *vnid,
212 result = _next_dirent_(iter, &info, filename, len);
274 struct diri iter;
277 if (diri_init(vol, dir->cluster, 0, &iter) == NULL) {
286 result = _next_dirent_(&iter, NULL, filename, 512);
296 || (i < 2 && iter.current_index != i + 1)) {
305 diri_free(&iter);
861 int iter = 1;
874 munge_short_name1(nshort, iter, encoding);
875 } while ((error = find_short_name(vol, dir, nshort)) == B_OK && ++iter < 10);
917 struct diri iter;
953 &iter) == NULL) {
961 result = _next_dirent_(&iter, &info, filename, 512);
1030 diri_free(&iter);