Lines Matching refs:type
134 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock()
166 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_map_runlist_nolock()
589 static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, in ntfs_attr_find() argument
613 if (unlikely(le32_to_cpu(a->type) > le32_to_cpu(type) || in ntfs_attr_find()
614 a->type == AT_END)) in ntfs_attr_find()
618 if (a->type != type) in ntfs_attr_find()
857 static int ntfs_external_attr_find(const ATTR_TYPE type, in ntfs_external_attr_find() argument
874 ntfs_debug("Entering for inode 0x%lx, type 0x%x.", ni->mft_no, type); in ntfs_external_attr_find()
882 if (type == AT_END) in ntfs_external_attr_find()
915 if (le32_to_cpu(al_entry->type) > le32_to_cpu(type)) in ntfs_external_attr_find()
917 if (type != al_entry->type) in ntfs_external_attr_find()
972 next_al_entry->type == al_entry->type && in ntfs_external_attr_find()
1048 if (a->type == AT_END) in ntfs_external_attr_find()
1059 if (al_entry->type != a->type) in ntfs_external_attr_find()
1105 if (type == AT_END) { in ntfs_external_attr_find()
1141 err = ntfs_attr_find(type, name, name_len, ic, val, val_len, in ntfs_external_attr_find()
1187 int ntfs_attr_lookup(const ATTR_TYPE type, const ntfschar *name, in ntfs_attr_lookup() argument
1202 if (!NInoAttrList(base_ni) || type == AT_ATTRIBUTE_LIST) in ntfs_attr_lookup()
1203 return ntfs_attr_find(type, name, name_len, ic, val, val_len, in ntfs_attr_lookup()
1205 return ntfs_external_attr_find(type, name, name_len, ic, lowest_vcn, in ntfs_attr_lookup()
1307 const ATTR_TYPE type) in ntfs_attr_find_in_attrdef() argument
1312 BUG_ON(!type); in ntfs_attr_find_in_attrdef()
1314 vol->attrdef_size && ad->type; ++ad) { in ntfs_attr_find_in_attrdef()
1316 if (likely(le32_to_cpu(ad->type) < le32_to_cpu(type))) in ntfs_attr_find_in_attrdef()
1319 if (likely(ad->type == type)) in ntfs_attr_find_in_attrdef()
1326 le32_to_cpu(type)); in ntfs_attr_find_in_attrdef()
1342 int ntfs_attr_size_bounds_check(const ntfs_volume *vol, const ATTR_TYPE type, in ntfs_attr_size_bounds_check() argument
1352 if (unlikely(type == AT_ATTRIBUTE_LIST && size > 256 * 1024)) in ntfs_attr_size_bounds_check()
1355 ad = ntfs_attr_find_in_attrdef(vol, type); in ntfs_attr_size_bounds_check()
1378 int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, const ATTR_TYPE type) in ntfs_attr_can_be_non_resident() argument
1383 ad = ntfs_attr_find_in_attrdef(vol, type); in ntfs_attr_can_be_non_resident()
1410 int ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPE type) in ntfs_attr_can_be_resident() argument
1412 if (type == AT_INDEX_ALLOCATION) in ntfs_attr_can_be_resident()
1553 err = ntfs_attr_can_be_non_resident(vol, ni->type); in ntfs_attr_make_non_resident()
1624 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()