Lines Matching refs:iter
17 #include "iter.h"
58 static status_t _next_dirent_(struct diri *iter, struct _dirent_info_ *oinfo,
70 if (check_diri_magic(iter, "_next_dirent_")) return EINVAL;
72 if (iter->current_block == NULL)
80 buffer = iter->current_block + ((iter->current_index) % (iter->csi.vol->bytes_per_sector / 0x20)) * 0x20;
82 for (;buffer != NULL;buffer = diri_next_entry(iter)) {
83 DPRINTF(2, ("_next_dirent_: %lx/%lx/%lx\n", iter->csi.cluster, iter->csi.sector, iter->current_index));
113 start_index = iter->current_index;
170 diri_free(iter);
171 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);
203 static status_t get_next_dirent(nspace *vol, vnode *dir, struct diri *iter,
212 result = _next_dirent_(iter, &info, filename, len);
272 struct diri iter;
278 if (diri_init(vol, dir->cluster, 0, &iter) == NULL) {
288 result = _next_dirent_(&iter, NULL, filename, 512);
298 ((i < 2) && (iter.current_index != i+1))) {
307 diri_free(&iter);
806 int iter = 1;
819 munge_short_name1(nshort, iter, encoding);
820 } while (((error = find_short_name(vol, dir, nshort)) == B_OK) && (++iter < 10));
856 struct diri iter;
894 &iter) == NULL) {
901 result = _next_dirent_(&iter, &info, filename, 512);
964 bi2:diri_free(&iter);