Lines Matching refs:namelen
523 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument
532 if (namelen + 1 > sizeof(key.name)) in idmap_name_to_id()
534 memcpy(key.name, name, namelen); in idmap_name_to_id()
535 key.name[namelen] = '\0'; in idmap_name_to_id()
589 numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in numeric_name_to_id() argument
594 if (namelen + 1 > sizeof(buf)) in numeric_name_to_id()
598 memcpy(buf, name, namelen); in numeric_name_to_id()
599 buf[namelen] = '\0'; in numeric_name_to_id()
605 do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in do_name_to_id() argument
608 if (numeric_name_to_id(rqstp, type, name, namelen, id)) in do_name_to_id()
614 return idmap_name_to_id(rqstp, type, name, namelen, id); in do_name_to_id()
626 nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, in nfsd_map_name_to_uid() argument
632 if (name == NULL || namelen == 0) in nfsd_map_name_to_uid()
635 status = do_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, &id); in nfsd_map_name_to_uid()
643 nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, in nfsd_map_name_to_gid() argument
649 if (name == NULL || namelen == 0) in nfsd_map_name_to_gid()
652 status = do_name_to_id(rqstp, IDMAP_TYPE_GROUP, name, namelen, &id); in nfsd_map_name_to_gid()