Lines Matching refs:type
133 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock()
165 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_map_runlist_nolock()
588 static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, in ntfs_attr_find() argument
612 if (unlikely(le32_to_cpu(a->type) > le32_to_cpu(type) || in ntfs_attr_find()
613 a->type == AT_END)) in ntfs_attr_find()
617 if (a->type != type) in ntfs_attr_find()
856 static int ntfs_external_attr_find(const ATTR_TYPE type, in ntfs_external_attr_find() argument
873 ntfs_debug("Entering for inode 0x%lx, type 0x%x.", ni->mft_no, type); in ntfs_external_attr_find()
881 if (type == AT_END) in ntfs_external_attr_find()
914 if (le32_to_cpu(al_entry->type) > le32_to_cpu(type)) in ntfs_external_attr_find()
916 if (type != al_entry->type) in ntfs_external_attr_find()
971 next_al_entry->type == al_entry->type && in ntfs_external_attr_find()
1047 if (a->type == AT_END) in ntfs_external_attr_find()
1058 if (al_entry->type != a->type) in ntfs_external_attr_find()
1104 if (type == AT_END) { in ntfs_external_attr_find()
1140 err = ntfs_attr_find(type, name, name_len, ic, val, val_len, in ntfs_external_attr_find()
1186 int ntfs_attr_lookup(const ATTR_TYPE type, const ntfschar *name, in ntfs_attr_lookup() argument
1201 if (!NInoAttrList(base_ni) || type == AT_ATTRIBUTE_LIST) in ntfs_attr_lookup()
1202 return ntfs_attr_find(type, name, name_len, ic, val, val_len, in ntfs_attr_lookup()
1204 return ntfs_external_attr_find(type, name, name_len, ic, lowest_vcn, in ntfs_attr_lookup()
1306 const ATTR_TYPE type) in ntfs_attr_find_in_attrdef() argument
1311 BUG_ON(!type); in ntfs_attr_find_in_attrdef()
1313 vol->attrdef_size && ad->type; ++ad) { in ntfs_attr_find_in_attrdef()
1315 if (likely(le32_to_cpu(ad->type) < le32_to_cpu(type))) in ntfs_attr_find_in_attrdef()
1318 if (likely(ad->type == type)) in ntfs_attr_find_in_attrdef()
1325 le32_to_cpu(type)); in ntfs_attr_find_in_attrdef()
1341 int ntfs_attr_size_bounds_check(const ntfs_volume *vol, const ATTR_TYPE type, in ntfs_attr_size_bounds_check() argument
1351 if (unlikely(type == AT_ATTRIBUTE_LIST && size > 256 * 1024)) in ntfs_attr_size_bounds_check()
1354 ad = ntfs_attr_find_in_attrdef(vol, type); in ntfs_attr_size_bounds_check()
1377 int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, const ATTR_TYPE type) in ntfs_attr_can_be_non_resident() argument
1382 ad = ntfs_attr_find_in_attrdef(vol, type); in ntfs_attr_can_be_non_resident()
1409 int ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPE type) in ntfs_attr_can_be_resident() argument
1411 if (type == AT_INDEX_ALLOCATION) in ntfs_attr_can_be_resident()
1552 err = ntfs_attr_can_be_non_resident(vol, ni->type); in ntfs_attr_make_non_resident()
1623 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_attr_make_non_resident()
1790 (unsigned)le32_to_cpu(ni->type), in ntfs_attr_make_non_resident()
1792 ((ni->type == AT_DATA) && in ntfs_attr_make_non_resident()
1929 (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_allocation()
1948 err = ntfs_attr_size_bounds_check(vol, ni->type, new_alloc_size); in ntfs_attr_extend_allocation()
1963 le32_to_cpu(ni->type)); in ntfs_attr_extend_allocation()
1973 le32_to_cpu(ni->type)); in ntfs_attr_extend_allocation()
2030 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_attr_extend_allocation()
2100 (unsigned)le32_to_cpu(ni->type), err); in ntfs_attr_extend_allocation()
2132 if (ni->type == AT_ATTRIBUTE_LIST || in ntfs_attr_extend_allocation()
2133 ni->type == AT_STANDARD_INFORMATION) { in ntfs_attr_extend_allocation()
2164 if ((start >= 0 && start <= allocated_size) || ni->type != AT_DATA || in ntfs_attr_extend_allocation()
2194 (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_allocation()
2230 (unsigned)le32_to_cpu(ni->type), err); in ntfs_attr_extend_allocation()
2243 (unsigned)le32_to_cpu(ni->type), err); in ntfs_attr_extend_allocation()
2276 (unsigned)le32_to_cpu(ni->type), err); in ntfs_attr_extend_allocation()
2311 (unsigned)le32_to_cpu(ni->type), err); in ntfs_attr_extend_allocation()
2330 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_attr_extend_allocation()
2381 (unsigned)le32_to_cpu(ni->type), err); in ntfs_attr_extend_allocation()
2385 if (ntfs_attr_lookup(ni->type, ni->name, ni->name_len, CASE_SENSITIVE, in ntfs_attr_extend_allocation()