Lines Matching defs:pos
948 * @pos: current position in directory
959 static int ntfs_filldir(ntfs_inode *dir_ni, s64 *pos, u8 ivcn_bits,
974 *pos = (u8*)ie - (u8*)iu.ia + (sle64_to_cpu(
978 *pos = (u8*)ie - (u8*)iu.ir;
1003 fn->file_name_type, *pos,
1015 fn->file_name_type, *pos,
1088 * @pos: current position in directory
1101 int ntfs_readdir(ntfs_inode *dir_ni, s64 *pos,
1118 if (!dir_ni || !pos || !filldir) {
1130 ntfs_log_trace("Entering for inode %lld, *pos 0x%llx.\n",
1131 (unsigned long long)dir_ni->mft_no, (long long)*pos);
1149 if (*pos >= i_size + vol->mft_record_size)
1153 if (!*pos) {
1154 rc = filldir(dirent, dotdot, 1, FILE_NAME_POSIX, *pos,
1160 ++*pos;
1162 if (*pos == 1) {
1171 rc = filldir(dirent, dotdot, 2, FILE_NAME_POSIX, *pos,
1175 ++*pos;
1183 ir_pos = (int)*pos;
1211 if (*pos >= vol->mft_record_size) {
1259 rc = ntfs_filldir(dir_ni, pos, index_vcn_size_bits,
1274 /* Advance *pos to the beginning of the index allocation. */
1275 *pos = vol->mft_record_size;
1294 ia_pos = *pos - vol->mft_record_size;
1401 rc = ntfs_filldir(dir_ni, pos, index_vcn_size_bits,
1408 /* We are finished, set *pos to EOD. */
1409 *pos = i_size + vol->mft_record_size;
1417 ntfs_log_debug("EOD, *pos 0x%llx, returning 0.\n", (long long)*pos);
2848 const s64 pos __attribute__((unused)),
2870 s64 pos;
2888 pos = 0;
2889 err = ntfs_readdir(ni, &pos, &nlink, nlink_increment);