Lines Matching defs:name
13 * Short name translation 1999, 2001 by Wolfram Pienkoss <wp@bszh.de>
76 * and will use existing name which isn't specified name by user.
94 * case sensitive name which is specified by user if this is
104 static unsigned int __vfat_striptail_len(unsigned int len, const char *name)
106 while (len && name[len - 1] == '.')
113 return __vfat_striptail_len(qstr->len, qstr->name);
117 * Compute the hash for the vfat name corresponding to the dentry.
118 * Note: if the name is invalid, we leave the hash code unchanged so
124 qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr));
129 * Compute the hash for the vfat name corresponding to the dentry.
130 * Note: if the name is invalid, we leave the hash code unchanged so
137 const unsigned char *name;
141 name = qstr->name;
146 hash = partial_name_hash(nls_tolower(t, *name++), hash);
156 unsigned int len, const char *str, const struct qstr *name)
162 alen = vfat_striptail_len(name);
165 if (nls_strnicmp(t, name->name, str, alen) == 0)
175 unsigned int len, const char *str, const struct qstr *name)
180 alen = vfat_striptail_len(name);
183 if (strncmp(name->name, str, alen) == 0)
201 /* Characters that are undesirable in an MS-DOS file name */
236 static int vfat_find_form(struct inode *dir, unsigned char *name)
239 int err = fat_scan(dir, name, &sinfo);
254 * File name and extension name is contain uppercase/lowercase
257 * 2) File name is 8.3 format, but it contain the uppercase and
344 /* Now, we need to create a shortname from the long name */
363 * uses the extension as the name and sets no extension.
511 xlate_to_uni(const unsigned char *name, int len, unsigned char *outname,
521 *outlen = utf8s_to_utf16s(name, len, UTF16_HOST_ENDIAN,
530 for (i = 0, ip = name, op = outname, *outlen = 0;
579 static int vfat_build_slots(struct inode *dir, const unsigned char *name,
602 err = xlate_to_uni(name, len, (unsigned char *)uname, &ulen, &usize,
621 /* build the entry of long file name */
640 /* build the entry of 8.3 alias name */
642 memcpy(de->name, msdos_name, MSDOS_NAME);
672 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts,
698 return fat_search_long(dir, qname->name, len, sinfo);
737 * another name (longname vs 8.3 alias of it) in past.
1062 .name = "vfat",