Home
last modified time | relevance | path

Searched refs:vcn (Results 1 - 25 of 26) sorted by relevance

12

/third_party/ntfs-3g/libntfs-3g/
H A Drunlist.c174 if ((dst->vcn + dst->length) != src->vcn) in ntfs_rl_are_mergeable()
259 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
263 dst[marker].vcn = dst[marker-1].vcn + dst[marker-1].length; in ntfs_rl_append()
306 disc = (src[0].vcn > 0); in ntfs_rl_insert()
316 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length); in ntfs_rl_insert()
346 dst[marker].vcn in ntfs_rl_insert()
786 VCN vcn; /* Current vcn. */ ntfs_mapping_pairs_decompress_i() local
1054 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) ntfs_rl_vcn_to_lcn() argument
1900 test_rl_pure_src(BOOL contig, BOOL multi, int vcn, int len) test_rl_pure_src() argument
1941 test_rl_pure_test(int test, BOOL contig, BOOL multi, int vcn, int len, runlist_element *file, int size) test_rl_pure_test() argument
[all...]
H A Dcompress.c659 cb_clusters -= rl->length - (cb_start_vcn - rl->vcn); in ntfs_is_cb_compressed()
665 cb_start_vcn = rl->vcn; in ntfs_is_cb_compressed()
666 rl = ntfs_attr_find_vcn(na, rl->vcn); in ntfs_is_cb_compressed()
673 if (rl->vcn < cb_start_vcn) in ntfs_is_cb_compressed()
713 VCN start_vcn, vcn, end_vcn; in ntfs_compressed_attr_pread() local
789 * The first vcn in the first compression block (cb) which we need to in ntfs_compressed_attr_pread()
796 * The first vcn in the cb after the last cb which we need to in ntfs_compressed_attr_pread()
801 /* Number of compression blocks (cbs) in the wanted vcn range. */ in ntfs_compressed_attr_pread()
808 vcn = start_vcn; in ntfs_compressed_attr_pread()
812 rl = ntfs_attr_find_vcn(na, vcn); in ntfs_compressed_attr_pread()
[all...]
H A Dindex.c73 static s64 ntfs_ib_vcn_to_pos(ntfs_index_context *icx, VCN vcn) in ntfs_ib_vcn_to_pos() argument
75 return vcn << icx->vcn_size_bits; in ntfs_ib_vcn_to_pos()
85 s64 ret, vcn = sle64_to_cpu(ib->index_block_vcn); in ntfs_ib_write() local
87 ntfs_log_trace("vcn: %lld\n", (long long)vcn); in ntfs_ib_write()
89 ret = ntfs_attr_mst_pwrite(icx->ia_na, ntfs_ib_vcn_to_pos(icx, vcn), in ntfs_ib_write()
93 (long long)vcn, (unsigned long long)icx->ni->mft_no); in ntfs_ib_write()
200 * Get the subnode vcn to which the index entry refers.
339 static void ntfs_ie_set_vcn(INDEX_ENTRY *ie, VCN vcn) in ntfs_ie_set_vcn() argument
341 *ntfs_ie_get_vcn_addr(ie) = cpu_to_sle64(vcn); in ntfs_ie_set_vcn()
460 ntfs_index_block_inconsistent(const INDEX_BLOCK *ib, u32 block_size, u64 inum, VCN vcn) ntfs_index_block_inconsistent() argument
575 ntfs_ie_lookup(const void *key, const int key_len, ntfs_index_context *icx, INDEX_HEADER *ih, VCN *vcn, INDEX_ENTRY **ie_out) ntfs_ie_lookup() argument
688 ntfs_ib_read(ntfs_index_context *icx, VCN vcn, INDEX_BLOCK *dst) ntfs_ib_read() argument
771 VCN old_vcn, vcn; ntfs_index_lookup() local
966 ntfs_ibm_vcn_to_pos(ntfs_index_context *icx, VCN vcn) ntfs_ibm_vcn_to_pos() argument
997 ntfs_ibm_modify(ntfs_index_context *icx, VCN vcn, int set) ntfs_ibm_modify() argument
1045 ntfs_ibm_set(ntfs_index_context *icx, VCN vcn) ntfs_ibm_set() argument
1050 ntfs_ibm_clear(ntfs_index_context *icx, VCN vcn) ntfs_ibm_clear() argument
1059 s64 vcn, byte, size; ntfs_ibm_get_free() local
1801 VCN vcn; ntfs_index_rm_node() local
2041 s64 vcn; ntfs_index_walk_down() local
2081 s64 vcn; ntfs_index_walk_up() local
[all...]
H A Dlcnalloc.c198 * @start_vcn: vcn to use for the first allocated cluster
258 ntfs_log_perror("%s: vcn: %lld, count: %lld, lcn: %lld", in ntfs_cluster_alloc()
268 rl[0].vcn = start_vcn; in ntfs_cluster_alloc()
394 rl[rlpos].vcn = rl[rlpos - 1].vcn + in ntfs_cluster_alloc()
397 rl[rlpos].vcn = start_vcn; in ntfs_cluster_alloc()
408 (long long)rl[rlpos - 1].vcn, in ntfs_cluster_alloc()
534 rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length; in ntfs_cluster_alloc()
560 rl[rlpos].vcn in ntfs_cluster_alloc()
[all...]
H A Dattrib.c605 * @vcn: map runlist part containing this vcn
607 * Map the part of a runlist containing the @vcn of the ntfs attribute @na.
611 int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn) in ntfs_attr_map_runlist() argument
616 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x, vcn 0x%llx.\n", in ntfs_attr_map_runlist()
617 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type), (long long)vcn); in ntfs_attr_map_runlist()
619 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn); in ntfs_attr_map_runlist()
629 vcn, NULL, 0, ctx)) { in ntfs_attr_map_runlist()
655 static int ntfs_attr_map_partial_runlist(ntfs_attr *na, VCN vcn) in ntfs_attr_map_partial_runlist() argument
674 /* Get the last vcn i in ntfs_attr_map_partial_runlist()
878 ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn) ntfs_attr_vcn_to_lcn() argument
928 ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn) ntfs_attr_find_vcn() argument
[all...]
H A Ddebug.c67 (long long)rl[i].vcn, lcn_str[idx], in ntfs_debug_runlist_dump()
72 (long long)rl[i].vcn, (long long)rl[i].lcn, in ntfs_debug_runlist_dump()
H A Dmft.c746 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE); in ntfs_mft_bitmap_extend_allocation_i()
778 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) { in ntfs_mft_bitmap_extend_allocation_i()
826 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 1); in ntfs_mft_bitmap_extend_allocation_i()
858 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) { in ntfs_mft_bitmap_extend_allocation_i()
872 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 2); in ntfs_mft_bitmap_extend_allocation_i()
1082 old_last_vcn = rl[1].vcn; in ntfs_mft_data_extend_allocation()
1127 rl[1].vcn, NULL, 0, ctx)) { in ntfs_mft_data_extend_allocation()
1176 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 1); in ntfs_mft_data_extend_allocation()
1213 rl[1].vcn, NULL, 0, ctx)) { in ntfs_mft_data_extend_allocation()
H A Ddir.c252 VCN vcn; in ntfs_inode_lookup_by_name() local
386 /* Determine the size of a vcn in the directory index. */ in ntfs_inode_lookup_by_name()
393 /* Get the starting vcn of the index_block holding the child node. */ in ntfs_inode_lookup_by_name()
394 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_inode_lookup_by_name()
398 /* Read the index block starting at vcn. */ in ntfs_inode_lookup_by_name()
399 br = ntfs_attr_mst_pread(ia_na, vcn << index_vcn_size_bits, 1, in ntfs_inode_lookup_by_name()
404 ntfs_log_perror("Failed to read vcn 0x%llx from inode %lld", in ntfs_inode_lookup_by_name()
405 (unsigned long long)vcn, in ntfs_inode_lookup_by_name()
411 ia_na->ni->mft_no, vcn)) { in ntfs_inode_lookup_by_name()
487 vcn in ntfs_inode_lookup_by_name()
[all...]
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsfallocate.c432 begin_common = max(grl->vcn, brl->vcn); in free_common()
433 end_common = min(grl->vcn + glth, brl->vcn + blth); in free_common()
436 brl->lcn + begin_common - brl->vcn, in free_common()
442 - brl->vcn)); in free_common()
465 && (grl->vcn<=(brl->vcn+brl->length)); grl++) { in ntfs_restore_rl()
473 && ((brl->vcn + brl->length) > grl->vcn)) { in ntfs_restore_rl()
[all...]
H A Dntfsmove.c289 if (rl->vcn < -1)
300 rl->vcn, lcn_str[j], rl->length);
303 rl->vcn, rl->lcn, rl->length);
429 res[0].vcn = 0; in find_unused()
684 to->vcn = run->vcn; in move_datarun()
694 (long long)run->vcn, (long long)run->lcn, (long long)run->length, in move_datarun()
695 (long long)to->vcn, (long long)to->lcn, (long long)to->length); in move_datarun()
703 if (from[i].vcn == run->vcn) { in move_datarun()
[all...]
H A Dntfsck.c342 ntfs_log_verbose("vcn: %lld, length: %lld.\n", in get_last_vcn()
343 (long long)rl->vcn, (long long)rl->length); in get_last_vcn()
344 if (rl->vcn<0) in get_last_vcn()
345 res = rl->vcn; in get_last_vcn()
347 res = rl->vcn + rl->length; in get_last_vcn()
364 VCN vcn; in mft_bitmap_load() local
367 vcn = get_last_vcn(mft_bitmap_rl); in mft_bitmap_load()
368 if (vcn<=LCN_EINVAL) { in mft_bitmap_load()
374 mft_bitmap_length = vcn * rawvol->cluster_size; in mft_bitmap_load()
515 // todo: lowest vcn < in check_attr_record()
[all...]
H A Dntfsresize.c663 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len) in rl_set() argument
665 rl->vcn = vcn; in rl_set()
682 ntfs_log_verbose(" %8lld %8lld (0x%08llx) %lld\n", (long long)r->vcn, in dump_run()
756 if (rl[1].length != 0 || rl->vcn) in collect_resize_constraints()
1188 tmp->vcn -= unmapped_len; in rl_fixup()
1238 && ((pold->vcn + pold->length) in replace_runlist()
1239 <= (reprl[0].vcn + lowest_vcn))) { in replace_runlist()
1246 && (pold->vcn < (reprl[0].vcn in replace_runlist()
1787 s64 vcn = 0; alloc_cluster() local
1983 s64 vcn; rl_insert_at_run() local
[all...]
H A Dntfscp.c559 VCN vcn; in sort_runlist() local
581 vcn = 0; in sort_runlist()
583 alctx->rl[k].vcn = vcn; in sort_runlist()
584 vcn += alctx->rl[k].length; in sort_runlist()
587 if (vcn > alctx->wanted_clusters) { in sort_runlist()
589 alctx->rl[k].length -= vcn - alctx->wanted_clusters; in sort_runlist()
590 vcn = alctx->wanted_clusters; in sort_runlist()
597 alctx->rl[k].vcn = vcn; in sort_runlist()
[all...]
H A Dcluster.c99 (long long)runs[j].vcn, in cluster_find()
H A Dntfsfix.c848 && (rl[1].vcn == rl[0].length) in short_mft_selfloc_condition()
879 VCN vcn; in attrlist_selfloc_condition() local
911 vcn = (SELFLOC_LIMIT*vol->mft_record_size) in attrlist_selfloc_condition()
913 levcn = cpu_to_sle64(vcn); in attrlist_selfloc_condition()
985 && !rl[0].vcn in self_mapped_selfloc_condition()
987 && (rl[1].vcn == lowest_vcn) in self_mapped_selfloc_condition()
H A Dmkntfs.c1073 VCN vcn = 0LL; in allocate_scattered_clusters() local
1102 vcn++; in allocate_scattered_clusters()
1104 rl[rlpos].vcn = vcn++; in allocate_scattered_clusters()
1114 rl[rlpos].vcn = vcn; in allocate_scattered_clusters()
1132 rl[rlpos].vcn = vcn; in allocate_scattered_clusters()
1338 * @lowest_vcn: lowest vcn to find (optional, non-resident attributes only)
1510 /* Get the highest vcn in insert_positioned_attr_in_mft_record()
[all...]
H A Dntfswipe.c687 offset - (restart->vcn in wipe_compressed_attribute()
703 if (offset >= (((rlt->vcn) << in wipe_compressed_attribute()
707 size = (rlt->vcn << vol->cluster_size_bits) - offset; in wipe_compressed_attribute()
740 restart->vcn << vol->cluster_size_bits, in wipe_compressed_attribute()
746 "size %lld, vcn %lld", in wipe_compressed_attribute()
748 (long long)size, (long long)rlc->vcn); in wipe_compressed_attribute()
H A Dntfscluster.c410 (long long)runs[i].vcn, in dump_file()
H A Dntfsclone.c649 s64 s = (s64)16384 - rl->vcn * vol->cluster_size;
1356 s64 offset = 0, lcn, vcn; local
1360 vcn = offset / image->ni->vol->cluster_size;
1361 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
H A Dntfsinfo.c1447 (long long)rlc->vcn, in ntfs_dump_attribute_header()
1457 (long long)rlc->vcn, in ntfs_dump_attribute_header()
H A Dplaylog.c655 printf("mft vcn %lld index %d\n", in write_protected()
792 * Adjust the highest vcn according to mapping pairs
813 high_vcn = xrl->vcn - 1; in adjust_high_vcn()
1789 VCN vcn; in create_indx() local
1803 vcn = sle64_to_cpu(action->record.target_vcn); in create_indx()
1805 indx->index_block_vcn = cpu_to_sle64(vcn); in create_indx()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_uvd.c125 bool vcn = ctx->family >= CHIP_RAVEN; in si_uvd_create_decoder() local
128 if (vcn) { in si_uvd_create_decoder()
138 return (vcn) ? radeon_create_decoder(context, templ) in si_uvd_create_decoder()
/third_party/ntfs-3g/include/ntfs-3g/
H A Drunlist.h36 * struct _runlist_element - in memory vcn to lcn mapping array element.
37 * @vcn: starting vcn of the current array element
41 * The last vcn (in fact the last vcn + 1) is reached when length == 0.
43 * When lcn == -1 this means that the count vcns starting at vcn are not
46 struct _runlist_element {/* In memory vcn to lcn mapping structure element. */
47 VCN vcn; /* vcn = Starting virtual cluster number. */ member
55 extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn);
[all...]
H A Dattrib.h313 extern int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn);
316 extern LCN ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn);
317 extern runlist_element *ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn);
H A Dindex.h143 u64 inum, VCN vcn);

Completed in 46 milliseconds

12