Lines Matching defs:cpos
68 static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_entry *dir_entry)
78 unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF;
177 *cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext);
193 *cpos = EXFAT_DEN_TO_B(dentry);
235 loff_t cpos, i_pos;
240 cpos = ctx->pos;
245 cpos = 0;
249 cpos = round_up(cpos, DENTRY_SIZE);
258 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos >= i_size_read(inode))
261 err = exfat_readdir(inode, &cpos, &de);
265 * Move cpos to next sector position (should be aligned).
268 cpos += 1 << (sb->s_blocksize_bits);
269 cpos &= ~(sb->s_blocksize - 1);
292 ctx->pos = cpos;
296 if (!cpos && fake_offset)
297 cpos = ITER_POS_FILLED_DOTS;
298 ctx->pos = cpos;