Lines Matching refs:cd

130 static void nfs_dns_request(struct cache_detail *cd,  in nfs_dns_request()  argument
140 static int nfs_dns_upcall(struct cache_detail *cd, in nfs_dns_upcall() argument
146 ret = nfs_cache_upcall(cd, key->hostname); in nfs_dns_upcall()
148 ret = sunrpc_cache_pipe_upcall(cd, ch); in nfs_dns_upcall()
166 static int nfs_dns_show(struct seq_file *m, struct cache_detail *cd, in nfs_dns_show() argument
192 static struct nfs_dns_ent *nfs_dns_lookup(struct cache_detail *cd, in nfs_dns_lookup() argument
197 ch = sunrpc_cache_lookup(cd, in nfs_dns_lookup()
205 static struct nfs_dns_ent *nfs_dns_update(struct cache_detail *cd, in nfs_dns_update() argument
211 ch = sunrpc_cache_update(cd, in nfs_dns_update()
219 static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) in nfs_dns_parse() argument
234 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
253 item = nfs_dns_lookup(cd, &key); in nfs_dns_parse()
260 item = nfs_dns_update(cd, &key, item); in nfs_dns_parse()
265 cache_put(&item->h, cd); in nfs_dns_parse()
270 static int do_cache_lookup(struct cache_detail *cd, in do_cache_lookup() argument
277 *item = nfs_dns_lookup(cd, key); in do_cache_lookup()
279 ret = cache_check(cd, &(*item)->h, &dreq->req); in do_cache_lookup()
286 static int do_cache_lookup_nowait(struct cache_detail *cd, in do_cache_lookup_nowait() argument
292 *item = nfs_dns_lookup(cd, key); in do_cache_lookup_nowait()
298 || cd->flush_time > (*item)->h.last_refresh) in do_cache_lookup_nowait()
305 cache_put(&(*item)->h, cd); in do_cache_lookup_nowait()
311 static int do_cache_lookup_wait(struct cache_detail *cd, in do_cache_lookup_wait() argument
321 ret = do_cache_lookup(cd, key, item, dreq); in do_cache_lookup_wait()
325 ret = do_cache_lookup_nowait(cd, key, item); in do_cache_lookup_wait()
420 struct cache_detail *cd = nn->nfs_dns_resolve; in rpc_pipefs_event() local
423 if (cd == NULL) in rpc_pipefs_event()
431 ret = nfs_cache_register_sb(sb, cd); in rpc_pipefs_event()
434 nfs_cache_unregister_sb(sb, cd); in rpc_pipefs_event()