Lines Matching refs:cpos
67 static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_entry *dir_entry) in exfat_readdir() argument
77 unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF; in exfat_readdir()
173 *cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext); in exfat_readdir()
189 *cpos = EXFAT_DEN_TO_B(dentry); in exfat_readdir()
231 loff_t cpos, i_pos; in exfat_iterate() local
236 cpos = ctx->pos; in exfat_iterate()
241 cpos = 0; in exfat_iterate()
245 cpos = round_up(cpos, DENTRY_SIZE); in exfat_iterate()
254 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos >= i_size_read(inode)) in exfat_iterate()
257 err = exfat_readdir(inode, &cpos, &de); in exfat_iterate()
264 cpos += 1 << (sb->s_blocksize_bits); in exfat_iterate()
265 cpos &= ~(sb->s_blocksize - 1); in exfat_iterate()
288 ctx->pos = cpos; in exfat_iterate()
292 if (!cpos && fake_offset) in exfat_iterate()
293 cpos = ITER_POS_FILLED_DOTS; in exfat_iterate()
294 ctx->pos = cpos; in exfat_iterate()