• Home
  • Raw
  • Download

Lines Matching refs:lcn

171 	if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED))  in ntfs_rl_are_mergeable()
177 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_rl_are_mergeable()
178 ((dst->lcn + dst->length) == src->lcn)) in ntfs_rl_are_mergeable()
181 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE)) in ntfs_rl_are_mergeable()
262 if (dst[marker].lcn == LCN_ENOENT) in ntfs_rl_append()
348 if (dst[marker].lcn == LCN_HOLE || dst[marker].lcn == LCN_RL_NOT_MAPPED) in ntfs_rl_insert()
360 dst[loc].lcn = LCN_RL_NOT_MAPPED; in ntfs_rl_insert()
446 if (((dsize - tail) > 0) && (dst[marker].lcn == LCN_ENOENT)) in ntfs_rl_replace()
542 drl[0].lcn = LCN_RL_NOT_MAPPED; in ntfs_runlists_merge_i()
551 while (srl[si].length && srl[si].lcn < (LCN)LCN_HOLE) in ntfs_runlists_merge_i()
576 if ((drl[di].vcn == srl[si].vcn) && (drl[di].lcn >= 0) && in ntfs_runlists_merge_i()
577 (srl[si].lcn >= 0)) { in ntfs_runlists_merge_i()
589 if (srl[send].lcn == (LCN)LCN_ENOENT) in ntfs_runlists_merge_i()
593 for (sfinal = send; sfinal >= 0 && srl[sfinal].lcn < LCN_HOLE; sfinal--) in ntfs_runlists_merge_i()
595 for (dfinal = dend; dfinal >= 0 && drl[dfinal].lcn < LCN_HOLE; dfinal--) in ntfs_runlists_merge_i()
604 start = ((drl[dins].lcn < LCN_RL_NOT_MAPPED) || /* End of file */ in ntfs_runlists_merge_i()
606 finish = ((drl[dins].lcn >= LCN_RL_NOT_MAPPED) && /* End of file */ in ntfs_runlists_merge_i()
648 (long long)drl[ds].lcn); in ntfs_runlists_merge_i()
649 drl[ds].lcn = (LCN)LCN_ENOENT; in ntfs_runlists_merge_i()
657 if (drl[ds].lcn == (LCN)LCN_ENOENT) { in ntfs_runlists_merge_i()
661 if (drl[ds].lcn != (LCN)LCN_RL_NOT_MAPPED) { in ntfs_runlists_merge_i()
677 drl[ds].lcn = (LCN)LCN_RL_NOT_MAPPED; in ntfs_runlists_merge_i()
693 drl[ds].lcn = (LCN)LCN_ENOENT; in ntfs_runlists_merge_i()
709 marker_vcn = ((runlist*)NULL)->lcn; in ntfs_runlists_merge_i()
787 LCN lcn; /* Current lcn. */ in ntfs_mapping_pairs_decompress_i() local
807 lcn = 0; in ntfs_mapping_pairs_decompress_i()
826 rl->lcn = (LCN)LCN_RL_NOT_MAPPED; in ntfs_mapping_pairs_decompress_i()
889 rl[rlpos].lcn = (LCN)LCN_HOLE; in ntfs_mapping_pairs_decompress_i()
899 lcn += deltaxcn; in ntfs_mapping_pairs_decompress_i()
911 if (lcn == (LCN)-1) in ntfs_mapping_pairs_decompress_i()
916 if (lcn < (LCN)-1) { in ntfs_mapping_pairs_decompress_i()
922 if ((lcn != (LCN)-1) && !rl[rlpos].length) { in ntfs_mapping_pairs_decompress_i()
928 rl[rlpos].lcn = lcn; in ntfs_mapping_pairs_decompress_i()
976 rl[rlpos].lcn = (LCN)LCN_RL_NOT_MAPPED; in ntfs_mapping_pairs_decompress_i()
989 rl[rlpos].lcn = (LCN)LCN_ENOENT; in ntfs_mapping_pairs_decompress_i()
991 rl[rlpos].lcn = (LCN)LCN_RL_NOT_MAPPED; in ntfs_mapping_pairs_decompress_i()
1074 if (rl[i].lcn >= (LCN)0) in ntfs_rl_vcn_to_lcn()
1075 return rl[i].lcn + (vcn - rl[i].vcn); in ntfs_rl_vcn_to_lcn()
1076 return rl[i].lcn; in ntfs_rl_vcn_to_lcn()
1083 if (rl[i].lcn < (LCN)0) in ntfs_rl_vcn_to_lcn()
1084 return rl[i].lcn; in ntfs_rl_vcn_to_lcn()
1137 if (rl->lcn < (LCN)0) { in ntfs_rl_pread()
1138 if (rl->lcn != (LCN)LCN_HOLE) in ntfs_rl_pread()
1154 bytes_read = ntfs_pread(vol->dev, (rl->lcn << in ntfs_rl_pread()
1228 if (rl->lcn < (LCN)0) { in ntfs_rl_pwrite()
1230 if (rl->lcn != (LCN)LCN_HOLE) in ntfs_rl_pwrite()
1246 written = ntfs_pwrite(vol->dev, (rl->lcn << in ntfs_rl_pwrite()
1363 if (rl->length < 0 || rl->lcn < LCN_HOLE) in ntfs_get_size_for_mapping_pairs()
1375 if (rl->lcn >= 0 || vol->major_ver < 3) { in ntfs_get_size_for_mapping_pairs()
1376 prev_lcn = rl->lcn; in ntfs_get_size_for_mapping_pairs()
1377 if (rl->lcn >= 0) in ntfs_get_size_for_mapping_pairs()
1387 if (rl->length < 0 || rl->lcn < LCN_HOLE) in ntfs_get_size_for_mapping_pairs()
1398 if (rl->lcn >= 0 || vol->major_ver < 3) { in ntfs_get_size_for_mapping_pairs()
1400 rls += ntfs_get_nr_significant_bytes(rl->lcn - in ntfs_get_size_for_mapping_pairs()
1402 prev_lcn = rl->lcn; in ntfs_get_size_for_mapping_pairs()
1408 if (rl->lcn == LCN_RL_NOT_MAPPED) in ntfs_get_size_for_mapping_pairs()
1525 if (rl->length < 0 || rl->lcn < LCN_HOLE) in ntfs_mapping_pairs_build()
1542 if (rl->lcn >= 0 || vol->major_ver < 3) { in ntfs_mapping_pairs_build()
1543 prev_lcn = rl->lcn; in ntfs_mapping_pairs_build()
1544 if (rl->lcn >= 0) in ntfs_mapping_pairs_build()
1565 if (rl->length < 0 || rl->lcn < LCN_HOLE) in ntfs_mapping_pairs_build()
1581 if (rl->lcn >= 0 || vol->major_ver < 3) { in ntfs_mapping_pairs_build()
1584 len_len, dst_max, rl->lcn - prev_lcn); in ntfs_mapping_pairs_build()
1587 prev_lcn = rl->lcn; in ntfs_mapping_pairs_build()
1619 if (rl->lcn == LCN_RL_NOT_MAPPED) in ntfs_mapping_pairs_build()
1694 rl->lcn = (LCN)LCN_ENOENT; in ntfs_rl_truncate()
1728 if (rlc->lcn < 0) { in ntfs_rl_sparse()
1729 if (rlc->lcn != LCN_HOLE) { in ntfs_rl_sparse()
1758 if (rlc->lcn < 0) { in ntfs_rl_get_compressed_size()
1759 if (rlc->lcn != LCN_HOLE) { in ntfs_rl_get_compressed_size()
1777 (R)->lcn = L; \
1807 LCN lcn = rl->lcn; in test_rl_dump_runlist() local
1816 if (lcn < (LCN)0) { in test_rl_dump_runlist()
1817 int ind = -lcn - 1; in test_rl_dump_runlist()
1825 rl->vcn, rl->lcn, rl->length); in test_rl_dump_runlist()