Lines Matching refs:cd
151 static void ip_map_request(struct cache_detail *cd, in ip_map_request() argument
168 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, struct in6_addr *addr);
169 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, t…
171 static int ip_map_parse(struct cache_detail *cd, in ip_map_parse() argument
204 if (rpc_pton(cd->net, buf, len, &address.sa, sizeof(address)) == 0) in ip_map_parse()
238 ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); in ip_map_parse()
240 err = __ip_map_update(cd, ipmp, in ip_map_parse()
254 struct cache_detail *cd, in ip_map_show() argument
283 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, in __ip_map_lookup() argument
291 ch = sunrpc_cache_lookup_rcu(cd, &ip.h, in __ip_map_lookup()
310 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, in __ip_map_update() argument
321 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
326 cache_put(ch, cd); in __ip_map_update()
479 static void unix_gid_request(struct cache_detail *cd, in unix_gid_request() argument
491 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
493 static int unix_gid_parse(struct cache_detail *cd, in unix_gid_parse() argument
542 ugp = unix_gid_lookup(cd, uid); in unix_gid_parse()
547 ch = sunrpc_cache_update(cd, in unix_gid_parse()
554 cache_put(ch, cd); in unix_gid_parse()
565 struct cache_detail *cd, in unix_gid_show() argument
608 struct cache_detail *cd; in unix_gid_cache_create() local
611 cd = cache_create_net(&unix_gid_cache_template, net); in unix_gid_cache_create()
612 if (IS_ERR(cd)) in unix_gid_cache_create()
613 return PTR_ERR(cd); in unix_gid_cache_create()
614 err = cache_register_net(cd, net); in unix_gid_cache_create()
616 cache_destroy_net(cd, net); in unix_gid_cache_create()
619 sn->unix_gid_cache = cd; in unix_gid_cache_create()
626 struct cache_detail *cd = sn->unix_gid_cache; in unix_gid_cache_destroy() local
629 cache_purge(cd); in unix_gid_cache_destroy()
630 cache_unregister_net(cd, net); in unix_gid_cache_destroy()
631 cache_destroy_net(cd, net); in unix_gid_cache_destroy()
634 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid) in unix_gid_lookup() argument
640 ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
905 struct cache_detail *cd; in ip_map_cache_create() local
908 cd = cache_create_net(&ip_map_cache_template, net); in ip_map_cache_create()
909 if (IS_ERR(cd)) in ip_map_cache_create()
910 return PTR_ERR(cd); in ip_map_cache_create()
911 err = cache_register_net(cd, net); in ip_map_cache_create()
913 cache_destroy_net(cd, net); in ip_map_cache_create()
916 sn->ip_map_cache = cd; in ip_map_cache_create()
923 struct cache_detail *cd = sn->ip_map_cache; in ip_map_cache_destroy() local
926 cache_purge(cd); in ip_map_cache_destroy()
927 cache_unregister_net(cd, net); in ip_map_cache_destroy()
928 cache_destroy_net(cd, net); in ip_map_cache_destroy()