Lines Matching defs:cd
139 static void nfs_dns_request(struct cache_detail *cd,
149 static int nfs_dns_upcall(struct cache_detail *cd,
156 if (!nfs_cache_upcall(cd, key->hostname))
159 return sunrpc_cache_pipe_upcall_timeout(cd, ch);
176 static int nfs_dns_show(struct seq_file *m, struct cache_detail *cd,
202 static struct nfs_dns_ent *nfs_dns_lookup(struct cache_detail *cd,
207 ch = sunrpc_cache_lookup_rcu(cd,
215 static struct nfs_dns_ent *nfs_dns_update(struct cache_detail *cd,
221 ch = sunrpc_cache_update(cd,
229 static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen)
244 key.addrlen = rpc_pton(cd->net, buf1, len,
263 item = nfs_dns_lookup(cd, &key);
270 item = nfs_dns_update(cd, &key, item);
275 cache_put(&item->h, cd);
280 static int do_cache_lookup(struct cache_detail *cd,
287 *item = nfs_dns_lookup(cd, key);
289 ret = cache_check(cd, &(*item)->h, &dreq->req);
296 static int do_cache_lookup_nowait(struct cache_detail *cd,
302 *item = nfs_dns_lookup(cd, key);
308 || cd->flush_time > (*item)->h.last_refresh)
315 cache_put(&(*item)->h, cd);
321 static int do_cache_lookup_wait(struct cache_detail *cd,
331 ret = do_cache_lookup(cd, key, item, dreq);
335 ret = do_cache_lookup_nowait(cd, key, item);
430 struct cache_detail *cd = nn->nfs_dns_resolve;
433 if (cd == NULL)
441 ret = nfs_cache_register_sb(sb, cd);
444 nfs_cache_unregister_sb(sb, cd);