Lines Matching refs:f_pos
61 u32 f_pos; in affs_readdir() local
66 pr_debug("AFFS: readdir(ino=%lu,f_pos=%lx)\n",inode->i_ino,(unsigned long)filp->f_pos); in affs_readdir()
72 f_pos = filp->f_pos; in affs_readdir()
74 if (f_pos == 0) { in affs_readdir()
76 if (filldir(dirent, ".", 1, f_pos, inode->i_ino, DT_DIR) < 0) in affs_readdir()
78 filp->f_pos = f_pos = 1; in affs_readdir()
81 if (f_pos == 1) { in affs_readdir()
82 if (filldir(dirent, "..", 2, f_pos, filp->f_dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) in affs_readdir()
84 filp->f_pos = f_pos = 2; in affs_readdir()
89 chain_pos = (f_pos - 2) & 0xffff; in affs_readdir()
90 hash_pos = (f_pos - 2) >> 16; in affs_readdir()
95 filp->f_pos = ((hash_pos << 16) | chain_pos) + 2; in affs_readdir()
129 f_pos = (hash_pos << 16) + 2; in affs_readdir()
141 namelen, name, ino, hash_pos, f_pos); in affs_readdir()
142 if (filldir(dirent, name, namelen, f_pos, ino, DT_UNKNOWN) < 0) in affs_readdir()
145 f_pos++; in affs_readdir()
152 filp->f_pos = f_pos; in affs_readdir()