Lines Matching defs:name
39 * @na->name and @na->name_len are then ignored.
65 if (na->name_len && memcmp(ni->name, na->name,
82 * In that case, @na->name and @na->name_len should be set to NULL and 0,
102 ni->name = na->name;
107 BUG_ON(na->name);
116 * We have I30 global constant as an optimization as it is the name
119 * thus the fraction of named attributes with name != I30 is actually
122 if (na->name_len && na->name != I30) {
125 BUG_ON(!na->name);
127 ni->name = kmalloc(i + sizeof(ntfschar), GFP_ATOMIC);
128 if (!ni->name)
130 memcpy(ni->name, na->name, i);
131 ni->name[na->name_len] = 0;
165 na.name = NULL;
195 * @name: Unicode name of the attribute (NULL if unnamed)
196 * @name_len: length of @name in Unicode characters (0 if unnamed)
199 * @type, @name, and @name_len, which is present in the base mft record
215 ntfschar *name, u32 name_len)
226 na.name = name;
256 * @name: Unicode name of the index
257 * @name_len: length of @name in Unicode characters
259 * Obtain the (fake) struct inode corresponding to the index specified by @name
272 struct inode *ntfs_index_iget(struct inode *base_vi, ntfschar *name,
281 na.name = name;
363 * NOTE: ni->mft_no, ni->state, ni->type, ni->name, and ni->name_len are left
413 ni->name = NULL;
423 * Search all file name attributes in the inode described by the attribute
458 ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name "
464 "name. You should run chkdsk.");
468 ntfs_error(ctx->ntfs_ino->vol->sb, "File name with "
475 "name. You should run chkdsk.");
491 "doesn't match number of name attributes. You "
575 * a long file name and a short file name as separate entries, so if
787 /* Ensure the attribute name is placed before the value. */
790 ntfs_error(vol->sb, "$INDEX_ROOT attribute name is "
877 ni->name = I30;
914 * Ensure the attribute name is placed before the mapping pairs
920 ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name "
995 ni->name = NULL;
1020 * name of this inode from the mft record as the name
1239 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len,
1314 /* Ensure the attribute name is placed before the value. */
1317 ntfs_error(vol->sb, "Attribute name is placed after "
1340 * Ensure the attribute name is placed before the mapping pairs
1346 ntfs_error(vol->sb, "Attribute name is placed after "
1504 err = ntfs_attr_lookup(AT_INDEX_ROOT, ni->name, ni->name_len,
1518 /* Ensure the attribute name is placed before the value. */
1521 ntfs_error(vol->sb, "$INDEX_ROOT attribute name is placed "
1597 err = ntfs_attr_lookup(AT_INDEX_ALLOCATION, ni->name, ni->name_len,
1616 * Ensure the attribute name is placed before the mapping pairs array.
1621 ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name is "
1657 bvi = ntfs_attr_iget(base_vi, AT_BITMAP, ni->name, ni->name_len);
1773 ni->name = NULL;
2208 if (ni->name_len && ni->name != I30) {
2210 BUG_ON(!ni->name);
2211 kfree(ni->name);
2401 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len,