• Home
  • Raw
  • Download

Lines Matching refs:a

530 	ATTR_RECORD *a;  in ntfs_read_locked_inode()  local
630 a = ctx->attr; in ntfs_read_locked_inode()
632 if ((u8 *)a + le16_to_cpu(a->data.resident.value_offset) in ntfs_read_locked_inode()
633 + le32_to_cpu(a->data.resident.value_length) > in ntfs_read_locked_inode()
638 si = (STANDARD_INFORMATION*)((u8*)a + in ntfs_read_locked_inode()
639 le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_inode()
678 a = ctx->attr; in ntfs_read_locked_inode()
679 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
684 if (a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_locked_inode()
685 a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_inode()
686 if (a->non_resident) { in ntfs_read_locked_inode()
702 ni->attr_list_size = (u32)ntfs_attr_size(a); in ntfs_read_locked_inode()
710 if (a->non_resident) { in ntfs_read_locked_inode()
712 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
722 a, NULL); in ntfs_read_locked_inode()
733 sle64_to_cpu(a->data.non_resident. in ntfs_read_locked_inode()
740 if ((u8*)a + le16_to_cpu(a->data.resident.value_offset) in ntfs_read_locked_inode()
742 a->data.resident.value_length) > in ntfs_read_locked_inode()
749 memcpy(ni->attr_list, (u8*)a + le16_to_cpu( in ntfs_read_locked_inode()
750 a->data.resident.value_offset), in ntfs_read_locked_inode()
752 a->data.resident.value_length)); in ntfs_read_locked_inode()
780 a = ctx->attr; in ntfs_read_locked_inode()
782 if (unlikely(a->non_resident)) { in ntfs_read_locked_inode()
788 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_inode()
789 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_inode()
800 if (a->flags & ATTR_COMPRESSION_MASK) in ntfs_read_locked_inode()
802 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
803 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
810 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_inode()
812 ir = (INDEX_ROOT*)((u8*)a + in ntfs_read_locked_inode()
813 le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_inode()
814 ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length); in ntfs_read_locked_inode()
907 a = ctx->attr; in ntfs_read_locked_inode()
908 if (!a->non_resident) { in ntfs_read_locked_inode()
917 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_inode()
919 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_inode()
925 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
930 if (a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_inode()
935 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
940 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
946 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_inode()
948 a->data.non_resident.initialized_size); in ntfs_read_locked_inode()
950 a->data.non_resident.allocated_size); in ntfs_read_locked_inode()
1030 a = ctx->attr; in ntfs_read_locked_inode()
1032 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_SPARSE)) { in ntfs_read_locked_inode()
1033 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
1045 if ((a->flags & ATTR_COMPRESSION_MASK) in ntfs_read_locked_inode()
1053 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_inode()
1056 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
1064 if (a->non_resident) { in ntfs_read_locked_inode()
1067 if (NInoCompressed(ni) && a->data.non_resident. in ntfs_read_locked_inode()
1074 a->data.non_resident. in ntfs_read_locked_inode()
1079 if (a->data.non_resident.compression_unit) { in ntfs_read_locked_inode()
1081 (a->data.non_resident. in ntfs_read_locked_inode()
1089 1U << a->data. in ntfs_read_locked_inode()
1100 a->data.non_resident. in ntfs_read_locked_inode()
1103 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
1110 a->data.non_resident.data_size); in ntfs_read_locked_inode()
1112 a->data.non_resident.initialized_size); in ntfs_read_locked_inode()
1114 a->data.non_resident.allocated_size); in ntfs_read_locked_inode()
1117 a->data.resident.value_length); in ntfs_read_locked_inode()
1118 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_read_locked_inode()
1120 a->data.resident.value_offset); in ntfs_read_locked_inode()
1205 ATTR_RECORD *a; in ntfs_read_locked_attr_inode() local
1243 a = ctx->attr; in ntfs_read_locked_attr_inode()
1244 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_SPARSE)) { in ntfs_read_locked_attr_inode()
1245 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_attr_inode()
1265 if ((a->flags & ATTR_COMPRESSION_MASK) != in ntfs_read_locked_attr_inode()
1285 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_attr_inode()
1288 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_attr_inode()
1313 if (!a->non_resident) { in ntfs_read_locked_attr_inode()
1315 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_attr_inode()
1316 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_attr_inode()
1329 a->data.resident.value_length); in ntfs_read_locked_attr_inode()
1330 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_read_locked_attr_inode()
1331 le16_to_cpu(a->data.resident.value_offset); in ntfs_read_locked_attr_inode()
1343 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_attr_inode()
1345 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_attr_inode()
1351 if (NInoCompressed(ni) && a->data.non_resident. in ntfs_read_locked_attr_inode()
1356 a->data.non_resident. in ntfs_read_locked_attr_inode()
1361 if (a->data.non_resident.compression_unit) { in ntfs_read_locked_attr_inode()
1363 (a->data.non_resident. in ntfs_read_locked_attr_inode()
1370 a->data.non_resident. in ntfs_read_locked_attr_inode()
1378 a->data.non_resident.compressed_size); in ntfs_read_locked_attr_inode()
1380 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_attr_inode()
1385 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_attr_inode()
1387 a->data.non_resident.initialized_size); in ntfs_read_locked_attr_inode()
1389 a->data.non_resident.allocated_size); in ntfs_read_locked_attr_inode()
1472 ATTR_RECORD *a; in ntfs_read_locked_index_inode() local
1512 a = ctx->attr; in ntfs_read_locked_index_inode()
1514 if (unlikely(a->non_resident)) { in ntfs_read_locked_index_inode()
1519 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_index_inode()
1520 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_index_inode()
1529 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_ENCRYPTED | in ntfs_read_locked_index_inode()
1535 ir = (INDEX_ROOT*)((u8*)a + le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_index_inode()
1536 ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length); in ntfs_read_locked_index_inode()
1609 a = ctx->attr; in ntfs_read_locked_index_inode()
1610 if (!a->non_resident) { in ntfs_read_locked_index_inode()
1618 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_index_inode()
1620 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_index_inode()
1625 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_index_inode()
1630 if (a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_index_inode()
1634 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_index_inode()
1639 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_index_inode()
1644 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_index_inode()
1646 a->data.non_resident.initialized_size); in ntfs_read_locked_index_inode()
1647 ni->allocated_size = sle64_to_cpu(a->data.non_resident.allocated_size); in ntfs_read_locked_index_inode()
1756 ATTR_RECORD *a; in ntfs_read_inode_mount() local
1867 a = ctx->attr; in ntfs_read_inode_mount()
1868 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_inode_mount()
1873 if (a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_inode_mount()
1874 a->flags & ATTR_IS_SPARSE) { in ntfs_read_inode_mount()
1875 if (a->non_resident) { in ntfs_read_inode_mount()
1890 ni->attr_list_size = (u32)ntfs_attr_size(a); in ntfs_read_inode_mount()
1901 if (a->non_resident) { in ntfs_read_inode_mount()
1903 if (a->data.non_resident.lowest_vcn) { in ntfs_read_inode_mount()
1911 a, NULL); in ntfs_read_inode_mount()
1923 sle64_to_cpu(a->data. in ntfs_read_inode_mount()
1931 if ((u8*)a + le16_to_cpu( in ntfs_read_inode_mount()
1932 a->data.resident.value_offset) + in ntfs_read_inode_mount()
1934 a->data.resident.value_length) > in ntfs_read_inode_mount()
1941 memcpy(ni->attr_list, (u8*)a + le16_to_cpu( in ntfs_read_inode_mount()
1942 a->data.resident.value_offset), in ntfs_read_inode_mount()
1944 a->data.resident.value_length)); in ntfs_read_inode_mount()
2009 a = NULL; in ntfs_read_inode_mount()
2016 a = ctx->attr; in ntfs_read_inode_mount()
2018 if (!a->non_resident) { in ntfs_read_inode_mount()
2025 if (a->flags & ATTR_COMPRESSION_MASK || in ntfs_read_inode_mount()
2026 a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_inode_mount()
2027 a->flags & ATTR_IS_SPARSE) { in ntfs_read_inode_mount()
2041 nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_read_inode_mount()
2052 if (a->data.non_resident.lowest_vcn) { in ntfs_read_inode_mount()
2061 a->data.non_resident.allocated_size) in ntfs_read_inode_mount()
2065 a->data.non_resident.data_size); in ntfs_read_inode_mount()
2067 a->data.non_resident.initialized_size); in ntfs_read_inode_mount()
2069 a->data.non_resident.allocated_size); in ntfs_read_inode_mount()
2127 highest_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn); in ntfs_read_inode_mount()
2136 a->data.non_resident.lowest_vcn)) { in ntfs_read_inode_mount()
2147 if (!a) { in ntfs_read_inode_mount()
2364 ATTR_RECORD *a; in ntfs_truncate() local
2415 a = ctx->attr; in ntfs_truncate()
2421 old_size = ntfs_attr_size(a); in ntfs_truncate()
2490 if (a->non_resident) in ntfs_truncate()
2495 !ntfs_resident_attr_value_resize(m, a, new_size)) { in ntfs_truncate()
2501 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_truncate()
2502 le16_to_cpu(a->data.resident.value_offset); in ntfs_truncate()
2613 highest_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn); in ntfs_truncate()
2643 a->data.non_resident.initialized_size = in ntfs_truncate()
2646 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()
2698 a = ctx->attr; in ntfs_truncate()
2740 err = ntfs_attr_record_resize(m, a, mp_size + in ntfs_truncate()
2741 le16_to_cpu(a->data.non_resident.mapping_pairs_offset)); in ntfs_truncate()
2746 err = ntfs_mapping_pairs_build(vol, (u8*)a + in ntfs_truncate()
2747 le16_to_cpu(a->data.non_resident.mapping_pairs_offset), in ntfs_truncate()
2759 a->data.non_resident.highest_vcn = cpu_to_sle64((new_alloc_size >> in ntfs_truncate()
2763 a->data.non_resident.allocated_size = cpu_to_sle64(new_alloc_size); in ntfs_truncate()
2769 a->data.non_resident.compressed_size = cpu_to_sle64( in ntfs_truncate()
2790 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()