Lines Matching refs:cd
153 static int ip_map_upcall(struct cache_detail *cd, struct cache_head *h) in ip_map_upcall() argument
155 return sunrpc_cache_pipe_upcall(cd, h); in ip_map_upcall()
158 static void ip_map_request(struct cache_detail *cd, in ip_map_request() argument
175 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, struct in6_addr *addr);
176 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, t…
178 static int ip_map_parse(struct cache_detail *cd, in ip_map_parse() argument
211 if (rpc_pton(cd->net, buf, len, &address.sa, sizeof(address)) == 0) in ip_map_parse()
245 ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); in ip_map_parse()
247 err = __ip_map_update(cd, ipmp, in ip_map_parse()
261 struct cache_detail *cd, in ip_map_show() argument
290 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, in __ip_map_lookup() argument
298 ch = sunrpc_cache_lookup_rcu(cd, &ip.h, in __ip_map_lookup()
308 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, in __ip_map_update() argument
319 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
324 cache_put(ch, cd); in __ip_map_update()
468 static int unix_gid_upcall(struct cache_detail *cd, struct cache_head *h) in unix_gid_upcall() argument
470 return sunrpc_cache_pipe_upcall_timeout(cd, h); in unix_gid_upcall()
473 static void unix_gid_request(struct cache_detail *cd, in unix_gid_request() argument
485 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
487 static int unix_gid_parse(struct cache_detail *cd, in unix_gid_parse() argument
536 ugp = unix_gid_lookup(cd, uid); in unix_gid_parse()
541 ch = sunrpc_cache_update(cd, in unix_gid_parse()
548 cache_put(ch, cd); in unix_gid_parse()
559 struct cache_detail *cd, in unix_gid_show() argument
603 struct cache_detail *cd; in unix_gid_cache_create() local
606 cd = cache_create_net(&unix_gid_cache_template, net); in unix_gid_cache_create()
607 if (IS_ERR(cd)) in unix_gid_cache_create()
608 return PTR_ERR(cd); in unix_gid_cache_create()
609 err = cache_register_net(cd, net); in unix_gid_cache_create()
611 cache_destroy_net(cd, net); in unix_gid_cache_create()
614 sn->unix_gid_cache = cd; in unix_gid_cache_create()
621 struct cache_detail *cd = sn->unix_gid_cache; in unix_gid_cache_destroy() local
624 cache_purge(cd); in unix_gid_cache_destroy()
625 cache_unregister_net(cd, net); in unix_gid_cache_destroy()
626 cache_destroy_net(cd, net); in unix_gid_cache_destroy()
629 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid) in unix_gid_lookup() argument
635 ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
1038 struct cache_detail *cd; in ip_map_cache_create() local
1041 cd = cache_create_net(&ip_map_cache_template, net); in ip_map_cache_create()
1042 if (IS_ERR(cd)) in ip_map_cache_create()
1043 return PTR_ERR(cd); in ip_map_cache_create()
1044 err = cache_register_net(cd, net); in ip_map_cache_create()
1046 cache_destroy_net(cd, net); in ip_map_cache_create()
1049 sn->ip_map_cache = cd; in ip_map_cache_create()
1056 struct cache_detail *cd = sn->ip_map_cache; in ip_map_cache_destroy() local
1059 cache_purge(cd); in ip_map_cache_destroy()
1060 cache_unregister_net(cd, net); in ip_map_cache_destroy()
1061 cache_destroy_net(cd, net); in ip_map_cache_destroy()