Lines Matching refs:cd
143 static void ip_map_request(struct cache_detail *cd, in ip_map_request() argument
160 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, struct in6_addr *addr);
161 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, t…
163 static int ip_map_parse(struct cache_detail *cd, in ip_map_parse() argument
196 if (rpc_pton(cd->net, buf, len, &address.sa, sizeof(address)) == 0) in ip_map_parse()
230 ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); in ip_map_parse()
232 err = __ip_map_update(cd, ipmp, in ip_map_parse()
246 struct cache_detail *cd, in ip_map_show() argument
275 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, in __ip_map_lookup() argument
283 ch = sunrpc_cache_lookup(cd, &ip.h, in __ip_map_lookup()
302 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, in __ip_map_update() argument
313 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
318 cache_put(ch, cd); in __ip_map_update()
461 static void unix_gid_request(struct cache_detail *cd, in unix_gid_request() argument
473 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
475 static int unix_gid_parse(struct cache_detail *cd, in unix_gid_parse() argument
523 ugp = unix_gid_lookup(cd, uid); in unix_gid_parse()
528 ch = sunrpc_cache_update(cd, in unix_gid_parse()
535 cache_put(ch, cd); in unix_gid_parse()
546 struct cache_detail *cd, in unix_gid_show() argument
589 struct cache_detail *cd; in unix_gid_cache_create() local
592 cd = cache_create_net(&unix_gid_cache_template, net); in unix_gid_cache_create()
593 if (IS_ERR(cd)) in unix_gid_cache_create()
594 return PTR_ERR(cd); in unix_gid_cache_create()
595 err = cache_register_net(cd, net); in unix_gid_cache_create()
597 cache_destroy_net(cd, net); in unix_gid_cache_create()
600 sn->unix_gid_cache = cd; in unix_gid_cache_create()
607 struct cache_detail *cd = sn->unix_gid_cache; in unix_gid_cache_destroy() local
610 cache_purge(cd); in unix_gid_cache_destroy()
611 cache_unregister_net(cd, net); in unix_gid_cache_destroy()
612 cache_destroy_net(cd, net); in unix_gid_cache_destroy()
615 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid) in unix_gid_lookup() argument
621 ch = sunrpc_cache_lookup(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
890 struct cache_detail *cd; in ip_map_cache_create() local
893 cd = cache_create_net(&ip_map_cache_template, net); in ip_map_cache_create()
894 if (IS_ERR(cd)) in ip_map_cache_create()
895 return PTR_ERR(cd); in ip_map_cache_create()
896 err = cache_register_net(cd, net); in ip_map_cache_create()
898 cache_destroy_net(cd, net); in ip_map_cache_create()
901 sn->ip_map_cache = cd; in ip_map_cache_create()
908 struct cache_detail *cd = sn->ip_map_cache; in ip_map_cache_destroy() local
911 cache_purge(cd); in ip_map_cache_destroy()
912 cache_unregister_net(cd, net); in ip_map_cache_destroy()
913 cache_destroy_net(cd, net); in ip_map_cache_destroy()