Lines Matching defs:cd

153 static int ip_map_upcall(struct cache_detail *cd, struct cache_head *h)
155 return sunrpc_cache_pipe_upcall(cd, h);
158 static void ip_map_request(struct cache_detail *cd,
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, time64_t expiry);
178 static int ip_map_parse(struct cache_detail *cd,
211 if (rpc_pton(cd->net, buf, len, &address.sa, sizeof(address)) == 0)
245 ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr);
247 err = __ip_map_update(cd, ipmp,
261 struct cache_detail *cd,
290 static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class,
298 ch = sunrpc_cache_lookup_rcu(cd, &ip.h,
308 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm,
319 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h,
324 cache_put(ch, cd);
468 static int unix_gid_upcall(struct cache_detail *cd, struct cache_head *h)
470 return sunrpc_cache_pipe_upcall_timeout(cd, h);
473 static void unix_gid_request(struct cache_detail *cd,
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,
536 ugp = unix_gid_lookup(cd, uid);
541 ch = sunrpc_cache_update(cd,
548 cache_put(ch, cd);
559 struct cache_detail *cd,
603 struct cache_detail *cd;
606 cd = cache_create_net(&unix_gid_cache_template, net);
607 if (IS_ERR(cd))
608 return PTR_ERR(cd);
609 err = cache_register_net(cd, net);
611 cache_destroy_net(cd, net);
614 sn->unix_gid_cache = cd;
621 struct cache_detail *cd = sn->unix_gid_cache;
624 cache_purge(cd);
625 cache_unregister_net(cd, net);
626 cache_destroy_net(cd, net);
629 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid)
635 ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid));
1037 struct cache_detail *cd;
1040 cd = cache_create_net(&ip_map_cache_template, net);
1041 if (IS_ERR(cd))
1042 return PTR_ERR(cd);
1043 err = cache_register_net(cd, net);
1045 cache_destroy_net(cd, net);
1048 sn->ip_map_cache = cd;
1055 struct cache_detail *cd = sn->ip_map_cache;
1058 cache_purge(cd);
1059 cache_unregister_net(cd, net);
1060 cache_destroy_net(cd, net);