Lines Matching refs:name
23 .name = (const unsigned char *)"..",
61 const struct xfs_name *name) in xfs_ascii_ci_hashname() argument
66 for (i = 0, hash = 0; i < name->len; i++) in xfs_ascii_ci_hashname()
67 hash = tolower(name->name[i]) ^ rol32(hash, 7); in xfs_ascii_ci_hashname()
75 const unsigned char *name, in xfs_ascii_ci_compname() argument
86 if (args->name[i] == name[i]) in xfs_ascii_ci_compname()
88 if (tolower(args->name[i]) != tolower(name[i])) in xfs_ascii_ci_compname()
258 const struct xfs_name *name, in xfs_dir_createname() argument
280 args->name = name->name; in xfs_dir_createname()
281 args->namelen = name->len; in xfs_dir_createname()
282 args->filetype = name->type; in xfs_dir_createname()
283 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_createname()
326 const unsigned char *name, in xfs_dir_cilookup_result() argument
339 memcpy(args->value, name, len); in xfs_dir_cilookup_result()
354 const struct xfs_name *name, in xfs_dir_lookup() argument
376 args->name = name->name; in xfs_dir_lookup()
377 args->namelen = name->len; in xfs_dir_lookup()
378 args->filetype = name->type; in xfs_dir_lookup()
379 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_lookup()
415 ci_name->name = args->value; in xfs_dir_lookup()
432 struct xfs_name *name, in xfs_dir_removename() argument
448 args->name = name->name; in xfs_dir_removename()
449 args->namelen = name->len; in xfs_dir_removename()
450 args->filetype = name->type; in xfs_dir_removename()
451 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_removename()
490 const struct xfs_name *name, /* name of entry to replace */ in xfs_dir_replace() argument
509 args->name = name->name; in xfs_dir_replace()
510 args->namelen = name->len; in xfs_dir_replace()
511 args->filetype = name->type; in xfs_dir_replace()
512 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_replace()
551 struct xfs_name *name) /* name of entry to add */ in xfs_dir_canenter() argument
553 return xfs_dir_createname(tp, dp, name, 0, 0); in xfs_dir_canenter()
736 const void *name, in xfs_dir2_namecheck() argument
747 return !memchr(name, '/', length) && !memchr(name, 0, length); in xfs_dir2_namecheck()
753 const struct xfs_name *name) in xfs_dir2_hashname() argument
756 return xfs_ascii_ci_hashname(name); in xfs_dir2_hashname()
757 return xfs_da_hashname(name->name, name->len); in xfs_dir2_hashname()
763 const unsigned char *name, in xfs_dir2_compname() argument
767 return xfs_ascii_ci_compname(args, name, len); in xfs_dir2_compname()
768 return xfs_da_compname(args, name, len); in xfs_dir2_compname()