Lines Matching refs:pos
64 loff_t pos = 0; in vxfs_find_entry() local
67 while (pos < limit) { in vxfs_find_entry()
70 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry()
72 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
77 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
80 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry()
83 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
86 pos += overhead; in vxfs_find_entry()
92 pos += bsize - 1; in vxfs_find_entry()
93 pos &= ~(bsize - 1); in vxfs_find_entry()
98 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_find_entry()
196 loff_t pos, limit; in vxfs_readdir() local
199 if (ctx->pos == 0) { in vxfs_readdir()
202 ctx->pos++; in vxfs_readdir()
204 if (ctx->pos == 1) { in vxfs_readdir()
207 ctx->pos++; in vxfs_readdir()
211 if (ctx->pos > limit) in vxfs_readdir()
214 pos = ctx->pos & ~3L; in vxfs_readdir()
216 while (pos < limit) { in vxfs_readdir()
219 int pg_ofs = pos & ~PAGE_MASK; in vxfs_readdir()
222 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_readdir()
228 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_readdir()
231 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir()
234 (kaddr + (pos & ~PAGE_MASK)); in vxfs_readdir()
237 pos += overhead; in vxfs_readdir()
243 pos += bsize - 1; in vxfs_readdir()
244 pos &= ~(bsize - 1); in vxfs_readdir()
249 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_readdir()
259 pos -= fs16_to_cpu(sbi, de->d_reclen); in vxfs_readdir()
268 ctx->pos = pos | 2; in vxfs_readdir()