Lines Matching refs:name
69 char name[IDMAP_NAMESZ]; member
87 strlcpy(new->name, itm->name, sizeof(new->name)); in ent_init()
88 strlcpy(new->authname, itm->authname, sizeof(new->name)); in ent_init()
166 seq_printf(m, " %s", ent->name); in idtoname_show()
187 .name = "nfs4.idtoname",
255 memcpy(ent.name, buf1, sizeof(ent.name)); in idtoname_parse()
301 return hash_str(ent->name, ENT_HASHBITS); in nametoid_hash()
312 qword_add(bpp, blen, ent->name); in nametoid_request()
323 return (a->type == b->type && strcmp(a->name, b->name) == 0 && in nametoid_match()
339 ent->name); in nametoid_show()
354 .name = "nfs4.nametoid",
398 memcpy(ent.name, buf1, sizeof(ent.name)); in nametoid_parse()
526 return clp->name; in rqst_authname()
530 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument
539 if (namelen + 1 > sizeof(key.name)) in idmap_name_to_id()
541 memcpy(key.name, name, namelen); in idmap_name_to_id()
542 key.name[namelen] = '\0'; in idmap_name_to_id()
555 idmap_id_to_name(struct svc_rqst *rqstp, int type, u32 id, char *name) in idmap_id_to_name() argument
567 return sprintf(name, "%u", id); in idmap_id_to_name()
570 ret = strlen(item->name); in idmap_id_to_name()
572 memcpy(name, item->name, ret); in idmap_id_to_name()
578 numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in numeric_name_to_id() argument
587 memcpy(buf, name, namelen); in numeric_name_to_id()
594 do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in do_name_to_id() argument
597 if (numeric_name_to_id(rqstp, type, name, namelen, id)) in do_name_to_id()
603 return idmap_name_to_id(rqstp, type, name, namelen, id); in do_name_to_id()
607 do_id_to_name(struct svc_rqst *rqstp, int type, u32 id, char *name) in do_id_to_name() argument
610 return sprintf(name, "%u", id); in do_id_to_name()
611 return idmap_id_to_name(rqstp, type, id, name); in do_id_to_name()
615 nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, in nfsd_map_name_to_uid() argument
620 status = do_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, &id); in nfsd_map_name_to_uid()
628 nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, in nfsd_map_name_to_gid() argument
633 status = do_name_to_id(rqstp, IDMAP_TYPE_GROUP, name, namelen, &id); in nfsd_map_name_to_gid()
641 nfsd_map_uid_to_name(struct svc_rqst *rqstp, kuid_t uid, char *name) in nfsd_map_uid_to_name() argument
644 return do_id_to_name(rqstp, IDMAP_TYPE_USER, id, name); in nfsd_map_uid_to_name()
648 nfsd_map_gid_to_name(struct svc_rqst *rqstp, kgid_t gid, char *name) in nfsd_map_gid_to_name() argument
651 return do_id_to_name(rqstp, IDMAP_TYPE_GROUP, id, name); in nfsd_map_gid_to_name()