Lines Matching defs:cpos
66 static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_entry *dir_entry)
77 unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF;
173 *cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext);
189 *cpos = EXFAT_DEN_TO_B(dentry);
231 loff_t cpos, i_pos;
236 cpos = ctx->pos;
241 cpos = 0;
245 cpos = round_up(cpos, DENTRY_SIZE);
254 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos >= i_size_read(inode))
257 err = exfat_readdir(inode, &cpos, &de);
261 * Move cpos to next sector position (should be aligned).
264 cpos += 1 << (sb->s_blocksize_bits);
265 cpos &= ~(sb->s_blocksize - 1);
288 ctx->pos = cpos;
292 if (!cpos && fake_offset)
293 cpos = ITER_POS_FILLED_DOTS;
294 ctx->pos = cpos;