Lines Matching defs:name
27 static int afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen,
29 static int afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen,
90 struct qstr name;
97 struct qstr name;
380 nlen = strnlen(dire->u.name,
387 nlen, dire->u.name);
423 dire->u.name[0] == '.' &&
426 memcmp(dire->u.name, ".__afs", 6) == 0)
430 if (!dir_emit(ctx, dire->u.name, nlen,
532 * Search the directory for a single name
536 static int afs_lookup_one_filldir(struct dir_context *ctx, const char *name,
543 cookie->name.name, cookie->name.len, name, nlen,
550 if (cookie->name.len != nlen ||
551 memcmp(cookie->name.name, name, nlen) != 0) {
565 * Do a lookup of a single name in a directory
566 * - just returns the FID the dentry name maps to if found
575 .name = dentry->d_name,
601 * search the directory for a name
605 static int afs_lookup_filldir(struct dir_context *ctx, const char *name,
613 cookie->name.name, cookie->name.len, name, nlen,
626 } else if (cookie->name.len == nlen &&
627 memcmp(cookie->name.name, name, nlen) == 0) {
772 cookie->name = dentry->d_name;
890 char *buf, *p, *name;
900 memcpy(p, dentry->d_name.name, dentry->d_name.len - 4);
911 name = subs->subs[i];
912 len = dentry->d_name.len - 4 + strlen(name);
918 strcpy(p, name);
979 dentry->d_name.name[dentry->d_name.len - 4] == '@' &&
980 dentry->d_name.name[dentry->d_name.len - 3] == 's' &&
981 dentry->d_name.name[dentry->d_name.len - 2] == 'y' &&
982 dentry->d_name.name[dentry->d_name.len - 1] == 's')
1922 /* copy the target dentry's name */