• Home
  • Raw
  • Download

Lines Matching refs:a

529 	ATTR_RECORD *a;  in ntfs_read_locked_inode()  local
629 a = ctx->attr; in ntfs_read_locked_inode()
631 si = (STANDARD_INFORMATION*)((u8*)a + in ntfs_read_locked_inode()
632 le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_inode()
671 a = ctx->attr; in ntfs_read_locked_inode()
672 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
677 if (a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_locked_inode()
678 a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_inode()
679 if (a->non_resident) { in ntfs_read_locked_inode()
695 ni->attr_list_size = (u32)ntfs_attr_size(a); in ntfs_read_locked_inode()
703 if (a->non_resident) { in ntfs_read_locked_inode()
705 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
715 a, NULL); in ntfs_read_locked_inode()
726 sle64_to_cpu(a->data.non_resident. in ntfs_read_locked_inode()
733 if ((u8*)a + le16_to_cpu(a->data.resident.value_offset) in ntfs_read_locked_inode()
735 a->data.resident.value_length) > in ntfs_read_locked_inode()
742 memcpy(ni->attr_list, (u8*)a + le16_to_cpu( in ntfs_read_locked_inode()
743 a->data.resident.value_offset), in ntfs_read_locked_inode()
745 a->data.resident.value_length)); in ntfs_read_locked_inode()
773 a = ctx->attr; in ntfs_read_locked_inode()
775 if (unlikely(a->non_resident)) { in ntfs_read_locked_inode()
781 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_inode()
782 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_inode()
793 if (a->flags & ATTR_COMPRESSION_MASK) in ntfs_read_locked_inode()
795 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
796 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
803 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_inode()
805 ir = (INDEX_ROOT*)((u8*)a + in ntfs_read_locked_inode()
806 le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_inode()
807 ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length); in ntfs_read_locked_inode()
900 a = ctx->attr; in ntfs_read_locked_inode()
901 if (!a->non_resident) { in ntfs_read_locked_inode()
910 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_inode()
912 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_inode()
918 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
923 if (a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_inode()
928 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
933 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
939 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_inode()
941 a->data.non_resident.initialized_size); in ntfs_read_locked_inode()
943 a->data.non_resident.allocated_size); in ntfs_read_locked_inode()
1023 a = ctx->attr; in ntfs_read_locked_inode()
1025 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_SPARSE)) { in ntfs_read_locked_inode()
1026 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
1038 if ((a->flags & ATTR_COMPRESSION_MASK) in ntfs_read_locked_inode()
1046 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_inode()
1049 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
1057 if (a->non_resident) { in ntfs_read_locked_inode()
1060 if (NInoCompressed(ni) && a->data.non_resident. in ntfs_read_locked_inode()
1067 a->data.non_resident. in ntfs_read_locked_inode()
1072 if (a->data.non_resident.compression_unit) { in ntfs_read_locked_inode()
1074 (a->data.non_resident. in ntfs_read_locked_inode()
1082 1U << a->data. in ntfs_read_locked_inode()
1093 a->data.non_resident. in ntfs_read_locked_inode()
1096 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
1103 a->data.non_resident.data_size); in ntfs_read_locked_inode()
1105 a->data.non_resident.initialized_size); in ntfs_read_locked_inode()
1107 a->data.non_resident.allocated_size); in ntfs_read_locked_inode()
1110 a->data.resident.value_length); in ntfs_read_locked_inode()
1111 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_read_locked_inode()
1113 a->data.resident.value_offset); in ntfs_read_locked_inode()
1198 ATTR_RECORD *a; in ntfs_read_locked_attr_inode() local
1236 a = ctx->attr; in ntfs_read_locked_attr_inode()
1237 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_SPARSE)) { in ntfs_read_locked_attr_inode()
1238 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_attr_inode()
1258 if ((a->flags & ATTR_COMPRESSION_MASK) != in ntfs_read_locked_attr_inode()
1278 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_attr_inode()
1281 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_attr_inode()
1306 if (!a->non_resident) { in ntfs_read_locked_attr_inode()
1308 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_attr_inode()
1309 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_attr_inode()
1322 a->data.resident.value_length); in ntfs_read_locked_attr_inode()
1323 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_read_locked_attr_inode()
1324 le16_to_cpu(a->data.resident.value_offset); in ntfs_read_locked_attr_inode()
1336 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_attr_inode()
1338 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_attr_inode()
1344 if (NInoCompressed(ni) && a->data.non_resident. in ntfs_read_locked_attr_inode()
1349 a->data.non_resident. in ntfs_read_locked_attr_inode()
1354 if (a->data.non_resident.compression_unit) { in ntfs_read_locked_attr_inode()
1356 (a->data.non_resident. in ntfs_read_locked_attr_inode()
1363 a->data.non_resident. in ntfs_read_locked_attr_inode()
1371 a->data.non_resident.compressed_size); in ntfs_read_locked_attr_inode()
1373 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_attr_inode()
1378 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_attr_inode()
1380 a->data.non_resident.initialized_size); in ntfs_read_locked_attr_inode()
1382 a->data.non_resident.allocated_size); in ntfs_read_locked_attr_inode()
1465 ATTR_RECORD *a; in ntfs_read_locked_index_inode() local
1505 a = ctx->attr; in ntfs_read_locked_index_inode()
1507 if (unlikely(a->non_resident)) { in ntfs_read_locked_index_inode()
1512 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_index_inode()
1513 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_index_inode()
1522 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_ENCRYPTED | in ntfs_read_locked_index_inode()
1528 ir = (INDEX_ROOT*)((u8*)a + le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_index_inode()
1529 ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length); in ntfs_read_locked_index_inode()
1602 a = ctx->attr; in ntfs_read_locked_index_inode()
1603 if (!a->non_resident) { in ntfs_read_locked_index_inode()
1611 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_index_inode()
1613 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_index_inode()
1618 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_index_inode()
1623 if (a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_index_inode()
1627 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_index_inode()
1632 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_index_inode()
1637 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_index_inode()
1639 a->data.non_resident.initialized_size); in ntfs_read_locked_index_inode()
1640 ni->allocated_size = sle64_to_cpu(a->data.non_resident.allocated_size); in ntfs_read_locked_index_inode()
1749 ATTR_RECORD *a; in ntfs_read_inode_mount() local
1847 a = ctx->attr; in ntfs_read_inode_mount()
1848 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_inode_mount()
1853 if (a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_inode_mount()
1854 a->flags & ATTR_IS_SPARSE) { in ntfs_read_inode_mount()
1855 if (a->non_resident) { in ntfs_read_inode_mount()
1870 ni->attr_list_size = (u32)ntfs_attr_size(a); in ntfs_read_inode_mount()
1877 if (a->non_resident) { in ntfs_read_inode_mount()
1879 if (a->data.non_resident.lowest_vcn) { in ntfs_read_inode_mount()
1887 a, NULL); in ntfs_read_inode_mount()
1899 sle64_to_cpu(a->data. in ntfs_read_inode_mount()
1907 if ((u8*)a + le16_to_cpu( in ntfs_read_inode_mount()
1908 a->data.resident.value_offset) + in ntfs_read_inode_mount()
1910 a->data.resident.value_length) > in ntfs_read_inode_mount()
1917 memcpy(ni->attr_list, (u8*)a + le16_to_cpu( in ntfs_read_inode_mount()
1918 a->data.resident.value_offset), in ntfs_read_inode_mount()
1920 a->data.resident.value_length)); in ntfs_read_inode_mount()
1985 a = NULL; in ntfs_read_inode_mount()
1992 a = ctx->attr; in ntfs_read_inode_mount()
1994 if (!a->non_resident) { in ntfs_read_inode_mount()
2001 if (a->flags & ATTR_COMPRESSION_MASK || in ntfs_read_inode_mount()
2002 a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_inode_mount()
2003 a->flags & ATTR_IS_SPARSE) { in ntfs_read_inode_mount()
2017 nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_read_inode_mount()
2028 if (a->data.non_resident.lowest_vcn) { in ntfs_read_inode_mount()
2037 a->data.non_resident.allocated_size) in ntfs_read_inode_mount()
2041 a->data.non_resident.data_size); in ntfs_read_inode_mount()
2043 a->data.non_resident.initialized_size); in ntfs_read_inode_mount()
2045 a->data.non_resident.allocated_size); in ntfs_read_inode_mount()
2103 highest_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn); in ntfs_read_inode_mount()
2112 a->data.non_resident.lowest_vcn)) { in ntfs_read_inode_mount()
2123 if (!a) { in ntfs_read_inode_mount()
2340 ATTR_RECORD *a; in ntfs_truncate() local
2392 a = ctx->attr; in ntfs_truncate()
2398 old_size = ntfs_attr_size(a); in ntfs_truncate()
2467 if (a->non_resident) in ntfs_truncate()
2472 !ntfs_resident_attr_value_resize(m, a, new_size)) { in ntfs_truncate()
2478 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_truncate()
2479 le16_to_cpu(a->data.resident.value_offset); in ntfs_truncate()
2590 highest_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn); in ntfs_truncate()
2620 a->data.non_resident.initialized_size = in ntfs_truncate()
2623 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()
2675 a = ctx->attr; in ntfs_truncate()
2717 attr_len = le32_to_cpu(a->length); in ntfs_truncate()
2718 err = ntfs_attr_record_resize(m, a, mp_size + in ntfs_truncate()
2719 le16_to_cpu(a->data.non_resident.mapping_pairs_offset)); in ntfs_truncate()
2724 err = ntfs_mapping_pairs_build(vol, (u8*)a + in ntfs_truncate()
2725 le16_to_cpu(a->data.non_resident.mapping_pairs_offset), in ntfs_truncate()
2737 a->data.non_resident.highest_vcn = cpu_to_sle64((new_alloc_size >> in ntfs_truncate()
2741 a->data.non_resident.allocated_size = cpu_to_sle64(new_alloc_size); in ntfs_truncate()
2747 a->data.non_resident.compressed_size = cpu_to_sle64( in ntfs_truncate()
2768 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()