Lines Matching refs:namelen
539 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument
548 if (namelen + 1 > sizeof(key.name)) in idmap_name_to_id()
550 memcpy(key.name, name, namelen); in idmap_name_to_id()
551 key.name[namelen] = '\0'; in idmap_name_to_id()
605 numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in numeric_name_to_id() argument
610 if (namelen + 1 > sizeof(buf)) in numeric_name_to_id()
614 memcpy(buf, name, namelen); in numeric_name_to_id()
615 buf[namelen] = '\0'; in numeric_name_to_id()
621 do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in do_name_to_id() argument
624 if (numeric_name_to_id(rqstp, type, name, namelen, id)) in do_name_to_id()
630 return idmap_name_to_id(rqstp, type, name, namelen, id); in do_name_to_id()
642 nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, in nfsd_map_name_to_uid() argument
648 if (name == NULL || namelen == 0) in nfsd_map_name_to_uid()
651 status = do_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, &id); in nfsd_map_name_to_uid()
659 nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, in nfsd_map_name_to_gid() argument
665 if (name == NULL || namelen == 0) in nfsd_map_name_to_gid()
668 status = do_name_to_id(rqstp, IDMAP_TYPE_GROUP, name, namelen, &id); in nfsd_map_name_to_gid()