• Home
  • Raw
  • Download

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
525 ugp = unix_gid_lookup(cd, uid); in unix_gid_parse()
530 ch = sunrpc_cache_update(cd, in unix_gid_parse()
537 cache_put(ch, cd); in unix_gid_parse()
548 struct cache_detail *cd, in unix_gid_show() argument
591 struct cache_detail *cd; in unix_gid_cache_create() local
594 cd = cache_create_net(&unix_gid_cache_template, net); in unix_gid_cache_create()
595 if (IS_ERR(cd)) in unix_gid_cache_create()
596 return PTR_ERR(cd); in unix_gid_cache_create()
597 err = cache_register_net(cd, net); in unix_gid_cache_create()
599 cache_destroy_net(cd, net); in unix_gid_cache_create()
602 sn->unix_gid_cache = cd; in unix_gid_cache_create()
609 struct cache_detail *cd = sn->unix_gid_cache; in unix_gid_cache_destroy() local
612 cache_purge(cd); in unix_gid_cache_destroy()
613 cache_unregister_net(cd, net); in unix_gid_cache_destroy()
614 cache_destroy_net(cd, net); in unix_gid_cache_destroy()
617 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid) in unix_gid_lookup() argument
623 ch = sunrpc_cache_lookup(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
892 struct cache_detail *cd; in ip_map_cache_create() local
895 cd = cache_create_net(&ip_map_cache_template, net); in ip_map_cache_create()
896 if (IS_ERR(cd)) in ip_map_cache_create()
897 return PTR_ERR(cd); in ip_map_cache_create()
898 err = cache_register_net(cd, net); in ip_map_cache_create()
900 cache_destroy_net(cd, net); in ip_map_cache_create()
903 sn->ip_map_cache = cd; in ip_map_cache_create()
910 struct cache_detail *cd = sn->ip_map_cache; in ip_map_cache_destroy() local
913 cache_purge(cd); in ip_map_cache_destroy()
914 cache_unregister_net(cd, net); in ip_map_cache_destroy()
915 cache_destroy_net(cd, net); in ip_map_cache_destroy()